Skip to content

Fix: Convention improvement from issue #5#6

Merged
RasmusGodske merged 3 commits intomainfrom
convention-improvement-issue-5
Nov 17, 2025
Merged

Fix: Convention improvement from issue #5#6
RasmusGodske merged 3 commits intomainfrom
convention-improvement-issue-5

Conversation

@claude
Copy link

@claude claude bot commented Nov 17, 2025

Summary

This PR implements the convention improvement proposed in issue #5 to strengthen the code review enforcement in the Fullstack Engineer role command.

Changes Made

File Modified: project-roles/commands/roles/fullstack-engineer.md

Enhanced the "Code Review Workflow" section with:

  • Mandatory STOP checkpoint - Added explicit blocking language with 🚨 emoji to create a psychological stop point
  • Four-step process - Clear sequence: STOP → INVOKE REVIEWER → ADDRESS FEEDBACK → ONLY THEN proceed
  • Removed discretion - Added "You do NOT have discretion to skip this" to prevent rationalization
  • Concrete examples - Shows wrong pattern (completing without review) vs right pattern (blocking for review)

Why This Change?

The previous documentation was clear but not enforceable. Agents could see the "MUST" instruction but rationalize skipping it for "simple" or "straightforward" changes. This improvement:

  1. Creates a blocking checkpoint mentality with STOP language
  2. Removes rationalization opportunities with explicit "no discretion" clause
  3. Provides concrete examples showing the exact mistake pattern to avoid
  4. Uses stronger psychological framing to prevent forward progress without review

Testing

The language changes make the requirement more explicit and harder to bypass. The pattern shown in the negative example directly addresses the observed behavior where agents would complete tasks and ask "what's next?" without invoking reviewers.

Fixes #5

🤖 Generated with Claude Code

Addresses issue #5 by enhancing the code review workflow section with:
- Mandatory STOP checkpoint language before proceeding
- Explicit removal of agent discretion to skip reviews
- Clear negative/positive examples showing wrong vs right patterns
- Stronger psychological framing to prevent rationalization

The improvement ensures agents cannot bypass code reviews even for
"simple" changes, enforcing the mandatory review requirement with
blocking language and concrete examples.

Fixes #5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@claude
Copy link
Author

claude bot commented Nov 17, 2025

Code Review - PR #6: Convention Improvement for Code Review Enforcement

Summary

This PR successfully addresses issue #5 by adding stronger enforcement language to prevent agents from skipping mandatory code reviews. The changes are well-targeted and address the root cause identified in the issue.


Strengths

1. Clear Problem-Solution Fit

  • The issue correctly identified that agents could rationalize skipping reviews despite clear MUST language
  • The solution directly addresses this by adding blocking checkpoint language and removing discretion

2. Effective Psychological Framing

  • The emoji and MANDATORY CHECKPOINT header create a strong visual stop point
  • The explicit STOP as step 1 reinforces blocking behavior
  • You do NOT have discretion directly counters rationalization

3. Concrete Examples

  • The WRONG/RIGHT examples are excellent pedagogical tools
  • They show the exact failure pattern from the issue (completing and asking what's next)
  • The correct pattern demonstrates blocking behavior clearly

4. Well-Structured Addition

  • Inserted at the right location (after CRITICAL line, before When to invoke)
  • Maintains consistency with existing formatting and structure

Concerns and Recommendations

1. Inconsistency Across Role Commands (Medium Priority)

The same enforcement problem likely exists in backend-engineer.md and frontend-engineer.md, which have similar Code Review Workflow sections without the mandatory checkpoint language.

Recommendation: Apply the same pattern to backend-engineer.md and frontend-engineer.md for consistency. Agents using those roles could exhibit the same rationalization behavior.

Suggested follow-up:

  • backend-engineer.md - Add checkpoint after Code Review Workflow section
  • frontend-engineer.md - Add checkpoint after Code Review Workflow section

Security, Performance, Testing

  • Security: N/A - Documentation only, no code execution
  • Performance: N/A - No runtime impact
  • Test Coverage: The PR description acknowledges this is behavioral guidance that cannot be unit tested

Action Items

Before merging:

  • Current changes are ready to merge as-is

Suggested follow-up PR:

  • Apply the same mandatory checkpoint pattern to backend-engineer.md
  • Apply the same mandatory checkpoint pattern to frontend-engineer.md
  • Consider if techlead.md needs similar enforcement

Final Verdict

Approve with follow-up recommendation

The changes in this PR are solid and ready to merge. They directly solve the identified problem for the Fullstack Engineer role. However, the same issue pattern likely affects the Backend Engineer and Frontend Engineer roles, which should be addressed in a follow-up PR to maintain consistency across the plugin.

Estimated Impact:

  • Immediate: Improved code review compliance for fullstack-engineer role
  • Follow-up needed: Consistency across all engineer roles

Great work identifying and fixing this enforcement gap! The issue documentation was particularly well-written in explaining why explicit instructions were not sufficient.


Files Changed: project-roles/commands/roles/fullstack-engineer.md:59-83
Risk Level: Low (documentation only)
Breaking Changes: None

@RasmusGodske
Copy link
Owner

@claude I don't like that we are telling it to ALWAYS review after making ANY changes. I think the agent should be allowed to make multiple code changes and then have it reviewed. This way we can review the change in bulk

@claude
Copy link
Author

claude bot commented Nov 17, 2025

Claude finished @RasmusGodske's task —— View job


Code Review Enforcement Updated

I've updated the code review enforcement approach to allow batching multiple changes before review, as you requested.

Changes Made:

Modified project-roles/commands/roles/fullstack-engineer.md:59-89 with the following improvements:

  1. Changed checkpoint title from "DO NOT PROCEED WITHOUT REVIEW" to "DO NOT SKIP CODE REVIEW"

    • Focuses on the actual requirement (don't skip) rather than blocking after every change
  2. Updated workflow steps:

    • Step 1: "COMPLETE YOUR CHANGES" - explicitly allows making multiple changes
    • Step 2: "STOP BEFORE COMPLETION" - maintains blocking checkpoint before marking done
    • Steps 3-5: Review and address feedback before completion
  3. Added explicit batching permission:

    • "You CAN batch changes: Make multiple related code changes, then have them all reviewed together before marking complete"
  4. Updated examples:

    • Shows batching backend + frontend changes
    • Then reviewing both together before marking task complete

Result:

The agent can now make multiple code changes for a task or feature, then have everything reviewed as a batch before marking the work complete. This is more efficient while still maintaining the mandatory review checkpoint.

The key enforcement remains: cannot skip code review entirely - but review happens after all changes are made rather than after each individual change.

--- |

Changed the code review enforcement to allow agents to make multiple
related changes and then have them reviewed together, rather than
requiring review after each individual change.

Key changes:
- Updated checkpoint language to focus on not skipping review entirely
- Changed from 'After completing ANY code changes' to 'Before considering work complete'
- Added explicit permission: 'You CAN batch changes'
- Updated examples to show batching backend + frontend changes before review

This maintains the blocking checkpoint to prevent skipping reviews while
allowing more efficient bulk review of related changes.

Co-authored-by: Rasmus Godske <RasmusGodske@users.noreply.github.com>
@RasmusGodske
Copy link
Owner

@claude Lets make sure we also apply the same review rule to the other agents a.k.a backend-engineer and frontend-engineer.

@claude
Copy link
Author

claude bot commented Nov 17, 2025

Claude finished @RasmusGodske's task —— View job


Code Review Enforcement Applied to All Engineer Roles

I've successfully applied the same code review enforcement pattern to backend-engineer and frontend-engineer roles for consistency across all engineer roles.

Changes Made:

Modified both files with the "MANDATORY CHECKPOINT" section:

  • project-roles/commands/roles/backend-engineer.md:53-80
  • project-roles/commands/roles/frontend-engineer.md:55-82

Enforcement Pattern Applied:

Each role now has the same 5-step blocking workflow:

  1. COMPLETE YOUR CHANGES - Make all code changes for the task/feature
  2. STOP BEFORE COMPLETION - Don't mark complete, don't ask what's next
  3. INVOKE REVIEWER - Use the appropriate reviewer subagent
  4. ADDRESS FEEDBACK - Fix any issues identified
  5. ONLY THEN - Mark task complete or move to next task

Key Features:

  • Batching allowed: "You CAN batch changes: Make multiple related code changes, then have them all reviewed together before marking complete"
  • No discretion: "You do NOT have discretion to skip review" - prevents rationalization
  • Concrete examples: Shows WRONG pattern (completing without review) vs RIGHT pattern (blocking for review)
  • Consistent across roles: Backend, Frontend, and Fullstack engineers all follow the same discipline

Result:

All three engineer roles now enforce mandatory code review with the same blocking checkpoint language, while allowing efficient batching of related changes before review.


Files Changed:

  • project-roles/commands/roles/backend-engineer.md (+29 lines)
  • project-roles/commands/roles/frontend-engineer.md (+29 lines)
    |

Extended the mandatory code review checkpoint pattern from fullstack-engineer
to backend-engineer and frontend-engineer roles for consistency.

Changes:
- Added "MANDATORY CHECKPOINT - DO NOT SKIP CODE REVIEW" section to both roles
- Includes 5-step blocking workflow: Complete changes → Stop → Review → Fix → Complete
- Explicitly allows batching multiple changes before review
- Provides concrete WRONG/RIGHT examples showing completion without review vs. blocking for review
- Removes agent discretion to skip reviews with "You do NOT have discretion" clause

This ensures all three engineer roles enforce the same review discipline while
allowing efficient batching of related changes.

Co-authored-by: Rasmus Godske <RasmusGodske@users.noreply.github.com>
@RasmusGodske RasmusGodske merged commit 8eec8ec into main Nov 17, 2025
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.

[Convention] Fullstack Engineer should block forward progress until reviewer is invoked

1 participant