Troubleshooting
Use the smallest read-only surface that answers the question before changing workflow state.
Repo-pack health
Section titled “Repo-pack health”wap-flow doctor --json --strict- If hooks are missing:
wap-flow install-hooks - If
doctorreports missing repo-pack files, restore the tracked files underflow/before debugging anything else.
Active task health
Section titled “Active task health”wap-flow statuswap-flow checkwap-flow inspect issue
Typical failures:
- Branch mismatch: switch to the bound
issue-<n>ortask-<key>branch. - Plan not ready: run
wap-flow plan record ...before tracked edits. - Missing validation evidence: run
wap-flow complete --evidence ....
Acceptance and PR state
Section titled “Acceptance and PR state”wap-flow accept statuswap-flow accept check --strictwap-flow pr status --json
If a remote request is still unfinished, use:
wap-flow accept wait-remote --agent <id> --for claimwap-flow accept wait-remote --agent <id> --for resultwap-flow accept sync --agent <id>
Review-context and memory diagnostics
Section titled “Review-context and memory diagnostics”wap-flow inspect review-context --json --refreshwap-flow memory explain search "<query>" --jsonwap-flow memory explain wake-up --json
Benchmark and release diagnostics
Section titled “Benchmark and release diagnostics”wap-flow eval review-context --config flow/benchmarks/review-context/writeandplay.yaml --jsonwap-flow eval memory-search --config flow/benchmarks/memory-search/writeandplay.yaml --jsontools/flow-consumer-smoketools/flow-release-check