Repository navigation
chore(tools): align RIPR 0.10.0 finding IDs - #738
Conversation
|
Warning Review limit reached
Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughRIPR is upgraded from 0.8.0 to 0.10.0 across installation scripts, runtime expectations, install hints, tests, policies, suppressions, and release documentation. ChangesRIPR pin alignment
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the ripr tool version from 0.8.0 to 0.10.0 across various documentation files, installation scripts, and source code. The review identified a formatting issue in the documentation where indentation was lost, and provided a suggestion to improve test robustness by using CARGO_MANIFEST_DIR for file path resolution to avoid issues with varying working directories.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| bails when a core tool is missing or a pinned version mismatches | ||
| (src/main.rs `cmd_doctor`). The pin table covers tokmd (`1.12.0`), | ||
| cargo-allow (`0.1.8`), ripr (`0.8.0`), unsafe-review (`0.3.4`), | ||
| cargo-allow (`0.1.8`), ripr (`0.10.0`), unsafe-review (`0.3.4`), |
| let github_runner_script = std::fs::read_to_string("scripts/install-gh-runner-tools.sh")?; | ||
| let doctor_source = std::fs::read_to_string("src/post_run_utils.rs")?; | ||
| assert!(github_runner_script.contains("UB_REVIEW_RIPR_VERSION:-0.10.0")); | ||
| assert!(doctor_source.contains("STANDARD_IMAGE_RIPR_VERSION: &str = \"0.10.0\"")); |
There was a problem hiding this comment.
Relying on relative paths like scripts/install-gh-runner-tools.sh and src/post_run_utils.rs can make tests fragile if they are executed from a different working directory (for example, when running tests from a sub-crate or via certain IDE test runners). Using env!("CARGO_MANIFEST_DIR") ensures the paths are always resolved relative to the crate root.
| let github_runner_script = std::fs::read_to_string("scripts/install-gh-runner-tools.sh")?; | |
| let doctor_source = std::fs::read_to_string("src/post_run_utils.rs")?; | |
| assert!(github_runner_script.contains("UB_REVIEW_RIPR_VERSION:-0.10.0")); | |
| assert!(doctor_source.contains("STANDARD_IMAGE_RIPR_VERSION: &str = \"0.10.0\"")); | |
| let manifest_dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")); | |
| let github_runner_script = std::fs::read_to_string(manifest_dir.join("scripts/install-gh-runner-tools.sh"))?; | |
| let doctor_source = std::fs::read_to_string(manifest_dir.join("src/post_run_utils.rs"))?; | |
| assert!(github_runner_script.contains("UB_REVIEW_RIPR_VERSION:-0.10.0")); | |
| assert!(doctor_source.contains("STANDARD_IMAGE_RIPR_VERSION: &str = \"0.10.0\"")); |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7693b738a8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| language = "toml" | ||
| owner = "ub-review/core" | ||
| reason = "RIPR's durable suppression manifest; every entry carries owner and reason per the suppression-health contract, and suppressed findings stay visible as suppressed in the gate receipt. NOTE: ripr 0.8.0's suppressions schema does not support per-entry created/review_after fields (issue #586), so the dating obligation is carried by this receipt's review_after/expires rather than per-entry. The file's own header documents the rot risk (line-keyed ids break on code motion; >=6 rot instances recorded) and the upstream ripr-swarm#1053/#1054/#1055 work that would enable per-entry dating." | ||
| reason = "RIPR's durable suppression manifest; every entry carries owner and reason per the suppression-health contract, and suppressed findings stay visible as suppressed in the gate receipt. Content-addressed IDs follow code rather than source lines; the receipt's review_after/expires carries the dating obligation. Re-verify entries after semantic edits and RIPR upgrades." |
There was a problem hiding this comment.
Restore the line-keyed suppression caveat
When a suppressed finding's code moves, the current .ripr/suppressions.toml entries still use line-keyed selectors such as probe:src_config.rs:946:side_effect and the manifest itself still documents line-keyed rot. Replacing the policy receipt with “Content-addressed IDs follow code” makes the controlled-surface ledger bless those suppressions under a false premise, so future reviewers can skip the re-verification needed after line motion or RIPR upgrades; either migrate the suppression entries to the new stable IDs or keep the line-keyed warning here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- PR diff is a coordinated ripr 0.8.0→0.10.0 pin update across install scripts, doctor pins, xtask hint, test fixtures, policy rationale, and runner docs. No resizable buffer, ArrayBuffer/TypedArray detach/transfer, or active-view region code is touched. UB-active-view has no in-scope surface on this PR; absence of finding is consistent with the diff shape, not evidence of safety of the broader system.
- policy/allow.toml rationale was rewritten to drop the ripr 0.8.0 schema-limit reference and the rot-instance count, but no test pins the new wording or asserts the receipt's review_after is still 2026-07-22 / expires 2026-12-22, so a future silent rationale edit would not be caught by the test suite.
- Seeded gemini-code-assist comment at tests/cli.rs:38 suggested CARGO_MANIFEST_DIR-based path resolution over working-dir-relative reads. New test in this diff uses relative
std::fs::read_to_string(...)paths identical to the pattern the bot flagged; rebuttal relies on pre-existing tests/cli convention but does not adopt the suggestion or address it explicitly. - Sibling-path scan was bounded to the 12 files in this PR diff; no blanket full-tree ripR 0.8.0 residue scan was performed, so any 0.8.0 strings in unrelated historical docs/changelogs would not be surfaced here. A focused
rg -n '0\.8\.0' docs/ scripts/ src/ xtask/ tests/ policy/would close the gap. - Boundary placement is correct: pin lives in three named places that the new cli.rs cross-assert now locks together. Smallest-complete fix scope was honored (no threshold relaxation, no line-keyed suppressions). Residual risk: policy/allow.toml rewrite silently drops the ripr-swarm#1054 cross-module-test-paths and #1055 cfg(test)-skip tracking from the suppression note; those limitations still apply at 0.10.0 and were documented in UB-REVIEW-SPEC-0016 only.
- SPEC-0003 still calls the strict-zero gate a 'first production evaluation' framing tied to a specific run id; not a claim of current behavior, but the wording is now dated relative to the 0.10.0 bump. Doc-only, low priority.
Verification questions
- Confirm mirror-pair parity for the ripr pin moved together on both sides: scripts/install-{gh-runner,review-image}-tools.sh and src/post_run_utils.rs STANDARD_IMAGE_RIPR_VERSION all flipped to '0.10.0'. New regression test tests/cli.rs asserts the agreement.
- Confirm new regression assertion (tests/cli.rs:34-37) re-reads install-gh-runner-tools.sh and src/post_run_utils.rs relative to CWD, not CARGO_MANIFEST_DIR; gemini-code-assist flagged this. It does not affect active-view invariants but is the strongest failed objection to register for cross-lane coordination.
- Confirm tests/cli.rs review_image_tool_installer_uses_tool_dir_as_install_prefix asserts review-image script contains 0.10.0 and adds GitHub-runner-script + doctor cross-checks, but never reads scripts/install-review-image-tools.sh to verify its own RIPR_VERSION default.
- Confirm tests/cli.rs doctor_reports_advisory_stale_tool_fix still fakes ripr 0.7.9 row but now expects expected=0.10.0; comment string 'ripr 0.7.9' was the prior-delta sentinel, now arbitrary off-by-one. Test passes for any ripr 0.x.x != 0.10.0, weakening oracle.
- Confirm xtask/src/main.rs install_hint updates to 0.10.0 and unit tests assert install hint text, but no xtask test reads the live install scripts to assert cross-mirror parity like tests/cli.rs now does.
- Confirm content-addressed finding_id semantics are stated in policy/allow.toml and spec 0016 but no oracle test exercises actual cross-line-motion stability or that an edit changes the id deterministically.
- Confirm spec UB-REVIEW-SPEC-0005-sensor-tool-integration.md line 159 lost list indentation after the ripr bump (prior gemini review-comment dated 2026-07-10 still open; current diff reopens it because the surrounding line was edited in this same hunk).
- Confirm tests/cli.rs:33-35 reads scripts/install-gh-runner-tools.sh and src/post_run_utils.rs via relative paths; gemini-code-assist seeded-thread comment already flagged this as fragile to non-default CWD. Security impact is CWD-hijack oracle reliability, not a new vulnerability.
- Confirm new test
review_image_tool_installer_uses_tool_dir_as_install_prefixadds cross-file agreement assertion: install-review-image, install-gh-runner, and doctor constants all carry 0.10.0 — exactly the kind of mechanically-checkable mirror the lane prefers. - Confirm sPEC-0016 row 'suppressions schema rejects created/review_after' now cites
#586and drops the parenthetical(ripr 0.8.0). The pin is 0.10.0 in this PR; #586 is the local issue, but the upstream ripr schema contract still applies to 0.10.0 — local+upstream reference conflation risk for a reader scanning for 'which schema version'. - Confirm pR thread comments flag tests/cli.rs using relative paths scripts/install-gh-runner-tools.sh and src/post_run_utils.rs; the new regression assertion added in this PR extends that same pattern, so it would break from a non-repo-root cwd. Not a merge blocker but worth a runtime cwd sanity note in the proof lease.
Refuted
- Allocation-failure / Box::from(slice) / lifetime/aliasing objection against safe Rust string-literal edits.; refuted because: Repo lint posture forbids unsafe_code and denies unwrap/expect/panic; per UB ledger these objection classes are preset leakage on this repo and are not findings against this diff. Diff changes only &'static str pin constants, shell default expansions, and markdown prose.
- Worker/async/GC/detach/transfer boundary regression introduced by ripgrep version bump; refuted because: Diff is a version-string constant bump across 5 mirrored sites plus rationale/doc updates; no threading, async runtime, JS engine, transferable handle, or GC root is touched. The semantic change is RIPR's finding_id format (line-keyed→content-addressed), which is purely a tool-output schema shift, not a worker/hand-off concern.
- Stale 'ripr 0.7.9' string in the stale-drift fixture could be a leftover that misleads readers; refuted because: The fixture is a fake stdout payload; its purpose is to make expected=0.10.0 mismatch fire. The '0.7.9' token is now arbitrary but the assertion only checks expected, so the test still proves the drift path. Submaterial.
- The new cli.rs cross-file asserts could be fragile to running from a sub-crate or different working directory, per the seeded gemini-code-assist review comment.; refuted because: Tests do use std::fs::read_to_string with relative scripts/ and src/ paths from the crate root. However, the existing review_image_tool_installer_uses_tool_dir_as_install_prefix test already exercised relative paths (scripts/install-review-image-tools.sh) successfully, the PR's validation logged
cargo test --test cli review_image_tool_installer_uses_tool_dir_as_install_prefixgreen, and the test is an integration test in the top-level ub-review crate with CARGO_MANIFEST_DIR = repo root. Reproduction cost is low, but no failure evidence in this diff. - RIPR 0.10.0 content-addressed IDs could silently alias suppressions across semantically-distinct probes, enabling info-disclosure or DoS via stale entries.; refuted because: Diff narrows reason text, removes rot hazards, and PR body declares strict-zero ripr check passed. No new code-path receives IDs; this is policy/rationale reshaping, not a new exploitable trust boundary. Falls under preset-leakage banned list.
- UB-REVIEW-SPEC-0005 §159 lost the 2-space list indentation on the cargo-allow pin sentence after version bump; rest of list is indented.
- Hypothesis that bumping ripr 0.8.0→0.10.0 alters gate_outcome construction or reason-kind emission because the ripr sensor's badge-json schema could differ.; refuted because: Diff has no source change to gate_outcome assembly, reason-kind enum, or ripr sensor wiring in src/. Only pin strings and docs move; ripr remains the same subcommand
ripr check --diff --mode ready --format badge-jsonand threshold still reads counts.unsuppressed_exposure_gaps per SPEC-0003.
Proof results
- Focused build proof passed:
cargo check --workspace --all-targets --locked. - Focused build proof passed:
cargo doc --workspace --no-deps --locked.
Parked follow-ups
- Existing
command_version_matchesnegative case flipped from 'ripr 0.7.9' vs '0.8.0' to '0.9.9' vs '0.10.0'; still tests an adjacent version but no longer pins the prior boundary edge (was 0.7.9, now 0.9.9). - Gemini-code-assist flagged a lost 2-space indent on UB-REVIEW-SPEC-0005-sensor-tool-integration.md line 159 in the prior thread; the diff for that hunk shows no re-indent fix, so the formatting regression is parked rather than resolved.
- Seeded gemini review nit: SPEC-0005 line 159 lost 2-space indent on cargo-allow bullet; not gate-semantics but noted for re-pass to keep spec list aligned.
Evidence gaps
- Base+tests proof was unavailable for
cargo test --locked --package ub-review --test cli review_image_tool_installer_uses_tool_dir_as_install_prefixbecause the test-only patch did not apply cleanly. - Focused proof was skipped by budget for
cargo test --locked --package ub-review --test cli review_image_tool_installer_uses_tool_dir_as_install_prefix --; plan details are in artifacts. - Focused proof was skipped by budget for
cargo test --locked --package ub-review --test cli review_image_tool_installer_uses_tool_dir_as_install_prefix doctor_reports_advisory_stale_tool_fix_without_requiring_core_tools doctor_tool_install_hint_matches_pinned_tools; plan details are in artifacts. - Focused proof was skipped by budget for
cargo test --locked --package ub-review --test cli review_image_tool_installer_uses_tool_dir_as_install_prefix doctor_tool_install_hint_matches_pinned_tools doctor_reports_advisory_stale_tool_fix_without_requiring_core_tools doctor_require_core_tools_fails_stale_cargo_allow_version doctor_require_core_tools_fails_stale_actionlint_version; plan details are in artifacts.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/specs/UB-REVIEW-SPEC-0016-sensor-upstream-boundary.md`:
- Around line 86-88: Update the instability table row for the suppressions
schema issue so its upstream-issue reference uses the explicit `ripr-swarm#586`
format, matching the other rows and removing ambiguity.
In `@tests/cli.rs`:
- Around line 34-38: Move the RIPR version alignment assertions into a dedicated
test named for that regression, separate from
review_image_tool_installer_uses_tool_dir_as_install_prefix. In the new test,
resolve scripts/install-gh-runner-tools.sh and src/post_run_utils.rs using
env!("CARGO_MANIFEST_DIR"), matching the sibling path-resolution pattern, then
retain assertions against the expected RIPR version values.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 76b3b45a-b85f-4bae-9482-e49a423f2ff2
📒 Files selected for processing (13)
.ripr/suppressions.tomldocs/RUNNER_IMAGE.mddocs/specs/UB-REVIEW-SPEC-0003-intelligent-ci-gate.mddocs/specs/UB-REVIEW-SPEC-0005-sensor-tool-integration.mddocs/specs/UB-REVIEW-SPEC-0010-release-install.mddocs/specs/UB-REVIEW-SPEC-0016-sensor-upstream-boundary.mdpolicy/allow.tomlscripts/install-gh-runner-tools.shscripts/install-review-image-tools.shsrc/main.rssrc/post_run_utils.rstests/cli.rsxtask/src/main.rs
| | ripr content-addressed `finding_id`s follow code across line motion | `ripr-swarm#1093` | re-verify suppressions after semantic edits and RIPR upgrades | | ||
| | ripr cannot trace cross-module test paths (false-negatives) | `ripr-swarm#1054` | some predicate probes need suppression with the test name as oracle witness | | ||
| | ripr suppressions schema rejects `created`/`review_after` fields | (ripr 0.8.0) | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead (#586) | | ||
| | ripr suppressions schema rejects `created`/`review_after` fields | #586 | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead | |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
Inconsistent issue-reference format in the instability table.
Row 88's upstream-issue column reads bare #586, while every sibling row uses an explicit repo prefix (ripr-swarm#1093, ripr-swarm#1054, ripr-swarm#1055). Since this doc's entire purpose is routing defects to the correct upstream repo, an unprefixed reference is ambiguous about whether #586 lives in ripr-swarm or in this repo.
✏️ Suggested clarification
-| ripr suppressions schema rejects `created`/`review_after` fields | `#586` | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead |
+| ripr suppressions schema rejects `created`/`review_after` fields | ub-review#586 | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead |📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | ripr content-addressed `finding_id`s follow code across line motion | `ripr-swarm#1093` | re-verify suppressions after semantic edits and RIPR upgrades | | |
| | ripr cannot trace cross-module test paths (false-negatives) | `ripr-swarm#1054` | some predicate probes need suppression with the test name as oracle witness | | |
| | ripr suppressions schema rejects `created`/`review_after` fields | (ripr 0.8.0) | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead (#586) | | |
| | ripr suppressions schema rejects `created`/`review_after` fields | #586 | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead | | |
| | ripr content-addressed `finding_id`s follow code across line motion | `ripr-swarm#1093` | re-verify suppressions after semantic edits and RIPR upgrades | | |
| | ripr cannot trace cross-module test paths (false-negatives) | `ripr-swarm#1054` | some predicate probes need suppression with the test name as oracle witness | | |
| | ripr suppressions schema rejects `created`/`review_after` fields | `ub-review#586` | per-entry dating carried by the `non-rust-ripr-suppressions` receipt instead | |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/specs/UB-REVIEW-SPEC-0016-sensor-upstream-boundary.md` around lines 86 -
88, Update the instability table row for the suppressions schema issue so its
upstream-issue reference uses the explicit `ripr-swarm#586` format, matching the
other rows and removing ambiguity.
| assert!(script.contains("UB_REVIEW_RIPR_VERSION:-0.10.0")); | ||
| let github_runner_script = std::fs::read_to_string("scripts/install-gh-runner-tools.sh")?; | ||
| let doctor_source = std::fs::read_to_string("src/post_run_utils.rs")?; | ||
| assert!(github_runner_script.contains("UB_REVIEW_RIPR_VERSION:-0.10.0")); | ||
| assert!(doctor_source.contains("STANDARD_IMAGE_RIPR_VERSION: &str = \"0.10.0\"")); |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
Consider a dedicated test for the RIPR pin-alignment regression check.
This cross-file consistency assertion (comparing install-gh-runner-tools.sh and src/post_run_utils.rs against the RIPR version) is bundled into a test named for an unrelated concern (review_image_tool_installer_uses_tool_dir_as_install_prefix), and uses bare relative paths ("scripts/install-gh-runner-tools.sh", "src/post_run_utils.rs") instead of the env!("CARGO_MANIFEST_DIR") pattern used by the sibling assertions in the same function. A dedicated test would make the regression's intent explicit and keep path resolution consistent.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tests/cli.rs` around lines 34 - 38, Move the RIPR version alignment
assertions into a dedicated test named for that regression, separate from
review_image_tool_installer_uses_tool_dir_as_install_prefix. In the new test,
resolve scripts/install-gh-runner-tools.sh and src/post_run_utils.rs using
env!("CARGO_MANIFEST_DIR"), matching the sibling path-resolution pattern, then
retain assertions against the expected RIPR version values.
Summary\n\nAligns the live RIPR contract at 0.10.0 across the Rust doctor, GitHub and review-image installers, xtask remediation hints, test fixtures, policy rationale, and current runner documentation. Adds a regression assertion that the Rust pin and both installer defaults agree.\n\n## Why\n\nThe #733 gate ran RIPR 0.8.0 line-keyed finding IDs while local RIPR 0.10.0 emitted content-addressed IDs. The mismatched contracts cannot share suppressions safely.\n\n## Validation\n\n- cargo fmt --all -- --check\n- cargo test --test cli review_image_tool_installer_uses_tool_dir_as_install_prefix\n- cargo test --bin ub-review doctor_tool_install_hint_matches_pinned_tools\n- cargo test -p xtask\n- cargo test --workspace --all-targets --locked (667 passed, 1 ignored)\n- cargo clippy --workspace --all-targets --locked -- -D warnings\n- cargo xtask policy-check\n- python scripts\verify-bun-review-artifacts.py --self-test\n-
ipr check --root . --base origin/main --mode ready --format badge-json (strict-zero pass)\n\n## Scope\n\nDoes not add line-keyed suppressions, relax the strict-zero threshold, or change #733 release-resolution behavior. The GitHub gate remains the authoritative proof that the runner installs 0.10.0.