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
The hourly agentic workflow can finish through its pre-flight noop without invoking a model. However, its successful agent job then has no AIC accounting, so the daily guardrail conservatively charges the configured maximum.
This PR moves polling into a traditional GitHub Actions workflow and runs the deterministic check every 30 minutes. It shares the worklist script with the agentic workflow, then dispatches one agentic run for each ready, unassessed Dependabot PR.
The agentic workflow keeps its manual workflow_dispatch entry point and repeats the worklist check before starting the model. This closes scheduling races and preserves the existing input validation, CI gate, head-SHA deduplication, and comment-only security boundary.
How did you test this change?
I ran the shared gate against the live cli/cli repository. It found #14716, matched the existing assessment to its current head SHA, and wrote an empty worklist.
I did not perform a live dispatch because the new scheduler is not present on the default branch before this PR merges.
I queried each active workflow-run state used by the duplicate guard. There were no queued, running, waiting, or concurrency-pending Dependabot triage runs.
The scheduler has actions: write only to create workflow_dispatch events. Its other permissions remain read-only.
The deterministic poll runs at minutes 9 and 39, reducing recommendation latency without spending AIC on empty checks.
The shared script keeps scheduler selection and agent pre-flight validation aligned.
The scheduler skips PRs with queued, running, waiting, or concurrency-pending triage runs. A broad manual run pauses scheduler dispatches until it finishes.
Each PR gets a separate agentic run, so job-discriminator includes pr_number to keep generated conclusion jobs independent.
The agentic workflow still writes noop for stale, pending, assessed, or invalid manual requests.
Regeneration preserves the existing download-artifactv8.0.2, upload-artifactv7.0.2, and setup-nodev7.1.0 upgrades.
Notes for reviewers
Start with .github/workflows/dependabot-triage-schedule.yml, then read .github/scripts/dependabot-triage.sh. The agentic source calls its select subcommand and removes only its schedule trigger.
github/gh-aw#70252 tracks the underlying accounting gap. This PR avoids the gap without changing the existing daily AIC guardrail.
Authorship and follow-up
Who wrote this:
A human wrote it.
An agent wrote it under close human direction.
An agent wrote it independently, and no human has guided the implementation beyond the initial prompt.
Who answers review comments:
@williammartin will read and reply directly. Name the account.
An agent will draft replies and @username will read them before they are posted.
🛑 Requirement: Include concurrency-pending runs in the duplicate guard
The downstream workflow still serializes runs through its workflow-wide concurrency group (.github/workflows/dependabot-triage.lock.yml:82-84). Runs waiting for that group have status pending, which this loop omits. If a batch spans the next poll, the scheduler can dispatch those PRs again; it also misses a pending broad manual run. After the original assessments post, duplicate runs can take the no-work path and recreate the maximum-credit fallback charges this PR addresses.
Include pending in the queried statuses so the existing title checks cover concurrency-blocked runs too.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Failed comment lookups can dispatch unnecessary agent runs and recreate no-work credit charges.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Fail selection when assessment comment lookup errors
.github/scripts/dependabot-triage.sh:96
🛑 Requirement: Fail selection when assessment comments cannot be read
The trailing fallback hides comment API failures as well as missing markers. In the new scheduler, a failed lookup therefore makes an already-assessed PR eligible for dispatch. If the agent's repeated lookup succeeds, the unnecessary run takes the noop path and can incur the maximum-credit fallback this PR aims to avoid. Fetch comments in a separate assignment that stops selection on failure, and tolerate missing markers only after a successful response.
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
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.
Description
Fixes #14749
The hourly agentic workflow can finish through its pre-flight
noopwithout invoking a model. However, its successful agent job then has no AIC accounting, so the daily guardrail conservatively charges the configured maximum.This PR moves polling into a traditional GitHub Actions workflow and runs the deterministic check every 30 minutes. It shares the worklist script with the agentic workflow, then dispatches one agentic run for each ready, unassessed Dependabot PR.
The agentic workflow keeps its manual
workflow_dispatchentry point and repeats the worklist check before starting the model. This closes scheduling races and preserves the existing input validation, CI gate, head-SHA deduplication, and comment-only security boundary.How did you test this change?
I ran the shared gate against the live
cli/clirepository. It found #14716, matched the existing assessment to its current head SHA, and wrote an empty worklist.I did not perform a live dispatch because the new scheduler is not present on the default branch before this PR merges.
I queried each active workflow-run state used by the duplicate guard. There were no queued, running, waiting, or concurrency-pending Dependabot triage runs.
Key points
actions: writeonly to createworkflow_dispatchevents. Its other permissions remain read-only.9and39, reducing recommendation latency without spending AIC on empty checks.job-discriminatorincludespr_numberto keep generated conclusion jobs independent.noopfor stale, pending, assessed, or invalid manual requests.download-artifactv8.0.2,upload-artifactv7.0.2, andsetup-nodev7.1.0upgrades.Notes for reviewers
Start with
.github/workflows/dependabot-triage-schedule.yml, then read.github/scripts/dependabot-triage.sh. The agentic source calls itsselectsubcommand and removes only its schedule trigger.github/gh-aw#70252 tracks the underlying accounting gap. This PR avoids the gap without changing the existing daily AIC guardrail.
Authorship and follow-up
Who wrote this:
Who answers review comments: