Repository navigation
fix(xtask): align release-negative-corpus cases with current artifact gates and two-seam boundary output (#2824, #2379) - #15764
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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 23 minutes. View limit details
|
|
Exact-head source inspection record for PR #15764 ( |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Verified exact head 696314a1845d1b8c13f272396d81581e77cbf51f against crates/ripr/src/agent/artifact.rs and xtask/src/reports/release_negative.rs:
DUPLICATE_COMMITMENT_REASONandFOREIGN_PRODUCER_DRIFT_REASONmatchContentCommitmentRejection::Duplicate(artifact.rs:2205) andforeign_producer_refusal_with_schema(artifact.rs:588,#9632) without weakening either fail-closed exit-2 refusal.select_retained_loyalty_boundary_seamfiltersunchanged_seamstoseam_kind == "predicate_boundary"and preserves fail-closed uniqueness (exactly 1src/lib.rsweakly_grippedloyalty boundary seam distinct fromBOUNDARY_GAP_SEAM_ID), tolerating unchangedreturn_valueseams while rejecting ambiguity or strengthened seams.- Both new unit tests are genuinely discriminating, and
changelog.d/2824-release-negative-corpus-alignment.mdcomplies withInternal / CIpolicy (#2824, #2379).
Full inspection record: #15764 (comment)
…ifact-gate parity test
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Re-verified exact head 8c5c011ba303c7ef51d4338401da8e4994f41778 (delta from 696314a1845d1b8c13f272396d81581e77cbf51f):
duplicate_commitment_and_producer_drift_tokens_match_ripr_artifact_gatenow uses exactassert_eq!(FOREIGN_PRODUCER_DRIFT_REASON, "was produced by RIPR 0.0.0-corpus, but this consumer is RIPR", ...)addressing Devin Review threadPRRT_kwDOSiSx0c66CF8w(replied and resolved).- All unchanged source dimensions carry forward from #15764 (comment).
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Re-verified exact head 8b66c464c7ef6f939ba5265b55a938048bf1dce4 (delta from 8c5c011ba303c7ef51d4338401da8e4994f41778):
- Replaced both
expect_err(...)calls inretained_loyalty_boundary_selector_tolerates_unchanged_return_value_seams_and_rejects_ambiguity(xtask/src/reports/release_negative.rs:3815,:3834) withlet Err(err) = ... else { return Err(...); };, clearing workspace Clippy (cargo clippy -p xtask --all-targets -- -D warningsPASS). - Full end-to-end
cargo xtask release-negative-corpus --version 0.11.0on8b66c464c7ef6f939ba5265b55a938048bf1dce4passed 28/28 cases (0 failures, 0 violations, includingartifact-commitment-duplicate,pair-producer-version-drift, andreceipt-unmoved-retained-target). - All unchanged source dimensions carry forward from #15764 (comment).
Summary
cargo xtask release-negative-corpus --version 0.11.0cases with currentriprartifact-gate andrepo-exposure-jsoncontracts without weakening any negative-corpus invariant:artifact-commitment-duplicate: expectContentCommitmentRejection::Duplicate(artifact contains duplicate content_sha256 commitments) instead of the stale serde duplicate-field wording.pair-producer-version-drift: expect the stronger#9632per-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.receipt-unmoved-retained-target: extractselect_retained_loyalty_boundary_seamto filterunchanged_seamstoseam_kind == "predicate_boundary"and require exactly one unchangedsrc/lib.rsweakly_grippedloyalty boundary seam (distinct fromBOUNDARY_GAP_SEAM_ID), so unchangedreturn_valueseams emitted alongside the boundary seam do not break the two-seam control.xtask/src/reports/release_negative.rspinning both the two-seam boundary selector (including ambiguity/strengthened negative controls) and the two refusal tokens againstcrates/ripr/src/agent/artifact.rs.Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
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-corpusaligns itsartifact-commitment-duplicateandpair-producer-version-driftrefusal tokens with currentriprfail-closed artifact gates (#9632) and selects the unique unchangedpredicate_boundaryseam inreceipt-unmoved-retained-targetalongside unchangedreturn_valueseams.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
fix/release-negative-corpus-three-casesStack 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.rschangelog.d/2824-release-negative-corpus-alignment.mdScope Classification
This PR is scoped by:
Production delta:
xtask/src/reports/release_negative.rs: updateDUPLICATE_COMMITMENT_REASON,FOREIGN_PRODUCER_DRIFT_REASON, andselect_retained_loyalty_boundary_seamfor the 3 failing release-negative-corpus cases.Evidence/support delta:
xtask/src/reports/release_negative.rs: addretained_loyalty_boundary_selector_tolerates_unchanged_return_value_seams_and_rejects_ambiguityandduplicate_commitment_and_producer_drift_tokens_match_ripr_artifact_gate.changelog.d/2824-release-negative-corpus-alignment.md:Internal / CIchangelog fragment.Single acceptance criterion:
release-negative-corpuscases (artifact-commitment-duplicate,pair-producer-version-drift,receipt-unmoved-retained-target) enforce the real currentriprfail-closed contracts and passreports::release_negative::tests.Non-goals:
crates/riprruntime behavior or weaken any negative-corpus invariant.docs/, workflows, or release-cut credentials/tags.Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
xtaskrelease-readiness negative-corpus harness only.Policy Impact
Ledger or exception notes:
Proof
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)cargo xtask release-negative-corpus --version 0.11.0replay (~30m debug run) deferred to release-readiness / hosted qualification; the 3 exact failure causes were observed directly in the priormainrun and pinned by the new unit tests againstcrates/ripr/src/agent/artifact.rsandselect_retained_loyalty_boundary_seam.Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
release-negative-corpusregressions (artifact-commitment-duplicate,pair-producer-version-drift,receipt-unmoved-retained-target) are aligned with currentriprartifact-gate andrepo-exposure-jsonbehavior, backed by unit tests.release-negative-corpusqualification pass until rerun on the candidate binary.Rollback
How can this PR be reverted safely?
git revertof the squash commit; touches onlyxtask/src/reports/release_negative.rsand onechangelog.d/fragment.Spec-Test-Code Traceability
docs/specs/RIPR-SPEC-0011-llm-work-loop.mdxtask/src/reports/release_negative.rs(reports::release_negative::tests, 27 tests)xtask/src/reports/release_negative.rs#9632foreign-producer refusal before pair comparisonStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
unchanged_seams.len() == 1check inrelease-negative-corpusreports::release_negative::testspin both the boundary selector and the refusal tokens againstcrates/ripr/src/agent/artifact.rscargo xtask release-negative-corpus