needs-design: drive verification latency — debug↔prove-it adoption vs VM snapshot re-entry (decide after phase 7) #1154

Closed
opened 2026-09-02 18:52:14 +00:00 by ben · 1 comment
Owner

needs-design: verification latency — debug↔prove-it adoption vs VM snapshot re-entry

Blocked by the phase-7 drive ticket by Ben's instruction (2026-09-02): pick this up after phase 7 completes, answered from its own drive data.

The question

Healer-first (#1144) solved fix latency; nothing yet solves verification latency — the cost of re-driving a full journey to learn whether a fix held. Phase-5 evidence: 62 drives at a 52-min mean; the tail's five final drives each re-drove 12 green legs to test one changed leg (80–130 min per iteration at the deepest reds).

Two candidate mechanisms, different worlds:

A. Extend ADR 0221's debug↔prove-it loop to the device lane. Debug iterations run against the adopted world where the bug reproduces (amended ruling 2: a tail-red prove-it adopts its world, green or red); debug greens never count; a prove-it banks each rung. Proven live on IDIP — with earned scars: first arm deadlocked the lane 13 ticks; a debug window of false greens forced the zero-leg floor + portal probe; #1091 is still needs-design. Hard problem for THIS lane: device legs consume their world (takeover, removal, reap are one-shot) — honest debug re-entry needs per-leg world-state preconditions or checkpointing, a design tier of its own.

B. VM snapshot re-entry (phase-7-native). If VM-mode guests snapshot cheaply, restore the leg-N snapshot and re-run leg N+1 — the debug loop's whole benefit (iterate in the world where the bug reproduces, full prove-it still the only green that counts) with no alternation machinery. Unknown until phase 7 runs: snapshot cost/fidelity, whether the mesh + IdP state survives restore honestly (a restored guest's wt0 peer and KERI/OIDC sessions must not be false-alive).

What phase 7 should measure to decide

  • verification latency per red under healer-first alone (does it still dominate once fix latency is solved?);
  • guest snapshot/restore wall-time and state fidelity (mesh admission, IdP sessions, cert stores after restore);
  • how often reds cluster at deep legs (shallow reds make re-entry worthless).

Decision to make

Adopt A, adopt B, both (B for the guest, A for gateway-side state), or neither (if healer-first alone tames the tail). Evidence base: phase-5 retrospective (docs/research/2026-09-02-phase-5-drive-retrospective.md), ADR 0221 + amendment, #1089/#1090 arc, #1091.

## needs-design: verification latency — debug↔prove-it adoption vs VM snapshot re-entry **Blocked by the phase-7 drive ticket by Ben's instruction (2026-09-02): pick this up after phase 7 completes, answered from its own drive data.** ### The question Healer-first (#1144) solved fix latency; nothing yet solves **verification latency** — the cost of re-driving a full journey to learn whether a fix held. Phase-5 evidence: 62 drives at a 52-min mean; the tail's five final drives each re-drove 12 green legs to test one changed leg (80–130 min per iteration at the deepest reds). Two candidate mechanisms, different worlds: **A. Extend ADR 0221's debug↔prove-it loop to the device lane.** Debug iterations run against the adopted world where the bug reproduces (amended ruling 2: a tail-red prove-it adopts its world, green or red); debug greens never count; a prove-it banks each rung. Proven live on IDIP — with earned scars: first arm deadlocked the lane 13 ticks; a debug window of false greens forced the zero-leg floor + portal probe; #1091 is still needs-design. Hard problem for THIS lane: device legs consume their world (takeover, removal, reap are one-shot) — honest debug re-entry needs per-leg world-state preconditions or checkpointing, a design tier of its own. **B. VM snapshot re-entry (phase-7-native).** If VM-mode guests snapshot cheaply, restore the leg-N snapshot and re-run leg N+1 — the debug loop's whole benefit (iterate in the world where the bug reproduces, full prove-it still the only green that counts) with no alternation machinery. Unknown until phase 7 runs: snapshot cost/fidelity, whether the mesh + IdP state survives restore honestly (a restored guest's wt0 peer and KERI/OIDC sessions must not be false-alive). ### What phase 7 should measure to decide - verification latency per red under healer-first alone (does it still dominate once fix latency is solved?); - guest snapshot/restore wall-time and state fidelity (mesh admission, IdP sessions, cert stores after restore); - how often reds cluster at deep legs (shallow reds make re-entry worthless). ### Decision to make Adopt A, adopt B, both (B for the guest, A for gateway-side state), or neither (if healer-first alone tames the tail). Evidence base: phase-5 retrospective (`docs/research/2026-09-02-phase-5-drive-retrospective.md`), ADR 0221 + amendment, #1089/#1090 arc, #1091.
Author
Owner

Ruled by session under ADR 0174 — veto anytime.

Ruling: adopt neither mechanism. Phase 7 answered the question by dissolving it for this lane.

Ben's instruction was to answer this after phase 7, from its own drive data. Phase 7 is complete (#1153 closed, run 20260904T184215Z). The data:

What phase 7 measured

  • Verification latency per red, healer-first alone: the full 16-leg VM-mode journey runs in 18.1 min (deploy-services 6.8 min of it, built on the gateway per #1215). The deepest reds of the arc — select-files at leg 10 (#1217), remove-device at leg 14 (#1219, #1220) — each cost one full re-drive, ~18–25 min including the eval-gated rebuild. Phase 5's motivating number was 80–130 min per deep-tail iteration; the phase-7 equivalent is 4–6× cheaper, and the entire six-defect day chain (#1214 → #1220) went red-to-green in a single day, ~18 drives for the whole phase.
  • Do reds cluster deep? Yes — but the maximum possible saving from any re-entry mechanism is bounded above by the full drive being 18 minutes. Re-entry machinery that saves ≤15 min per iteration cannot repay a design tier.
  • Snapshot cost/fidelity (option B's premise): never measured — no drive exercised restore. And phase 7 produced an affirmative reason restores are dishonest here: the #1219 offboard made guest state pull-coupled to the gateway's enroll ledger (the standing guard polls Poll(anchor.ID); teardown keys off Closure). A restored leg-N guest carries a mesh admission and a resume anchor the ledger may have moved past — the false-alive hazard the ticket itself flagged, now structural rather than hypothetical.

Why "neither" and not A or B

What actually tamed verification latency was making the full drive cheap — VM-mode world creation, gateway-side builds (#1215), the content-keyed vm-guest slot, the eval gate parking reds pre-spend, healer-first for fix latency. Option A (device-lane debug↔prove-it) still needs the per-leg world-precondition design tier the ticket describes (#1091 remains needs-design, untouched by this ruling) for one-shot legs; option B needs a snapshot-honesty design against ledger-coupled state that #1219 tightened. Both are real costs against a bounded ≤15-min prize.

Why this is a two-way door

Adopting nothing is the maximally revertible choice: reopening this ticket restores the entire question, no code or process changes to unwind. The reopen condition is concrete and observable: a lane whose full drive exceeds ~40 min or whose world cannot be cheaply rebuilt — the rented-DO lane (phase-5 class) is the known candidate. If such a lane's tail shows verification latency dominating again, reopen with that lane's numbers; B-for-guest / A-for-gateway remains the shape to evaluate first, per this ticket's own analysis.

Closing as decided. Evidence: STATUS.md milestone entry 2026-09-04, docs/research/2026-09-02-phase-5-drive-retrospective.md, ADR 0221 + amendment.

**Ruled by session under ADR 0174 — veto anytime.** ## Ruling: adopt **neither** mechanism. Phase 7 answered the question by dissolving it for this lane. Ben's instruction was to answer this after phase 7, from its own drive data. Phase 7 is complete (#1153 closed, run `20260904T184215Z`). The data: ### What phase 7 measured - **Verification latency per red, healer-first alone:** the full 16-leg VM-mode journey runs in **18.1 min** (deploy-services 6.8 min of it, built on the gateway per #1215). The deepest reds of the arc — select-files at leg 10 (#1217), remove-device at leg 14 (#1219, #1220) — each cost **one full re-drive, ~18–25 min** including the eval-gated rebuild. Phase 5's motivating number was **80–130 min per deep-tail iteration**; the phase-7 equivalent is 4–6× cheaper, and the entire six-defect day chain (#1214 → #1220) went red-to-green in a single day, ~18 drives for the whole phase. - **Do reds cluster deep?** Yes — but the maximum possible saving from any re-entry mechanism is bounded above by the full drive being 18 minutes. Re-entry machinery that saves ≤15 min per iteration cannot repay a design tier. - **Snapshot cost/fidelity (option B's premise):** never measured — no drive exercised restore. And phase 7 produced an affirmative reason restores are dishonest here: the #1219 offboard made guest state **pull-coupled** to the gateway's enroll ledger (the standing guard polls `Poll(anchor.ID)`; teardown keys off `Closure`). A restored leg-N guest carries a mesh admission and a resume anchor the ledger may have moved past — the false-alive hazard the ticket itself flagged, now structural rather than hypothetical. ### Why "neither" and not A or B What actually tamed verification latency was **making the full drive cheap** — VM-mode world creation, gateway-side builds (#1215), the content-keyed vm-guest slot, the eval gate parking reds pre-spend, healer-first for fix latency. Option A (device-lane debug↔prove-it) still needs the per-leg world-precondition design tier the ticket describes (#1091 remains needs-design, untouched by this ruling) for one-shot legs; option B needs a snapshot-honesty design against ledger-coupled state that #1219 tightened. Both are real costs against a bounded ≤15-min prize. ### Why this is a two-way door Adopting nothing is the maximally revertible choice: reopening this ticket restores the entire question, no code or process changes to unwind. The reopen condition is concrete and observable: **a lane whose full drive exceeds ~40 min or whose world cannot be cheaply rebuilt** — the rented-DO lane (phase-5 class) is the known candidate. If such a lane's tail shows verification latency dominating again, reopen with that lane's numbers; B-for-guest / A-for-gateway remains the shape to evaluate first, per this ticket's own analysis. Closing as decided. Evidence: STATUS.md milestone entry 2026-09-04, `docs/research/2026-09-02-phase-5-drive-retrospective.md`, ADR 0221 + amendment.
ben closed this issue 2026-09-04 20:04:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1154
No description provided.