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
@@ -254,8 +254,11 @@ const assertHistoricalInventory = async (
|
||||
const { archive, parent, inventoryEvidence, graph } = input;
|
||||
// Historical records may omit a later inventory field. Input parsing must
|
||||
// not insert defaults inside that authenticated child Evidence.
|
||||
const { integrity_contradictions: _contradictions, ...legacyInventory } =
|
||||
graph;
|
||||
const {
|
||||
integrity_contradictions: _contradictions,
|
||||
coverage: _coverage,
|
||||
...legacyInventory
|
||||
} = graph;
|
||||
const legacyTarget = {
|
||||
path: archive,
|
||||
sha256: graph.manifest.root_sha256,
|
||||
@@ -275,6 +278,9 @@ const assertHistoricalInventory = async (
|
||||
expect(
|
||||
legacyInspection.substeps[0]?.evidence.normalized_result,
|
||||
).not.toHaveProperty("integrity_contradictions");
|
||||
expect(
|
||||
legacyInspection.substeps[0]?.evidence.normalized_result,
|
||||
).not.toHaveProperty("coverage");
|
||||
const legacyParent = createEvidence(legacyTarget, parent.provider, {
|
||||
operation: "inspect_artifact",
|
||||
parameters: {},
|
||||
|
||||
Reference in New Issue
Block a user