oficina / equipo Public

specs: connections rev 3, Astra round 2 (ledger, baseline, delivery)

Exactly-once effects move from argument matching to a per-turn
mutation ledger: designated mutating tools record kind and target in
the effect's transaction, a new attempt is told what completed, and
the instance enforces per-kind rules whatever the wording (one open
ask card per turn, start_task idempotent per task, record_task attaches
to the turn's task, project creation idempotent per name). Reads are
never deduplicated. Stickiness leaves a connection only on quota or
auth failure or explicit override, with the one stated exception of
returning to a recovered preference at a turn boundary. Local models
carry the model's recorded family. Codex usage uses a verified
pre-turn baseline or records complete: false, never subtracting a
post-resume notice. Sealed delivery has four durable states with crash
tests between each, and binds the full endpoint origin.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
claude 87684fd70aee53e3bf2a52daca427d8dc9be4927 parent eaf2f38
1 file changed, +95 −46
  • docs/superpowers/specs/2026-11-08-equipo-connections.md +95 −46

CI failed — run details

diff --git a/docs/superpowers/specs/2026-11-08-equipo-connections.md b/docs/superpowers/specs/2026-11-08-equipo-connections.md
index 8fdab039..f5dad49a 100644
--- a/docs/superpowers/specs/2026-11-08-equipo-connections.md
+++ b/docs/superpowers/specs/2026-11-08-equipo-connections.md
@@ -1,7 +1,7 @@
# Equipo Connections: accounts added from the app, any provider for any role
-Status: design for Paul's review, 2026-11-08, revision 2 after Astra's
-round 1 (NOT READY at 28f8455). Drafted by Claude (Fable 5.1)
+Status: design for Paul's review, 2026-11-08, revision 3 after Astra's
+rounds 1 and 2 (NOT READY at 28f8455 and eaf2f38). Drafted by Claude (Fable 5.1)
on `design-connections` from `thin-v1-slice4c` (2d1edaf). Builds on the
approved thin v1 spec (`2026-11-06-equipo-thin-v1.md`, §§2, 3, 5, 6, 8) and
the accepted Mac runners spec (`2026-11-07-equipo-mac-runners.md`). Not
@@ -515,21 +515,37 @@ already true of everything it shows, and that limit is stated in the
Connections screen's help text.
**Sealing.** The app seals with libsodium `crypto_box_seal` over a
-payload `{secret, runner_id, connection_id, provider, endpoint_host,
-attempt, expires_at}`; the instance-visible fields (`runner_id`,
-`connection_id`, `provider`, `endpoint_host`, `attempt`, `expires_at`)
+payload `{secret, runner_id, connection_id, provider, endpoint,
+attempt, expires_at}`, where `endpoint` is the full origin, scheme,
+host and port (`https://api.tensorx.ai:443`); the instance-visible
+fields (`runner_id`, `connection_id`, `provider`, `endpoint`,
+`attempt`, `expires_at`)
travel beside the box in the clear and the runner **rejects the box if
any of them differs from the plaintext inside**, if `expires_at`
(ten minutes from sealing) has passed, if the connection attempt is
not the one it is currently running, or if the `(connection_id,
attempt)` pair has been seen before (a `seen_seals` table kept for a
day). The instance copies the opaque box into the durable `connect`
-frame; the runner opens it, writes the secret into the home
-(`ANTHROPIC_API_KEY` in a 0600 env file for Claude; `codex login
---with-api-key` on stdin for Codex; the harness's auth file for an
-endpoint), fsyncs, zeroes the buffer, and **only then acks** the
-frame; a crash before the ack means a resend, which the `seen_seals`
-check turns into a no-op if the write had landed. The instance then
+frame. **Delivery on the runner is a small state machine** with one
+durable step at a time: (i) `received`: the frame id is in the inbox,
+nothing written; (ii) `staged`: the secret is written to
+`<home>/.secret.tmp` (0600) and fsynced, together with the directory;
+(iii) `committed`: in one SQLite transaction the `seen_seals` row
+`(connection_id, attempt, frame_id)` and the connection's state
+`credential_present` are written, and the temp file is renamed to its
+final name (`ANTHROPIC_API_KEY` env file for Claude, the harness's
+auth file for an endpoint; for Codex the rename is replaced by
+`codex login --with-api-key` reading the temp file, run before the
+transaction and verified by `account/read` inside it) with the
+directory fsynced; (iv) `acked`: the ack is sent. Recovery after a
+crash: a temp file with no `seen_seals` row is deleted and the frame
+reprocessed from `received`; a `seen_seals` row with the final file
+present is `committed`, so the resend only needs the ack; a
+`seen_seals` row with neither file is impossible by construction (same
+transaction) and is treated as `committed` with the connection marked
+`error`. A resend of a frame whose `(connection_id, attempt)` is in
+`seen_seals` is answered with an ack and nothing else. The buffer is
+zeroed after (ii). The instance then
deletes the payload column. Honesty about that deletion: the
ciphertext may persist in SQLite's WAL and in backups until they
rotate. It is useless without the runner's private key, it names an
@@ -658,8 +674,9 @@ yes for the role and whose connection is `healthy` (not `connecting`,
`limited`, `sign_in_again`, `error` or `signed_out`). Among eligible
pairs the order is: the current binding, if the session or step already
has one and it is eligible (stickiness is a rule, not a tie-breaker:
-a session leaves its connection only on failure or an explicit
-override); then the tier floor the router set (§4); then the person's
+a session leaves its connection only on a `quota` or `auth` failure,
+an explicit override, or the preference exception stated in the
+failover list below); then the tier floor the router set (§4); then the person's
preference for the role (§3, last paragraph); then headroom, where a
subscription's headroom is the provider's reported figure, a metered
connection with no report is "unknown" and ranks below any connection
@@ -709,29 +726,51 @@ order, each step durable before the next:
`runs` row and in a `turn{state: running, attempt: n+1}` report,
which the instance accepts only as a forward transition from
`waiting` for that turn.
-4. Before the new process gets the frame, the runner **reconciles tool
- effects**: it asks the instance for the recorded tool calls of the
- turn (`tool_calls{turn}` request, answered from the stored results
- the instance already keeps by call id, thin v1 §4) and builds the
- new attempt's frame as the person's messages plus a short,
- runner-written summary that lists each completed tool call and its
- recorded result ("You already added oficina/sample; task tk_… is
- started; the person was asked X and answered Y"). The coordinator
- is told, in the house rule for a resumed attempt, that these effects
- exist and are not to be repeated. On the instance side, a
- `tool_call` whose name and arguments match a recorded call of the
- same turn is answered with the stored result rather than executed;
- the match key is `(turn, name, canonical args)`, and the stored
- result is returned with `replayed: true` so the runner can log it.
- This closes the gap for a model that repeats a write regardless.
+4. Before the new process gets the frame, the runner **reconciles
+ effects through the turn's mutation ledger**. Matching on arguments
+ is not used: a paraphrased `ask_person` would defeat it. Instead the
+ instance keeps a per-turn **ledger** of the designated mutating
+ tools, written in the same transaction as the effect: `add_project`
+ (kind `project`, target the repository name), `create_project`
+ (kind `project_create`, target the name), `set_project_home` (kind
+ `home`, target the person), `record_task` (kind `task_record`,
+ target the task id it created), `start_task` (kind `task_start`,
+ target the task id), `cancel_task` (kind `task_cancel`, target the
+ task), `add_finding` (kind `finding`, target task and finding id),
+ `ask_person` (kind `ask`, target the card id). The runner asks for
+ the ledger (`tool_calls{turn}`, answered with the ledger entries and
+ their recorded results) and the new attempt's frame is the person's
+ messages plus a runner-written summary that lists each completed
+ operation by kind and target ("oficina/sample is already added; task
+ tk_… is recorded and started; the person was asked and answered Y").
+ The instance then **enforces per-kind rules on any later call in the
+ same turn, whatever the model's wording**: `ask` opens at most one
+ card per turn, so a second `ask_person` in the turn returns the open
+ card (or its answer) rather than creating one; `task_start` is
+ idempotent per task id; `task_record` within a turn that already
+ recorded a task attaches the call to that task and returns it
+ instead of creating another; `project` and `project_create` are
+ idempotent per name; `home` is idempotent per person and still
+ needs the person's own words (slice 2b); `finding` is idempotent per
+ task and normalised text; `task_cancel` is idempotent per task. A
+ call the rules fold into an earlier operation returns the stored
+ result with `replayed: true`. **Reads are never deduplicated**:
+ `status`, `read_task` and every other read run fresh on every
+ attempt, so `status`, `start_task`, `status` sees the started task.
+ The designated list is a constant in `wire` and the ledger refuses a
+ kind it does not know.
5. The frame goes to the new session, seeded from the notebook, the
house rule and the tail as thin v1 §2, and the reply arrives with one
quiet line under it: "Switched to Codex; Claude resets Mon 10:00"
(`chat.switched`), or "Switched to Codex" when no reset time was
- reported. Returning to a preferred connection happens at the next
- turn start when it is eligible again, with the line only when the
- switch happens, and the old session is resumed with a fresh notebook
- and tail injection (thin v1 §2's daily reset rule covers staleness).
+ reported. **The one exception to stickiness**: when a connection the
+ person prefers has recovered, the coordinator returns to it only at
+ a natural boundary, the start of a new turn after the current
+ session's turn has ended and no messages are queued, never mid-turn
+ and never for a step or an ask in flight; the line is shown only
+ when the switch happens, and the old session is resumed with a fresh
+ notebook and tail injection (thin v1 §2's daily reset rule covers
+ staleness).
A cancel during `waiting` ends the turn `cancelled` and voids the
pending frame; a cancel that arrives after step 3 targets attempt n+1
@@ -903,7 +942,7 @@ and `thread/tokenUsage/updated`), `fakepi` is the local-models slice
|---|---|---|---|---|---|---|
| Claude subscription or API key, Claude Code | Yes (today) | Yes (today) | Yes (today) | Yes (today) | `rate_limit_event {utilization, resetsAt}`, one figure | Live; multi-account in 1 |
| ChatGPT plan or OpenAI key, Codex app-server | Yes: `turn/start`, MCP via `codex mcp`, approvals relayed | Yes: thin v1 §3 path | Yes: `sandbox_mode = read-only`, no write tools | Yes: `thread/resume` | `account/rateLimits` two windows with `resetsAt`, `thread/tokenUsage/updated` | 1 |
-| Local model (Ollama, vLLM, LM Studio), Pi | Yes, if the model handles tool calls and the containment proofs pass; tier from the model map | Yes, `cheap` tier | Yes, read-only tool allowlist, `same_family` never (it is its own family) | Yes | None reported; HTTP 429 observation only | 2 |
+| Local model (Ollama, vLLM, LM Studio), Pi | Yes, if the model handles tool calls and the containment proofs pass; tier from the model map | Yes, tier from the model map | Yes, read-only tool allowlist; its family is the model's recorded family, so a local Llama reviewing a Claude step is `other_family` and a local model reviewing the same model elsewhere is `same_family` | Yes | None reported; HTTP 429 observation only | 2 |
| TensorX, Pi (chat wire) | Yes, `standard` tier for the larger models | Yes | Yes | Yes | 429 `retry-after`, `x-ratelimit-reset`, `x-ratelimit-remaining-*` | 2 |
| Mistral API or OpenRouter, Pi | Yes, `standard` | Yes | Yes | Yes | 429 `Retry-After`; OpenRouter key info endpoint later | 2 |
| Mistral subscription, Vibe CLI | Probe `run-server` before deciding; `-p` alone denies asks rather than relaying them | Yes: `--auto-approve` inside the namespace, MCP, `--resume` | Yes: tool `permission` denies for edit and shell | Yes: `--resume <id>` | 429 `Retry-After`; plan budget not reported | 3 |
@@ -964,12 +1003,21 @@ for a local endpoint), and recorded at. Per harness: Claude's `result`
message gives `usage` and `modelUsage` once per attempt, and
`modelUsage` is kept per model (one row per model when a turn used
several); Codex sends several `thread/tokenUsage/updated` notices within
-one turn and across a resume, so the runner keeps the first `total` seen
-after `thread/resume` as the attempt's baseline, takes the attempt's
-figure as the last `total` minus that baseline, uses `last` only as a
-consistency check, and drops a notice whose `turnId` or `threadId`
-does not match the attempt (the local fixtures in `provider/codex/testdata`
-already show multiple notices per turn); Pi's `message_end.usage`
+one turn and across a resume, and the first notice after a resume can
+already include new consumption (the local fixtures in
+`provider/codex/testdata` show totals of 14,054 then 28,254 input
+tokens within one turn), so the runner never subtracts a post-resume
+notice. It captures a **verified pre-turn baseline**: the `total` from
+the last notice of the previous attempt on that thread, stored on the
+thread's `sessions` row when that attempt completed, and confirmed
+before `turn/start` by the first notice carrying the previous `turnId`
+or by a thread whose stored baseline is zero for a new thread. The
+attempt's figure is the last `total` of this turn minus that baseline;
+`last` is a consistency check; a notice whose `turnId` or `threadId`
+does not match the attempt is dropped. When no verified baseline
+exists (a resume with no stored total, a thread Equipo did not create)
+the row records the turn's `last` values summed where they can be and
+`complete: false`, never a subtraction; Pi's `message_end.usage`
(slice 2) is summed over the attempt's messages. Rows travel in the
existing `reply`, `step` and `answer` frames as a `usage` array (the
present `wire.Usage` "without cost data" becomes this shape), and a
@@ -1073,11 +1121,11 @@ then UI, then deploy, as thin v1 §8. Sizes are agent days.
| Slice | Content | Tests | Size |
|---|---|---|---|
-| 1a Fake Codex and usage recording | `fakecodex` reproducing the pinned app-server protocol from recordings: `initialize`, `thread/start` and `thread/resume`, `turn/start`, items, `turn/completed` with `status: completed | failed | interrupted`, `account/login/start {chatgptDeviceCode}` and `account/login/completed`, `account/read`, `account/rateLimits/read` and `/updated` with and without windows, several `thread/tokenUsage/updated` per turn; the `usage` table, rows and frames of §6 for Claude and Codex, including failed and cancelled attempts; Codex rate notices kept as state rather than discarded | Unit: usage aggregation over the recorded fixtures (baseline after resume, dedup of a resent frame, nullable fields, `complete` false when the final notice is missing); property test that sums over random rows match by every grouping. Headless: U1 a Claude turn and a Codex turn each produce one row with `complete: true`; U2 a cancelled turn produces a row with `outcome: cancelled` | 1 day |
+| 1a Fake Codex and usage recording | `fakecodex` reproducing the pinned app-server protocol from recordings: `initialize`, `thread/start` and `thread/resume`, `turn/start`, items, `turn/completed` with `status: completed | failed | interrupted`, `account/login/start {chatgptDeviceCode}` and `account/login/completed`, `account/read`, `account/rateLimits/read` and `/updated` with and without windows, several `thread/tokenUsage/updated` per turn; the `usage` table, rows and frames of §6 for Claude and Codex, including failed and cancelled attempts; Codex rate notices kept as state rather than discarded | Unit: usage aggregation over the recorded fixtures (verified pre-turn baseline from the stored previous total, a resume whose first notice already includes new tokens counted in full, no baseline gives `complete: false` and no subtraction, dedup of a resent frame, nullable fields, `complete` false when the final notice is missing); property test that sums over random rows match by every grouping. Headless: U1 a Claude turn and a Codex turn each produce one row with `complete: true`; U2 a cancelled turn produces a row with `outcome: cancelled` | 1 day |
| 1b Protocol and auth | `Connection` rows and homes, `connect`, `connection`, `disconnect` frames, `hello.connections`, `sync.connections`; Codex device code in the app; Claude same-machine loopback and the finish-on-runner card; health, `limited`, `sign_in_again` and the failure classifier of §3; Claude and Codex only, over the existing egress relay, no endpoints and no sealed keys | Headless: A1 device code against `fakecodex`, card shows the code, connection turns `healthy` with plan and windows; A2 device code refused (not enabled), `provider_refused`; A3 Claude same-machine against `fakeclaude` with a simulated loopback callback, `healthy` with the observed email; A4 remote case shows the finish-on-runner card and nothing else; A5 cancel during `connecting` defeats a late success (the runner's late `healthy` report for a cancelled attempt is dropped and the home deleted); A6 `rate_limit_event {rejected}` with and without `resetsAt` marks `limited` correctly; A7 an `auth` failure marks `sign_in_again`, never `limited`; A8 guard: no secret-shaped field in any frame, fixture or report | 1 day |
-| 1c Failover and continuity | The choice function over pairs with stickiness; the `waiting` turn state; termination before failover; durable attempt advancement; tool-effect reconciliation (`tool_calls{turn}` request, replayed results by `(turn, name, canonical args)`, the resumed-attempt house rule); the switched line; Engineering retry on another pair after termination; `no_connection` waiting card; pinned ask | Headless: F1 two Claude accounts, the first hits a fake limit mid-turn, reply from the second with the switched line, no duplicate message; F2 quota failure immediately after each write tool in turn (`add_project`, `record_task`, `start_task`, `ask_person`, `set_project_home`), the new attempt's summary names the effect, and a repeated call is answered `replayed: true` with no second project, task or card; F3 runner crash between termination and attempt advancement, restart recovers the turn in `waiting` and advances once; F4 ack loss on the `turn{running, attempt: 2}` report, resend is a no-op; F5 cancel during `waiting` ends `cancelled`, cancel after advancement targets attempt 2 and a stale attempt-1 report is dropped; F6 Engineering step fails on quota, termination proof, attempt 2 on Codex, card shows both; F7 nothing eligible, `waiting` with `no_connection`, the card, then a connection returns and the reply arrives without the person resending; F8 the preferred connection returns, the next turn switches back with the line and resumes the old session with a fresh notebook injection; F9 ask on a step whose connection is `limited` fails `account_unavailable` and never moves. Staging witness: one real Codex device-code sign-in in the app, one real Codex refresh (thin v1's debt), one real Claude limit observed or injected by a `rate_limit_event` replay against the real CLI, three coordinator turns across the switch, one of them straight after `start_task` | 1.5 days |
+| 1c Failover and continuity | The choice function over pairs with stickiness; the `waiting` turn state; termination before failover; durable attempt advancement; the per-turn mutation ledger and its per-kind rules (`tool_calls{turn}` answered from the ledger, designated mutations only, reads always fresh, the resumed-attempt summary); the switched line; Engineering retry on another pair after termination; `no_connection` waiting card; pinned ask | Headless: F1 two Claude accounts, the first hits a fake limit mid-turn, reply from the second with the switched line, no duplicate message; F2 quota failure immediately after each designated mutation in turn (`add_project`, `create_project`, `record_task`, `start_task`, `cancel_task`, `add_finding`, `ask_person`, `set_project_home`), the new attempt's summary names the effect, and a call of the same kind **with changed arguments** (a paraphrased question, a reworded brief, a different step list) is folded by the per-kind rule and answered `replayed: true` with no second project, task, finding or card; F2b `status`, `start_task`, quota failure, new attempt calls `status` and gets the started task, not the first status; F3 runner crash between termination and attempt advancement, restart recovers the turn in `waiting` and advances once; F4 ack loss on the `turn{running, attempt: 2}` report, resend is a no-op; F5 cancel during `waiting` ends `cancelled`, cancel after advancement targets attempt 2 and a stale attempt-1 report is dropped; F6 Engineering step fails on quota, termination proof, attempt 2 on Codex, card shows both; F7 nothing eligible, `waiting` with `no_connection`, the card, then a connection returns and the reply arrives without the person resending; F8 the preferred connection returns during a turn, nothing moves until that turn ends and the queue is empty, then the next turn switches back with the line and resumes the old session with a fresh notebook injection; F9 ask on a step whose connection is `limited` fails `account_unavailable` and never moves. Staging witness: one real Codex device-code sign-in in the app, one real Codex refresh (thin v1's debt), one real Claude limit observed or injected by a `rate_limit_event` replay against the real CLI, three coordinator turns across the switch, one of them straight after `start_task` | 1.5 days |
| 1d UI | Connections list and Add in Settings, the connecting card, the switched line, the waiting card, the finish-on-runner card; no Usage page | Browser suite on A1, A4, F1, F7 | 0.5 day |
-| 2 Local models and metered endpoints through Pi | Pi containment proofs and probes P1 to P5 (RPC session across 100 fake turns; `extension_ui_request` relay for a blocked tool; MCP pinning; credential-read denial; descendant termination under namespace kill), `fakepi`, Pi profile in `policy.go`; the local transport of §2.5 with its four probes; public endpoints over the relay; sealed keys with the §2.4 lifecycle (`seal_key` derived from the enrolment key, bound payload, `seen_seals`, ack after fsync, cancel marker); OpenRouter PKCE hardened as §2.6; TensorX and Mistral API as endpoints with the model map's prices and their harness-side 429 events; Pi usage into `usage`; tiers from the model map, no classes yet | Headless: P1 to P5 as tests; E1 add a local endpoint through the local listener, model list shown, a Review step runs on it with `other_family` by recorded family; E2 sealed key round trip, the instance database and its WAL contain no plaintext (grep the files), a box with a changed `connection_id` or an expired `expires_at` or a repeated attempt is refused, a replay to another runner fails to open; E3 a step on a non-local connection cannot reach the local listener; E4 a redirecting endpoint is refused; E5 OpenRouter callback to the instance route, query stripped from the URL and the access log, exchange on the runner against a fake; E6 Pi reports a 429 as an error event, connection `limited` without a reset time, probe clears it. Staging: a real Ollama on docs-t1 or Tito Studio running one Review step and one small Engineering step; one real TensorX test call | 5 days (OpenCode fallback adds 2) |
+| 2 Local models and metered endpoints through Pi | Pi containment proofs and probes P1 to P5 (RPC session across 100 fake turns; `extension_ui_request` relay for a blocked tool; MCP pinning; credential-read denial; descendant termination under namespace kill), `fakepi`, Pi profile in `policy.go`; the local transport of §2.5 with its four probes; public endpoints over the relay; sealed keys with the §2.4 lifecycle (`seal_key` derived from the enrolment key, bound payload, `seen_seals`, ack after fsync, cancel marker); OpenRouter PKCE hardened as §2.6; TensorX and Mistral API as endpoints with the model map's prices and their harness-side 429 events; Pi usage into `usage`; tiers from the model map, no classes yet | Headless: P1 to P5 as tests; E1 add a local endpoint through the local listener, model list shown, a Review step runs on it with `other_family` by recorded family; E2 sealed key round trip, the instance database and its WAL contain no plaintext (grep the files), a box with a changed `connection_id`, a changed `endpoint` port or scheme, an expired `expires_at` or a repeated attempt is refused, a replay to another runner fails to open; E2b crash tests at each delivery boundary (after the temp-file fsync, inside the `seen_seals` transaction, after commit before the ack) end with exactly one secret file, one `seen_seals` row and one ack, and the connection `healthy`; E3 a step on a non-local connection cannot reach the local listener; E4 a redirecting endpoint is refused; E5 OpenRouter callback to the instance route, query stripped from the URL and the access log, exchange on the runner against a fake; E6 Pi reports a 429 as an error event, connection `limited` without a reset time, probe clears it. Staging: a real Ollama on docs-t1 or Tito Studio running one Review step and one small Engineering step; one real TensorX test call | 5 days (OpenCode fallback adds 2) |
| 3 Routing and Usage page | `size`, `risk`, `kind` on `record_task` and `start_task`; the class-to-tier table; cheap-first escalation; routing lines on the task card; preferences per role and per task override; the Usage page with availability, spend, token tabs and routing lines; soft ceiling, 80% line and Pause (thin v1 slice 6's item, moved here); the sidebar dot; Mistral Vibe CLI as an Engineering and Review harness (`fakevibe`), subscription connection by the CLI's browser sign-in in the same-machine case and `MISTRAL_API_KEY` sealed otherwise | Headless: R1 a small, low-risk fix lands on the local model, fails checks, escalates to `standard` on another family, passes; R2 a high-risk task goes `strong` straight away; R3 preference set, switched line only on failover; R4 Usage sums equal the `usage` rows for each grouping and period (property test over random rows); R5 ceiling crossed, dot appears, Pause stops new metered steps and never the coordinator; V1 Vibe Engineering step with a fake. Staging: three routed tasks on the mix, page checked against the rows | 4 days |
| 4 Native apps and polish | Fixtures published, sealed box in Swift and Kotlin, `same_machine` detection on the Mac app, Connections and Usage screens | Contract fixtures replayed by the apps' own tests | app teams |
| 5 Command Code | BYOK `--local-only` Engineering and Review rows, `fakecmd`, containment profile with its network switches | One headless Engineering step, one Review step | 1.5 days |
@@ -1119,10 +1167,11 @@ the container, as the design already assumed. Spend is an estimate
from tokens and a price table that someone must keep current, labelled
as such. TensorX's and Mistral's quieter corners (streamed tool-call
chunks, prompt caching, whether a plan key may be used from Pi) are
-marked unverified above and are probed, not assumed. Tool-effect reconciliation
-depends on the instance's stored results by call id and on a model
-honouring the resumed-attempt house rule; the `(turn, name, canonical
-args)` replay is the backstop and F2 tests it after every write tool.
+marked unverified above and are probed, not assumed. Exactly-once effects rest on
+the mutation ledger's per-kind rules on the instance, not on the
+model's wording or cooperation; the designated list must stay complete
+as tools are added, and a guard test fails when a tool that writes is
+not in it.
Sealed-box residue in WAL and backups is accepted and labelled, not
erased. The word count is above the brief because four sections were
added on the way; nothing in them is optional for the design to hold