You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cap the Code Simplifier agent loop — one scheduled run consumed 84% of the entire 5000 daily AIC budget and still hard-failed. On 2026-06-12 the Code Simplifier workflow ran for 32.8 minutes across 244 turns, consuming 12,306,086 tokens (4,219.8 AIC), then the agent job terminated in failure with no structured error and zero write actions produced. The run was pure read-only churn that delivered nothing and nearly exhausted the shared daily credit pool that other workflows depend on.
Unbounded agentic iteration. The audit classifies the run as Resource Heavy For Domain (high) and Many Iterations (244 turns), with ~50% of turns being data-gathering reducible to deterministic steps. The combination of an absent or too-high max-turns/per-run AIC cap and an exploratory prompt let the agent loop until the job process died, rather than exiting cleanly. This is distinct from the daily-guardrail activation blocks (parent Cluster A): here the agent itself ran away mid-execution.
Proposed remediation
Add a per-run hard ceiling to the Code Simplifier frontmatter: a conservative max-turns (e.g. 40–60) and a per-run AIC/token budget so a single run cannot approach the daily cap.
Ensure the agent exits gracefully (emit noop / partial result) when the ceiling is hit instead of letting the agent job crash with no structured error.
Move the ~50% deterministic data-gathering turns to pre-agent steps: writing to /tmp/gh-aw/agent/ per the DeterministicOps guide, shrinking the agentic surface.
Parent: #38807
Problem statement
Cap the Code Simplifier agent loop — one scheduled run consumed 84% of the entire 5000 daily AIC budget and still hard-failed. On 2026-06-12 the
Code Simplifierworkflow ran for 32.8 minutes across 244 turns, consuming 12,306,086 tokens (4,219.8 AIC), then theagentjob terminated in failure with no structured error and zero write actions produced. The run was pure read-only churn that delivered nothing and nearly exhausted the shared daily credit pool that other workflows depend on.Affected workflows and run IDs
Code Simplifier(engine: GitHub Copilot CLI 1.0.60, modelclaude-sonnet-4.6, scheduled)agentjobfailure, 32.8m, 244 turns, 12.3M tokens, 4,219.8 AIC, 0 safe outputs, 670 firewall requests / 0 blocked.Probable root cause
Unbounded agentic iteration. The audit classifies the run as Resource Heavy For Domain (high) and Many Iterations (244 turns), with ~50% of turns being data-gathering reducible to deterministic steps. The combination of an absent or too-high
max-turns/per-run AIC cap and an exploratory prompt let the agent loop until the job process died, rather than exiting cleanly. This is distinct from the daily-guardrail activation blocks (parent Cluster A): here the agent itself ran away mid-execution.Proposed remediation
Code Simplifierfrontmatter: a conservativemax-turns(e.g. 40–60) and a per-run AIC/token budget so a single run cannot approach the daily cap.noop/ partial result) when the ceiling is hit instead of letting theagentjob crash with no structured error.steps:writing to/tmp/gh-aw/agent/per the DeterministicOps guide, shrinking the agentic surface.Success criteria / verification
Code Simplifierrun completes (or cleanly no-ops) in well under its previous 32.8m / 244-turn profile.agentjob endssuccesswith an explicitnoop/partial-result safe output rather than a hardfailure.auditof the next scheduledCode Simplifierrun.Related to [aw-failures] [aw] Failure Investigator — 6h Review (2026-06-12 08:14 UTC) #38807