Site Boundary: proving time on site without accusing anyone
A per-site boundary that checks where Start and Finish were tapped — designed around bad GPS so it flags what's real and leaves honest crews alone.
Site Boundary: proving time on site without accusing anyone
Two taps hold up a surprising amount of a contractor's numbers. An operative taps Start On Site when they arrive and Finish On Site when they leave, and the gap between them becomes time on site — which becomes cost, which becomes the man-hours figure on the client report and in the next estimate.
Those two taps drift. Not usually because anyone is trying it on. Mostly because a person who has just spent nine hours in a hole gets in the van and drives off.
The three ways time on site goes wrong
The first is a forgotten Finish. The session never closes, and until we built this, an unclosed visit kept accruing time to right now on every rollup until somebody noticed and fixed it by hand. One forgotten tap quietly poisons a week of reporting.
The second is a delayed Finish — tapped at the depot, at the next job, or at home. Recorded time inflates and nothing catches it.
The third is a Start tapped before arriving. We built this whole feature guarding the finish, and only then noticed the start had been sitting on an assumption the entire time: they tapped Start, so they must be on site. Starting from the drive is the same inflation as finishing from the drive, just at the other end of the day.
Why a simple distance check would be switched off within a week
The obvious version of this feature is one line: are they within 150 metres of the site? Anyone who has worked on site knows why that fails.
GPS is worst exactly where this work happens. A fix taken in a trench, a basement, or a street with tall buildings on both sides can be accurate to a couple of hundred metres. A naive distance check would flag honest people constantly, and a system that accuses honest people gets switched off within a week — by the customer, not by us.
So the design problem was never "detect people outside the boundary". It was: never accuse someone the evidence cannot convict, while still catching the cases that are real.
How it avoids flagging your crews
Three things do most of that work.
The boundary is buffered by the fix's own margin of error. A reading is only treated as outside when the distance exceeds the radius plus the accuracy of that reading. A fix 200 metres from the centre of a 150-metre site looks damning until you notice it is accurate to plus or minus 120 metres — at which point it is entirely consistent with standing in the middle of the site. A bad fix fails safe rather than failing loudly.
A fix that proves nothing is allowed to prove nothing. Readings worse than a configurable accuracy threshold count as evidence in neither direction. They cannot flag someone and they cannot clear them. They are still recorded and still shown to a reviewer, greyed out, because "we had no usable fix for forty minutes" is itself something a manager needs to know.
Nothing triggers on a single reading. An exit is only confirmed after several consecutive usable out-of-bounds fixes. One outlier 500 metres away, surrounded by good readings on site, changes nothing at all.
What happens when a session is flagged?
It is never refused. Finish is always accepted, always. Blocking it would strand someone genuinely on site with a bad fix, and they would simply tap it again from the road — which is worse data, not better.
Instead the session is flagged, the distance and accuracy recorded, and the site's management alerted. The flag lands in a review queue showing the distance, the accuracy of the reading, a map of the ping trail, the operative's own stated reason, and Acknowledge, Dispute or Adjust.
If an operative leaves the boundary mid-session, the session auto-pauses after a grace period, and they are prompted to resume when they come back — never resumed silently behind them. Management is only alerted if it stays paused past a longer threshold, because a run to the merchants should not page anybody.
Is the person told they have been flagged?
Immediately, and in neutral language — what was recorded, not what it implies about them. An auto-pause that nobody is told about is, from the operative's side, indistinguishable from their time quietly going missing. That is how you lose a workforce's cooperation permanently.
When a manager adjusts a flagged session, the original is not overwritten. The adjustment is raised as an edit request for approval and the original record stays exactly as the device produced it. That record is the evidence the review exists to weigh, and it is also the only thing the operative can point at.
Does it track people all day?
No. No location is collected outside an active session, ever. While a session is running, a foreground service with a persistent, unmissable notification is visible on the device, and it stops the moment the session ends. Workers can see when it is on, which is the minimum condition for any of this being accepted on a site.
Android asks separately for background location permission, and people refuse it. Refusal is a supported outcome rather than an error: the mid-session monitoring switches off for that device, the checks at Start and Finish still apply, and the session records that it ran in foreground-only mode. That mode is spelled out to reviewers in words, because a manager who does not know the monitoring never ran will read an absence of pings as an absence of work.
It ships switched off
Site Boundary is disabled by default. Boundaries are configured per site, in the web app, on a map with a draggable pin, and a site with no boundary behaves exactly as it always did. Nobody has it imposed on them by an update, and it can be turned on for the sites where it matters and left off everywhere else.
The honest description of this feature is that it is a trust feature rather than a monitoring one. A version that simply detected boundary violations would have been far quicker to build — and it would have been turned off by the first customer whose best ganger got accused of being 200 metres from a trench he was standing in.
Built by people who've done the work on site. Live and in use.
