Share source evidence through the selected capture sink

This commit is contained in:
2026-11-26 01:55:37 +00:00
parent f49238c787
commit 6133902b9b
15 changed files with 286 additions and 44 deletions

View File

@@ -20,8 +20,8 @@ The [Core And Integration API Roadmap](../core-integration-api.md) established
the core/integration boundary. The reassessment below distinguishes its completed
work from the remaining audit remediation.
The **45 original finding entries** reduce to **20 outstanding catalog entries
and fourteen resolved entries**. Repeated responsibility findings are
The **45 original finding entries** reduce to **19 outstanding catalog entries
and fifteen resolved entries**. Repeated responsibility findings are
merged. Regression gaps are attached to the defects they protect rather than
counted as additional runtime bugs. In particular, TEST-001, TEST-002, and
TEST-004 each cover several distinct defects; TEST-003's native-fixture oracle
@@ -66,23 +66,20 @@ context; they are not one universal severity scale. No audit establishes a P1
incident or a measured end-to-end production speedup.
CAT-001, CAT-002, CAT-003, CAT-004, CAT-005, CAT-007, CAT-011, CAT-012, CAT-013, CAT-015,
CAT-016, CAT-027, CAT-032, and CAT-034 are resolved;
CAT-016, CAT-024, CAT-027, CAT-032, and CAT-034 are resolved;
the other entries remain outstanding. The original reports and their baseline
observations are historical.
"Refactoring" denotes a maintenance opportunity, not a confirmed runtime
failure. CAT-024 explicitly requires revisiting an existing evidence-convenience
choice. Related entries
failure. Related entries
may share files without representing the same underlying issue; they should be
coordinated rather than silently treated as duplicates.
**Migration overlap:** Lazy [operation evidence](../../../internal/framework/pipeline/operation.go)
and guarded run-wide projections resolve CAT-003. Core operation
ownership and the [internal guides](../../internal/modules.md) clarify portions
of CAT-014/017/018/022/025/032, without completing their broader layout,
of CAT-014/017/018/022/025, without completing their broader layout,
copying, runner, writer-obligation, or package-cohesion work. CAT-006/008/009
and CAT-023 remain separate lifetime, failure-diagnostic, and CLI concerns;
CAT-024's full-source representation is unchanged. These overlaps do not resolve
any of those findings.
and CAT-023 remain separate lifetime, failure-diagnostic, and CLI concerns.
## Prioritized Findings
@@ -485,6 +482,12 @@ do not introduce another command framework or result envelope.
**Assessment:** Capacity/convenience design opportunity; original P3; requires
deliberate review of the existing evidence representation.
**Status:** Resolved. The selected evidence sink receives one original and one
parsed source record, with bundle-root references in run and operation inputs.
Tests cover explicit/debug/distinct sinks, multiple jobs, cache hits, and source
write and parse failures. [ADR-0027](../../adr/0027-share-whole-source-capture-evidence.md)
records the selected representation.
**Source:** [RES-003](05-resources.md#res-003--enabled-capture-repeats-the-full-source-for-every-extraction-job).
Each extraction operation serializes the full source again, multiplying debug
@@ -499,7 +502,7 @@ required-capture failures visible. No silent truncation, quotas, or deletion.
selects sharing original input and complete parsed source once per run through
the operation capture destination. Operation-specific inputs, selected references,
and convenient native evidence remain directly inspectable. General deduplication
is out of scope; implementation remains pending.
is out of scope.
### CAT-025 — Extension Concurrency And Capture Obligations Are Implicit

View File

@@ -418,6 +418,14 @@ Comment subtle deferred ownership; record all inspected boundaries in catalog.
## Stage 13 — Share Source Evidence At The Effective Sink
**Completed.** The runner selects the explicit writer or enabled debug sink once,
records original input before parsing and validated source afterward, and passes
labeled bundle-root references through run, chunk, lane, and operation inputs.
Chunk and native request evidence remain inline. Tests cover multiple jobs,
cache hits, each sink selection, both shared-write failures, and parse failure;
the prescribed suites and targeted pipeline race checks pass. ADR-0027 records
the narrow source-representation decision. No follow-up remains for this work.
**Coverage:** CAT-024. **Prerequisites:** Stages 11–12.
Implement selected sink, shared source records, and descriptor passing through