Skip to content

fix(artifacts): distinguish content from containment changes - #15012

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/compare-artifact-containment
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/compare-artifact-containment

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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.txt reported content and relations for 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

  • The compiled CLI went from ["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.
  • The existing public directory comparison now asserts the change dimensions. Existing domain coverage still reports relations when 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.ts passed all 69 tests. Initial setup found a stale Knip installation. A clean locked npm ci restored the intended toolchain.
  • Normal commit and push checks ran lint-staged and npm run check:fast.
  • Local verification ran on Linux through CLI, stdio MCP coverage in the boundary file, and domain/service tests. No platform-specific runtime behavior was exercised.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Author checklist (completed by the PR author before requesting review)

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
  • I ran every test, build, or measurement needed to validate this change, reported a browser, GPU, or environment gap only when that runtime or hardware is unavailable, and reported the checks I ran and their results without presenting inferred correctness or speedups as measured.
  • Comments explain constraints or non-obvious decisions; task history and conversations stay out of code and docs.
  • Documentation is concise and factual, without punchy slogans or promotional language.
  • This change fixes the root cause and follows the engineering rules in AGENTS.md.
  • Formatted input is interpreted once at the owning boundary, and consumers use the owner's parsed facts. See Interpret boundary facts once.
  • Combined failures preserve partial observations, remaining resources, and cleanup facts. See Own the lifecycle.
  • A hardcoded limit is an REA_ runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T14:53:06.296685Z ef14637 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The containment comparison change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The containment comparison change appears safe to merge.

Summary

Separates containment changes from content changes without changing stored inventories.

  • Artifact comparisons separate byte changes from unchanged containment.

No actionable issues were found. No runtime checks were run during this review. Supersession and prior review history could not be checked because GitHub authentication was unavailable.

Acknowledged scope:

  • ShuaixinHuang explicitly states that semantic relations intentionally retain their content identities. This is outside the containment-only fix.
  • ShuaixinHuang explicitly acknowledges that no separate issue was linked because the problem was found during source review.

Reviews (1) · Last reviewed commit: "fix(artifacts): distinguish content from..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant