Repository navigation
fix(process): propagate comparison contradictions - #6298
Conversation
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; no actionable issue was found in the changed code. SummaryMakes
Reviews (1) · Last reviewed commit: "fix(process): propagate comparison contr..." · Reviewed by Greptile |
Summary
Fixes #6218. Reject inconsistent imported process-comparison aggregates at their shared schema boundary instead of allowing a false successful reconstruction check.
Problem and expected behavior
A content-authenticated record could retain a contradictory dimension with an overall
unchangedstatus. The shared aggregate derivation omittedcontradiction, so both the schema and overall verification accepted it. Content authentication does not establish semantic consistency.Change and scope
contradictionin the existing owner:truncated > contradiction > changed/added/removed > unknown > unchanged. Existing truncation and observed-change precedence remain intact.changedBehavior's unreachable duplicate aggregate check after the same owner schema has parsed the result.Contract and boundary impact
No target execution, injection, mutation, network acquisition or protection recovery is added.
Evidence and regression coverage
933af60eba43c29f1fb1c606fddcd725ae0d9d96, the new regressions failed: 12 failures / 7 passes, including the production-registration MCP scenario returning success for the inconsistent comparison.invalid_request/invalid_value, and retains every original record. A consistent contradiction fails both claims; the publiccompare_process_capturesunchanged control still verifies successfully. The same connection remains usable; no provider launches.Validation performed
macOS arm64, pinned Node.js 24.18.0 / npm 11.16.0, complete locked dependencies. After incorporating upstream
66aacc6fba7fb498302ca58894f179d77a847444:npm run check— passed (typecheck, lint, format, knip, metadata, module and architecture guards).npm run verify:test-discovery— passed; every test file discovered exactly once.git diff --check— passed.Focused test command
Compatibility, safety, and release
Previously accepted comparison aggregates that disagree with contradictory dimensions must be recomputed from retained source captures before consumption. Generic import still retains those records; this change does not rewrite or rehash them. Consistent contradiction records remain explicit failures for reconstruction verification.
This does not redefine all downstream contradiction reporting: existing
find_changed_behavioraggregation and static/runtime correlation semantics have separate limitations (#6217 concerns the latter). No claim of complete contradiction-consumer correctness is made.Not run: stdio/installed-client, real process capture/provider, Windows/Linux, or the full CI suite. No performance claim. Upstream CI and maintainer approval are not established by local checks.
Author readiness
Human owner: @gongfpp
AI-assisted contribution; the human owner confirmed completion of the review and readiness declaration and requested initial maintainer review.
Before merge