Daily Report Portfolio
This example replaces independent report schedules with one dispatcher. Each day it admits three report tasks to a work queue; workers publish GitHub Discussions for their assigned reporting windows.
The dispatcher source and shared worker instructions are the complete implementation. They require deployed workers and approved dispatch targets; compiling alone does not provision the queue or launch reports.
Report workers
Section titled “Report workers”| Worker source | Report |
|---|---|
| daily-compiler-quality | Compiler quality |
| daily-evals-report | Evals adoption and results |
| daily-firewall-report | Firewall operation |
| daily-issues-report | Issue activity |
| daily-observability-report | Workflow observability |
| daily-regulatory | Report compliance |
| daily-repo-chronicle | Repository trends |
| daily-secrets-analysis | Secret references, never values |
| daily-team-evolution-insights | Team collaboration |
| daily-token-consumption-report | AI Credit consumption |
| deep-report | Intelligence synthesis |
| artifacts-summary | Artifact storage; Sunday admission |
| repo-tree-map | Repository structure; Monday admission |
Daily admission
Section titled “Daily admission”The dispatcher runs daily around 12:00 UTC. A trusted preparation step derives the previous complete UTC report date from the original run’s created_at, freezes the analysis window, and stages three immutable tasks:
- DeepReport receives one slot every day and synthesizes previously published reports over seven days.
- Weekly reports replace a rotating slot on Sundays and Mondays.
- Ten other profiles rotate through the remaining slots, each receiving six admissions in any 35-day period.
The tasks are independent, not a report-to-report dependency chain. Reusing a date/profile identity requires the exact same payload. The schedule has no manual trigger and admits only on github.run_attempt == 1; this is not a queue-enforced daily quota.
flowchart LR
Planner["Trusted UTC planner"] --> Work["Three date-keyed tasks"]
Work --> Queue["Fair queue scheduler"]
Queue --> Workers["Assigned report workers"]
Workers --> Publish["Publish Discussions and finish Claims"]
The preparation step stages submission and dispatch intents. The agent reads the plan and queue snapshot; it must not submit again, choose winners, or call ordinary dispatch tools.
Dispatch and publication
Section titled “Dispatch and publication”The dispatcher admits the cohort, and the scheduled maintenance dispatcher for pool daily-reports launches one worker per Claim. Older or higher-priority Work, the pool’s concurrency, or its per-account limit can delay today’s reports. Three admitted tasks do not guarantee three launches or Discussions.
Each worker reads the assignment’s work.report_date and work.report_profile, stages its Discussion with the original claim_handle, then finishes that Claim as completed. Trusted processing applies the staged outputs and then records the Completion.
If there is no qualifying data, the worker stages a scoped noop or report_incomplete and finishes as failed, not completed. A failed Claim returns its Work to the pool until retry.max_attempts is exhausted. DeepReport additionally permits bounded issues, comments, and diagnostic artifacts; these do not replace its required Discussion. Its cache history is separate from queue authority, and legacy Git memory is not automatically migrated.
Deploy and inspect
Section titled “Deploy and inspect”Follow the native queue deployment sequence, using the linked portfolio sources. Merge the daily-reports pool into shared aw.json; preserve other pools. The first trusted submission creates the queue branch with its Work.
Scheduling settings in aw.json take effect on the next run after recompilation; no ledger change is needed. Resume on a date not already admitted by the old planner. The 30-pending-task limit rejects excess admission rather than hiding an unlimited backlog.
gh aw work-queue --repo OWNER/REPO stategh aw work-queue --repo OWNER/REPO tuigh aw work-queue --repo OWNER/REPO replay --jsonUse the queue reference for scheduling, cancellation, and diagnostic artifacts. Maintenance releases dispatches whose runs ended without finishing; rerunning effects is not recovery.
For a write-capable factory with memory snapshots, see Linter Factory. The reusable orchestration pattern is WorkQueueOps.