chore(workflows): remove AI credit budget caps on agentic workflows#1298
Merged
Conversation
Set safe-outputs.threat-detection.max-ai-credits to -1 on all 19 gh-aw workflows and recompile their lock files so both the agent and threat-detection stages run with unlimited AI credit budgets. Co-authored-by: Copilot <[email protected]>
43cec4e to
3e6db33
Compare
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.
Summary
Ensures every GitHub agentic workflow in
.github/workflowsruns with unlimited AI credit (token) budgets — no workflow can be cut off mid-run by a credit cap.The main-agent per-run budget (
max-ai-credits: -1) andmax-turnswere already unlimited across all 19 workflows. The only remaining cap was the threat-detection stage, which fell back to a default of 400 AI credits (GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400').This PR sets
safe-outputs.threat-detection.max-ai-credits: -1on all 19 workflow.mdfiles and recompiles their.lock.ymlfiles withgh aw compile. With-1, gh-aw omits themaxAiCreditsfield entirely from the AWF api-proxy config for both the agent and detection stages, so neither is credit-capped..mdsources updated (+2 lines each undersafe-outputs:)..lock.ymlfiles recompiled: the'400'detection default and its shell fallback are gone; detectionapiProxyno longer carries amaxAiCreditsbudget.-1is a schema-valid value forsafe-outputs.threat-detection.max-ai-credits(confirmed against gh-aw's frontmatter schema tests).Test plan
gh aw compile(v0.81.6): all 19 workflows compiled with 0 errors (remaining warnings are pre-existing and unrelated —/tmp/prompt refs, slash-command routing, discussion-category casing)..lock.ymlfile referencesGH_AW_DEFAULT_DETECTION_MAX_AI_CREDITSor the'400'default anymore.apiProxyconfig no longer contains amaxAiCreditsbudget.