Skip to content

✨ Enforce red/green TDD in DEVELOP prompt (closes #68) - #76

Merged
monkut merged 1 commit into
mainfrom
feature/68-tdd-enforcement-develop-prompt
Apr 13, 2026
Merged

✨ Enforce red/green TDD in DEVELOP prompt (closes #68)#76
monkut merged 1 commit into
mainfrom
feature/68-tdd-enforcement-develop-prompt

Conversation

@monkut

@monkut monkut commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces the soft Write tests for every new or changed behavior bullet in DEVELOP_AGENT_PROMPT with a non-negotiable red/green TDD block (RED, GREEN, REFACTOR), behavioral-assertion rule, and a phase gate forbidding the move from RED to GREEN without a confirmed failing run.
  • Adds an anti-rationalization entry rejecting "I'll write the test after, it's faster".
  • Adds TestDevelopPromptTddContent covering each new requirement (TDD discipline applied to this change itself — tests written first, confirmed RED, then implementation made them GREEN).

Closes #68

Key Flows

flowchart TD
    A[Agent receives DEVELOP task] --> B[Read planned implementation]
    B --> C[RED: write failing test]
    C --> D{test fails for right reason?}
    D -- no --> C
    D -- yes --> E[GREEN: minimum code to pass]
    E --> F{test passes?}
    F -- no --> E
    F -- yes --> G[REFACTOR if duplication/naming unclear]
    G --> H[Commit tests + implementation together]
Loading

Verification

  • uv run pytest — passed (123 tests)
  • uv run ruff check — passed (All checks passed!)
  • uv run pyright — passed (0 errors, 0 warnings)

Replaces the soft "write tests" guidance with a non-negotiable
red/green/refactor block plus a phase gate blocking GREEN until a
failing run is confirmed, addressing the most common skip in
agent-driven TDD.

Closes #68
@monkut monkut mentioned this pull request Apr 13, 2026
7 tasks
@monkut
monkut merged commit e4aae14 into main Apr 13, 2026
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.

Add TDD enforcement to DEVELOP prompt

2 participants