Skip to content

Name expected version in legacy-artifact refusal - #9690

Closed
EffortlessSteven wants to merge 2 commits into
mainfrom
claude/agent-recovery-command-binary
Closed

EffortlessSteven wants to merge 2 commits into
mainfrom
claude/agent-recovery-command-binary

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • The agent verify refusal for a legacy repo-exposure artifact now says ripr --version must report the expected version and that a stale ripr earlier on PATH would write the same legacy artifact again. The recovery commands stay bare ripr: 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

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-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.
  • Local precommit did not finish within the sandbox limit and goldens check cannot run offline; hosted CI is the proof there.
  • Static evidence only; no runtime claim.

Generated by Claude Code

…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
@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 Oct 22, 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 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 105 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: 808e39ad-a044-45ef-9e05-53205c8c863b
📥 Commits

Reviewing files that changed from the base of the PR and between dfb71a8 and c1cba7b.

📒 Files selected for processing: 2
  • changelog.d/9500-agent-verify-stale-path-hint.md
  • crates/ripr/src/agent/artifact.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions 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.

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

Copy link
Copy Markdown
Member Author

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 producer.version. My message-only hint is redundant with it, and the merge with main no longer compiles in my branch.


Generated by Claude Code

@github-actions github-actions 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.

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 ripr as a recovery command in the agent module.
  • Confirm test pins the new 'a stale ripr earlier 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.

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.

2 participants