in 30 seconds A red night mode you can switch on, and feel the reason for.plate 02 · night mode Rebuilt an app already in daily use by real guards.plate 03 · shipped Records are tamper-evident, not trust-me.plate 05 · integrity Measurement pending, and named as pending.plate 07 · measurement
A truck is idling.
A queue is forming.
Security guards at industrial gates log every vehicle in and out: driver, company, destination, vehicle description, and photographs of its condition. They do it standing outside, in gloves, in direct sun or total darkness, while a truck idles at the barrier.
Guard1 is a rebuild of an application already in daily production use, with real guards logging real traffic. That raises the stakes: there is an established habit to respect, and a redesign users reject is worse than no redesign at all.
I own the product and lead delivery: user research with gate staff, requirements from the client, scope, UX decisions, the trade-off calls, and a team of two developers. The engagement is ongoing and wider than the gate-logging app documented here.
To be precise about what lives where: the app guards use every day runs from the official codebase, without the redesign. The redesign documented on this page, plate scanning included, lives in my own repository. I built it with AI working at my direction, and it ships to TestFlight for validation.
What a desk cannot see.
Requirements arrived from two directions: the client, on what the logs are used for downstream, and the guards, on what actually happens at the barrier. The second conversation produced the decisions that distinguish the product.
Night vision is an operational requirement
Guards on night shift watch a dark perimeter between vehicles. A bright screen, including a conventional dark theme with white text, costs several minutes of dark adaptation after every entry. Nobody had framed this as a product requirement. It turned a cosmetic setting into a security one.
Not carelessness. Queue pressure
The old log had gaps because a queue forms behind a stopped truck, and every field competes with that. It reframed the goal from enforce completeness to make completeness cheap enough that enforcing it is reasonable.
Silver, or grey?
Guards classified vehicle colour inconsistently under sodium lighting. That is why the palette was cut from fourteen options to six rather than expanded. A longer list looked thorough and produced worse data.
Validation ran continuously, not at the end. Because the redesign shipped as a standalone app while scope was still open, guards and stakeholders used it for real: the vehicle taxonomy was replaced, the make list was restructured, and the mandatory-field rules were tightened, all after people had it in their hands.
The decision you can feel.
Three display modes shipped: light for direct sun, dark for the gatehouse, and a red night mode that preserves dark adaptation, following the convention in aviation cockpits, naval bridges, and observatories.
Switch the device. Imagine the last one at 3 a.m., a hundred metres of dark fence behind it, and a guard who has to look up from the screen and see something.
Light: high-contrast, anti-glare, for direct sunlight.
What shipped.
Plate capture that reads instead of photographs
The plate is the highest-value field, the most error-prone to type, and the key to prefilling a returning vehicle. The conventional build is: take a photo, process it, correct it. My first build read continuously and captured itself once confident. Then I moved the default to Apple's live text scanner, where the guard taps the plate and confirms it, because human disambiguation beats heuristics when a vehicle is covered in competing text.
Confidence through agreement, on the fallback. OCR flickers between frames: a plate reads correctly, misreads, then corrects itself. So the fallback scanner requires three consecutive identical readings before accepting a result. It costs about two seconds and removes the worst failure mode, a confidently wrong plate the guard never notices. Either way, the guard confirms the plate before it enters the form.
Signal from noise. A truck is covered in text: DOT numbers, trailer IDs, livery, the state name on the plate itself. When the fallback reads, it scores every candidate and requires at least one digit, which alone eliminates "TEXAS" and most signage, then weights toward common plate structures.
Prefill that never happens silently
With plates captured reliably, the plate became a lookup key. A match surfaces the known driver, company, destination, vehicle details, and offers to populate the form: a regular contractor's entry completes in a tap.
But prefill always presents an explicit confirmation, then a notice reading "Form prefilled from previous entry. Please verify all fields." A wrong record propagated automatically is worse than a slow one. Speed cannot come at the cost of accountability for what gets submitted.
Data quality without punishing the guard
Eight fields became mandatory, plus two photographs, because the old form allowed submission with gaps that made the log unusable downstream. Enforcement is deliberately non-punitive: nothing blocks while the guard fills the form, and inline errors appear only after a submission attempt, so no one is interrupted mid-flow.
Free text gave way to controlled vocabularies: four icon-driven vehicle types, a make list filtered by the type already chosen (so a "Kenworth pickup" is structurally impossible), six colours instead of fourteen, and searchable pickers for company and destination.
Two numbers instead of a login
A 4-digit PIN identifies the guard; a gate access code identifies the post. Every entry is attributed to a person at a gate with no extra data entry per record, on a large keypad usable with gloves. Binding the session to the gate rather than the device means the same iPad works at any post.
Frontend first, backend deferred.
Guard1 replaces an app already in daily use, which changes the risk profile. Users have an established habit, and a redesign they reject is worse than no redesign. The thing to de-risk first was not infrastructure. It was whether the new workflow would be accepted.
So the interface shipped as a fully functional standalone app, went into stakeholders' and guards' hands for real use, and all database and API commitment waited until the workflow was validated. The reasoning:
- A backend built before the interface is validated encodes guesses. Every table and endpoint bets on a workflow nobody has used.
- Post-acceptance frontend changes are cheap. Schema changes against production data are not. Committing to a data model last means committing once.
- Stakeholders cannot meaningfully review a specification. They can review something they operate.
- The requirements genuinely moved: taxonomy, make list, and mandatory-field rules all changed after people started using it. Each would have been a migration against live data.
Deferring is not drifting. The data layer was structured for sync from day one: every entry carries a sync state surfaced as a badge, an outbound queue holds pending work with attempt counts and retry timestamps, and repository interfaces mean a remote source slots in without touching the UI. Records enter the queue on creation, so nothing captured before the backend exists is lost when it arrives.
Tamper-evidence.
Tamper-evidence, and the uncomfortable part
A gate log is evidentiary: it gets pulled into incident investigations, liability disputes, and billing reconciliation. With no connectivity, a record can sit on a device for an entire shift. That gap is a chain-of-custody problem, and the uncomfortable part is who it exposes: the person holding the device is the same person the record holds accountable. Nothing distinguished a record captured at the gate from one edited hours later.
Every entry is hashed when recorded, over its own fields and the hashes of its photographs and audio, then linked to the hash of the entry before it: an append-only chain. Altering or deleting a historical record breaks every link after it, so an edit cannot stay local: hiding one means rewriting the entire tail of the log. A verification pass walks the chain and reports altered records, missing entries, and missing media. Records from before the chain existed report as unverifiable, never as verified: the app won't vouch for what it didn't seal.
Why there is no signing key. A keyed signature needs a secret, and with no server to issue one the only place to put it is the app bundle, where anyone able to edit the database could extract it and re-sign their edits. That is security theatre. A hash chain needs no secret, and once records reach a server the chain is anchored.
Decisions, and their price.
| Decision | Trade-off accepted | Why anyway |
|---|---|---|
| Make Apple's tap-to-select scanner the default | Older iPads dropped: iOS 16 minimum | Human disambiguation beats heuristics when a vehicle is covered in competing text |
| Require three matching reads on the fallback scanner | ~2 seconds slower per scan | A confidently wrong plate is rarely caught, and it corrupts prefill and search |
| Never prefill silently; always require confirmation | An extra tap on every matched vehicle | Speed cannot come at the cost of accountability for what is submitted |
| Cut colours from fourteen to six | Loss of descriptive precision | Faster selection, more consistent data; guards disagreed on the fine distinctions anyway |
| Filter vehicle make by vehicle type | More to build and maintain | Halves the visible list and makes invalid combinations impossible |
| Make eight fields mandatory | Slower entry; risk of guard frustration | Incomplete records made the log unusable for its actual purpose |
| Show validation only after a submit attempt | Errors surface later than they could | Prevents interrupting the guard mid-entry on fields they have not reached |
| Ship the frontend standalone before any backend | No central visibility until integration | The eventual schema gets shaped by accepted requirements instead of upfront guesses |
| Verify the chain on demand, not on a timer | Tampering shows only when someone checks | Verification re-hashes every photo and recording, far too expensive to run while a guard works the gate |
| Keyless hash chain rather than signed records | Cannot prevent tampering, only reveal it | A signing key with no server to issue it must live in the app bundle, where it can be extracted |
Pending, and named.
No numbers on this page, because the honest ones do not exist yet.
The redesign ships to TestFlight for stakeholder and guard validation, with backend integration next. Here is exactly what I intend to measure, which is the same list I would defend in a review:
- Average time to complete one log entry, before and after
- Share of entries submitted with all required fields complete, before and after
- Plate scan success rate, and how often a guard corrects it manually
- Share of exit logs completed by one-tap match rather than manual entry
- Vehicles logged per shift; guards, gates, and sites in the pilot
- Qualitative guard feedback, particularly on night mode
Two of these already come from data the app stores: one-tap exits and vehicles per shift. Time per entry and scan corrections need instrumentation the build doesn't have yet, and completeness is enforced by design now, so its "before" has to come from the old app.
Next: backend integration and queue drain, server-side anchoring of the tamper-evidence chain, and central multi-gate reporting. The work continues under my ownership, and it extends past this application.