Skip to content

fix(xtask): require artifact identities for qualified repair parity (#2335) - #16248

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/2335-qualified-parity-identities
Nov 26, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
codex/2335-qualified-parity-identities

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

The packaged repair parity gate now refuses empty or whitespace-only artifact identities whenever the receipt claims qualification for the CLI or VSIX channel. A matching semantic snapshot cannot satisfy the artifact identity check. The deliberately degraded skeleton still passes contract-only validation and fails full qualification.

Swarm / Source Boundary

  • Ordinary repository tooling fix in EffortlessMetrics/ripr-swarm.

Source-of-truth Links

Proposal: #2335 gate finding and retained patch
Spec: Packaged repair parity fixture contract
ADR: none
Plan item: Fail closed on missing artifact identities in the existing #2335 parity gate.
Governing issue or accepted claim: #2335, packaged repair parity receipt correctness.
Acceptance delta (one sentence): Qualified CLI or VSIX evidence with an empty or blank artifact inventory yields a Failed gate while the degraded contract skeleton remains valid.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): codex/2335-qualified-parity-identities
Stack parent or prerequisite PR (if any): none, #12427 supplied the existing receipt contract.
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): none

Scope and proof

Current head 3c96546b0dc52481b92aac1964ec6e402eb15386, tree 440d79db1065b3831891f9d491320d4394ea5441, integration basis 5000e3d6ae745eb39f94c9569762efe48f07b2e4. GitHub merge preview 34519f8835eeb4b7f09d71fedc6f0a00df136ccd has the reviewed tree and exact base/head parents.

The first commit applied the original two-file patch after verifying 4,394 bytes and SHA-256 d712dbd25db1ed34623101090eb30c530e8ac6916428ed4f4d354cc5bea22408, plus the repository’s Internal / CI fragment. First hosted request stopped at admission when three review threads arrived. Product jobs did not run. The successor gives each qualification signal its own regression, separates artifact diagnostics from semantic readiness, and records the rule in the fixture spec. All three review threads were answered and resolved.

Pinned Rust 1.95 focused replay passed 12/12 on the successor. Both regressions fail with only the main gate substituted. Independent predicate-removal controls fail independently for the channel, required-section, and parity claims. The production fixture consumer validates the deliberately degraded skeleton. The predecessor native targeted suite passed 13/13, and the independent exact successor source review is recorded. The current-head normal qualification run passed candidate admission. Both Rust shards, the Rust gates, the shard verifier, and the required Result passed. The verifier confirmed 33,680 workspace tests on the exact merge preview.

Artifact custody and independent rehash/replay remain with the installed journey. #16243 and the Finish work remain on their existing routes. Revert this commit to roll back the gate change. Keep #2335 open.

Protected queue handoff

The final exact-head review is recorded. Live main was 5000e3d6ae745eb39f94c9569762efe48f07b2e4; the ready PR was clean and all three review threads were resolved. This session’s native enqueue interfaces were unavailable. The documented CCR enqueue returned Forbidden, and readback showed no queue event or armed auto-merge. An authorized native session can resume by rereading the head, base, required result and queue membership.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 43 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 142 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: d96206f4-964d-472a-b20f-59e6fdfb90e7
Commits

Reviewing files that changed from the base of the PR and between 5000e3d and 3c96546.

Files selected for processing: 4

  • changelog.d/2335-qualified-parity-identities.md
  • fixtures/packaged_repair_parity/SPEC.md
  • xtask/src/packaged_repair_receipt/gate.rs
  • xtask/src/packaged_repair_receipt/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Reviewed exact head c010a5aeb41986a946e355da164ad3eccafe07d9, tree b68a8ac31db889583ca560f23082f56370732575. The current typed fixture consumer invokes the changed gate. Independent Rust 1.95 replay from the committed source passed all 11 module tests, and substituting only the base gate reproduced the false Passed verdict. An independent 16-case matrix checked the isolated channel, required-section, and parity qualification signals, with empty and whitespace-only inventories and degraded controls. The current GitHub merge preview a7403cacab3a0ed3e0470cbadc628da9816d72a3 has this exact tree over main 5000e3d6ae745eb39f94c9569762efe48f07b2e4. No material source issue remains in the scoped artifact-presence check.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the packaged repair parity gate to reject qualified channels that have missing or blank artifact identities. Specifically, compare_channel_artifact_identities in gate.rs has been updated to validate that any channel claiming qualification contains non-empty and non-blank artifact identities, and a corresponding unit test has been added to verify this behavior. I have no feedback to provide.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 25, 2026 03:16

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

@EffortlessSteven
EffortlessSteven marked this pull request as draft November 25, 2026 03:18

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Reviewed 3c96546b0dc52481b92aac1964ec6e402eb15386, tree 440d79db1065b3831891f9d491320d4394ea5441. Independent exact-source replay passed 12/12. Removing each of the channel, required-section, and parity qualification predicates independently fails its matching regression. The predecessor gate fails the new semantic diagnostic assertion. Both regressions fail with the main gate substituted, and the degraded positive still passes. The fixture spec identifies both tests and the split from artifact custody. All three review findings have corresponding changes and replies. GitHub merge preview 34519f8835eeb4b7f09d71fedc6f0a00df136ccd shares the reviewed tree and has parents 5000e3d6 and 3c96546b0dc52481b92aac1964ec6e402eb15386. No material source issue remains in this scope.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

Exact head 3c96546b0dc52481b92aac1964ec6e402eb15386, reviewed tree 440d79db1065b3831891f9d491320d4394ea5441, live base 5000e3d6ae745eb39f94c9569762efe48f07b2e4. The independent source review covers each qualification signal, the degraded positive, and the diagnostic separation. All three review threads are resolved. The green required result applies to this head. The hosted shard verifier checked out 34519f8835eeb4b7f09d71fedc6f0a00df136ccd, which has the reviewed tree and current base/head parents, and verified all 33,680 listed Rust tests across both shards. The source gate review is complete for native queue consideration. The installed CLI and VSIX artifacts still require independent rehash and real replay under #2335.

Copy link
Copy Markdown
Member Author

Protected queue handoff refresh (2026-11-26 UTC). Exact head remains 3c96546b0dc52481b92aac1964ec6e402eb15386, non-draft, clean, and green for required Ripr Rust Small Result in 45539484133. The exact-head review records three resolved threads; the REST timeline shows no subsequent review and no queue event. Live main 8d38dcf2 has green Rust Result and main watch. At that base, all four candidate path preimages (including the absent changelog fragment), Cargo.lock, rust-toolchain.toml, xtask/Cargo.toml, routed Rust workflow and merge-watch policy still match the reviewed base 5000e3d6. The four output files match the older preview 0771d466, but that preview is not current merge-group proof. The active main ruleset requires resolved threads, the Rust Result and native squash queue; strict up-to-date checks are off. An authorized native session should reread live thread/queue state and enqueue the unchanged head if eligible. No branch refresh or standalone CI rerun solely for being behind; rely on the new merge-group result. No enqueue was performed here, and installed parity remains open under #2335.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 26, 2026

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: substantive exact-head review at 3c96546

Verdict: REVIEW_READY — no blocking findings.

Surfaces reviewed

  • gate.rs compare_channel_artifact_identities: a channel now needs a nonempty, non-whitespace-only artifact inventory exactly when a qualification claim touches it — parity verdict qualified, the channel's own section state qualified (and is_passing() is exactly that variant, no broader states sneak in), or a passing required section bound to the channel. Contract-only validation (no claims) still allows missing identities, matching the SPEC.md addition.
  • The qualified-verdict check now keys on matching_semantics (both semantic snapshots present + no semantic mismatch) instead of the old parity_ready, which had folded the identity check into a message that blamed semantics. A real identity gap now produces its own specific failure, and a semantic gap still blocks the verdict. Both directions verified in the diff: no claim path can be satisfied by matching semantics alone anymore.
  • Untouched behavior confirmed: the mismatch failure still requires both inventories nonempty; empty-vs-empty stays silent; matching_semantics is computed from the already-materialized parity_failures (no double scan).
  • Test matrix is the discriminator: 2 channels × 2 bad inventories ([], whitespace-only " \t\u{2003}") × 3 claim paths (channel state, required section, parity verdict), plus the positive full-qualification pass and the assertion that the vague "lack matching semantic evidence" message does NOT fire for identity failures.

Native Windows proof

cargo test -p xtask --bins packaged_repair_receipt at the PR head on native Windows: 14 passed, 0 failed (both new regression tests included). Hosted CI green including the 42m Rust gates.

Non-blocking notes

  • Branch base is old (5000e3d6), though Graphite mergeability currently passes; a routine rebase before merge keeps the gate semantics aligned with current main.
  • This gate is release-qualification infrastructure; the fail-closed direction (refuse qualified claims without custody evidence) matches the repository's evidence-promotion invariants.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit bc50f67 Nov 26, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/2335-qualified-parity-identities branch November 26, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant