--- 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 deterministically before any sprint-status check: - Set {{current_sprint_status}} = "no-sprint-tracking" - Set {{sprint_tracking_enabled}} = false - If {sprint_status} exists and is readable: - Load the FULL file: {sprint_status} - If file content indicates tracking disabled OR development_status section is missing, keep "no-sprint-tracking" - Else set {{current_sprint_status}} = "enabled" and {{sprint_tracking_enabled}} = true - If file missing/unreadable, keep defaults and continue with story-only status update 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 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 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. ℹ️ Story status updated to "review" in story file (no sprint tracking configured) Invoke HALT protocol (reason_code: DEV-STORY-STEP-09-INCOMPLETE-TASKS, step_id: step-09-mark-review-ready, message: "Incomplete tasks remain before review-ready transition.", required_action: "Complete all tasks/subtasks and rerun validations.") Invoke HALT protocol (reason_code: DEV-STORY-STEP-09-REGRESSION-FAIL, step_id: step-09-mark-review-ready, message: "Regression suite has failures.", required_action: "Fix failing tests and rerun full regression suite.") Invoke HALT protocol (reason_code: DEV-STORY-STEP-09-FILE-LIST-INCOMPLETE, step_id: step-09-mark-review-ready, message: "File List does not include all changed files.", required_action: "Update File List with all added/modified/deleted paths.") Invoke HALT protocol (reason_code: DEV-STORY-STEP-09-DOD-FAIL, step_id: step-09-mark-review-ready, message: "Definition-of-done checks failed.", required_action: "Address DoD failures and rerun validation.") ## Next - Read fully and follow: `./step-10-closeout.md`.