Remove unused extraction descriptor fields
This commit is contained in:
@@ -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-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,
|
||||
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
|
||||
lifecycle is removed. **Coordinate** identifies shared changes, not a commitment
|
||||
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
|
||||
|
||||
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).
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ Validation: `go test ./internal/app -run 'Test.*(Clean|Cleanup|Scoped|Lock)'`.
|
||||
|
||||
## 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).
|
||||
Inspect `stage/extract.go`, `artifacts/extraction_evidence.go`,
|
||||
|
||||
@@ -325,7 +325,6 @@ func (c *ArtifactCatalog) MarkAvailableGeneratedEvidence(
|
||||
func (c *ArtifactCatalog) markAvailableFromExtractManifest(
|
||||
sourceID, path, producerRunID, checksum string,
|
||||
size int64,
|
||||
contract *artifactmodel.ContractMetadata,
|
||||
) error {
|
||||
if err := c.markAvailable(sourceID, path, ArtifactProvenanceCurrentExtractManifest); err != nil {
|
||||
return err
|
||||
@@ -334,7 +333,7 @@ func (c *ArtifactCatalog) markAvailableFromExtractManifest(
|
||||
entry.ProducerRunID = strings.TrimSpace(producerRunID)
|
||||
entry.Checksum = strings.TrimSpace(checksum)
|
||||
entry.Size = size
|
||||
entry.Contract = cloneArtifactContract(contract)
|
||||
entry.Contract = nil
|
||||
c.entries[entry.SourceID] = entry
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func (c *ArtifactCatalog) HydrateExtractionArtifactsExcept(
|
||||
}
|
||||
_ = c.markAvailableFromExtractManifest(
|
||||
sourceID, output.Path, proof.ProducerRunID,
|
||||
output.Checksum, output.Size, output.Contract,
|
||||
output.Checksum, output.Size,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/artifactmodel"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/fileops"
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/manifest"
|
||||
)
|
||||
@@ -32,7 +31,6 @@ type ExtractionEvidenceOutput struct {
|
||||
Path string
|
||||
Checksum string
|
||||
Size int64
|
||||
Contract *artifactmodel.ContractMetadata
|
||||
}
|
||||
|
||||
// InspectExtractionEvidence verifies structure, confinement, identities, contracts, and payload bytes.
|
||||
|
||||
@@ -259,13 +259,9 @@ func normalizeNotariusBundle(root string) error {
|
||||
}
|
||||
|
||||
type fingerprintOutput struct {
|
||||
Key string `json:"key"`
|
||||
LaneID string `json:"lane_id"`
|
||||
Filename string `json:"filename"`
|
||||
MediaType string `json:"-"`
|
||||
SchemaID string `json:"-"`
|
||||
SchemaVersion string `json:"-"`
|
||||
ModuleKey string `json:"-"`
|
||||
Key string `json:"key"`
|
||||
LaneID string `json:"lane_id"`
|
||||
Filename string `json:"filename"`
|
||||
}
|
||||
|
||||
type fingerprintDocument struct {
|
||||
|
||||
Reference in New Issue
Block a user