Skip to content

Add agent-era rules to TDD and Crapper - #12

Open
Jakisheff wants to merge 1 commit into
unclebob:masterfrom
Jakisheff:agent-heldout-tdd
Open

Jakisheff wants to merge 1 commit into
unclebob:masterfrom
Jakisheff:agent-heldout-tdd

Conversation

@Jakisheff

@Jakisheff Jakisheff commented Nov 12, 2026 •

Copy link
Copy Markdown

Two reduced rules for the regime where the writer is an autonomous agent in a search loop:

  • TDD: keep a hidden held-out copy of the tests the agent never sees; to a search loop, a visible test is a training set. The visible/held-out pass-rate gap separates implementation from memorization (measured up to 43–48pp for agents that saturate the visible suite: SpecBench, arXiv 2605.21384).
  • Crapper: no agent-written tests on a module with CRAP over 30; on unhealthy code, agent tests reach high line coverage with near-zero mutation detection (arXiv 2608.18645).

One decision per line, no new tools. The held-out split/gate commands themselves are proposed separately in Acceptance-Pipeline-Specification.

Provenance: ideas adapted from the cited open papers; prepared with an AI coding agent under the direction and review of Amir Zhakyshev; offered under this repository's MIT terms.

Signed-off-by: Amir Zhakyshev <84526390+Jakisheff@users.noreply.github.com>
@Jakisheff

Copy link
Copy Markdown
Author

While collecting the evidence behind this PR I assembled five real cases where an agent pipeline reported success while being wrong (quiet CLI defaults, zero CI runs, green tests over wrong semantics, a naive green command, a confident UI on unknown state), anchored to the oracle problem and grey failure literature. Writeup and machine-readable cases: https://github.com/Jakisheff/silent-but-valid — the TDD and Crapper rules in this PR are two of the countermeasures; the other three live outside any test suite, which is the part I found worth writing down.

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.

1 participant