Repository navigation
fix(xtask): require artifact identities for qualified repair parity (#2335) - #16248
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Protected queue handoff refresh (2026-11-26 UTC). Exact head remains |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Review: substantive exact-head review at 3c96546
Verdict: REVIEW_READY — no blocking findings.
Surfaces reviewed
gate.rscompare_channel_artifact_identities: a channel now needs a nonempty, non-whitespace-only artifact inventory exactly when a qualification claim touches it — parity verdictqualified, the channel's own section statequalified(andis_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 oldparity_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_semanticsis computed from the already-materializedparity_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.
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
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-identitiesStack 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, tree440d79db1065b3831891f9d491320d4394ea5441, integration basis5000e3d6ae745eb39f94c9569762efe48f07b2e4. GitHub merge preview34519f8835eeb4b7f09d71fedc6f0a00df136ccdhas 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.