Separate runner source chunk and output responsibilities
This commit is contained in:
@@ -158,9 +158,11 @@ run semantic assessment. Deterministic work has no synthetic request/cache key.
|
||||
|
||||
## Output And Capture Boundaries
|
||||
|
||||
[Runner](../../internal/framework/pipeline/runner.go) parses/validates source,
|
||||
materializes the final plan, runs ordered steps, aggregates diagnostics, and
|
||||
builds optional chunk-map/evidence values. Normalized values are codec-checked
|
||||
[Runner](../../internal/framework/pipeline/runner.go) coordinates source
|
||||
preparation, chunk planning, ordered steps, diagnostic finalization, and logical
|
||||
output encoding. Its [private collaborators](../../internal/framework/pipeline/runner_boundaries.go)
|
||||
own source parsing/indexing, chunk-map construction, and output/evidence assembly.
|
||||
Normalized values are codec-checked
|
||||
before handoff/output. Evidence reconstruction also works from reused artifacts;
|
||||
it projects selected citations in source order, not a second typed output channel.
|
||||
[Evidence internals](../../internal/framework/pipeline/evidence_output.go) and
|
||||
|
||||
@@ -92,7 +92,8 @@ historic execution claim.
|
||||
## Artifact Publication And Native Reporting
|
||||
|
||||
The runner returns logical deliverable files only after successful execution/
|
||||
encoding. The [JSON encoder](../../internal/modules/generic/output/json/encoder.go)
|
||||
encoding; its [logical output collaborator](../../internal/framework/pipeline/runner_boundaries.go)
|
||||
does not publish them. The [JSON encoder](../../internal/modules/generic/output/json/encoder.go)
|
||||
owns domain-file selection and optional auxiliary inclusion.
|
||||
[JSON output](../integrations/json-output.md),
|
||||
[chunk maps](../integrations/chunk-map.md), and
|
||||
|
||||
@@ -470,6 +470,11 @@ one universal normalizer or permission to combine evidence ranges.
|
||||
|
||||
### CAT-022 — Runner Stage Flow Is Obscured By Evidence And Output Assembly
|
||||
|
||||
**Status:** Resolved. The runner coordinates source preparation, chunk planning,
|
||||
ordered steps, single diagnostic finalization, and logical output explicitly;
|
||||
private collaborators own parsing, chunk-map construction, and output/evidence
|
||||
assembly. Existing pipeline, integration, CLI, and full verification checks pass.
|
||||
|
||||
**Assessment:** Local maintainability opportunity; original medium.
|
||||
|
||||
**Source:** [CPLX-005](03-complexity.md#cplx-005--runner-stages-are-obscured-by-debug-and-output-assembly).
|
||||
|
||||
@@ -570,6 +570,12 @@ loss, shared mutation, or premature retirement.
|
||||
|
||||
## Stage 19 — Expose Cohesive Runner Phases
|
||||
|
||||
**Completed.** The runner now delegates source parsing/indexing, chunk planning
|
||||
and map creation, and logical output/evidence encoding to private collaborators;
|
||||
ordered steps, cancellation, and single finalization remain explicit. Existing
|
||||
pipeline, integration, CLI, full test, vet, and build checks pass. Physical
|
||||
publication remains CLI-owned.
|
||||
|
||||
**Coverage:** CAT-022 completion. **Prerequisites:** Stages 12–18.
|
||||
|
||||
Extract same-package source parse/validate, chunk/materialization/map, and logical
|
||||
|
||||
Reference in New Issue
Block a user