Trust that a change is safe
A maintainer wants layered tests that show a change keeps the app's logic, screens, signatures and vault behaviour intact.

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

Accessibility checks and gaps

What the largest text pass checks and the findings still open

Light and dark

The light and dark guard rails that verify looks at

How the framework shaped the design

Test ids and largest-text checks come from the framework

Accessibility

Test ids kept separate from accessible labels

Implementation

Page

Part it plays

Testing

Section parent: the test layers, what each proves and what the app talks to under test

Bun unit tests

Every unit test file, its count and what it covers

Contract UI tests

The UI test language, every test file with its backend, and the known baseline failures

Verify and visual checks

What verify and verify ios check and how results are reported

Real vault compatibility suite

The suite against the repository's real vault server and web UI

The local test server

The combined local server that tests talk to

Mock agents server

The scripted agents server

Mock notify service

The in-memory notify fixture and its signature checks

Mock vault

The throwaway vault server

Crypto: parity vectors against the original client

Bytes, signatures and CIDs matched against the original clients

Crypto: vendored CBOR and gzip codecs

Vendored codecs regenerated byte-identically in a test

Vault: merge and tombstones

The removal marker rule the regression tests protect

GitHub Actions workflow

What CI runs and what it deliberately does not

The Clipper delivery worker

The worker reruns the unit tests before every build; its own unit tests

The 100 ms turn budget

Why web and Bun tests cannot catch a turn over 100 ms

Simulators and devices

Contract tests and verify on a simulator, real-time checks

The web host for development

What a passing web run cannot prove

Rules for agents working on the app

Rules: parity vectors stay green, synthetic accounts for writes, removal-marker tests stay green

Current limits and known gaps

No Contract tests in CI and the three baseline failures

Code

File

What

package.json L4-8

scripts: test runs bun test src tools/test-server

.github/workflows/seed-exact.yml L36-45

CI: unit tests, real vault suite, worker tests

app.json L32-37

the server command Exact starts for tests

tools/test-server/index.ts

the combined test server on 127.0.0.1:4790

tools/mock-agents/server.ts

the scripted agents server

tools/mock-notify/routes.ts

the notify fixture

tools/mock-vault/routes.ts

the mock vault

tools/crypto-vectors/generate.ts

generates the parity vectors from the original client

src/crypto/__tests__/fixtures/rn-client.json

recorded vectors from the original client

.tests/real-vault/real-vault.test.ts L118-317

the nine real vault tests

tools/clipper-deploy.py L77-80

the worker runs bun install and bun run test before testflight.sh

exact.mjs L1-18

the launcher for test, agent and verify

src/crypto/sources.ts

The in-runtime crypto self-test source

tools/crypto-vectors/run-originals.ts

Runs the original client code to produce parity vectors

tools/crypto-vectors/vendor.ts

Rebuilds the vendored codecs

tools/crypto-vectors/codec-entry.ts

Entry file of the vendored codec bundle

tools/mock-agents/generate-vector.ts

Generates the agents envelope vector

tools/mock-agents/settings.ts

The mock agents port

tools/mock-vault/serve.ts

Standalone mock vault

tools/test-server/routes.ts

Routes of the local test server

.tests/real-vault/server.ts

Starts the real vault server for the compatibility suite

.tests/real-vault/web.ts

Drives the real vault web page

.tests/real-vault/README.md

How to run the real vault suite

src/crypto/vendor/cborg.LICENSE

Licence of a vendored codec

src/crypto/vendor/fflate.LICENSE

Licence of a vendored codec

src/crypto/vendor/dag-cbor.NOTICE.md

Notice for a vendored codec

Tests

File

What it checks

src/crypto/__tests__/crypto.test.ts

parity with the original clients: mnemonics, keys, comments, envelopes, vault states

crypto.test.contract

"crypto vectors run inside the host runtime"

src/crypto/__tests__/vendor.test.ts

"vendored codecs.js regenerates byte-identically from the lockfile"

src/vault/__tests__/vault.test.ts

"a connection cut short before identities reach the Keychain never deletes them from the remote vault"

src/vault/__tests__/vault.test.ts

"only a removal made in Me leaves a marker, and the marker is spent once the vault records it"

.tests/real-vault/real-vault.test.ts

"a revoked or wrong credential fails closed and keeps every identity"

tools/test-server/routes.test.ts

"the read proxy refuses hosted notify paths for every method"

tools/test_clipper_deploy.py

the seven delivery worker tests

app.test.contract

"the four tabs are there and each opens"

read.test.contract

twelve Read tests against live hyper.media, three failing at baseline on 2026-12-01

src/agents/__tests__/review.test.ts

"joining tool results stays linear for long sessions (Hermes 100 ms turn budget)"

src/crypto/__tests__/review.test.ts

Fractional and invalid clocks in signed timestamps

Delivery

Delivered by #1470.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
Epic
Team
name
Trust that a change is safe
Story
US-TEAM-02
Status
Partial
summary
A maintainer wants layered tests that show a change keeps the app's logic, screens, signatures and vault behaviour intact.