Repository navigation
Run work queue smoke every 6h with 3 tasks and add a failure and latency monitor - #79146
Conversation
…nitor - smoke-work-queue-dispatcher: every 6 hours, stages smoke-1..3 with one bounded dispatch (max_claims/max_dispatches 3); verifier requires 3 accepted launches - aw.json: smoke-work-queue pool concurrency 1 -> 3 (embedded Policy in the other queue dispatcher locks updates accordingly) - smoke-work-queue-monitor: read-only observer at 30 1-23/6 UTC; reads dispatcher/worker runs and work-queue state, opens a [WorkQueue Health] issue only on failure, close-older-issues retires the previous one - Installed Policy needs a quiescent `gh aw work-queue policy --from-config --epoch <new>` after merge before 3 Claims are granted
- smoke-work-queue-monitor: deterministic pre-agent step reads dispatcher/worker runs and jobs from the Actions API, writes /tmp/gh-aw/agent/smoke-benchmark.json and a run-summary table - Per task: dispatch latency, runner pickup, activation/agent/safe_outputs durations, task total (dispatcher start to verified Result); end to end: dispatcher start to last verified Result - Budgets: task total > 30 min or end to end > 45 min is a failure and opens the [WorkQueue Health] issue with a Benchmarks table; healthy noop line carries end-to-end and slowest task - Agent reads run facts from the file instead of list_workflow_runs; github actions toolset dropped
| Then a Benchmarks table with one row per worker run (run link, conclusion, | ||
| `dispatch_latency_s`, `pickup_s`, `jobs_s` activation, agent and | ||
| safe_outputs, `task_total_s`, over budget) and a final End to end row. | ||
| Put raw tool output in `<details>`. End with `**References:**` listing the |
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🚀 PR Specification Reviewer has started processing this pull request |
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
There was a problem hiding this comment.
🟡 Changes recommended
The monitor can execute untrusted PR build inputs with job credentials, while unauthorized queue reads and omitted delivery failures undermine its health checks.
9 open issues
Automatic PR checkout can execute fork code on the host · New Queue reads lack required permissions · New Completed work with failed delivery is omitted · New Shared concurrency group serializes worker runs · New Success fixtures still expect a single worker dispatch · New Dispatcher can block Policy installation during rollout · New Worker metrics include runs from prior cycles · New Queue reads time out before the agent limit · New Conflicting instructions for reference count · New
What changed in this PR
Expands gh-aw’s work-queue smoke coverage to three tasks every six hours and adds an observer for failures and slow cycles.
Changes:
- Stages and verifies three worker launches, with smoke-pool concurrency increased to three.
- Adds scheduled checks of dispatcher runs, workers, queue state, and backlog, reporting failures through issues.
- Computes task and end-to-end benchmarks against 30-minute and 45-minute budgets.
| File | Description |
|---|---|
.github/workflows/smoke-work-queue-monitor.md |
Defines health checks, benchmarks, and failure reporting. |
.github/workflows/smoke-work-queue-monitor.lock.yml |
Compiles the monitor into GitHub Actions jobs. |
.github/workflows/smoke-work-queue-dispatcher.md |
Runs every six hours and requires three accepted launches. |
.github/workflows/aw.json |
Raises smoke-pool concurrency from one to three. |
Review effort: Max (adaptive)
| engine: copilot | ||
| imports: | ||
| - shared/reporting.md | ||
| tools: |
| imports: | ||
| - shared/reporting.md | ||
| tools: | ||
| agentic-workflows: |
| step 1 found no run. | ||
| 4. Pool backlog. Call the same tool with | ||
| `{"operation":"state","repo":"${{ github.repository }}","pool":"smoke-work-queue","state":"<S>","limit":256}` | ||
| for S in `available`, `claimed`, `cancelled`, following `next_offset`. |
| "pools": { | ||
| "default": {}, | ||
| "smoke-work-queue": { "concurrency": 1 }, | ||
| "smoke-work-queue": { "concurrency": 3 }, |
| assert.equal(receipt.dispatches, 3, "Smoke requires exactly three worker dispatches"); | ||
| assert.equal(receipt.launches.length, 3); |
| nodes: ["smoke-1", "smoke-2", "smoke-3"].map(node), | ||
| dispatch: { pool: "smoke-work-queue", max_claims: 3, max_dispatches: 3 }, |
| for (const run of await runsOf("smoke-work-queue-worker.lock.yml")) { | ||
| const worker = await timing(run); | ||
| worker.dispatch_latency_s = secs(origin, run.created_at); | ||
| worker.task_total_s = secs(origin, worker.verified_at); |
| 3. Cohort Work. Call the `work-queue` tool from the agentic-workflows MCP with | ||
| `{"operation":"state","repo":"${{ github.repository }}","pool":"smoke-work-queue","graph":"smoke-work-queue:<DISPATCH_RUN>","limit":256}` | ||
| and follow `next_offset` until exhausted. `rows[]` mix `kind: "graph"`, |
| `dispatch_latency_s`, `pickup_s`, `jobs_s` activation, agent and | ||
| safe_outputs, `task_total_s`, over budget) and a final End to end row. | ||
| Put raw tool output in `<details>`. End with `**References:**` listing the | ||
| dispatcher run, up to two failed worker runs, and this run: |
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "da8352c9fecb3ecf5d2e93311732f9e69aa9d56a",
"kind": "requested",
"schema_version": "1",
"state": "73ee2cfb848f500189a45a4eb4c49295b801db8964e87d3f62390d5697f97ced",
"work": [
"0a5b71dd5f9bd0b0c79d1b246d2584cc75ab3668526fb22b00881171f14ea536",
"0bcd3e445b7da9f366788bd7e5a5014cf465364e1f2d8a619297bec7ed434995",
"2211d402793ffc957c541c9f466fb9fe60c98ea24a854b482346937bc34a27e0",
"3316f81b4fb22a58638f8d73e5e21ad617ad61fd910f400323f10fb8e9ad85ca",
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"694144627eabdcbc4d7cc1a0880b405e340f24f28c495d13ac28b4b0a3b8e02a",
"a15be655ae0bd411cd3617a7dbb22936ad37602c6110ea8ddba0f66ea3a8a8d1",
"b5ce10d550bb69d7050e189c85a1819c7305cca2e34b3dddad11a37355e107b2",
"cd0a00ad0db994717a5cb09f857d0a36e08aaa914feee7888c101c87edf1a72d",
"d04a7844e1963a8503d54ea22c2ef2217a59eb741cd80d79b3c336685741a3aa"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
| attempts: work.attempts, | ||
| max_attempts: queueState.policy?.retry?.max_attempts ?? null, | ||
| delivery: work.barrier, | ||
| cancellation_reason: work.cancellation_reason ?? null, |
| imports: | ||
| - shared/reporting.md | ||
| tools: | ||
| agentic-workflows: |



Runs the work-queue smoke loop every 6 hours with 3 tasks instead of 1 task daily, and adds an observer workflow that reports failures and slow cycles.
Changes
smoke-work-queue-dispatcher.md: scheduledaily around 14:00→every 6 hours(compiled21 */6 * * *). Stages three Work items (smoke-1,smoke-2,smoke-3, same payload) with one bounded dispatch (max_claims: 3,max_dispatches: 3).dispatch-workflow.maxis 3, andverify_smoke_dispatchrequires 3 accepted launches.aw.json:smoke-work-queuepool concurrency 1 → 3.daily-report-dispatcher,engine-conformance-dispatcherandeslint-factory-dispatcherembed the full Policy, so their lock files change too; the only difference is this pool's limits (logical_limit/native_limit1 → 3).smoke-work-queue-monitor.md: read-only observer at30 1-23/6 * * *, 31–90 min after each dispatcher slot.work-queueMCP tool) and the pool backlog.[WorkQueue Health] Smoke Work Queue Failures - …issue only when something failed.close-older-issues: truecloses the previous one; issues expire after 2 days.noop, withreport-as-issue: false.Benchmarks
A script step that runs before the agent reads dispatcher and worker runs and their jobs from the Actions API. It writes
/tmp/gh-aw/agent/smoke-benchmark.jsonand a table to the run summary on every run. The agent reports these numbers as given and does no arithmetic of its own.verify_smoke_completionsucceeded)A task total over 30 min or end to end over 45 min counts as a failure and goes into the issue's Benchmarks table. A failed API read is recorded as
errorand reported as a failure, never as healthy.Required after merge
The installed Policy does not change with
aw.json. While the queue has no unfinished Work, reservations or delivery barriers, a maintainer runs:Until then, each cycle admits 3 Work items but grants 1 Claim. The dispatcher check fails and the monitor reports it. That failure is expected.
Security review
smoke-work-queue-monitor.lock.yml:docker/setup-buildx-action@f87e5991…(v4.4.1) anddocker/build-push-action@c3c9e263…(v7.4.0). They come from the dev-modeagentic-workflowstool, which builds the gh-aw MCP image locally withpush: false. Otheragentic-workflowsusers such asagent-job-health.lock.ymlalready use the same pins.contents: read,actions: read,copilot-requests: write. Its only writes are thecreate-issueandnoopsafe outputs. It has notools.work-queue(noGH_AW_WORK_QUEUE_ROLEin the lock) and cannot submit, dispatch or finish Work.Validation
make agent-report-progresspassed: 367/367 workflows compiled, lock files in sync, impacted tests pass.work_queue_intents.cjsproduced 2 intents and 3 distinct nodes.verify_smoke_dispatchbody exits 0 for 3 accepted launches, and 1 withSmoke requires exactly three worker dispatchesfor 2.Risks
work-queueMCP tool, which runsgh aw work-queue state. Run locally, that command used the CPU flat out and did not finish within 900 s, against the monitor's 15-minute limit. I haven't measured it in Actions. If it times out there, the issue reports a "Queue read" failure every cycle. The fallback istools.work-queue: truewithwork_queue_read, whichdaily-work-queues-reportalready uses.[work queue] <id>issue, so this goes from 1 to 12 per day.