Repository navigation
fix(agent): main does not compile: foreign-producer refusal uses an out-of-scope subject - #9709
EffortlessSteven wants to merge 1 commit into
Conversation
…l (main compile break) #9547 and #9632 each passed alone; together `subject` was out of scope. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MRo9VakugH8AnBjXiLfLL8
|
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 7 minutes. View limit details
Comment |
|
Closing as a duplicate: #9701 makes the same one-line fix to the E0425 break in Generated by Claude Code |
|
Reopened. I closed this as a duplicate of #9701 before #9701 had merged; the close bar counts a PR as superseded only once the successor has merged the same value. Both make the same one-line fix to the main compile break. Whichever goes green first merges; the other closes with a link to it. Generated by Claude Code |
|
The condition in6341784480 is now satisfied: #9701 merged13:34:28 UTC as7ed8a4af6df05a45dea9a19da36c65ca8b457af6, verified on main after successful exact-head required39781755670 (19113tests plus downstream gates). Independent comparison of currenta09250109bbb931f350c4f3dc9d10ab8f7b2d89c finds only the equivalent subject construction and duplicate compile-break changelog; no unique behavior, test or residual acceptance needs transfer. Closing as superseded now that the actual successor has landed, preserving this branch and review history. No extra qualification requested. |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm build-witness and full test proofs are out of scope for this lane; gh-runner profile disables build leases, so cargo check -p ripr --lib cannot be requested as focused proof here.
Refuted
- This change is merely a workaround and does not restore the intended compile behavior.; refuted because: It removes the undefined subject reference at the failing call site and passes an owned formatted subject reference to the existing function.
- The patch may be behaviorally under-tested because the reported cargo test result is not represented by a completed receipt.; refuted because: This remains a verification gap, not a demonstrated source defect; the proof broker should obtain the focused package test result.
- Fix should define a
let subject = format!(...);local to keep the existing two-line shape and avoid an inline allocation in the error path.; refuted because: #9632 itself used the formatted string directly as the refusal subject; reintroducing a named local adds no clarity, expands the diff, and duplicates the format string. The inline form is the smallest-complete fix and is text-identical to #9632's priorsubjectvalue. - Changelog entry overstates the fix as 'names the artifact by its label again' but the substituted string also includes the 'agent verify ... artifact' envelope from #9632, not a bare label.
- The substituted string could let a foreign producer slip through because the original &subject carried a different (non-string) identity that the refusal might have key-checked elsewhere.; refuted because: foreign_producer_refusal's signature and the surrounding code only use the value to format a user-facing refusal message; the producer-gate at line 716 is the sole check on identity.producer.version and is unchanged. The compiled refusal still names the wrong producer by its version string, so behavior is preserved.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Execution proof for the compile-fix and focused agent tests is not independently confirmed in the supplied receipts.
Summary
Before: main (dfb71a8) fails
cargo check -p ripr --libwithE0425: cannot find value subjectatcrates/ripr/src/agent/artifact.rs:719. #9547 (validate_artifact_identitywith alabelparameter) and #9632 (foreign-producer refusal that expects asubjectlocal) each passed alone and break together. Every PR's required CI on the merged tree is red until this lands (seen on #9700:ci-policy, Rust gates,Ripr Rust Small Result).After: the refusal is built with
format!("agent verify {label} artifact"), the same string #9632 used forsubject. Message text is unchanged.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Governing issue or accepted claim: #9500 (the refusal), combined-tree break of #9547 and #9632
Acceptance delta (one sentence): main compiles again and the foreign-producer refusal is unchanged.
Scope Classification
Proof
Claim Boundary
May claim: main compiles. Must not claim: full workspace tests re-run locally; hosted CI does that.
Rollback
Revert the commit.
Generated by Claude Code