Share artifact dependency queries across consumers
This commit is contained in:
@@ -61,8 +61,10 @@ exact named configured definitions become the effective set for that invocation,
|
||||
regardless of their `enabled` value. The effective-set resolver itself does not
|
||||
expand dependencies. Shared domain catalog derivation has materialized the sorted
|
||||
union of explicit ordering edges and configured-artifact input edges. The
|
||||
shared artifact closure orders targets and their prerequisites on that one concrete
|
||||
graph; the analyze work planner uses that order for its decisions.
|
||||
derived catalog holds an immutable `internal/artifactdeps` graph shared by
|
||||
validation, prerequisite ordering, and analysis planning. Supplied products can
|
||||
stop prerequisite traversal; explicit forced targets still include their
|
||||
prerequisites.
|
||||
Availability is separate from executability. Invocation selection normalizes a
|
||||
family selection into its concrete generated members before this resolver runs.
|
||||
The effective set retains optional family
|
||||
|
||||
@@ -53,6 +53,7 @@ enabled capabilities while holding the same lock.
|
||||
| Manifests | `internal/manifest` | Durable session progress, stage transitions, validation, and atomic persistence. |
|
||||
| Artifacts and paths | `internal/artifacts`, `internal/pathsafe` | Artifact identities and resolution, local and remote path/key models, current-state discovery, and confined relative destinations. |
|
||||
| Previous-session cache | `internal/previouscache` | Deterministic planning and materialization requirements for configured previous-session inputs. |
|
||||
| Artifact dependencies | `internal/artifactdeps` | Immutable configured-artifact dependency ordering, closure, and dependent traversal. |
|
||||
| Artifact policy | `internal/artifactpolicy` | Source and destination policy, configured artifact identity validation, and publish destination safety. |
|
||||
| Shared models and file operations | `internal/artifactmodel`, `internal/contracts`, [`internal/fileops`](fileops.md) | Transcript and artifact data contracts plus atomic single-file replacement, bounded reads, workspace modes, and root-scoped cleanup helpers. |
|
||||
| Logging | `internal/logging` | Small Narratio-owned diagnostic/progress interface adapted to the invocation reporter. |
|
||||
|
||||
@@ -41,10 +41,10 @@ their scope. Unless assigned otherwise, a finding remains independent audit
|
||||
remediation. Shared code does not make a refactoring a prerequisite or assign
|
||||
the whole finding to a roadmap.
|
||||
|
||||
Twenty-seven entries are closed by the safety, transfer, audio discovery, S3
|
||||
Twenty-eight entries are closed by the safety, transfer, audio discovery, S3
|
||||
planning, prerequisite-history, publication-import, CLI classification,
|
||||
inspection aggregation, test maintenance, dead-code removal, and associated
|
||||
documentation work; 16 remain open. **Planned** identifies
|
||||
documentation work; 15 remain open. **Planned** identifies
|
||||
an agreed remedy awaiting implementation. **Potentially eliminated** requires verification that the offending
|
||||
lifecycle is removed. **Coordinate** identifies shared changes, not a commitment
|
||||
that a related feature implements the entire finding. Findings close only after their
|
||||
@@ -523,7 +523,12 @@ Related: [CAT-25](#cat-25--p3-separate-inspectionreadiness-collection-assessment
|
||||
|
||||
### CAT-17 — P3: Centralize configured-artifact dependency queries
|
||||
|
||||
Status: Open
|
||||
Status: Closed
|
||||
|
||||
**Closure.** The derived catalog owns the shared artifact dependency graph;
|
||||
configuration validation, prerequisite selection, ordering and analysis
|
||||
planning use its mechanics. Focused configuration, artifact, stage and app
|
||||
tests verify selection, origins, supplied boundaries and history.
|
||||
|
||||
**Disposition / owner.** Independent dependency-refactoring owner — [restore coverage](../../internal/command-restore.md#installation-and-local-baseline)
|
||||
uses a fixed stage/output coverage mapping, not this configured-artifact graph.
|
||||
|
||||
@@ -247,7 +247,7 @@ Validation: `go test ./internal/artifactdeps ./internal/config` once wired.
|
||||
|
||||
## Stage 7: Migrate Configured-Artifact Graph Consumers
|
||||
|
||||
CAT IDs: CAT-17, completion. Status: Pending.
|
||||
CAT IDs: CAT-17, completion. Status: Complete.
|
||||
|
||||
Read Stage 6's linked sections and current `config/artifact_dependencies.go`,
|
||||
`artifact_families.go`, `validate_scriptorium.go`, `artifacts/dependencies.go`,
|
||||
|
||||
Reference in New Issue
Block a user