Agentic Workflows Book

A living book about agentic workflows, agent orchestration, and agentic scaffolding

View the Project on GitHub arivero/agentbook

Agentic Workflow Playbook for Agentbook

This playbook defines the active GH-AW issue-management lifecycle used in this repository.

Canonical Issue Lifecycle

[opened] -> acknowledged -> triaged-fast-track -> assigned -> closed
                         \-> triaged-for-research -> assigned -> closed

At any stage, any agent may reject by explaining the reason, adding rejected, and closing the issue.

Active workflow matrix

Stage Trigger Workflow file Labels in Labels out Result
Intake ACK issues.opened .github/workflows/issue-intake-ack.yml (none) acknowledged Issue acknowledged and routed to agentic triage
Routing decision workflow_dispatch (from intake ACK) .github/workflows/issue-routing-decision.lock.yml acknowledged triaged-fast-track or triaged-for-research Agentic routing decision posted
Fast-track delivery issues.labeled .github/workflows/issue-fast-track-close.lock.yml triaged-fast-track assigned (or rejected) PR opened and issue closed
Research pass issues.labeled (triaged-for-research) .github/workflows/issue-research-pass.lock.yml triaged-for-research (none by default) Research comment posted
Phase 1 dispatcher issue_comment.created (research completion comment) .github/workflows/issue-phase1-dispatch.yml triaged-for-research (dispatch only) Selects engine in order Codex -> Claude -> Copilot
Phase 1 execution (selected engine) workflow_dispatch .github/workflows/issue-phase1-*.lock.yml triaged-for-research (none by default) Posts phase 1 long-task analysis
Phase 2 dispatcher issue_comment.created (phase 1 completion comment) .github/workflows/issue-phase2-dispatch.yml triaged-for-research (dispatch only) Selects engine in order Claude -> Codex -> Copilot
Phase 2 execution (selected engine) workflow_dispatch .github/workflows/issue-phase2-*.lock.yml triaged-for-research (none by default) Posts phase 2 long-task delivery plan
Assignment dispatcher issue_comment.created (phase 2 completion comment) .github/workflows/issue-assignment-dispatch.yml triaged-for-research (dispatch only) Dispatches assignment workflow, then assigns and mentions all available coding agents for phase-3 handoff
Assignment + close workflow_dispatch .github/workflows/issue-assignment-close.lock.yml triaged-for-research assigned Posts assignment summary and closes issue
Weekly editorial quality pass schedule, workflow_dispatch .github/workflows/weekly-editorial-quality.lock.yml (n/a) (n/a) Editorial agent opens a prose-quality PR or no-ops

Slow-track downstream handoffs are comment-driven and dispatcher-based, so they do not depend on intermediate status labels. Configure GH_AW_GITHUB_TOKEN as a fine-grained PAT restricted to this repository with Issues, Pull requests, and Contents set to Read and write.

Phase-3 implementation handoff policy:

Internet research policy:

Engine fallback policy for slow-track phases:

Routing rules

Source of truth and compilation rule

Workflow source files are maintained in .github/workflows/*.md and must be compiled to .lock.yml with gh aw commands.

When a workflow source file changes:

  1. Re-compile to the matching .lock.yml.
  2. Commit source and lock file together.
  3. Keep this matrix updated in the same PR.