Repository navigation
fix(artifacts): distinguish content from containment changes - #14957
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. |
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR stops byte-only changes from also appearing as containment changes.
No actionable correctness or security issues were identified. Tests were inspected but not run during this review. GitHub authentication was unavailable, so current supersession status and the previous PR’s review threads could not be checked. ShuaixinHuang explicitly acknowledged that no separate issue was linked because the problem was found during source review. No finding was added for that known decision. Reviews (1) · Last reviewed commit: "fix(artifacts): distinguish content from..." · Reviewed by Greptile |
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.