These rules come from the app's own instruction files, from comments in the code that record past failures, and from the mobile process. An agent changing the app follows all of them. Each rule links to the page that explains the reason.
From the app's instruction files
AGENTS.md and CLAUDE.md in the app directory carry a block generated by Exact:
exact.mjs and the generated block are not edited by hand. bun exact.mjs update rewrites them. See Commands and verbs.
Start from the nearest pattern (bun exact.mjs pattern) and look names up with bun exact.mjs contract vocab <name> or bun exact.mjs docs <heading>. See The Contract language.
Run bun exact.mjs verify when features work, and verify ios at the end. See Verify and visual checks.
Record friction with the framework: bun exact.mjs feedback note "<what happened>". This is required whenever a doc was wrong, a workaround was needed or a command confused you.
Ownership inside the app
Each package edits app.contract and app.ts only inside its own // >>> pkg:<name> blocks. ui.contract, the shared state and the block structure are lead-owned. See Package conventions and ownership blocks.
Resources and mutations are declared only in the root. Do not try to move them into a package contract. See The root contract.
Follow DESIGN.md: paint only content, no colour literals in screens, sentence case, never an account id as a primary label. See Shared components and visual design.
Runtime rules
Any loop that does cryptography or heavy work per item yields between items. Try anything that scales with a person's data at real size on iOS. See The 100 ms turn budget.
A source never reads the clock. Time arrives as an argument from the contract. See State, refresh and stale-reply patterns.
A new network origin, secret or file path needs a literal grant in app.ts. See Grants and capabilities.
A source's answer matches its declared shape exactly. See The data module.
Keys and the vault
Never infer deletion from absence. Only the explicit {removed: true} marker may become a tombstone. The three removal-marker regression tests in src/vault/__tests__/vault.test.ts stay green on every vault change. See Vault: merge and tombstones.
Key storage fails closed. Do not add a code path that treats an unreadable key bundle as empty or overwrites it. See Identity: key storage.
Signing code changes keep the parity vectors green, and the vendored codecs are regenerated, never edited. See Crypto: vendored CBOR and gzip codecs.
Tests that write use synthetic accounts and local fixtures. Writes against a hosted server use only the public BIP-39 test vector key on dev.hyper.media. See Contract UI tests.
Delivery
Work in a dedicated checkout and branch. One owner per task and checkout.
Every pull request that changes the interface carries a playable recording or screenshot from the reviewed head. See Review evidence.
No direct merge. A human approves the exact head, then the merge queue lands it.
Signing material stays on the build Mac. Simulator work needs none. See Signing and credentials.
After merge, confirm the TestFlight / Clipper status rather than assuming the build shipped. See The Clipper delivery worker.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime