The 100 ms turn budget explains the rule. This page is the inventory: each place in the data module that calls yieldCryptoTurn (primitives.ts L74-L77) or is written to stay linear, and why.
The inventory
Where | What it does | Source |
|---|---|---|
Mnemonic to key |
| |
Account ids |
| |
Vault connect | Yields after decrypt, before warming ids, after merge, after comparing, after serializing | |
Vault sync | Same phases on every sync | |
Vault store | Yields once per account while publishing keys to the Keychain map, reconciling Me's edits and rebasing | |
Profile save | Yields between reading the home document's history and building signed blobs. History is walked linearly | |
Crypto self-test | Yields between each primitive so the whole check fits | |
Agent transcript | No yield. The join of tool calls to results is kept linear, guarded by a 20,000 pair test named for the budget |
The vault connect failure, as the code tells it
The comments record why the vault code looks the way it does:
state-codec.ts: "Deriving an account ID is an Ed25519 public-key derivation: milliseconds each in the app's JS engine. Merging derives every identity several times (normalizing, sorting, comparing) inside one synchronous turn, and Exact refuses a turn over 100 ms, so a vault of a few dozen identities could never finish connecting on a phone."
connect.ts: "Each phase from here is its own turn: together they exceed Exact's per-turn budget for a real-size vault."
vault.test.ts: "2026-11-26: a phone whose Keychain map was behind its vault state tombstoned 34 identities and, on the next completed connection, deleted them from the remote vault and every other device." The regression test that follows is named "a connection cut short before identities reach the Keychain never deletes them from the remote vault".
The two are related by inference, not by an explicit comment: an answer that is refused or let go partway leaves the Keychain map behind the vault state, and the old code read that gap as deletions. The fixes are separate: yields so a real-size vault finishes, and explicit removal markers so an interrupted run can never delete, see Vault merge and tombstones and Vault store.
User stories
The code described here exists to deliver these stories. Each story lists this page in its Trace (traceability).
US-AGENT-05 Chat with an agent: Transcript conversion kept linear for long sessions
US-AGENT-06 See what the agent is doing: Joining tools to results in linear time
US-ID-01 Create an identity: Why key derivation yields while creating
US-ID-02 Import an identity I already have: Why phrase derivation yields during import
US-ID-07 Edit my public profile: The yield between reading history and signing
US-VAULT-01 Connect my vault to bring my identities to this phone: Why connect is split into phases so a real-size vault finishes
US-VAULT-02 Keep my identities in sync across devices: Yields in every sync phase and per account
US-VAULT-04 Trust that my keys stay safe: The connect failure and the two separate fixes
US-APP-08 Have the app stay fast and responsive: Every place the app yields, and the vault connect failure
US-TEAM-04 Understand how the app is built: Every place the app yields
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime