Resolve supplied products from local records

This commit is contained in:
2026-12-02 15:13:04 +00:00
parent eb146d3298
commit 93c8695250
10 changed files with 235 additions and 12 deletions

View File

@@ -71,9 +71,10 @@ lookups remain concrete configured-artifact identities.
Family publish policies are likewise expanded into ordinary configured-source
publish actions during domain catalog derivation.
Configured outputs, including non-executable prerequisites, become available
only when the versioned analyze state identifies a current result whose source,
when the versioned analyze state identifies a current result whose source,
contract, canonical configured path, size, and checksum match a confined
no-follow regular file. An incidental canonical file is unavailable, and a
no-follow regular file, or when a supplied record validates against that path
and its bytes. An incidental canonical file is unavailable, and a
manifest with an unsupported aggregate-only representation is rejected before
catalog construction.
Extraction entries are registered from configuration and become available only
@@ -89,6 +90,7 @@ Current provenance values:
- `generated.current_analyze_run`
- `manifest.current_analyze_artifact`
- `manifest.supplied_product`
- `manifest.inputs.previous_cache`
- `current_session.previous_cache`
@@ -96,10 +98,11 @@ Current provenance values:
Built-ins:
- resolve only from the current manifest's succeeded registered producer;
- require exactly one output with the registered source ID and output kind, a
safe session-rooted path, producer run ID, canonical checksum, and valid
content; and
- resolve from validated supplied records or the current manifest's succeeded
registered producer;
- for generated products, require exactly one output with the registered source
ID and output kind, a safe session-rooted path, producer run ID, canonical
checksum, and valid content; and
- verify the registered checksum against the durable bytes. Incidental files,
canonical filenames, duplicate outputs, failed/stale producer records, and
malformed evidence are unavailable.
@@ -107,9 +110,10 @@ Built-ins:
Configured sources (`narratio.artifact.*`):
- resolve only through runtime catalog availability;
- accept a validated supplied record without historical analyze evidence;
- use the shared typed analyze-evidence inspection in
`analyze_evidence.go` for prior current-session results;
- require the supported analyze-state and fingerprint versions, a `current`
- for generated products, require the supported analyze-state and fingerprint versions, a `current`
record for the exact configured key and source ID, a complete contract, the
configured canonical relative path, positive stored size, and stored
checksum matching bytes read from a confined no-follow regular file; and
@@ -133,8 +137,11 @@ Prepared stable sources (`narratio.input.*`):
Extraction sources (`narratio.extraction.*`):
- accept individually validated supplied products without historical Notarius
metadata or transcript fingerprints; all configured products must be present
to satisfy extraction as a whole;
- use the shared product evidence inspection in `extraction_evidence.go`;
- require a current successful extract record with the exact configured source,
- for locally generated products, require a current successful extract record with the exact configured source,
Notarius provenance, a confined regular flat product with matching size and
checksum, and the current resolved trimmed-transcript
identity;
@@ -280,8 +287,8 @@ physical layout.
- source ID formats are stable contracts;
- artifact resolution is deterministic and manifest-aware;
- extraction sources are available only from a compatible successful manifest
record;
- extraction sources require compatible local generation evidence or a valid
supplied-product record;
- previous-session source resolution in `analyze` is local-only;
- remote current-state key construction remains centralized in artifacts helpers.