Repository navigation
Set an explicit 80-turn cap for Documentation Unbloat - #422
Open
ns-jcavarroc wants to merge 1 commit into
Open
ns-jcavarroc wants to merge 1 commit into
ns-jcavarroc wants to merge 1 commit into
Conversation
Unbloat-docs sets no max-turns, so consumers compile it with the default cap. On a repo with heavyweight per-run conventions (ticket creation before edits), the agent spends roughly half the default budget before the first doc edit and then hits the cap mid-task: 8 consecutive daily runs ended in error_max_turns with no safe outputs emitted. 80 matches the budget other editing workflows in this repo's consumers use for the same class of task. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
unbloat-docs.mdsets nomax-turns, so the workflow compiles with the default turn cap. On consumer repos whose own conventions require ticket-creation ceremony before any edit work, that default is too small and the failure is deterministic.Evidence from a consumer repo (netSkope/fcs, daily schedule, gh-aw v1.2.2 / claude engine 2.1.317):
ERR_VALIDATION: Agent execution stopped: max-turns limit reached(error_max_turns, driver exit 1, 41/40 turns used)Fix
Set
max-turns: 80in the frontmatter (top-level field per the gh-aw syntax docs;multi-device-docs-tester.mdalready sets a turn cap, via the deprecatedengine.max-turnsalias).80 matches what consumers of the other editing workflows (perf-improver, claude-review, update-docs) already use for this class of task.
🤖 Generated with Claude Code