# Story Approved Workflow Instructions (DEV Agent)
The workflow execution engine is governed by: {project_root}/bmad/core/tasks/workflow.xml
You MUST have already loaded and processed: {installed_path}/workflow.yaml
Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}
Generate all documents in {document_output_language}
This workflow is run by DEV agent AFTER user confirms a story is approved (Definition of Done is complete)
Workflow: Update story file status to Done
If {{story_path}} is provided → use it directly; extract story_key from filename or metadata; GOTO mark_done
Otherwise query sprint-status for reviewed stories:
action: list_stories
filter_status: review
limit: 10
HALT
Display available reviewed stories:
**Stories Ready to Mark Done ({{result_count}} found):**
{{result_story_list}}
Select the story to mark as Done (enter story key or number):
Resolve selected story_key from user input
Find matching story file in {{story_dir}} using story_key pattern
Read the story file from resolved path
Extract story_id and story_title from the file
Find the "Status:" line (usually at the top)
Update story file: Change Status to "Done"
Add completion notes to Dev Agent Record section:
Find "## Dev Agent Record" section and add:
```
### Completion Notes
**Completed:** {{date}}
**Definition of Done:** All acceptance criteria met, code reviewed, tests passing
```
Save the story file
action: update_story_status
story_key: {{story_key}}
new_status: done
validate: true
```