--- name: 'step-09-mark-review-ready' description: 'Finalize story, enforce definition-of-done, and set review status' nextStepFile: './step-10-closeout.md' --- Verify ALL tasks and subtasks are marked [x] (re-scan the story document now) Run the full regression suite (do not skip) Confirm File List includes every changed file Execute enhanced definition-of-done validation Update the story Status to: "review" Initialize sprint tracking state: - If {sprint_status} exists and is readable, load file and set {{current_sprint_status}} from tracking mode/content - If file does not exist, unreadable, or indicates no sprint tracking, set {{current_sprint_status}} = "no-sprint-tracking" Validate definition-of-done checklist with essential requirements: - All tasks/subtasks marked complete with [x] - Implementation satisfies every Acceptance Criterion - Unit tests for core functionality added/updated - Integration tests for component interactions added when required - End-to-end tests for critical flows added when story demands them - All tests pass (no regressions, new tests successful) - Code quality checks pass (linting, static analysis if configured) - File List includes every new/modified/deleted file (relative paths) - Dev Agent Record contains implementation notes - Change Log includes summary of changes - Only permitted story sections were modified Load the FULL file: {sprint_status} Find development_status key matching {{story_key}} Verify current status is "in-progress" (expected previous state) Update development_status[{{story_key}}] = "review" Save file, preserving ALL comments and structure including STATUS DEFINITIONS ✅ Story status updated to "review" in sprint-status.yaml ℹ️ Story status updated to "review" in story file (no sprint tracking configured) ⚠️ Story file updated, but sprint-status update failed: {{story_key}} not found Story status is set to "review" in file, but sprint-status.yaml may be out of sync. HALT - Complete remaining tasks before marking ready for review HALT - Fix regression issues before completing HALT - Update File List with all changed files HALT - Address DoD failures before completing ## Next - Read fully and follow: `./step-10-closeout.md`.