Workflows

Contents
  1. The workflows
  2. What the queue carries
  3. Names are load-bearing
  4. Ownership
  5. Generated locks

The workflows

Display names are title case without a prefix.

Display name File Trigger
Controller controller.yml Schedule, pushes to main that change trusted code, issue and comment events, completed runs of the workflows below, manual dispatch
Dispatcher dispatcher.md Dispatch by the controller
Planner planner.md Native Work queue
Worker worker.md Native Work queue
Reproduction Image image.yml Weekly schedule, pushes and pull requests that change image/, manual dispatch
Fork Provisioning provision.yml Dispatch by the controller
Development PR dev-pr.yml Dispatch by the controller
Publish Retry publish-retry.yml Dispatch by the controller
Handoff handoff.yml Dispatch by the controller
Agent Validation validate.yml Pull requests, pushes to main
Website website.yml Pushes to main, pull requests that change docs/, manual dispatch

What the queue carries

The Dispatcher stages one node per requested Work whose payload is a fixed-size reference (the Work identity, the reference to its task file, the resource scope and the effect contract), not the task. The Planner and Worker resolve it in their trusted pre-agent step (task_file.py resolve, which prints only the evidence id of the task file) and again in the trusted job after the agent (queue_result), and Publish Retry resolves it again from the assignment of the original run. A task file that is missing, or is not the task file of the claim, fails the run in a step of its own that is not a contribution step, so it is a failure of the pipeline and charges nothing to the Work.

Names are load-bearing

controller.yml subscribes to completed runs of the Dispatcher, Planner, Worker, Reproduction Image, Fork Provisioning, Development PR, Publish Retry, and Handoff workflows by display name. The plan comment publisher accepts runs whose GITHUB_WORKFLOW is Planner or Publish Retry on dispatch, and Controller only when PORTING_PLAN_RECOVERY=1 is set. Run discovery and dispatch otherwise address workflows by file name.

To rename a workflow:

  1. Change its name:.
  2. Update the workflow_run list in controller.yml, and the plan comment publisher if the workflow is Planner, Publish Retry, or Controller.
  3. Recompile the gh-aw locks from their Markdown sources.
  4. Update the tests that pin the display names, tests/test_workflow_contracts.py and tests/test_milestone4_workflows.py.
  5. Update .github/workflow-owners.json if the file name changed, and this page.

Ownership

.github/workflow-owners.json lists every top-level file in .github/workflows/ with exactly one owner and whether it is agentic. A test enforces that every file has one entry, so a workflow cannot be added without a reviewed owner. The file is the one home of the owner descriptions.

  • An agentic Markdown workflow is committed with exactly one generated .lock.yml file.
  • .github/workflows/shared/ holds imports, not workflows.
  • Only trusted workflows may hold a destination credential; see Credentials.

Generated locks

The dispatcher, planner, and worker locks are exact normalized gh-aw v1.2.2 output. Authored Markdown workflows and their generated locks move together.

Script Purpose
scripts/compile_gh_aw.sh Compile the Markdown workflows with the pinned compiler.
scripts/check_gh_aw.sh Check that authored and generated workflows agree.
scripts/normalize_gh_aw_locks.py Normalize the compiler output.