Skip to content

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

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.

Not changed

The vendored .agents/skills/ai-diff-reviewer/ skill and the reviewer pin in src/lib/ecosystem-pins.ts stay at v3.3.16. Site release automation refreshes both, and they are not edited by hand.

Test plan

  • pnpm run test: 481 pass
  • bash scripts/check-public-hygiene.sh: clean
  • 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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying deepworkplan-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9414c1a
Status: ✅  Deploy successful!
Preview URL: https://b251198e.deepworkplan-website.pages.dev
Branch Preview URL: https://ci-reviewer-turn-cap-45.deepworkplan-website.pages.dev

View logs

@xergioalex xergioalex added the Ready Trigger AI code review label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

AI review for 9414c1a — ✅ 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: 434.1k in (89% cached) · 4.8k out · est. $0.24 · 10 turns · 68s

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 one-line workflow fix that matches the AI Diff Reviewer v3.4.0 recommended grok ceiling; nothing blocking.

What changed

.github/workflows/self-review.yml adds agent-max-turns: '45' on the existing grok leg (DailybotHQ/ai-diff-reviewer@v3), with a short comment explaining why the risk-tier turn rows (8/20/30/40) were cutting reviews off before findings landed.

Verification

  • Inventory is complete (one file, patch embedded).
  • agent-max-turns is a documented Action input (v3 action.yml); for provider: grok it becomes --max-turns N. Value '45' parses as a whole number.
  • The installed Action checkout documents CLI_RECOMMENDED_AGENT_MAX_TURNS = 45 and cap-stop advice that literally tells consumers to set agent-max-turns: '45'. This PR is that recommendation.
  • CHANGELOG 3.4.0: with a native cap N the findings directive asks for a complete file by turn N − max(3, N//5) → 36 of 45, matching the new comment. An explicit agent-max-turns is a hard ceiling (no cap-hit retry raise); that is intentional once the ceiling is already at the recommended value.
  • Timeout math still fits: 45 × ~17 s ≈ 765 s under the CLI’s 900 s bound and the job’s timeout-minutes: 25.
  • budget-profile: auto remains for patch-byte / verifier / alias tiers; only the grok native turn cap is overridden. No new shell interpolation of PR content, no pull_request_target, no secrets, no trust-surface or installer-pipe changes.
  • Pin stays @v3 (moving major); vendored skill / ecosystem-pins.ts correctly left alone per AGENTS.md.

Residual notes (not findings)

  • The adjacent budget-profile: auto # … 8/20/30/40 turns gloss is slightly turn-centric now that grok turns come from agent-max-turns; the new comment block already clarifies the override. No need to churn it in this PR.
  • End-to-end confirmation still belongs to the unchecked test-plan item: the next Ready run’s step log should show --max-turns 45.

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

Ready Trigger AI code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant