Skip to content

fix(dev-agent): fix review findings subsection and step mismatch in workflow#2189

Open
cantecim wants to merge 7 commits intobmad-code-org:mainfrom
cantecim:patch-1
Open

fix(dev-agent): fix review findings subsection and step mismatch in workflow#2189
cantecim wants to merge 7 commits intobmad-code-org:mainfrom
cantecim:patch-1

Conversation

@cantecim
Copy link
Copy Markdown

@cantecim cantecim commented Apr 2, 2026

What

Agent allowed to write to Review Findings section in dev story skill

Why

In a strict mode, after a successfull dev story run, the agent can not mark corresponding findings completed.

How

In step 8, it expects "Review Follow-ups (AI)" list, but according to the review skill, the reviewer agent writes the findings under a general "Review Findings" section.

This patch could be quick fix for a strict run, but we better fix review skill to use expected style in the dev story workflow

Testing

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7d13c538-b1b6-497f-aee0-a06a64d68e2c

📥 Commits

Reviewing files that changed from the base of the PR and between 18c6fb6 and f70a9e0.

📒 Files selected for processing (1)
  • src/bmm-skills/4-implementation/bmad-dev-story/workflow.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/bmm-skills/4-implementation/bmad-dev-story/workflow.md

📝 Walkthrough

Walkthrough

The Dev Agent workflow text was updated to allow editing the "Review Follow-ups (AI)" subsection in the Dev Agent Record and to change the completion-control rule so Step 8 (instead of Step 6) determines whether to schedule a next session or pause review. The code-review presentation now writes follow-up items to ### Review Follow-ups (AI) when Tasks/Subtasks exists.

Changes

Cohort / File(s) Summary
Dev story workflow
src/bmm-skills/4-implementation/bmad-dev-story/workflow.md
Extended the "Only modify the story file" allowance to explicitly include the Review Follow-ups (AI) subsection; updated completion-control references from Step 6 to Step 8 in both top-level and execution-critical rules.
Code-review presentation
src/bmm-skills/4-implementation/bmad-code-review/steps/step-04-present.md
Changed persistence target: when {spec_file} contains Tasks/Subtasks, the flow now ensures/creates ### Review Follow-ups (AI) (instead of ### Review Findings) and writes follow-up items (decision-needed, patch, defer) there preserving ordering/format.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • cecil-the-coder
  • pbean
  • bmadcode
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: fixing a subsection name mismatch in the dev-story workflow and review skill integration.
Description check ✅ Passed The description relates to the changeset by explaining the mismatch between 'Review Findings' and 'Review Follow-ups (AI)' sections, though it could be more detailed about the specific fixes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/bmm-skills/4-implementation/bmad-dev-story/workflow.md (1)

311-333: ⚠️ Potential issue | 🟠 Major

Major: Missing implementation for marking Review Findings checkboxes as resolved.

While line 8 grants permission to modify Review Findings, Step 8 (lines 311–334) only marks items in two locations:

  • Line 326: Tasks/Subtasks → Review Follow-ups (AI)
  • Lines 329–330: Senior Developer Review (AI) → Action Items

However, it does not mark the corresponding checkboxes in the Review Findings section itself. Review Findings entries use markdown checkboxes (- [ ] unchecked, - [x] resolved) per the code-review workflow format. After resolving a review finding, the workflow should check off its checkbox in the Review Findings section to maintain consistency across all three tracking locations.

Add logic to Step 8 to find and mark the corresponding Review Findings checkbox as [x] alongside the existing Action Items update.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/bmm-skills/4-implementation/bmad-dev-story/workflow.md` around lines 311
- 333, Step 8 currently marks Review Follow-ups and the Senior Developer Review
action item but misses updating the Review Findings checklist; add an action to
locate the matching Review Findings entry (match by description/severity or
related AC/file) and toggle its markdown checkbox from "- [ ]" to "- [x]" when
resolving review follow-ups, similar to the existing actions that mark the
Tasks/Subtasks checkbox and the "Senior Developer Review (AI) → Action Items"
checkbox so all three tracking locations are updated consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/bmm-skills/4-implementation/bmad-dev-story/workflow.md`:
- Line 8: The story workflow currently claims write access to the "### Review
Findings" subsection which conflicts with the bmad-code-review workflow (see
bmad-code-review steps/step-04-present.md) that also writes that subsection;
update the story workflow (the allowed-modifications list in the workflow.md) to
remove "Review Findings" from writable areas and instead add a new subsection
name such as "Review Findings Status" that this dev-story can write; ensure any
automation that reads the original "Review Findings" still treats it as
read-only and update references to "Review Findings" in
src/bmm-skills/4-implementation/bmad-dev-story/workflow.md to point to the new
"Review Findings Status" when marking completion so only code-review owns the
actual findings while dev-story only updates status.

---

Outside diff comments:
In `@src/bmm-skills/4-implementation/bmad-dev-story/workflow.md`:
- Around line 311-333: Step 8 currently marks Review Follow-ups and the Senior
Developer Review action item but misses updating the Review Findings checklist;
add an action to locate the matching Review Findings entry (match by
description/severity or related AC/file) and toggle its markdown checkbox from
"- [ ]" to "- [x]" when resolving review follow-ups, similar to the existing
actions that mark the Tasks/Subtasks checkbox and the "Senior Developer Review
(AI) → Action Items" checkbox so all three tracking locations are updated
consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d5f39064-72f3-43d7-987a-cfd84dac348c

📥 Commits

Reviewing files that changed from the base of the PR and between 003c979 and c90bdce.

📒 Files selected for processing (1)
  • src/bmm-skills/4-implementation/bmad-dev-story/workflow.md

Comment thread src/bmm-skills/4-implementation/bmad-dev-story/workflow.md Outdated
Copy link
Copy Markdown

@don-petry don-petry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent is right — dev-story should be able to mark review findings as resolved. However there's a design concern to address:

Write-ownership conflict: bmad-code-review (step-04-present.md) creates and writes to "Review Findings." Granting dev-story full write access to the same section creates a conflict with no coordination protocol. Two workflows claiming write access to the same section is a recipe for overwrites.

Missing implementation: Step 8 of the dev-story workflow doesn't contain logic to actually mark Review Findings checkboxes as completed. The permission grant alone is inert without corresponding workflow instructions.

Suggestion: Consider one of these approaches:

  1. Narrow the permission to checkbox-toggling only (not content modification) and add Step 8 logic for marking findings done
  2. Add a "Review Findings Status" sub-section that dev-story owns, separate from the findings themselves that code-review owns
  3. Use a different mechanism like appending resolution notes rather than modifying the original findings

This would be a more robust solution than the quick permission grant. Happy to help work through the design if useful.

@cantecim
Copy link
Copy Markdown
Author

cantecim commented Apr 8, 2026

The intent is right — dev-story should be able to mark review findings as resolved. However there's a design concern to address:

Write-ownership conflict: bmad-code-review (step-04-present.md) creates and writes to "Review Findings." Granting dev-story full write access to the same section creates a conflict with no coordination protocol. Two workflows claiming write access to the same section is a recipe for overwrites.

Missing implementation: Step 8 of the dev-story workflow doesn't contain logic to actually mark Review Findings checkboxes as completed. The permission grant alone is inert without corresponding workflow instructions.

Suggestion: Consider one of these approaches:

  1. Narrow the permission to checkbox-toggling only (not content modification) and add Step 8 logic for marking findings done
  2. Add a "Review Findings Status" sub-section that dev-story owns, separate from the findings themselves that code-review owns
  3. Use a different mechanism like appending resolution notes rather than modifying the original findings

This would be a more robust solution than the quick permission grant. Happy to help work through the design if useful.

You are right on the approaches.

This is very interesting, Claude models and GPT were already only marking items under Review Findings completed in dev-story skill run. I'm not 100% sure how this behavior is inferred from the workflow, but I see, "Mark task checkbox [x] in "Tasks/Subtasks → Review Follow-ups (AI)" section" instruction must lead to it.

In this current approach, marking review findings completed is actually complete and done in dev-story skill, however, code-review skill uses the Review Findings section to write those to the story artifact.

I have thought the same as your second suggestion, as briefly explained in the "How".

To achieve this:

  1. code-review skill should get an update to use "Review Follow-ups (AI)" section strictly
  2. dev-story skill should get an update to be privileged to write same section only for marking them completed

In this case, dev-story can not change any decision-needed finding to a concrete action (in reality, it can because of the same model's very own mental model)

What do you think about this exact approach? Any objections/blind spots?

I'll look into it when I have a better time

@cantecim cantecim changed the title refactor: allow dev-story skill to modify Review Findings todo items refactor(dev-agent): allow dev-story skill to modify Review Findings todo items Apr 8, 2026
Updated the instructions for writing findings in the story file to specify a new subsection for follow-ups.
Updated instructions to include 'Marking Review Follow-ups' in the modification areas.
@cantecim cantecim changed the title refactor(dev-agent): allow dev-story skill to modify Review Findings todo items fix(dev-agent): fix review findings subsection and step mismatch in workflow Apr 19, 2026
@cantecim
Copy link
Copy Markdown
Author

@coderabbitai help

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

CodeRabbit commands

These commands are invoked using PR/Issue comments.

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai evaluate custom pre-merge check --instructions <custom-checks-instructions> --name <custom-checks-title> [--mode <error|warning>] to validate the custom pre-merge checks instructions. Defaults to error when --mode is omitted.
  • @coderabbitai ignore pre-merge checks to override pre-merge checks and get an approval on PR.
  • @coderabbitai run pre-merge checks to run pre-merge checks on the pull request.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve merge conflict to automatically resolve merge conflicts.
  • @coderabbitai autofix to automatically fix issues identified in unresolved review comments.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai generate configuration to create a PR that adds the current resolved configuration as .coderabbit.yaml (or show it if already present).
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, support, documentation and community

  • Visit our status page to check the current availability of CodeRabbit.
  • Create a ticket on our support page for assistance with any issues or questions.
  • Visit our documentation site for detailed information on how to use CodeRabbit.
  • Join our Discord community to connect with other users and get help from the community.
  • Follow us on X/Twitter for updates and announcements.

@cantecim
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/bmm-skills/4-implementation/bmad-code-review/steps/step-04-present.md`:
- Line 21: Update the permission description so it matches where the workflow
actually operates: in bmad-dev-story/workflow.md change the permission entry
that currently reads "Dev Agent Record (Debug Log, Completion Notes, Marking
Review Follow-ups)" to instead reference the Tasks/Subtasks subsection "Review
Follow-ups (AI)"; ensure the phrase "Marking Review Follow-ups" is replaced with
"Review Follow-ups (AI)" so the permission accurately reflects that the agent
may modify the Tasks/Subtasks → Review Follow-ups (AI) subsection used by the
checks/counts in the workflow (see the Task/Subtask headings created by the step
that appends "### Review Follow-ups (AI)").
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c9eaa07d-2265-4b33-a4fd-95a147153854

📥 Commits

Reviewing files that changed from the base of the PR and between c90bdce and 18c6fb6.

📒 Files selected for processing (2)
  • src/bmm-skills/4-implementation/bmad-code-review/steps/step-04-present.md
  • src/bmm-skills/4-implementation/bmad-dev-story/workflow.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/bmm-skills/4-implementation/bmad-dev-story/workflow.md

@cantecim
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cantecim
Copy link
Copy Markdown
Author

This looks ready for a maintainer review @bmadcode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants