feat(agent): make durable drive total

This commit is contained in:
Mario Zechner 2026-08-26 19:10:36 +02:00
parent 3625e5b146
commit 8b69107329
27 changed files with 1470 additions and 143 deletions

View file

@ -41,7 +41,7 @@ M6 established structural execution on the simplified substrate. Its first coher
- per-request structural intent and usage settlement, attempt retry/recovery, hook decisions, compaction/navigation publication, and terminal cleanup;
- focused coverage for threshold/overflow entry, split-turn request accounting, generated and hook results, retry/cap/recovery, model absence, mid-request durable cancellation, navigation, and preparation corruption.
R1a, R2, and R3 then moved queued input to the lane, replaced hydrated family outcomes with immutable operation records, and collapsed the family cross-product to 13 neutral leaves. R1b replaced the transitional checkpoint drains and marker fields with one shared atomic boundary planner, a transcript-derived threshold guard, and off-line finish-hook replanning. At the reviewed R1b checkpoint the runtime is 5,835 lines; `runtime/drive` is 3,870 lines; and the structural module is 1,170 lines, still down 290 lines (19.9%) from its 1,460-line foundation. The focused runtime set passes 194 tests across 15 files, with 44 memory/JSONL and 30 SQLite repository-conformance tests also passing. M7 reconciliation/total dispatch and M8 public surfaces have not started.
R1a, R2, and R3 then moved queued input to the lane, replaced hydrated family outcomes with immutable operation records, and collapsed the family cross-product to 13 neutral leaves. R1b replaced the transitional checkpoint drains and marker fields with one shared atomic boundary planner, a transcript-derived threshold guard, and off-line finish-hook replanning. M7 removed drained control, added atomic drain-and-return cancellation, reconciled all 13 leaves, and installed the total direct dispatcher. At the reviewed M7 checkpoint the runtime is 6,280 lines; `runtime/drive` is 4,115 lines; `structural.ts` is 1,194 lines, still down 266 lines (18.2%) from its 1,460-line foundation; and the new total dispatcher plus reconciliation are 274 lines. M8 public surfaces have not started.
Public drive remains disabled. Keep the visible durable procedure order:
`prepare → publish intent → perform effect → publish outcome`.