As a maintainer, I want tests at every layer to tell me a change is safe, so that I can approve it without fearing for people's documents, signatures or keys.
Situation
A change to the mobile app is in front of me. It may touch a screen, the code that signs comments, or the vault that holds people's keys.
What I do
Run bun run test.
Run the interface tests with bun exact.mjs test web or test ios.
Run bun exact.mjs verify ios at the end.
Open the pull request and wait for the "Seed Exact" check.
Try anything that grows with a person's data on a simulator at real size.
What I should see
The unit tests pass: 23 files covering parsing, rendering, signed bytes, the vault and agent conversations.
Signatures and encoded bytes match recorded examples from the original clients. The same check runs inside the app.
The interface tests drive the real app by tapping and typing: 67 tests in 11 files, on the web or a simulator.
9 tests run the vault code against the project's real vault server and web page.
Every pull request that touches the app runs the unit tests, the real vault suite and 7 delivery tests on GitHub.
The build Mac runs the unit tests again before each TestFlight build.
The final check runs every interface test, looks at each screen in light, dark and the largest text size, and ends with "verify: clean" or "verify: N problems".
No test writes to the public site. Writes go to the development site or to local stand-ins.
Three tests guard the rule that an identity is deleted from a vault only when a person removed it.
When something goes wrong
An interface test fails against live content that changed: three such failures in the Read tests were recorded on 2026-12-01. I run the test on the base commit. If it fails there too, I record that and do not weaken the test.
Tests pass but the app fails on a phone with a large vault: the limit on long work exists only on iOS. I reproduce it on a simulator at real size.
Not included
The interface tests and the final check do not run on GitHub. Whoever makes the change runs them. See Testing.
No iOS build happens before merge, and nothing runs on a physical phone.
Those three failures block a clean final check. See Current limits and known gaps.
Large text findings are counted but never fail a run.
Trace
Story US-TEAM-02, status Partial. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
What the largest text pass checks and the findings still open | |
The light and dark guard rails that verify looks at | |
Test ids and largest-text checks come from the framework | |
Test ids kept separate from accessible labels |
Implementation
Page | Part it plays |
|---|---|
Section parent: the test layers, what each proves and what the app talks to under test | |
Every unit test file, its count and what it covers | |
The UI test language, every test file with its backend, and the known baseline failures | |
What verify and verify ios check and how results are reported | |
The suite against the repository's real vault server and web UI | |
The combined local server that tests talk to | |
The scripted agents server | |
The in-memory notify fixture and its signature checks | |
The throwaway vault server | |
Bytes, signatures and CIDs matched against the original clients | |
Vendored codecs regenerated byte-identically in a test | |
The removal marker rule the regression tests protect | |
What CI runs and what it deliberately does not | |
The worker reruns the unit tests before every build; its own unit tests | |
Why web and Bun tests cannot catch a turn over 100 ms | |
Contract tests and verify on a simulator, real-time checks | |
What a passing web run cannot prove | |
Rules: parity vectors stay green, synthetic accounts for writes, removal-marker tests stay green | |
No Contract tests in CI and the three baseline failures |
Code
File | What |
|---|---|
scripts: test runs bun test src tools/test-server | |
CI: unit tests, real vault suite, worker tests | |
the server command Exact starts for tests | |
the combined test server on 127.0.0.1:4790 | |
the scripted agents server | |
the notify fixture | |
the mock vault | |
generates the parity vectors from the original client | |
recorded vectors from the original client | |
the nine real vault tests | |
the worker runs bun install and bun run test before testflight.sh | |
the launcher for test, agent and verify | |
The in-runtime crypto self-test source | |
Runs the original client code to produce parity vectors | |
Rebuilds the vendored codecs | |
Entry file of the vendored codec bundle | |
Generates the agents envelope vector | |
The mock agents port | |
Standalone mock vault | |
Routes of the local test server | |
Starts the real vault server for the compatibility suite | |
Drives the real vault web page | |
How to run the real vault suite | |
Licence of a vendored codec | |
Licence of a vendored codec | |
Notice for a vendored codec |
Tests
File | What it checks |
|---|---|
parity with the original clients: mnemonics, keys, comments, envelopes, vault states | |
"crypto vectors run inside the host runtime" | |
"vendored codecs.js regenerates byte-identically from the lockfile" | |
"a connection cut short before identities reach the Keychain never deletes them from the remote vault" | |
"only a removal made in Me leaves a marker, and the marker is spent once the vault records it" | |
"a revoked or wrong credential fails closed and keeps every identity" | |
"the read proxy refuses hosted notify paths for every method" | |
the seven delivery worker tests | |
"the four tabs are there and each opens" | |
twelve Read tests against live hyper.media, three failing at baseline on 2026-12-01 | |
"joining tool results stays linear for long sessions (Hermes 100 ms turn budget)" | |
Fractional and invalid clocks in signed timestamps |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime