Separate runner working state from returned results
This commit is contained in:
@@ -12,8 +12,10 @@ ordering in `internal/framework/pipeline`.
|
||||
The framework receives prepared composition, source bytes, a supplied session,
|
||||
native execution options, and explicit cache/capture collaborators. It returns
|
||||
logical deliverable files, process diagnostics, and fallback count. Normalized
|
||||
artifacts and reuse eligibility remain private run state for handoffs/evidence;
|
||||
there is no reporting ledger in the output boundary.
|
||||
artifacts, reuse eligibility, and pending diagnostic groups remain private
|
||||
run/lane working state for handoffs and aggregation. The returned result keeps
|
||||
only finalized diagnostics, logical files, and fallback count; there is no
|
||||
reporting ledger in the output boundary.
|
||||
|
||||
```text
|
||||
input -> chunk -> ordered steps [extract -> merge -> normalize] -> output
|
||||
|
||||
@@ -174,6 +174,10 @@ between sources/runs; a chunk-only or process-global index is not equivalent.
|
||||
|
||||
**Assessment:** Source-established resource-lifetime weakness; original P2.
|
||||
|
||||
**Progress:** Returned run results no longer retain intermediate artifact,
|
||||
eligibility, or diagnostic working state. Releasing lane intermediates after
|
||||
their last consumers remains pending.
|
||||
|
||||
**Source:** [RES-002](05-resources.md#res-002--intermediate-results-outlive-their-consumers).
|
||||
|
||||
Lane reorder maps and extraction values survive completed continuation while
|
||||
|
||||
@@ -471,6 +471,14 @@ architecture/pipeline/operator claims. No new durable reporting protocol.
|
||||
|
||||
## Stage 15 — Separate Working State From Logical RunOutput
|
||||
|
||||
**Completed.** Private run/lane state now owns normalized artifacts, reuse
|
||||
eligibility, and pending diagnostic groups. Public results contain only final
|
||||
diagnostics, logical output files, and fallback count. Existing focused tests
|
||||
inspect private state where necessary; integration and CLI use the public result.
|
||||
The prescribed suites and pipeline race checks pass. Completed-work diagnostic
|
||||
retention, finalization failures, and earlier intermediate release remain for
|
||||
their explicitly scheduled follow-up work.
|
||||
|
||||
**Coverage:** CAT-006 structure; CAT-009/CAT-022 foundation.
|
||||
**Prerequisites:** Stages 12–14.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user