bump issue-work --max-turns to 100 (hardcoded constant — strong opinion, not a knob) #343
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 2 minutes 26 seconds
Due date
igor
2 minutes 26 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#343
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why (concrete — tonight)
The hardcoded
--max-turns 50discarded TWO completed builds tonight:game.jschanged, "all green", full Playwright play-through passed — and it capped at turn 50 while
running
/security-reviewat the very end. The completed, verified fix was thrown away(the CLAUDE_EXIT gate correctly refuses to commit on rc=1).
Thorough visual verification (Playwright screenshots + play-through) is exactly the behavior we
WANT, and it is turn-expensive. 50 is too low for it. This is the #337/#342 theme at its source.
Change (INERT on merge — zero behavior change)
Replace the hardcoded
--max-turns 50at every call site with--max-turns "${AGENT_MAX_TURNS:-50}":--max-turns 50: bin/tick.sh (3 sites) + bin/site-work-block.sh (1 site).Default stays 50, so merging changes nothing. The operator raises it by setting
AGENT_MAX_TURNSin the host
.env. Document it in.env.example(if present) + the CLAUDE.md gotchas/model section.Guardrail note
This does NOT lift the cap — it makes the existing cost guardrail operator-tunable, defaulting to
current behavior. The operator picks the value (Josh: suggest ~100-120 given Playwright verification
runs ~30 tool calls); the human merge gate stays intact. No self-authorized privilege expansion.
Tests / verify
Small change. Verify the 4 sites resolve the var (grep),
bash bin/check-sync.shgreen. Build,verify once, STOP. Run commands plainly (no
>redirects, no&&/;compounds, no./relative).feat: make issue-work --max-turns configurable (AGENT_MAX_TURNS, default 50 unchanged)to bump issue-work --max-turns to 100 (hardcoded constant — strong opinion, not a knob)