fix: add input validation for --max-iterations and --completion-promise args (GH#3816)#3832
fix: add input validation for --max-iterations and --completion-promise args (GH#3816)#3832marcusquinn wants to merge 1 commit intomainfrom
Conversation
…se args (GH#3816) Address remaining unactioned CodeRabbit review feedback from PR #14: - ralph-loop-helper.sh run_v2_loop: validate --max-iterations is a positive integer, --completion-promise is non-empty, --max-attempts is a positive integer. Previously these accepted any value silently. - ralph-loop-helper.sh setup_loop: add matching validation for --max-iterations and --completion-promise for consistency. - quality-loop-helper.sh: add --max-iterations validation to preflight_loop, pr_review_loop, and postflight_loop. All now reject non-positive-integer values with a clear error message instead of silently accepting them. Other PR #14 findings (aider duplicate prompt, || true hiding failures, missing tool existence check, invalid --monitor-duration, relative git_common_dir) were already fixed in subsequent PRs #35, #104, #111, #396, #480.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sun Mar 8 01:30:44 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
|
@coderabbitai review Review bots were rate-limited when this PR was created (affected: coderabbitai gemini-code-assist). Requesting a review retry. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
🧠 Learnings used✅ Actions performedReview triggered.
|
|
This PR appears orphaned — no active worker process found and no activity for 14+ hours. Flagging for re-dispatch. If work is still in progress, remove the |
|
Merging via pulse supervisor.
|
|
Merge conflict detected — this PR cannot be auto-merged. The branch needs to be rebased onto main. Daily PR cap reached for today; will retry dispatch tomorrow. |
|
Closing — this PR has merge conflicts and touches too many files (blast radius issue, see t1422 / GH#3955). The underlying fixes will be re-created as smaller PRs (max 5 files each) to prevent conflict cascades. Root cause: quality-debt batch PRs touching 10-69 files each created a conflict cascade where each merge invalidated the next PR's base. New rules cap quality-debt PRs at 5 files max and enforce serial merge ordering. |



Summary
--max-iterations(must be positive integer) and--completion-promise(must be non-empty) across all loop helper argument parsersralph-loop-helper.sh(run_v2_loop,setup_loop) andquality-loop-helper.sh(preflight_loop,pr_review_loop,postflight_loop)--max-attemptsinrun_v2_loopas a positive integerContext
Addresses the remaining unactioned CodeRabbit review feedback from PR #14. Of the 6 original findings:
postflight_loopsilently ignores invalid--monitor-durationaiderbranch sends prompt twicerun_external_loopmissing arg validationget_repo_namefails in subdirectoriesrun_external_loopdoesn't verify tool existsCloses #3816