Remove unused extraction descriptor fields

This commit is contained in:
2026-12-02 21:13:38 +00:00
parent 886ee12311
commit 6c8301c78e
6 changed files with 13 additions and 16 deletions

View File

@@ -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 remediation. Shared code does not make a refactoring a prerequisite or assign
the whole finding to a roadmap. the whole finding to a roadmap.
Twenty-six entries are closed by the safety, transfer, audio discovery, S3 Twenty-seven entries are closed by the safety, transfer, audio discovery, S3
planning, prerequisite-history, publication-import, CLI classification, planning, prerequisite-history, publication-import, CLI classification,
inspection aggregation, test maintenance, dead-code removal, and associated inspection aggregation, test maintenance, dead-code removal, and associated
documentation work; 17 remain open. **Planned** identifies documentation work; 16 remain open. **Planned** identifies
an agreed remedy awaiting implementation. **Potentially eliminated** requires verification that the offending an agreed remedy awaiting implementation. **Potentially eliminated** requires verification that the offending
lifecycle is removed. **Coordinate** identifies shared changes, not a commitment lifecycle is removed. **Coordinate** identifies shared changes, not a commitment
that a related feature implements the entire finding. Findings close only after their that a related feature implements the entire finding. Findings close only after their
@@ -931,7 +931,11 @@ directories, changing layout, migrating sessions, or inventing an output fallbac
### CAT-38 — P3: Remove inert extraction descriptor fields and nil-only plumbing ### CAT-38 — P3: Remove inert extraction descriptor fields and nil-only plumbing
Status: Open Status: Closed
**Closure.** JSON-excluded fingerprint fields and nil-only generated extraction
contract plumbing were removed. Artifact, stage, and configuration tests pass;
supplied and analysis contracts remain.
Original findings: [DD-03](12-deadcode.md#dd-03--p3-extraction-still-carries-descriptor-fields-that-the-current-model-discarded). Original findings: [DD-03](12-deadcode.md#dd-03--p3-extraction-still-carries-descriptor-fields-that-the-current-model-discarded).

View File

@@ -189,7 +189,7 @@ Validation: `go test ./internal/app -run 'Test.*(Clean|Cleanup|Scoped|Lock)'`.
## Stage 5: Remove Inert Extraction Descriptor Plumbing ## Stage 5: Remove Inert Extraction Descriptor Plumbing
CAT IDs: CAT-38. Status: Pending. CAT IDs: CAT-38. Status: Complete.
Read [DD-03](audit/12-deadcode.md#dd-03--p3-extraction-still-carries-descriptor-fields-that-the-current-model-discarded). Read [DD-03](audit/12-deadcode.md#dd-03--p3-extraction-still-carries-descriptor-fields-that-the-current-model-discarded).
Inspect `stage/extract.go`, `artifacts/extraction_evidence.go`, Inspect `stage/extract.go`, `artifacts/extraction_evidence.go`,

View File

@@ -325,7 +325,6 @@ func (c *ArtifactCatalog) MarkAvailableGeneratedEvidence(
func (c *ArtifactCatalog) markAvailableFromExtractManifest( func (c *ArtifactCatalog) markAvailableFromExtractManifest(
sourceID, path, producerRunID, checksum string, sourceID, path, producerRunID, checksum string,
size int64, size int64,
contract *artifactmodel.ContractMetadata,
) error { ) error {
if err := c.markAvailable(sourceID, path, ArtifactProvenanceCurrentExtractManifest); err != nil { if err := c.markAvailable(sourceID, path, ArtifactProvenanceCurrentExtractManifest); err != nil {
return err return err
@@ -334,7 +333,7 @@ func (c *ArtifactCatalog) markAvailableFromExtractManifest(
entry.ProducerRunID = strings.TrimSpace(producerRunID) entry.ProducerRunID = strings.TrimSpace(producerRunID)
entry.Checksum = strings.TrimSpace(checksum) entry.Checksum = strings.TrimSpace(checksum)
entry.Size = size entry.Size = size
entry.Contract = cloneArtifactContract(contract) entry.Contract = nil
c.entries[entry.SourceID] = entry c.entries[entry.SourceID] = entry
return nil return nil
} }

View File

@@ -59,7 +59,7 @@ func (c *ArtifactCatalog) HydrateExtractionArtifactsExcept(
} }
_ = c.markAvailableFromExtractManifest( _ = c.markAvailableFromExtractManifest(
sourceID, output.Path, proof.ProducerRunID, sourceID, output.Path, proof.ProducerRunID,
output.Checksum, output.Size, output.Contract, output.Checksum, output.Size,
) )
} }
} }

View File

@@ -6,7 +6,6 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gitea.maximumdirect.net/eric/narratio/internal/artifactmodel"
"gitea.maximumdirect.net/eric/narratio/internal/fileops" "gitea.maximumdirect.net/eric/narratio/internal/fileops"
"gitea.maximumdirect.net/eric/narratio/internal/manifest" "gitea.maximumdirect.net/eric/narratio/internal/manifest"
) )
@@ -32,7 +31,6 @@ type ExtractionEvidenceOutput struct {
Path string Path string
Checksum string Checksum string
Size int64 Size int64
Contract *artifactmodel.ContractMetadata
} }
// InspectExtractionEvidence verifies structure, confinement, identities, contracts, and payload bytes. // InspectExtractionEvidence verifies structure, confinement, identities, contracts, and payload bytes.

View File

@@ -259,13 +259,9 @@ func normalizeNotariusBundle(root string) error {
} }
type fingerprintOutput struct { type fingerprintOutput struct {
Key string `json:"key"` Key string `json:"key"`
LaneID string `json:"lane_id"` LaneID string `json:"lane_id"`
Filename string `json:"filename"` Filename string `json:"filename"`
MediaType string `json:"-"`
SchemaID string `json:"-"`
SchemaVersion string `json:"-"`
ModuleKey string `json:"-"`
} }
type fingerprintDocument struct { type fingerprintDocument struct {