Reuse supplied completion in plans and runs

This commit is contained in:
2026-12-02 15:23:39 +00:00
parent 9367c7b713
commit 6e74b436f6
11 changed files with 336 additions and 22 deletions

View File

@@ -23,8 +23,10 @@ Supplied records hold a canonical session-relative path, SHA-256 checksum,
byte size, and optional product contract. The manifest store validates their
structure; artifact helpers check the recorded path and actual content. A
separate coverage helper derives transcript work satisfied by valid supplied
transcripts without creating records for absent intermediate products. These
foundations are not yet connected to restore or execution decisions.
transcripts without creating records for absent intermediate products. Planning
and execution use that coverage to reuse satisfied transcript work without
historical producer evidence. Restore installation is described in its roadmap
until the inventory cutover is implemented.
Session, campaign, and run identities in local and downloaded manifests must be
portable opaque segments. Unsafe legacy identities are rejected with migration
@@ -274,6 +276,13 @@ cannot contain outputs. An intentional self-skip records the current semantic
fingerprint because it is a completed, reusable stage result; failed or
interrupted work never promotes one.
Supplied completion is revalidated against local bytes before planning or
execution reuses it. It can satisfy transcript work through the supplied JSON,
selected render outputs, or a complete configured extraction set. An attempted
replacement retires the supplied authority for its affected products before
execution; forced work therefore cannot revive an earlier supplied result.
Coverage never makes an absent consumer input available.
When an already-succeeded stage is skipped, the session manifest deliberately
retains its existing succeeded record because it remains the cross-invocation
progress authority. If a stage supplies semantic configuration evidence, reuse first
@@ -331,8 +340,11 @@ values that cannot affect canonical results. Concrete coverage is owned by the
focused stage and integration documents linked above.
Before an explicitly bounded execution starts after `prepare`, the application
reads the session manifest and accepts only `succeeded` or `skipped` for every
excluded canonical prefix stage. The first other status or absent record fails
reads the session manifest and checks excluded canonical prefix stages. Valid
supplied transcript coverage satisfies the corresponding producer work; in that
context prepare and the independent render and extract stages do not block a
downstream selection. Other excluded stages require `succeeded` or `skipped`.
The first other status or absent record fails
the request before layout mutation, adapter initialization, session-manifest
writes, or run-directory creation. Excluded prefix records are not passed to
resume validators. Records after the selected end are not prerequisites and

View File

@@ -211,7 +211,7 @@ Validation: `go test ./internal/stage ./internal/artifacts ./internal/manifest`.
## Stage 5: Share supplied completion across planning and execution
Status: Pending
Status: Complete
Read `internal/app/semantic_resume.go`, `plan.go`,
`runner_stage_execution.go`, `run_control.go`, bounded prerequisites, and