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
{{ message }}
Repository navigation
Dependabot triage should avoid agent jobs when no work exists #14749
However, gh-aw records the job as started before its harness observes the noop. The daily guardrail then treats the empty accounting file as unknown and applies the max-ai-credits fallback.
Five consecutive no-work runs were each counted as 1000 AIC, which exhausted the 5000 daily guardrail.
$ gh run view 39141727797 --repo cli/cli --log | grep -E 'Computed run AIC.*(39137237820|39132745345|39128819878|39124342426|39120364428)|Completed AIC inspection window'| sed -E 's/^activation[[:space:]]+UNKNOWN STEP[[:space:]]+//'
[daily-workflow-aic] Computed run AIC: {"runId":39137237820,"aic":1000,"reason":"max_ai_credits_fallback"}
[daily-workflow-aic] Computed run AIC: {"runId":39132745345,"aic":1000,"reason":"scan_cache"}
[daily-workflow-aic] Computed run AIC: {"runId":39128819878,"aic":1000,"reason":"scan_cache"}
[daily-workflow-aic] Computed run AIC: {"runId":39124342426,"aic":1000,"reason":"scan_cache"}
[daily-workflow-aic] Computed run AIC: {"runId":39120364428,"aic":1000,"reason":"scan_cache"}
[daily-workflow-aic] Completed AIC inspection window: {"currentAIC":5000,"threshold":5000,"exceeded":true}
The generated workflow marks execution as started immediately before entering the harness here. The harness can then exit without invoking the model.
Proposed solution
Split scheduling and agent execution into separate workflows.
An ordinary GitHub Actions workflow should run hourly and perform the existing PR listing, CI readiness, and assessed-head checks. It should dispatch dependabot-triage with its existing pr_number input only when a PR needs assessment.
The expected output for this issue is:
No agentic workflow run is created when no Dependabot PR needs assessment.
Each ready, unassessed Dependabot PR is dispatched for triage.
The existing once-per-head-SHA behaviour remains unchanged.
The max-daily-ai-credits guardrail remains enabled for genuine agent runs.
Additional context
Lowering max-ai-credits, reducing the schedule frequency, or raising the daily limit would reduce the impact, but none fixes the false accounting path.
The underlying gh-aw behaviour should still be reported upstream. This repository-side split prevents that behaviour from blocking Dependabot triage while preserving the guardrail.
This is a clear, well-evidenced improvement request for the repo's own dependabot-triage agentic workflow (not a gh CLI command, so no command label applies). The reporter shows via gh aw audit logs that a run with an empty worklist (0 model invocations) still gets accounted as the max-ai-credits fallback (1000 AIC) by the daily guardrail, and that five such no-work runs exhausted the 5000 AIC daily cap — consistent with the earlier failure in #14739. The proposed fix (splitting the hourly schedule/pre-flight check into a plain Actions workflow that only workflow_dispatches the agent workflow when a PR actually needs assessment) is concrete and testable.
Supporting source evidence: the generated workflow writes a "state":"started" execution-evidence marker and begins the Copilot harness invocation before the harness can observe that the worklist is empty — see dependabot-triage.lock.yml lines 940-948 at fa92838be. This supports the reporter's premise that the current single-workflow design can't distinguish "no work" from a genuine (but cheap) agent run for AIC accounting purposes.
Suggesting enhancement. No duplicates found in open or closed issues; #14739 is a related failure instance (daily AIC guardrail tripped) but not a duplicate of this structural fix request.
Activity
cli-triage commentedon Oct 19, 2026
Classification: Enhancement
This is a clear, well-evidenced improvement request for the repo's own
dependabot-triageagentic workflow (not aghCLI command, so no command label applies). The reporter shows viagh aw auditlogs that a run with an empty worklist (0 model invocations) still gets accounted as themax-ai-creditsfallback (1000 AIC) by the daily guardrail, and that five such no-work runs exhausted the 5000 AIC daily cap — consistent with the earlier failure in #14739. The proposed fix (splitting the hourly schedule/pre-flight check into a plain Actions workflow that onlyworkflow_dispatches the agent workflow when a PR actually needs assessment) is concrete and testable.Supporting source evidence: the generated workflow writes a
"state":"started"execution-evidence marker and begins the Copilot harness invocation before the harness can observe that the worklist is empty — seedependabot-triage.lock.ymllines 940-948 atfa92838be. This supports the reporter's premise that the current single-workflow design can't distinguish "no work" from a genuine (but cheap) agent run for AIC accounting purposes.Suggesting
enhancement. No duplicates found in open or closed issues; #14739 is a related failure instance (daily AIC guardrail tripped) but not a duplicate of this structural fix request.