Repository navigation
fix(artifacts): distinguish content from containment changes - #15107
Closed
ShuaixinHuang wants to merge 1 commit into
Closed
ShuaixinHuang wants to merge 1 commit into
ShuaixinHuang wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable code defects were found. SummaryThe PR stops byte-only changes from also appearing as containment changes.
Reviews (2) · Last reviewed commit: "fix(artifacts): distinguish content from..." · Reviewed by Greptile |
3 of 18 tasks
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.
Replaces #15091 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Replaces #15065 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Replaces #15012 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Replaces #14994 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Replaces #14957 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Replaces #14910 at the same commit
ef1463760540d95b2bdfadea9c7fcc6c2eda47dd. The prior PR records the review history and validation for this commit.Summary
Keep byte-only artifact changes from appearing as containment changes.
Problem and expected behavior
Comparing two build directories with the same paths and a same-length edit to
lib/config.txtreportedcontentandrelationsfor both the file and its parent directory. Inspecting the two directories separately showed the same containment paths and relation types. The relationship comparison included the changing child artifact digest even though the content comparison already used that identity.Change and scope
Compare containment using its existing path, relation and producer projection without including the child's content digest. Semantic relations retain their existing content identities, including the source-map target. The change operates on existing inventory Evidence and does not alter schemas, the inventory graph, or retained source records. No separate issue was linked because this was found during source review.
Evidence and validation
["content","relations"]to["content"]for the changed file and its parent directory on the same input. The root content change and unchanged control file remain correctly classified.relationswhen a relationship type changes and preserves unavailable relation facts.npm run test:focused -- src/domain/artifactComparison.test.ts tests/boundary/cli/directoryArtifactComparison.test.ts src/application/artifacts/ArtifactComparisonEvidence.test.tspassed all 69 tests. Initial setup found a stale Knip installation. A clean lockednpm cirestored the intended toolchain.npm run check:fast.Author readiness
Human owner: @ShuaixinHuang
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.