Where the app yields for the turn budget
Every place Seed Exact yields or restructures work to stay under the 100 ms turn budget, and the vault connect failure as the code comments tell it.

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

keyPairFromMnemonicAsync reimplements BIP-39 PBKDF2 (SHA-512, 2048 rounds) and yields every 64 rounds. Create and import use it

primitives.ts L41-L72, me/sources.ts L31-L36

Account ids

warmAccountIds derives each identity's id in its own turn and caches it by a hash of the seed (limit 4096)

state-codec.ts L47-L72

Vault connect

Yields after decrypt, before warming ids, after merge, after comparing, after serializing

connect.ts L235-L260

Vault sync

Same phases on every sync

sync.ts L86-L123

Vault store

Yields once per account while publishing keys to the Keychain map, reconciling Me's edits and rebasing

store.ts L154-L169, L179-L215, L230-L256

Profile save

Yields between reading the home document's history and building signed blobs. History is walked linearly

profile/load.ts L47, L112

Crypto self-test

Yields between each primitive so the whole check fits

crypto/sources.ts L19-L56

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

review.test.ts L120-L135

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).

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

Unsubscribe anytime