Repository navigation
Name expected version in legacy-artifact refusal - #9690
EffortlessSteven wants to merge 2 commits into
Conversation
…ATH ripr is recognizable (#9500 item b) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dpu1AbBoAbyviXbo3msrWD
|
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 16 minutes. View limit details
Comment |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the format! call now passes env!("CARGO_PKG_VERSION") as both the contract version and the --version anchor. The PR body explains this is deliberate: one in 'expected the current RIPR X contract' and one in the parenthetical hint.
- Confirm recovery commands elsewhere in the agent pipeline stay bare 'ripr' to keep ~60 emitted commands and goldens host-independent; the new parenthetical hint is the only place users see the version anchor.
- Confirm unit test for legacy recovery was extended to assert the new stale-PATH substring.
Refuted
- The expected version could drift from the shipped package version because it is manually duplicated in the test.; refuted because: Both production output and test expectation use compile-time env!("CARGO_PKG_VERSION") for the same package.
- The recovery guidance should embed the resolved executable path to guarantee correctness.; refuted because: That would introduce host-dependent output and affect the broader emitted-command surface; the current bounded diagnostic preserves stable commands while exposing the actionable stale-PATH cause.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dpu1AbBoAbyviXbo3msrWD
|
Closing as superseded: #9632 (already on main) delivers #9500 items (b) and (c), binding the refusal's recovery to the running binary and refusing a foreign Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- #9690 is already closed as superseded by #9632 per author comment; this message-only hint is redundant and no longer compiles against current main. No action requested on this PR.
- PR is a message-only hint that is now superseded by #9632 on main per author comment; landing this branch would not compile and the behavioral fix is already delivered elsewhere.
Verification questions
- Confirm substring-only oracle in legacy_repo_exposure_refusal test does not distinguish between a correctly templated message and a literal text leak; the two env!(CARGO_PKG_VERSION) anchors are only proven equivalent by compile-time, not by test assertion.
- Confirm pR is marked superseded by #9632 which (per the author comment) already delivers #9500 (b)+(c) and binds refusal recovery to the running binary, refusing foreign producer.version. Architecture: this branch's message-only hint is now redundant and the merge with main no longer compiles in the branch. Verify whether rebasing onto main keeps the test green or whether artifact.rs has already moved on, since the architecture is no longer a 'smallest complete fix' once #9632 lands.
- Confirm pR body claim that ~60 emitted commands and goldens would be affected by embedding a resolved path is unsourced; the touched surface (legacy_repo_exposure_refusal) appears to be the only format! site that names
ripras a recovery command in the agent module. - Confirm test pins the new 'a stale
riprearlier on PATH' substring, but only as an inclusion check inside the same text array. It does not assert that the substring is actually wired to a format! placeholder, so a future edit that drops the placeholder while leaving the literal text would still pass.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr --test agent_command_journey. This is a current failure, not a red/green witness.
Refuted
- Recovery guidance should embed the resolved executable path to guarantee correctness rather than relying on PATH resolution.; refuted because: Author intent and seeded refutation: embedding a resolved path would make ~60 emitted commands and their goldens host-dependent; the bounded diagnostic preserves stable commands while exposing the stale-PATH cause. This is a deliberate trade-off, not a defect.
- Recovery guidance should embed the resolved executable path to guarantee correctness.; refuted because: PR rationale: embedding a path would couple emitted commands to host filesystem; the bounded diagnostic keeps commands stable while naming the actionable stale-PATH cause. Within the touched surface, only this refusal formats a recovery command, so host-dep blast radius is bounded.
- env!() duplication risks the two format! args resolving to different versions; refuted because: Both args are macro-expanded at the same crate's compile time from the same CARGO_PKG_VERSION; there is no runtime drift surface. The duplication is in the format! argument list, not in any code path or persisted value.
- Two env!(CARGO_PKG_VERSION) insertions in the same format! could diverge and produce an internally inconsistent message (e.g., expected contract says 1.0, --version anchor says 1.1).; refuted because: Both call sites invoke the same compile-time env! macro on the same package (ripr); they resolve to the identical byte string at build time. Drift requires a manual edit replacing one env! with a literal, which the test substring check would still catch via the version token.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Summary
agent verifyrefusal for a legacy repo-exposure artifact now saysripr --versionmust report the expected version and that a staleriprearlier on PATH would write the same legacy artifact again. The recovery commands stay bareripr: embedding a resolved executable path would make roughly 60 emitted commands and their goldens host-dependent. Decision recorded here; no behavior change beyond the message.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #9500 item (b)
Acceptance delta (one sentence): The legacy-artifact refusal tells the user how to detect a stale PATH binary instead of silently looping on it.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/agent-recovery-command-binary
Stack parent or prerequisite PR (if any): none
Proof
cargo test -p ripr --lib agent::artifact(58 pass); the legacy recovery unit test now pins the new wording.goldens checkcannot run offline; hosted CI is the proof there.Generated by Claude Code