GitHub-Backed Happy Path
Use this flow when the task authority is a structured GitHub task issue or sub-issue.
First run
Section titled “First run”wap-flow install-hookswap-flow create-sub-issue --repo <owner/name> --parent <number> --title "<title>" --type Implementation --spec <path>wap-flow issue-branch --issue <number>wap-flow start --issue <number> --spec <path>wap-flow plan record --summary "<summary>" --step "<step>" --step "<step>"wap-flow checkwap-flow inspect issuewap-flow complete --evidence "<what passed>"Closeout
Section titled “Closeout”- Open or bind the PR if the task is on a PR surface:
wap-flow pr open --issue <number>If the PR already exists or was created before local state was written, rerun the same command to bind it. Usewap-flow pr refresh --issue <number> [--base <ref>]after external PR edits, andwap-flow pr draft|ready --issue <number>for draft/ready transitions. - Initialize the acceptance profile:
wap-flow accept init --preset <name> --profile <name> --surface issue|pr [--pr <number>] - Run the review loop from
flow/playbooks/acceptance-review-loop.md. - Finalize only after
accept check --strictis clean:wap-flow accept finalizeThis is the step that records the task as accepted/finalized. It closes the GitHub task issue only when the active profile allows GitHub closeout. - If the PR is merged, reconcile the task issue:
wap-flow pr reconcile --strict
Common guardrails
Section titled “Common guardrails”startrequires the branch name to containissue-<number>.plan recordmust run before tracked edits on guarded work.acceptworks here for GitHub-backed closeout;prremains GitHub-backed only in v1.