General leg-level drive resume (DRIVE_RESUME_FROM) — checkpoint re-entry for any journey #1091

Open
opened 2026-09-01 00:19:20 +00:00 by ben · 1 comment
Owner

Problem

The IDIP debug-tail variant re-enters only at operator sign-in and re-runs the whole tail each attempt. The general mechanism — resume ANY journey at an arbitrary checkpoint leg (DRIVE_RESUME_FROM=<leg>) — needs design before build.

Constraints (ruled in the 2026-08-31 grill, ADR 0221)

  • A checkpoint leg must persist ALL state a re-entry needs: the app user-data-dir PLUS the spec's in-memory captures (member identities, credential/registry ids, claim secrets, droplet IPs, session state) — rentedPrefixCaptured is the precedent for capture-stamping.
  • An assertTailResumable-shape gate refuses loud on ANY mismatch (missing checkpoint, wrong step, dead world) — a stale resume is trial-reset territory, never a partial re-drive (#333 ruling).
  • Resumed greens are debug-grade only; the from-S1 prove-it drive remains the sole source of record greens.
  • Bits-freshness checked at resume: driven SHA + deployed SHA vs the checkpoint's.

Design must decide

  • Checkpoint file format and where it lives in the run dir.
  • Which legs are checkpoint-able (quiescent-world resting points only?) and how a spec declares them.
  • How ceremony/browser state is reconstructed (CDP virtual authenticator, bridge sessions, cookies) — the state that dies with the process.
  • Whether this subsumes the #333 private-path tail-resume harness or stands beside it.
  • Interaction with the executor debug mode (does DRIVE_RESUME_FROM become how debug attempts skip green prefixes?).
## Problem The IDIP debug-tail variant re-enters only at operator sign-in and re-runs the whole tail each attempt. The general mechanism — resume ANY journey at an arbitrary checkpoint leg (`DRIVE_RESUME_FROM=<leg>`) — needs design before build. ## Constraints (ruled in the 2026-08-31 grill, ADR 0221) - A checkpoint leg must persist ALL state a re-entry needs: the app user-data-dir PLUS the spec's in-memory captures (member identities, credential/registry ids, claim secrets, droplet IPs, session state) — `rentedPrefixCaptured` is the precedent for capture-stamping. - An `assertTailResumable`-shape gate refuses loud on ANY mismatch (missing checkpoint, wrong step, dead world) — a stale resume is trial-reset territory, never a partial re-drive (#333 ruling). - Resumed greens are debug-grade only; the from-S1 prove-it drive remains the sole source of record greens. - Bits-freshness checked at resume: driven SHA + deployed SHA vs the checkpoint's. ## Design must decide - Checkpoint file format and where it lives in the run dir. - Which legs are checkpoint-able (quiescent-world resting points only?) and how a spec declares them. - How ceremony/browser state is reconstructed (CDP virtual authenticator, bridge sessions, cookies) — the state that dies with the process. - Whether this subsumes the #333 private-path tail-resume harness or stands beside it. - Interaction with the executor debug mode (does `DRIVE_RESUME_FROM` become how debug attempts skip green prefixes?).
Author
Owner

Ruled with Ben 2026-08-31: PARKED until proven needed — do not pick up on the label alone.

The expensive half of the old loop (~43 min to re-reach the tail) is what #1089 removes; what this ticket would add is skipping already-green tail legs within a debug attempt, and the whole 11-leg tail costs ~10 min — against the hardest design in the arc (checkpointing the spec's in-memory captures: member identities, credential/registry ids, the CDP virtual authenticator, bridge sessions — the state that dies with the process).

Pick this up only when one of these triggers fires:

  1. The debug tail outgrows ~15 min per attempt (re-running greens becomes the measured bottleneck in #1090's ledgers), or
  2. A fix-chain lands in prove-it-only legs (founding / provision / fault-injection — e.g. P5 device-journey takeover rungs), where debug mode cannot reach and every retest burns a full drive again.

When a trigger fires, design against the evidence: #1090's attempt ledgers say where time actually goes, and the journey that fired the trigger is the one the checkpoint format must serve first.

**Ruled with Ben 2026-08-31: PARKED until proven needed — do not pick up on the label alone.** The expensive half of the old loop (~43 min to re-reach the tail) is what #1089 removes; what this ticket would add is skipping already-green tail legs *within* a debug attempt, and the whole 11-leg tail costs ~10 min — against the hardest design in the arc (checkpointing the spec's in-memory captures: member identities, credential/registry ids, the CDP virtual authenticator, bridge sessions — the state that dies with the process). **Pick this up only when one of these triggers fires:** 1. The debug tail outgrows ~15 min per attempt (re-running greens becomes the measured bottleneck in #1090's ledgers), or 2. A fix-chain lands in **prove-it-only legs** (founding / provision / fault-injection — e.g. P5 device-journey takeover rungs), where debug mode cannot reach and every retest burns a full drive again. When a trigger fires, design against the evidence: #1090's attempt ledgers say where time actually goes, and the journey that fired the trigger is the one the checkpoint format must serve first.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1091
No description provided.