Centralize pure pipeline profile and binding copies

This commit is contained in:
2026-11-26 02:29:52 +00:00
parent 383b43ab08
commit ad357db22d
17 changed files with 271 additions and 257 deletions

View File

@@ -100,6 +100,9 @@ overrides, and exact reference changes to `pipeline.ResolvePipeline`.
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.
Pipeline-owned profile and binding copies use the framework's pure copy helpers;
they preserve configured values and supported nil/empty containers, while
interpretation and normalization remain separate responsibilities.
Presence-aware selections preserve explicit invocation profile clearing, cache
overrides, and zero semantic-turn controls rather than collapsing into omission.

View File

@@ -52,6 +52,9 @@ registries and the shared native engine. Builders receive independently owned
build requests. Exact Go type, codec, evidence-projector, registration, and
constructor checks happen before source parsing. There is no correction transport,
asset registry, or persistent execution identity to collect.
Pure [profile and binding copies](../../internal/framework/pipeline/profile_copy.go)
detach supported mutable options, references, and controls without interpreting
names or defaults; decoding and resolution perform their own normalization.
Offline known-resource [preflight](../../internal/preflight/preflight.go) is
a separate composition check, not request execution or module construction.

View File

@@ -405,6 +405,12 @@ results. Preserve fresh application of each proposal and independent family test
### CAT-017 — Pipeline Value Copying Has Multiple Owners And Mixed Semantics
**Status:** Resolved. Pipeline-owned pure profile and binding copies are reused
by configuration and framework callers; trimming remains explicit in decoding
and resolution. Mutation tests cover supported nested containers, references,
validators, control pointers, whitespace, and nil/empty values, including
effective configuration isolation. The prescribed package checks pass.
**Assessment:** Ownership/refactoring opportunity; original medium.
**Sources:** [CPLX-007](03-complexity.md#cplx-007--copying-pipeline-values-has-multiple-owners-and-mixed-semantics),

View File

@@ -639,6 +639,12 @@ Update CLI/operations/subprocess guidance.
## Stage 22 — Centralize Pure Pipeline Copies
**Completed.** Pipeline-owned pure profile and binding copies are shared with
configuration; explicit decoding/resolution owns name trimming. Supported
option containers, nested references, validators, control pointers, whitespace,
and nil/empty values have mutation and preservation coverage, including effective
configuration isolation. Config, pipeline, and CLI checks pass.
**Coverage:** CAT-017. **Prerequisites:** Stage 3 where files overlap.
Inventory copy switches in config/config.go, pipeline/profile.go, and