fix(workflow): auto-transition phase to complete when verify-work UAT passes with 0 issues (#2036)

After complete_session in verify-work.md, when final_status==complete and
issues==0, the workflow now executes transition.md inline (mirroring the
execute-phase pattern) to mark the phase complete in ROADMAP.md and STATE.md.
Security gate still gates the transition: if enforcement is enabled and no
SECURITY.md exists, the workflow suggests /gsd-secure-phase instead.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-04-10 12:29:09 -04:00
committed by GitHub
parent 17bb9f8a25
commit 0b7dab7394
2 changed files with 93 additions and 1 deletions

View File

@@ -437,8 +437,17 @@ If `SECURITY_CFG` is `true` AND `SECURITY_FILE` exists: check frontmatter `threa
```
If `SECURITY_CFG` is `false` OR (`SECURITY_FILE` exists AND `threats_open` is `0`):
**Auto-transition: mark phase complete in ROADMAP.md and STATE.md**
Execute the transition workflow inline (do NOT use Task — the orchestrator context already holds the UAT results and phase data needed for accurate transition):
Read and follow `~/.claude/get-shit-done/workflows/transition.md`.
After transition completes, present next-step options to the user:
```
All tests passed. Ready to continue.
All tests passed. Phase {phase} marked complete.
- `/gsd-plan-phase {next}` — Plan next phase
- `/gsd-execute-phase {next}` — Execute next phase