Sentinel
Community safety coordination and emergency alerting for Nigeria. Your circle, told; nobody else.
- React Native
- TypeScript
- Kotlin
- Swift
- C# / .NET 9
- PostgreSQL
- X25519
- XChaCha20-Poly1305
The problem
This is the one project in the portfolio where a design error causes direct physical harm. A false alarm can start a mob. A “suspicious person” report can get somebody killed. A rumour carried by a well-built app travels faster than one on WhatsApp.
So the rules were written before the code, and the rules are the product:
Alerting your own circle is a right; alarming strangers is a privilege.
What I built
- Two paths that share nothing but the design system. The personal path — the panic action, the journey that escalates even if the phone dies — is fast and unmetered, because it reaches people who already trust you. The public path is earned.
- Reach is computed, not granted. A report is visible to 500 m and widens only with independent corroboration, from a pure function property-tested over generated worlds: no single account, and no set of accounts sharing an independence signal, can carry an unverified report beyond 500 m.
- The server cannot read a location. Alert and journey positions leave the phone sealed to the circle's keys. A test hands the server everything it holds and proves it cannot open one.
- Coercion is a use case. Silent send, a duress PIN that opens a screen which looks idle while telling your circle you were made to, and a cancel that needs two fingers and a PIN — so it cannot be performed by somebody reaching over.
Decisions worth naming
- Nothing about a person, ever. No names, no photographs, no descriptions, no plates, and no suspicious person category — free text is screened and the screen fails closed. A build gate fails on the words that would cross the line.
- No engagement. No counts, no badges, no ranking, no analytics SDK at all. A safety app optimised for engagement manufactures fear.
- There is no red in the palette and no
dangertoken, enforced by a gate. The official emergency numbers appear first and largest on every alert surface, above anything Sentinel offers.
What the first simulator run found
Three defects that no test could have caught, which is the argument for running the thing rather than only testing it:
- The app had never started. Every device key begins with random bytes, and the JavaScript engine React Native uses has no cryptographic random source, so the first render threw. Fixed with the platform's own CSPRNG and no fallback: a product that will not launch is a bug; one that launches with predictable keys is a breach.
- Three files agreed on a colour that was never on screen. Six translucent surface tokens were written with the alpha channel at the front, which React Native reads as the colour — so every text field rendered as a solid block of accent with the text on it unreadable. The design gate compared two files that were wrong the same way, and the contrast test parsed them the same wrong way and asserted the contrast passed. All three read the right order now, and the gate refuses the other.
- Every gradient button painted 86% of the way across while its label stayed centred on the full width, so the primary control on each screen read as one that had not finished drawing. I had captured five screenshots with the defect in them without registering it; somebody else looked and said the buttons were not complete.
Reaching the duress screen meant driving the whole coercion path on the simulator: set two PINs, raise an alert, hold the cancel with two fingers, then enter the second PIN. What comes out is a screenshot identical to the ordinary home screen — the feature photographs as nothing, which is precisely what it is for.
What is not finished
- Panic latency on hardware. Measured with a stopwatch on a handset, not in a simulator.
- An outside reading of the abuse model. The rules are mine, and the one thing I cannot do is review them as a stranger would.
- Thirty days in one city with zero harm before the public path is switched on at all.
- A provider that can text a Nigerian handset for the five-language circle SMS, and somebody watching one arrive.