Repository navigation
fix(artifacts): count a changed partial-inventory root once - #1854
Merged
Merged
Conversation
When partial inventories omitted node details, the root got an unknown availability row and the differing manifest root digests appended a second, changed content row, so one logical path was counted as both changed and unknown. Fold the manifest content change into an existing unknown or changed root row instead, keeping its dimensions, occurrence and artifact identities, and citations; contradiction and presence rows are left as they are. Fixes #1844 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1844.
compare_artifactscould report and count the root of two partial inventories twice. This happened when both inventories omitted node details but their manifest root digests differed. The root got two rows:classifyAvailability:unknownwithavailabilityrootHashChange:changedwithcontent, because the fallback only stood down when an existing root row already carriedcontentSo
summaryreportedchanged: 1, unknown: 1for a single path.Change
applyRootHashChangereplacesrootHashChange. When the manifest root digests differ:unknownorchangedwithoutcontent: it upgrades that row in place tochanged, addscontent(dimensions stay in schema order:["content", "availability"]), and keeps the row's occurrence and artifact IDs while merging citations.content, or iscontradiction,added, orremoved: it leaves the row unchanged, so contradiction precedence holds.The overall
truncatedstatus and the incompleteness limitations are unchanged.Validation
tests/boundary/filesystem/artifactComparisonSummary.test.tsruns realinventoryArtifactobservations and derived partial Evidence throughcompareArtifacts:changedwith["content", "availability"],changed: 1, unknown: 0, stilltruncated. This test fails without the fix.contentrow,changed: 1.unknownavailability row.npm run test:focusedpasses on the artifact comparison, artifact MCP, and analysis-session composition suites (14 files, 92 tests).npm run check:fastpasses.🤖 Generated with Claude Code