fix(roborev): gate fixer reminders on approval - #2277
Conversation
Surface failed reviews for read-only triage while disabling automatic turn and commit triggers. Require explicit approval before any fixer, edit, commit, or review closure. Refs shunkakinokisoftware-qnpv
|
|
Warning Review limit reached
Next review available in: 25 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds RoboRev agent-hook settings that surface the first failed review and require explicit approval before edits, fixer runs, commits, or review closure. Adds hydration tests for the thresholds and approval instruction. ChangesAgent hook approval
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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.
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 `@spec/roborev_hydrate_spec.sh`:
- Around line 52-58: Update the “agent hook approval gate” test to call
setup_hydrate, add the [agent_hook] values to template.toml, execute
config/roborev/hydrate.sh, and assert turn_threshold, commit_threshold, and
failed_review_threshold from the rendered ~/.roborev/config.toml rather than
reading the template directly.
- Around line 60-63: Strengthen the test named “requires explicit approval
without invoking the fixer skill” to assert the complete approval instruction,
including “ask the user for explicit approval,” “Do not edit files,” “run a
fixer,” “commit,” “close reviews,” and “before approval,” while retaining the
assertion that “roborev-fix” is absent.
🪄 Autofix
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: CHILL
Plan: Pro Plus
Run ID: 0f250096-5213-435d-8677-de75ee609ab7
📒 Files selected for processing (2)
config/roborev/config.template.tomlspec/roborev_hydrate_spec.sh
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Rename the shared repository input and install RoboRev's native hooks after hydrating the approval-gated config. Refs shunkakinokisoftware-qnpv
Remove redundant template-only checks in favor of the complete rendered-config assertion. Refs shunkakinokisoftware-qnpv
Prevent dot path segments from escaping the configured ghq repository root before installing native hooks. Refs shunkakinokisoftware-qnpv
Match the repository shfmt output so Nix format, flake, and test checks can evaluate the functional change. Refs shunkakinokisoftware-qnpv
Summary
ROBOREV_REPOS, with a temporary compatibility fallback forROBOREV_CI_REPOSReview flow
This is the host-side half of the two-speed setup. A paired application config PR maps native post-commit hooks to the quick panel and PR polling to the full panel. The result is a fast local review after commits and one synthesized full-panel GitHub comment on the PR.
Fixer actions remain approval gated: the agent may inspect and propose changes, but must ask before editing, running a fixer, committing, or closing findings.
Validation
shellspec spec/roborev_hydrate_spec.sh(12 examples, 0 failures)shellcheck config/roborev/hydrate.sh spec/roborev_hydrate_spec.shtaplo check config/roborev/config.template.tomlgit diff --check