fix(artifacts): compare inventories using declared coverage (#2214)
* fix(artifacts): preserve complete root inventory comparisons * fix(artifacts): declare inventory coverage before comparison * fix(artifacts): preserve traversal omissions and materialization limits * fix(artifacts): preserve coverage declarations and projection scope Remove the duplicate inventory-schema import. Compare original coverage declarations, including field omission, before adapting legacy pages. Require explicit scope for completeness and container-entry coverage for application projections. Source inspection and git diff --check only. Tests, builds and typechecks skipped by explicit user request. GitHub review writes paused globally. * fix(artifacts): require entry coverage for child changes * fix(artifacts): accept source-valid inventory limitations * style(artifacts): format mobile graph projection --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> Co-authored-by: OpenAI Codex <openai-codex@users.noreply.github.com>
This commit is contained in:
co-authored by
morluto
OpenAI Codex
parent
e4186af31b
commit
45a3509db3
@@ -52,3 +52,22 @@ it("rejects a root path replaced between its initial stat and open", async () =>
|
||||
message: `Root artifact changed before inventory: ${path}`,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps unavailable container traversal distinct from observed root bytes", async () => {
|
||||
const root = await createTestTempDirectory("rea-artifact-root-scope-");
|
||||
const path = join(root, "fixture.pkg");
|
||||
// The recognized XAR prefix selects PKG inventory; no child decoder is installed.
|
||||
await writeFile(path, Buffer.from("xar!fixture"));
|
||||
const inventory = await inventoryArtifact(path);
|
||||
expect(inventory.manifest).toMatchObject({
|
||||
root_format: "pkg",
|
||||
node_count: 1,
|
||||
occurrence_count: 1,
|
||||
edge_count: 0,
|
||||
});
|
||||
expect(inventory.occurrences[0]?.hash_status).toBe("verified");
|
||||
expect(inventory.coverage).toEqual({
|
||||
scope: "container-entries",
|
||||
status: "unknown",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user