fix: scope extracted output counts to package provenance
Snapshot non-archive outputs around each main, hybrid, and nested extraction and attribute only files created or changed by that package. Persist deduplicated hashed provenance keys so shared extract directories and restarts cannot count unrelated package outputs. Cover startup extraction in a shared target containing an existing foreign file and validate persisted provenance normalization.
This commit is contained in:
@@ -1200,6 +1200,7 @@ describe("settings storage", () => {
|
||||
}],
|
||||
remuxOperations: [],
|
||||
outputCount: 1,
|
||||
outputProvenance: ["a".repeat(64), "invalid", "a".repeat(64)],
|
||||
cleanupErrorCategory: "",
|
||||
createdAt: 1_000,
|
||||
updatedAt: 21_000
|
||||
@@ -1226,6 +1227,7 @@ describe("settings storage", () => {
|
||||
archiveOperations: [expect.objectContaining({ id: "archive-1", durationMs: 4_000 })],
|
||||
remuxOperations: [],
|
||||
outputCount: 1,
|
||||
outputProvenance: ["a".repeat(64)],
|
||||
cleanupErrorCategory: ""
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user