Skip to content

Pin rewritten producer.tool refusal in agent verify - #9739

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/foreign-version-currentness-tests
Oct 22, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/foreign-version-currentness-tests

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • Adds repo_exposure_validation_rejects_rewritten_producer_tool in agent/artifact.rs: an artifact whose producer.tool is rewritten is refused with the producer-identity error whether the version is genuine or forged, so the identity gate is shown to run before the version-equality gate. Test only; no production change.
  • Records the decision on agent: residual gaps in the running-binary recovery command and producer-version refusal (#9632 review) #9665 item 4 (version check before root check in currentness.rs): ordering stays, since both outcomes are non-assignable stop-and-refresh states.

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: #9665 (the producer.tool rewrite test from the issue comment)
Acceptance delta (one sentence): A rewritten producer.tool has a regression test showing the producer-identity gate refuses it, with a genuine or forged version.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/foreign-version-currentness-tests
Stack parent or prerequisite PR (if any): none

Proof

  • cargo test -p ripr --lib rewritten_producer_tool passes on the real code.
  • Negative experiment, local: with the identity.producer.tool != "ripr" condition replaced by false, the test FAILS with foreign producer tool with version 0.11.0 was accepted; the condition was restored afterwards.
  • Local goldens check cannot run offline; hosted CI is the proof there.
  • Static evidence only; no runtime claim.

Generated by Claude Code

@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 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 108 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: f5708a66-101f-4903-8f05-cdfa648692a4
📥 Commits

Reviewing files that changed from the base of the PR and between f76f8aa and fa820e2.

📒 Files selected for processing: 2
  • changelog.d/9665-producer-tool-rewrite-test.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.

Reporter summary

No lane found a code-level defect: the added test meaningfully proves that foreign producer.tool is rejected by the identity gate for both genuine and forged versions, and the changelog claim matches that scope. However, the late cargo-test receipt timed out after 900 seconds and no independent targeted-test or hosted-CI success receipt is supplied, so the PR body's execution claim remains unverified; the separate ripr exit-code-2 failure is also undiagnosable without its diagnostic. Given this test-only change and its discriminating logic, the direction is conditional rather than changes requested, pending successful execution evidence.

@EffortlessSteven
EffortlessSteven merged commit 7b9e3c6 into main Oct 22, 2026
49 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/foreign-version-currentness-tests branch October 22, 2026 17:00
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