Skip to content

Add test-change discipline to Designer, Coder, and Reviewer prompts - #10

Merged
wparad merged 1 commit into
mainfrom
claude/code-patterns-early-returns-fznmgy
Jul 1, 2026
Merged

Add test-change discipline to Designer, Coder, and Reviewer prompts#10
wparad merged 1 commit into
mainfrom
claude/code-patterns-early-returns-fznmgy

Conversation

@wparad

@wparad wparad commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Designer: step 6 now requires explicitly listing every existing test that will need to change as part of the design output, along with what each change will be (or a statement that none need to change).
  • Coder: new EXISTING TESTS section prohibits modifying any existing test unless the task description explicitly names it and describes the required change. Undocumented test changes must be surfaced via gitzi_create_review_item. Adding new tests remains unrestricted.
  • Reviewer: new step 7 checks every modified existing test against the task description; any modification not explicitly listed in the task is an automatic rejection. New tests are always permitted.

Together these three rules close the loop that caused the CI breakage in the previous PR — the Coder silently updated a test that the task never mentioned, and neither the design nor the review caught it.


Generated by Claude Code

Designer now explicitly lists which existing tests need to change as part
of its design output. Coder is prohibited from modifying existing tests
unless the task description names them; undocumented test changes require
a review item. Reviewer rejects any existing-test modification not
explicitly listed in the task — new tests are always permitted.
@wparad
wparad merged commit 56757a1 into main Jul 1, 2026
1 check passed
@wparad
wparad deleted the claude/code-patterns-early-returns-fznmgy branch July 1, 2026 08:54
wparad added a commit that referenced this pull request Jul 25, 2026
…-fznmgy

Add test-change discipline to Designer, Coder, and Reviewer prompts
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