Document prerequisite history and close the audit finding

This commit is contained in:
2026-12-02 14:37:39 +00:00
parent 663e02e21e
commit b82ab47c6c
9 changed files with 59 additions and 32 deletions

View File

@@ -60,8 +60,9 @@ the effective analyze set contains enabled definitions. With `--artifacts`, the
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, and the analyze
work planner closes targets over that one concrete prerequisite graph.
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.
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
@@ -166,7 +167,9 @@ Validation by content type:
`CollectPreviousArtifactRequirements`:
- scans the effective configured artifact set;
- expands the effective target set to its full configured prerequisite closure,
including disabled prerequisites, independently of artifact reuse;
- scans only definitions in that closure;
- extracts only canonical previous-session sources;
- deduplicates by artifact key;
- merges required and optional references (required wins);
@@ -294,7 +297,7 @@ physical layout.
`internal/artifacts/current_state_commit.go`,
- Paths and keys: `internal/artifacts/paths.go`,
`internal/artifacts/s3_keys.go`
- Previous requirements: `internal/artifacts/previous_requirements.go`
- Previous requirements: `internal/artifacts/previous_requirements.go`, `internal/artifacts/dependencies.go`
- Tests: `internal/artifacts/artifact_resolver_test.go`,
`internal/artifacts/catalog_test.go`,
`internal/artifacts/extraction_catalog_test.go`,

View File

@@ -54,6 +54,8 @@ Planner behavior:
For a non-dry-run restore, planning/classification happens only after acquiring
the workspace lock. Runner manifest/reuse checks acquire that same lock first.
Restore uses the default enabled targets and their full prerequisite closure to
collect previous requirements as described in [Artifact Internals](artifacts.md#previous-requirement-collection).
Previous-cache readiness is resolved through `previouscache.Resolve` for restore,
prepare, status, and validation. Each requirement selects the unique
`published_output` for its canonical source in the pointer-selected commit,

View File

@@ -52,7 +52,8 @@ Supported source families:
- makes a non-executable configured artifact reusable only when its current
manifest record and durable output pass the configured-artifact evidence
contract; an incidental or stale canonical file is unavailable.
- validates selected artifact dependency order (cycle-safe topo ordering).
- uses the shared artifact closure and cycle-safe dependency ordering described in
[Artifact Internals](artifacts.md#previous-requirement-collection).
- consumes only the concrete dependency graph derived in the shared domain catalog;
planning, prerequisite closure, execution, reuse, invalidation, and semantic
evidence do not infer a second graph from inputs.
@@ -138,7 +139,8 @@ Supported source families:
order after the complete reconciled collection has been checkpointed;
unrelated stale records do not make an otherwise successful partial
invocation fail.
- resolves previous-session sources from local `previous/` cache only.
- resolves previous-session sources from manifest-backed local `previous/` cache
only; preparation collects requirements for the selected prerequisite closure.
- runs optional render-debug, then artifact execution.
- validates non-empty output files and materializes canonical outputs.
- shares effective prompt context and variables with requirements inspection;

View File

@@ -9,7 +9,7 @@ Materialize canonical current-session inputs before processing stages.
- resolved campaign, session, and pipeline configuration
- the stable speakers input, inline autocorrection rules, canonical party, and optional glossary selections
- one resolved local or S3 audio source
- enabled configured artifact input requirements for previous-session sources
- previous-session input requirements from selected targets and their configured prerequisites
## Outputs
@@ -44,7 +44,9 @@ Materialize canonical current-session inputs before processing stages.
size, and source provenance, including an empty list when no rules apply.
- renders standalone effective campaign, session, and canonical party documents,
and deterministically generates the prepared players projection.
- scans enabled configured artifact inputs for `narratio.previous_session.artifact.*` requirements.
- collects `narratio.previous_session.artifact.*` requirements from the selected
targets and their full prerequisite closure, including disabled prerequisites;
see [previous requirement collection](artifacts.md#previous-requirement-collection).
- clears managed `inputs/previous/` state on every invocation, then, when requirements exist:
- resolves the pointer-selected previous source through the shared resolver;
- downloads previous manifest/artifacts;