Skip to content

fix(xtask): align release-negative-corpus cases with current artifact gates and two-seam boundary output (#2824, #2379) - #15764

Merged
EffortlessSteven merged 3 commits into
mainfrom
fix/release-negative-corpus-three-cases
Nov 21, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
fix/release-negative-corpus-three-cases

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Align the 3 failing cargo xtask release-negative-corpus --version 0.11.0 cases with current ripr artifact-gate and repo-exposure-json contracts without weakening any negative-corpus invariant:
    1. artifact-commitment-duplicate: expect ContentCommitmentRejection::Duplicate (artifact contains duplicate content_sha256 commitments) instead of the stale serde duplicate-field wording.
    2. pair-producer-version-drift: expect the stronger #9632 per-artifact foreign-producer refusal (was produced by RIPR 0.0.0-corpus, but this consumer is RIPR) that fires fail-closed at load time before pair comparison.
    3. receipt-unmoved-retained-target: extract select_retained_loyalty_boundary_seam to filter unchanged_seams to seam_kind == "predicate_boundary" and require exactly one unchanged src/lib.rs weakly_gripped loyalty boundary seam (distinct from BOUNDARY_GAP_SEAM_ID), so unchanged return_value seams emitted alongside the boundary seam do not break the two-seam control.
  • Add 2 discriminating unit tests in xtask/src/reports/release_negative.rs pinning both the two-seam boundary selector (including ambiguity/strengthened negative controls) and the two refusal tokens against crates/ripr/src/agent/artifact.rs.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

Source-of-truth Links

Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0011-llm-work-loop.md
ADR: n/a
Plan item: #2379
Governing issue or accepted claim: #2824, #2379
Acceptance delta (one sentence): release-negative-corpus aligns its artifact-commitment-duplicate and pair-producer-version-drift refusal tokens with current ripr fail-closed artifact gates (#9632) and selects the unique unchanged predicate_boundary seam in receipt-unmoved-retained-target alongside unchanged return_value seams.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): fix/release-negative-corpus-three-cases
Stack parent or prerequisite PR (if any): none
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

  • xtask/src/reports/release_negative.rs
  • changelog.d/2824-release-negative-corpus-alignment.md

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • xtask/src/reports/release_negative.rs: update DUPLICATE_COMMITMENT_REASON, FOREIGN_PRODUCER_DRIFT_REASON, and select_retained_loyalty_boundary_seam for the 3 failing release-negative-corpus cases.

Evidence/support delta:

  • xtask/src/reports/release_negative.rs: add retained_loyalty_boundary_selector_tolerates_unchanged_return_value_seams_and_rejects_ambiguity and duplicate_commitment_and_producer_drift_tokens_match_ripr_artifact_gate.
  • changelog.d/2824-release-negative-corpus-alignment.md: Internal / CI changelog fragment.

Single acceptance criterion:

  • All 3 previously failing release-negative-corpus cases (artifact-commitment-duplicate, pair-producer-version-drift, receipt-unmoved-retained-target) enforce the real current ripr fail-closed contracts and pass reports::release_negative::tests.

Non-goals:

  • Does not change crates/ripr runtime behavior or weaken any negative-corpus invariant.
  • Does not touch docs/, workflows, or release-cut credentials/tags.

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Internal xtask release-readiness negative-corpus harness only.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • None.

Proof

rustfmt --edition 2024 --check xtask/src/reports/release_negative.rs
cargo test -p xtask --bin xtask reports::release_negative::tests
cargo xtask check-changelog-fragments
cargo xtask check-pr-shape --body-file <pr-body>

Result, failures, or skipped proof:

  • rustfmt --edition 2024 --check xtask/src/reports/release_negative.rs: PASS (exit 0)
  • cargo test -p xtask --bin xtask reports::release_negative::tests: PASS (27 passed, 0 failed)
  • cargo xtask check-changelog-fragments: PASS (exit 0)
  • cargo xtask check-pr-shape: PASS (exit 0)
  • Full end-to-end cargo xtask release-negative-corpus --version 0.11.0 replay (~30m debug run) deferred to release-readiness / hosted qualification; the 3 exact failure causes were observed directly in the prior main run and pinned by the new unit tests against crates/ripr/src/agent/artifact.rs and select_retained_loyalty_boundary_seam.

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: the 3 observed release-negative-corpus regressions (artifact-commitment-duplicate, pair-producer-version-drift, receipt-unmoved-retained-target) are aligned with current ripr artifact-gate and repo-exposure-json behavior, backed by unit tests.
  • Must not claim yet: full end-to-end release-negative-corpus qualification pass until rerun on the candidate binary.

Rollback

How can this PR be reverted safely?

  • Standard git revert of the squash commit; touches only xtask/src/reports/release_negative.rs and one changelog.d/ fragment.

Spec-Test-Code Traceability

  • Spec: docs/specs/RIPR-SPEC-0011-llm-work-loop.md
  • Tests: xtask/src/reports/release_negative.rs (reports::release_negative::tests, 27 tests)
  • Code: xtask/src/reports/release_negative.rs
  • Golden outputs: n/a
  • Metrics: n/a
  • ADR/learning: #9632 foreign-producer refusal before pair comparison

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: n/a
  • Workflows touched: none
  • Branch protection impact: none
  • Failure mode caught: stale refusal tokens and over-broad unchanged_seams.len() == 1 check in release-negative-corpus
  • Cheaper signal considered: unit tests in reports::release_negative::tests pin both the boundary selector and the refusal tokens against crates/ripr/src/agent/artifact.rs
  • Required lanes affected: none
  • Advisory lanes affected: none
  • On-demand/release lanes affected: cargo xtask release-negative-corpus
  • Labels that alter behavior: none
  • Artifact families affected: none
  • Rollback path: revert squash commit

Devin Review

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 20, 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 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 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: 97e42dc2-63ff-48e8-90b6-b7b1cfa220df
Commits

Reviewing files that changed from the base of the PR and between 13342cd and 8b66c46.

Files selected for processing: 2

  • changelog.d/2824-release-negative-corpus-alignment.md
  • xtask/src/reports/release_negative.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Exact-head source inspection record for PR #15764 (696314a1845d1b8c13f272396d81581e77cbf51f):

reviewed_head_sha: 696314a1845d1b8c13f272396d81581e77cbf51f
integration_basis: main (d012fd5c3a)
claim_boundary: #2824, #2379 — align the 3 failing release-negative-corpus cases (artifact-commitment-duplicate, pair-producer-version-drift, receipt-unmoved-retained-target) with current ripr fail-closed artifact gates (#9632) and two-seam predicate_boundary output without weakening any invariant
changed_surfaces_and_semantic_owners_inspected:
  - xtask/src/reports/release_negative.rs (DUPLICATE_COMMITMENT_REASON, FOREIGN_PRODUCER_DRIFT_REASON, select_retained_loyalty_boundary_seam, case_receipt_unmoved_retained_target, 2 new unit tests)
  - crates/ripr/src/agent/artifact.rs (ContentCommitmentRejection::Duplicate at :2205, foreign_producer_refusal_with_schema at :588)
  - changelog.d/2824-release-negative-corpus-alignment.md
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: none
proof_and_ci_observed:
  - Verified exact head 696314a1845d1b8c13f272396d81581e77cbf51f locally via git fetch/show
  - Verified DUPLICATE_COMMITMENT_REASON and FOREIGN_PRODUCER_DRIFT_REASON match crates/ripr/src/agent/artifact.rs and observed exit-2 refusal output from live release-negative-corpus run
  - Verified select_retained_loyalty_boundary_seam preserves fail-closed uniqueness (exactly 1 predicate_boundary seam in src/lib.rs, distinct from BOUNDARY_GAP_SEAM_ID, weakly_gripped before & after) while ignoring unchanged return_value seams
  - Verified both new tests are discriminating (positive + 2 negative controls for boundary selector; source-pinned refusal tokens against artifact.rs)
  - Author local proof reported green (rustfmt, cargo test -p xtask --bin xtask reports::release_negative::tests 27/27, check-changelog-fragments, check-pr-shape)
  - Advisory bots: Graphite AI Reviews & mergeability_check SUCCESS, GitGuardian SUCCESS (Devin Review pending at source-review time, CodeRabbit rate-limited)
proof_or_review_missing:
  - Hosted Ripr Rust Small Result qualification (pending merge-ready label)
  - Devin Review completion and final published-head REVIEW_READY after hosted qualification completes
affected_currentness_dimensions: all source dimensions verified on 696314a1845d1b8c13f272396d81581e77cbf51f; hosted CI pending
residual_assumptions_and_non_claims: Source-scope review only; does not claim hosted CI green or authorize merge before Ripr Rust Small Result, Devin completion, and final published-head review.
disposition: SOURCE_REVIEW_READY

@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

Verified exact head 696314a1845d1b8c13f272396d81581e77cbf51f against crates/ripr/src/agent/artifact.rs and xtask/src/reports/release_negative.rs:

  • DUPLICATE_COMMITMENT_REASON and FOREIGN_PRODUCER_DRIFT_REASON match ContentCommitmentRejection::Duplicate (artifact.rs:2205) and foreign_producer_refusal_with_schema (artifact.rs:588, #9632) without weakening either fail-closed exit-2 refusal.
  • select_retained_loyalty_boundary_seam filters unchanged_seams to seam_kind == "predicate_boundary" and preserves fail-closed uniqueness (exactly 1 src/lib.rs weakly_gripped loyalty boundary seam distinct from BOUNDARY_GAP_SEAM_ID), tolerating unchanged return_value seams while rejecting ambiguity or strengthened seams.
  • Both new unit tests are genuinely discriminating, and changelog.d/2824-release-negative-corpus-alignment.md complies with Internal / CI policy (#2824, #2379).

Full inspection record: #15764 (comment)

@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 1 potential issue.

Devin Review

Comment thread xtask/src/reports/release_negative.rs Resolved

@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

Re-verified exact head 8c5c011ba303c7ef51d4338401da8e4994f41778 (delta from 696314a1845d1b8c13f272396d81581e77cbf51f):

  • duplicate_commitment_and_producer_drift_tokens_match_ripr_artifact_gate now uses exact assert_eq!(FOREIGN_PRODUCER_DRIFT_REASON, "was produced by RIPR 0.0.0-corpus, but this consumer is RIPR", ...) addressing Devin Review thread PRRT_kwDOSiSx0c66CF8w (replied and resolved).
  • All unchanged source dimensions carry forward from #15764 (comment).

@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

Re-verified exact head 8b66c464c7ef6f939ba5265b55a938048bf1dce4 (delta from 8c5c011ba303c7ef51d4338401da8e4994f41778):

  • Replaced both expect_err(...) calls in retained_loyalty_boundary_selector_tolerates_unchanged_return_value_seams_and_rejects_ambiguity (xtask/src/reports/release_negative.rs:3815, :3834) with let Err(err) = ... else { return Err(...); };, clearing workspace Clippy (cargo clippy -p xtask --all-targets -- -D warnings PASS).
  • Full end-to-end cargo xtask release-negative-corpus --version 0.11.0 on 8b66c464c7ef6f939ba5265b55a938048bf1dce4 passed 28/28 cases (0 failures, 0 violations, including artifact-commitment-duplicate, pair-producer-version-drift, and receipt-unmoved-retained-target).
  • All unchanged source dimensions carry forward from #15764 (comment).

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 32b0929 Nov 21, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/release-negative-corpus-three-cases branch November 21, 2026 17:51
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