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.
|
satisfy required references; calling full resolution early is not a substitute.
|
||||||
Retain independent expected selections in config, resolver, and CLI tests.
|
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
|
### CAT-015 — Producer Lifecycle Depends On Coupled Closure State
|
||||||
|
|
||||||
**Assessment:** High-leverage local maintainability opportunity; original high.
|
**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
|
## 4. One Owner For Pipeline Interpretation And Pure Copying
|
||||||
|
|
||||||
**Findings:** CAT-014, CAT-017, CAT-018; coordinate CAT-012 where files overlap.
|
**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
|
Centralize pipeline meaning and pure copying in the existing `pipeline` package
|
||||||
layout, selected-target inventory, and pure copying of pipeline-owned values.
|
while retaining distinct loading, CLI binding, and complete-resolution phases.
|
||||||
Keep full compatibility resolution distinct from inventory: CLI reference
|
Preserve current configuration and CLI behavior.
|
||||||
selection must work before its bindings satisfy required references.
|
|
||||||
|
|
||||||
Before implementation:
|
**Accepted decisions:**
|
||||||
|
|
||||||
- Identify the reusable layout and selection results and their callers. Keep raw
|
- Provide small shared operations for catalog-independent structural layout and
|
||||||
ConfigKit presence/provenance checks and CLI grammar/precedence with their owners.
|
catalog-aware selected-target inventory. Layout determines ordered steps/lanes
|
||||||
- Inventory supported mutable option representations. Preserve established
|
and their structural identities; inventory selects modules/defaults/variants
|
||||||
omission, explicit-empty, and explicit-zero behavior and detached ownership.
|
and discovers reference slots without requiring those slots to be populated.
|
||||||
- Separate identifier trimming/defaulting from copying; copying must not silently
|
- Reuse that interpretation and selection logic in complete resolution. The CLI
|
||||||
change the configuration being inspected.
|
must be able to discover selected reference slots, apply its bindings, and only
|
||||||
- Decompose resolution around these owners rather than organizing three cleaner
|
then check completeness. Do not route this through a full resolver with a
|
||||||
copies of the same interpretation.
|
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
|
Exact helper names and file placement remain implementation choices. Demonstrate
|
||||||
configuration framework, general intermediate representation, arbitrary reflection
|
the shared operations through representative callers before expanding the change,
|
||||||
copier, or package split is presumed necessary. The generated-key correctness fix
|
and retain independent selection and mutation-isolation tests at the relevant
|
||||||
does not depend on completing this broader consolidation.
|
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
|
## 5. Producer State And Shared Reconciliation Lifecycle
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user