Skip to content

ci: cap the grok self-review at 45 turns - #112

Open
xergioalex wants to merge 1 commit into
mainfrom
ci/reviewer-turn-cap-45
Open

xergioalex wants to merge 1 commit into
mainfrom
ci/reviewer-turn-cap-45

Conversation

@xergioalex

Copy link
Copy Markdown
Member

Summary

Adds agent-max-turns: '45' to the grok self-review (.github/workflows/self-review.yml). The workflow pins the moving @v3, which already points to AI Diff Reviewer v3.4.0. The pin doesn't change.

Why

The risk-tier turn rows (8/20/30/40) stopped grok reviews before they wrote findings, and the review came back incomplete. With v3.4.0 the Action tells grok its budget and asks for findings by turn 36 of 45. 45 turns at about 17 s each still fit the CLI's 900 s timeout and the job's 25-minute limit. The value comes from the reviewer team's consumer upgrade guide.

Not changed

  • The vendored .agents/skills/ai-diff-reviewer/ skill: auto-release refreshes it to the latest upstream tag.
  • The skill (skills/) itself: nothing installed changes.

Release

This changes only repository infrastructure. If a pack release is not wanted, put [skip release] in the squash-merge commit. That choice is yours.

Test plan

  • bats tests/: 977 pass
  • Workflow YAML parses
  • The next ready review shows --max-turns 45 in the step log

🤖 Generated with Claude Code

The risk-tier rows (8/20/30/40) stopped reviews before they wrote
findings. The Action (@V3, now v3.4.0) tells grok the budget and asks
for findings early; 45 turns still fit the 900 s CLI timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

AI review for 2b76d4b — ✅ done

View review →

Highest severity: none

Verifier: 0 checked · 0 verified · 0 downgraded · 0 refuted · 0 unverified · 0 skipped — grok-4.5 (economy), 0s

Strictness gate: ✅ highest severity none ≤ critical threshold

0 inline comment(s) attached.

Usage: 326.4k in (81% cached) · 4.4k out · est. $0.23 · 6 turns · 54s

Iteration-Aware Review: gen 1, round 1, policy=first-pass-exhaustive (first_review) — 0 surfaced.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code review — 0 finding(s): 0 critical · 0 warning · 0 info

Check: ✅ passing — strictness block-on-critical: highest severity none ≤ critical threshold

No findings posted inline.

Summary

Verdict

Looks good — a focused, correct fix for incomplete grok self-reviews. No blocking issues.

What changed

.github/workflows/self-review.yml sets agent-max-turns: '45' on the existing DailybotHQ/ai-diff-reviewer@v3 grok leg. budget-profile: auto stays.

Verification

  • Input is real. Vendored setup reference (.agents/skills/ai-diff-reviewer/setup/reference.md) documents agent-max-turns as the native grok CLI --max-turns cap. When it is unset, budget-profile: auto forwards the tier rows (8/20/30/40) as that cap — the failure mode this PR names. Setting 45 is the documented override.
  • Composes with budget-profile: auto. Tier still drives patch-size and verifier sampling; only the CLI turn ceiling moves. Comments in the hunk explain that split.
  • Timeouts. Job timeout-minutes: 25; comment math (~17 s × 45 ≈ 765 s) fits the grok CLI’s 900 s bound. YAML parses.
  • Security / GHA hygiene. No new run: blocks, no PR-title/body interpolation, no pull_request_target, no secret surface change. Label-once + honest XAI_API_KEY skip unchanged.
  • Ship boundary. Dev-infra only (.github/). Skill pack, dogfood, and version fields untouched.
  • M5–M6 (addon/CI skim): self-review stays label-gated and non-required; local AI Diff Reviewer path and zero-addon baseline unchanged. Pass.

Notes (no inline findings)

  • .github/docs/WORKFLOWS.md still lists only verifier / budget-profile as the explicit v3 knobs. Optional follow-up to mention agent-max-turns: 45 so the workflow reference matches the file.
  • Floating @v3 is pre-existing; this PR correctly does not retouch it. The “findings by turn 36” prompt contract is a v3.4.0+ Action behaviour; even on an older v3.x the explicit CLI cap still fixes the incomplete-review cut-off.
  • After merge, the unchecked test-plan item (step log shows --max-turns 45 on the next ready run) is the right smoke check.

Recommendation: approve


Check status: ✅ passing — strictness block-on-critical, highest severity in effect none: highest severity none ≤ critical threshold.

This line is written by the reviewer runtime after the gate ran and matches the check conclusion and the tracking comment. Any recommendation above is the model's advisory opinion, not the gate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant