Describe the bug
The dev agent does not automatically update the story status to "Review" upon completion of the *develop-story task, even though the completion instructions in dev.md explicitly require it. This is caused by a direct contradiction in the agent's critical operating instructions.
One rule under story-file-updates-ONLY authorizes the agent to edit the Status, while the very next rule explicitly forbids it. This conflict leads the AI model to conservatively follow the prohibitive instruction, thus failing to update the status.
Steps to Reproduce
- Ensure a story file (e.g.,
1.2.story.md) has its status set to Approved.
- Activate the
dev agent in an agentic IDE (e.g., Cursor).
- Execute the command:
@dev *develop-story docs/stories/1.2.story.md.
- Allow the
dev agent to complete all tasks and validations.
- Observe the agent's final output. It will indicate that the work is complete and ready for review.
- Check the story file (
1.2.story.md). The Status field remains Approved instead of being updated to Review.
PR
I do not have a PR to submit at this time, but the fix seems straightforward. A clear solution is outlined below.
Expected behavior
After successfully completing all tasks and validations for a story, the dev agent should automatically edit the story file to change its status from Approved (or InProgress) to Review, as per the completion step in its instructions: set story status: 'Ready for Review'.
Please be Specific if relevant
- Model(s) Used: GPT-5 Mini
- Agentic IDE Used: Any IDE capable of running BMad agents (e.g., Cursor, etc.). The issue is not IDE-specific but instruction-based.
- WebSite Used: N/A
- Project Language: C (with CMake)
- BMad Method version: 4.40
Screenshots or Links
N/A - The issue is clearly reproducible from the agent's instruction file.
Additional context
The core of the issue lies in these conflicting lines within .bmad-core/agents/dev.md under the develop-story command:
-
The Authorization Rule:
- CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section..., Change Log, **Status**
-
The Contradictory Prohibition Rule:
- CRITICAL: DO NOT modify **Status**, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
The presence of Status in the "DO NOT modify" list appears to override the authorization and the final step of the completion workflow. Removing Status from the prohibitive rule should resolve the bug. This will improve the workflow's automation and align the agent's behavior with the documented process.
Describe the bug
The
devagent does not automatically update the story status to "Review" upon completion of the*develop-storytask, even though thecompletioninstructions indev.mdexplicitly require it. This is caused by a direct contradiction in the agent's critical operating instructions.One rule under
story-file-updates-ONLYauthorizes the agent to edit theStatus, while the very next rule explicitly forbids it. This conflict leads the AI model to conservatively follow the prohibitive instruction, thus failing to update the status.Steps to Reproduce
1.2.story.md) has its status set toApproved.devagent in an agentic IDE (e.g., Cursor).@dev *develop-story docs/stories/1.2.story.md.devagent to complete all tasks and validations.1.2.story.md). TheStatusfield remainsApprovedinstead of being updated toReview.PR
I do not have a PR to submit at this time, but the fix seems straightforward. A clear solution is outlined below.
Expected behavior
After successfully completing all tasks and validations for a story, the
devagent should automatically edit the story file to change its status fromApproved(orInProgress) toReview, as per thecompletionstep in its instructions:set story status: 'Ready for Review'.Please be Specific if relevant
Screenshots or Links
N/A - The issue is clearly reproducible from the agent's instruction file.
Additional context
The core of the issue lies in these conflicting lines within
.bmad-core/agents/dev.mdunder thedevelop-storycommand:The Authorization Rule:
The Contradictory Prohibition Rule:
The presence of
Statusin the "DO NOT modify" list appears to override the authorization and the final step of thecompletionworkflow. RemovingStatusfrom the prohibitive rule should resolve the bug. This will improve the workflow's automation and align the agent's behavior with the documented process.