Use shared target inventory for CLI references
This commit is contained in:
@@ -102,6 +102,7 @@ handoff and keeps capture and publication state local to that run:
|
||||
attach its local native execution group to the inherited invocation context.
|
||||
3. Capture selected configuration, compose registries, expand reference actions,
|
||||
and resolve the effective pipeline.
|
||||
|
||||
4. Obtain the shared engine when needed and perform offline preflight.
|
||||
5. Materialize references, construct prepared typed modules, read input bytes,
|
||||
and resolve the effective session.
|
||||
@@ -112,6 +113,10 @@ handoff and keeps capture and publication state local to that run:
|
||||
success, write the debug group's snapshot immediately before capture
|
||||
finalization, then submit the native completion report.
|
||||
|
||||
CLI reference grammar and precedence remain local; selector expansion uses the
|
||||
pipeline's [target inventory](../../internal/framework/pipeline/selection.go)
|
||||
before complete resolution checks whether required slots are bound.
|
||||
|
||||
Modules receive the shared engine, operation data, and explicit collaborators,
|
||||
not physical roots or CommandKit reporters. Detailed worker, assessment,
|
||||
eligibility, and cache algorithms belong in [Pipeline Internals](pipeline.md);
|
||||
|
||||
@@ -100,6 +100,8 @@ overrides, and exact reference changes to `pipeline.ResolvePipeline`.
|
||||
Structural validation uses the framework's catalog-independent layout; an omitted
|
||||
profile ID is supplied from the validated map key on a detached value. Document
|
||||
presence, map-key matching, and reference-source checks remain configuration-owned.
|
||||
CLI selector expansion and complete resolution share the framework's selected
|
||||
target inventory, while required-reference validation remains in resolution.
|
||||
The framework resolves module/default/validator/type/reference compatibility and
|
||||
concrete producer controls before execution. Input slices/maps and the original
|
||||
configuration do not become mutable aliases of the effective result.
|
||||
|
||||
@@ -341,6 +341,12 @@ arrays or replacing copying with a JSON round trip would change the contract.
|
||||
|
||||
### CAT-014 — Pipeline Composition Has Three Independent Interpreters
|
||||
|
||||
**Status:** Resolved. Configuration validation, resolution, and CLI reference
|
||||
expansion share pipeline-owned layout and target selection. Independent tests
|
||||
cover CLI-only required references, variants, precedence, generated protection,
|
||||
selection errors before reads, and configuration/resolver structure. Full
|
||||
resolution decomposition remains separately tracked under CAT-018.
|
||||
|
||||
**Assessment:** High-leverage ownership/refactoring opportunity; original high.
|
||||
|
||||
**Sources:** [CPLX-003](03-complexity.md#cplx-003--three-packages-independently-interpret-pipeline-structure),
|
||||
@@ -358,7 +364,8 @@ Retain independent expected selections in config, resolver, and CLI tests.
|
||||
**Subsequent decision:** [Discussion Item 4](discussion.md#4-one-owner-for-pipeline-interpretation-and-pure-copying)
|
||||
accepts shared layout/selection operations and pure copying in the existing
|
||||
pipeline package, with loading, CLI binding, and complete resolution remaining
|
||||
distinct phases. This also governs CAT-017/CAT-018; implementation remains pending.
|
||||
distinct phases. This also governs CAT-017/CAT-018; resolution decomposition
|
||||
remains pending under CAT-018.
|
||||
|
||||
### CAT-015 — Producer Lifecycle Depends On Coupled Closure State
|
||||
|
||||
|
||||
@@ -714,6 +714,12 @@ Document the phase boundary, not a partial resolver.
|
||||
|
||||
## Stage 25 — Reuse Inventory In CLI Reference Binding
|
||||
|
||||
**Completed.** CLI selector expansion uses the shared layout and selected target
|
||||
inventory; grammar, precedence, conflicts, unbinds, and binding remain CLI-owned.
|
||||
A regression supplies required references only through CLI selectors, alongside
|
||||
existing variant, generated-handoff, and invalid-before-read coverage. The
|
||||
specified CLI, config, pipeline, and preflight suites pass.
|
||||
|
||||
**Coverage:** CAT-014 completion; CAT-018 callers. **Prerequisites:** Stages 23–24.
|
||||
|
||||
Replace reference_selectors.go's target/default/spec interpreter with inventory;
|
||||
|
||||
Reference in New Issue
Block a user