Use shared target inventory for CLI references

This commit is contained in:
2026-11-26 02:41:42 +00:00
parent 510a079976
commit 654965d75a
6 changed files with 81 additions and 180 deletions

View File

@@ -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);

View File

@@ -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.