Release extraction intermediates after their last consumers

This commit is contained in:
2026-11-26 02:13:11 +00:00
parent 2d4a2c9c7a
commit dbe1dfbe60
5 changed files with 103 additions and 3 deletions

View File

@@ -178,6 +178,11 @@ The runner finalizes diagnostics once before output encoding, or on an earlier
failure. If aggregation fails, the result retains the successfully aggregated
prefix and the error includes both the aggregation failure and any run failure;
encoding does not proceed after unsuccessful aggregation.
Ordered extraction assembly releases its reorder map, and the coordinator drops
each lane's extraction values after its continuation returns, even while siblings
remain active. On failure, remaining values are dropped after dispatched work
drains and diagnostics have been retained. Normalized artifacts remain available
through generated handoffs, evidence construction, and output encoding.
The encoder receives owned normalized/auxiliary values and returns logical files.
It does not choose a directory, publish a report, or serialize execution ledgers.

View File

@@ -174,9 +174,11 @@ 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.
**Status:** Resolved. Returned results retain no private working state. Ordered
assembly releases extraction reorder maps, completed continuations release lane
values while siblings run, and drained failures drop undeliverable values after
diagnostics are retained. Normalized artifacts remain through their consumers.
Controlled lifetime, integration, and pipeline race checks pass.
**Source:** [RES-002](05-resources.md#res-002--intermediate-results-outlive-their-consumers).

View File

@@ -546,6 +546,13 @@ Update finalization docs; errors convey incompleteness without new report fields
## Stage 18 — Release Intermediates After Their Last Consumer
**Completed.** Ordered assembly releases reorder maps; the coordinator releases
extraction values when each continuation returns and drops undeliverable values
after failure drains. Diagnostics survive independently and normalized artifacts
remain through handoff, evidence, and encoding. A controlled blocked-sibling
test checks owner references and output retention; pipeline, integration, and
pipeline race suites pass.
**Coverage:** CAT-006 completion. **Prerequisites:** Stages 15–17.
Release reorder maps after successful ordered extraction assembly and extraction