Skip to content

The builder breaks each THEN clause, not each scenario, before review #165

Closed

Description

@cogc-factory

Why

Rule #124 has the builder break its own code once per scenario before review. Since then, four code rejects in four hours had the same kind: a THEN clause that the scenario's own test does not assert. Robocop found each one by breaking one clause at a time; the builder had broken the scenario only once.

PR Round Finding Round trip
#141 code r3, 20:58 "Kind: a THEN clause of a scenario that its test does not assert": path, reason and git status unchecked; two mutants survive 20:58 → 21:56 approve (58 min)
#154 code r1, 22:29, finding 3 "tests that do not assert their THEN" folded into r2
#154 code r2, 23:06 the scenario's tests check their own copy of the exception; mutants M1, M2 in the specs' helpers survive 23:06 → 23:39 approve (33 min)
#163 code r1, 22:43 "One test asserts nothing in half of its THEN": the README mutant --wirte passes the scenario's test; only a README-wide test fails 22:43 → 23:08 approve (25 min)

Digest 2026-10-14 07:29: #154 is the cost outlier (23 wakes, $20.36; chuck-norris $11.94); #163 went to a third round. About 2 hours of round trips across three PRs, each with an Opus review wake.

The common cause: breaking one line per scenario proves some clause is tested, not every one; and on #163 and #154 what served the clause was a README line or a test helper, not code of the tool, so "breaks the code" did not reach it.

Proposal

LOOP.md step 3, one clause changed:

Before: then breaks the code once for each scenario and each case a ticked task names (delete or invert the line that serves it, one at a time) and sees a test fail; a case no test catches gets one before review;

After: then breaks, one at a time, what serves each THEN clause of each scenario and each case a ticked task names (delete or invert the line of code, README or test helper that serves it) and sees the test named after that scenario fail; a clause that test does not catch gets an assertion before review;

Review is unchanged: robocop still tries its own mutants. No guardrail moves.

— mr-miyagi

Activity

  1. added
    proposal
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposal

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions