Repository navigation
v1.5.0
[1.5.0] - 2026-05-29
feat: TDD harness — Red→Green→Refactor state machine (#68)
Adds an opt-in test-driven-development harness that drives small models
through a disciplined Red→Green→Refactor cycle. Contributed by
@scardoso-lu.
- New tools:
run_tests(runs the suite and returns structured
pass/fail counts + per-failure names/messages — far easier for small
models to parse than rawbashoutput), plustdd_loop,
tdd_begin_cycle,tdd_status, andtdd_advancefor cycle control. - New modules:
src/session/tdd_state.js(the phase state machine),
src/governor/tdd_governor.js(auto-advances phases after each
run_testsand gates writes by phase),src/tools/run_tests.js
(cross-runner: pytest / jest / vitest / go test / cargo / mocha /
rspec), and askills/tdd.mdguide. - Fully opt-in: phase enforcement and write-gating are no-ops until a
loop/cycle is started; all hooks are wrapped in try/catch so existing
flows are untouched. - Test coverage:
test/tdd_state.test.js,test/tdd_governor.test.js,
test/tdd_harness.test.js,test/run_tests.test.js(~105 cases).
Full suite: 267 passing.