Accept shared pipeline interpretation and pure copying
This commit is contained in:
@@ -280,6 +280,11 @@ checks at their distinct boundaries. Inventory must work before CLI bindings
|
||||
satisfy required references; calling full resolution early is not a substitute.
|
||||
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.
|
||||
|
||||
### CAT-015 — Producer Lifecycle Depends On Coupled Closure State
|
||||
|
||||
**Assessment:** High-leverage local maintainability opportunity; original high.
|
||||
|
||||
@@ -151,30 +151,45 @@ handling, or guarantees for collaborators that ignore cancellation are introduce
|
||||
## 4. One Owner For Pipeline Interpretation And Pure Copying
|
||||
|
||||
**Findings:** CAT-014, CAT-017, CAT-018; coordinate CAT-012 where files overlap.
|
||||
**Status:** Open technical design review.
|
||||
**Status:** Accepted; implementation pending.
|
||||
|
||||
These are high-value consolidations. Sketch small shared operations for structural
|
||||
layout, selected-target inventory, and pure copying of pipeline-owned values.
|
||||
Keep full compatibility resolution distinct from inventory: CLI reference
|
||||
selection must work before its bindings satisfy required references.
|
||||
Centralize pipeline meaning and pure copying in the existing `pipeline` package
|
||||
while retaining distinct loading, CLI binding, and complete-resolution phases.
|
||||
Preserve current configuration and CLI behavior.
|
||||
|
||||
Before implementation:
|
||||
**Accepted decisions:**
|
||||
|
||||
- Identify the reusable layout and selection results and their callers. Keep raw
|
||||
ConfigKit presence/provenance checks and CLI grammar/precedence with their owners.
|
||||
- Inventory supported mutable option representations. Preserve established
|
||||
omission, explicit-empty, and explicit-zero behavior and detached ownership.
|
||||
- Separate identifier trimming/defaulting from copying; copying must not silently
|
||||
change the configuration being inspected.
|
||||
- Decompose resolution around these owners rather than organizing three cleaner
|
||||
copies of the same interpretation.
|
||||
- Provide small shared operations for catalog-independent structural layout and
|
||||
catalog-aware selected-target inventory. Layout determines ordered steps/lanes
|
||||
and their structural identities; inventory selects modules/defaults/variants
|
||||
and discovers reference slots without requiring those slots to be populated.
|
||||
- Reuse that interpretation and selection logic in complete resolution. The CLI
|
||||
must be able to discover selected reference slots, apply its bindings, and only
|
||||
then check completeness. Do not route this through a full resolver with a
|
||||
partial/allow-missing mode.
|
||||
- Keep loading, imports, inheritance, source presence, and provenance with
|
||||
ConfigKit and its application integration. Keep CLI selector parsing and
|
||||
precedence with the CLI. Complete binding, type-compatibility, and generated
|
||||
dependency checks remain with pipeline resolution/preparation.
|
||||
- Put pure copying of pipeline-owned values beside their types. Copying preserves
|
||||
values; trimming and default selection are explicit interpretation/resolution
|
||||
operations. Preserve omission, explicit-empty, explicit-zero, and detached
|
||||
ownership behavior.
|
||||
- Inventory supported mutable option containers before consolidating copy
|
||||
implementations. Retain necessary independent values at caller/extension
|
||||
boundaries, but remove redundant copies where ownership makes them unnecessary.
|
||||
Do not replace those boundaries with a universal immutability convention.
|
||||
- Decompose resolution around these owners in the existing package and types,
|
||||
using cohesive helpers/files as useful. No new configuration model, general
|
||||
pipeline interpreter, or reflection-based copier is selected.
|
||||
|
||||
A short API sketch and representative callers should be sufficient. No new
|
||||
configuration framework, general intermediate representation, arbitrary reflection
|
||||
copier, or package split is presumed necessary. The generated-key correctness fix
|
||||
does not depend on completing this broader consolidation.
|
||||
Exact helper names and file placement remain implementation choices. Demonstrate
|
||||
the shared operations through representative callers before expanding the change,
|
||||
and retain independent selection and mutation-isolation tests at the relevant
|
||||
boundaries. The generated-key correctness fix does not depend on completing this
|
||||
broader consolidation.
|
||||
|
||||
**Decision:** Pending.
|
||||
**Decision:** Accepted as above. Remaining work is implementation design and verification.
|
||||
|
||||
## 5. Producer State And Shared Reconciliation Lifecycle
|
||||
|
||||
|
||||
Reference in New Issue
Block a user