Skip to content

fix(check): probe a relocated RIPR_CACHE_DIR base in the first-check gitignore note (#11879) - #13348

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/first-check-note-relocated-cache
Nov 6, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/first-check-note-relocated-cache

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #11879 (follow-up to #11937)
Acceptance delta (one sentence): The first-check .gitignore note probes the same artifact roots ripr doctor does, so a RIPR_CACHE_DIR base relocated inside the repository is named when uncovered and silent when covered, instead of only the default target/ripr being checked.

Change

  • cli/commands/doctor.rs: first_check_artifact_ignore_note passes analysis::seam_cache::cache_base_dir(root) to ripr_artifact_roots instead of the hardcoded root.join("target/ripr/cache"). Doc comment updated (it said a relocated cache is doctor's to report).
  • tests/check_first_run_ignore_hint.rs: new relocated_cache_base_is_probed_and_named drives the real binary with RIPR_CACHE_DIR set. With /target/ripr/ covered and the relocated base uncovered it expects the relocated entry and no /target/ripr/; covering the base silences the note.
  • Allowlist count for the test file's Command::new raised 2 to 3; changelog fragment added.

Proof

  • cargo test -p ripr --test check_first_run_ignore_hint: 4 passed (3 existing plus the new one).
  • cargo xtask precommit: exit 0.

Not established

Hosted exact-head CI. A [perl].cache_dir outside target/ripr is still not probed here (check does not load that config), which only means silence, never a wrong note.



Generated by Claude Code

…gitignore note (#11879)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzTJXcxAMJwvGWPVs4i
@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 Nov 6, 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 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 155 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: 8053269c-32a4-4784-b5fe-adb4eb04394c
Commits

Reviewing files that changed from the base of the PR and between 1267b11 and be21fca.

Files selected for processing: 4

  • changelog.d/11937-first-check-note-relocated-cache.md
  • crates/ripr/src/cli/commands/doctor.rs
  • crates/ripr/tests/check_first_run_ignore_hint.rs
  • policy/process_allowlist.d/11879-first-check-ignore-hint.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 6, 2026 00:40

Copy link
Copy Markdown
Member Author

Independent read-only review of be21fca: no blocking findings. It checked the fix, relative and out-of-repo RIPR_CACHE_DIR handling, the tracking probe, the other caller (check.rs), the allowlist count (3) and the changelog fragment. It also confirmed the new test fails before the fix.

Two non-blocking notes, left as is:

  • The relocated-base note says "Add this line" but lists one entry per cache layer. This is the existing wording doctor already uses.
  • The test asserts the prefix of the first per-layer entry only, and does not cover a Cargo project with a relocated base.

Local proof: check_first_run_ignore_hint 4 passed, cargo xtask precommit exit 0. Applying merge-ready now.


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!

Copy link
Copy Markdown
Member Author

REVIEW_READY

Head be21fca6a6fcd94f46f7603eae688b6658ed9d70. A fresh-context read-only reviewer inspected the full diff, the semantic owner (ripr_artifact_roots, cache_base_dir, anchored_at_root), the other caller (check.rs), the tracking probe and untrack path, the test oracle (fails before the fix), the allowlist count and the changelog fragment. No blocking findings. Non-blocking, unchanged: the relocated-base note lists one entry per cache layer under "Add this line" (existing doctor wording), and the test asserts only the first per-layer prefix.

Local proof: check_first_run_ignore_hint 4 passed, cargo xtask precommit exit 0. Hosted proof is pending.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

Head be21fca6a6fcd94f46f7603eae688b6658ed9d70. A fresh-context read-only reviewer inspected the full diff, the semantic owner (ripr_artifact_roots, cache_base_dir, anchored_at_root), the other caller (check.rs), the tracking probe and untrack path, the test oracle (it fails before the fix), the allowlist count and the changelog fragment. No blocking findings. Non-blocking and unchanged: the relocated-base note lists one entry per cache layer under "Add this line" (existing doctor wording), and the test asserts only the first per-layer prefix.

Local proof: check_first_run_ignore_hint 4 passed, cargo xtask precommit exit 0. Hosted proof is pending.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit be21fca6a6fc · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=1267b11f52a0a3b4311862f83bb547876fc4e3d2 findings=3 gaps=0 exposed=2 static_unknown=1
static_unknown|crates/ripr/src/cli/commands/doctor.rs:2941|let roots =|missing=-|test=t1|id=probe:crates_ripr_src_cli_commands_doctor.rs:static_unknown:b1b91a66
t1=crates/ripr/src/output/doctor.rs:3709 a_directory_named_like_a_file_still_passes_root_directory unknown miss=no_assertion
stop=ripr cannot tell from reading the code whether tests would notice; the documented route is a co-located test that reaches and observes the changed behavior; static advisory, not runtime proof
limits=static_unknown:1
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base 1267b11f52a0a3b4311862f83bb547876fc4e3d2 --committed --mode draft probe:crates_ripr_src_cli_commands_doctor.rs:static_unknown:b1b91a66

Took 34s.

@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 one verification check before upstream.

Verification questions

  • Confirm the source-route scan found no additional changed caller of first_check_artifact_ignore_note, but this is not broad proof that no other public entry point bypasses the shared root construction.

Evidence gaps

  • Exact-head cargo-test completion is not evidenced by this packet's sensor receipt, but seeded thread evidence reports the focused test suite passing 4 tests.
  • Exact-head automated proof remains incomplete because ripr failed and the cargo-test receipt is absent, despite seeded local and prior-review reports of passing focused tests.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 2a86f7c into main Nov 6, 2026
127 of 145 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/first-check-note-relocated-cache branch November 6, 2026 03:02
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