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:
Sucukdeluxe
2026-08-22 12:27:59 +02:00
parent 91b9596d6f
commit a266610c31
5 changed files with 49 additions and 19 deletions
+2
View File
@@ -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: ""
}));
});