The tool was unlazy, an anti-laziness skill for coding agents (Claude Code, Codex, Cursor) that
gates file changes behind discipline checks, offers an optional Stop hook (a mechanism that can
block a session from finishing until its own checks pass) as an enforcement layer, and can
decompose a larger build into an orchestrated tree of sub-tasks. It surfaced the same way a lot of
noise does: an Instagram reel with a repo link. Most of those don't survive a second look. This
one did. A repository, a README, a terminal on screen, a named developer. Nothing hidden. A direct
read of its two Node scripts, stop-hook.mjs and install-hooks.mjs, confirmed it: no network
calls, no obfuscation, the hook installer scoped to the project by default rather than reaching
for anything global.
Clean enough to be worth an opinion. The request was for something stronger than an opinion: a
trial.
Designing an experiment instead of forming an impression
The obvious way to trial a discipline tool is to run it once, read the output, and decide whether
it feels more careful. That's not a trial, it's a vibe check, and it's exactly the kind of soft
verdict this hub tries to avoid. So the design went further: two conditions, run per round. A
baseline build, doing the task the ordinary way. A second, disciplined build, running under
unlazy's own gates. Same task, same prompt, dispatched into two isolated scratch folders.
Then the part that matters. Neither build graded itself. A third, independent agent verified both
outputs instead, handed only two neutrally-named folders, explicitly told never to open either
build's own self-report or test files, and instructed to test live behaviour itself rather than
trust anything either build claimed about its own work.
Round 1: a null result
The first round was deliberately easy, a 3-page site with form validation and a responsive layout.
The blind verifier found both builds functionally equivalent: every requirement passed, on both.
The disciplined build cost roughly 2.5x the wall time, 1.9x the tool calls, and 1.4x the tokens of
the baseline, for zero measurable benefit.
That's not a footnote to bury. It's the shape of the result: the task was small enough that
a careful single pass already got it right, which is exactly the case unlazy's own README admits
it isn't built to help with. A trial that only reports the round where the tool wins isn't a
trial. It's marketing with extra steps.
Round 2: the test that lied
The second round raised the difficulty on purpose: a CSV-to-JSON command-line tool with fifteen
distinct edge cases to handle correctly, built under unlazy's orchestrated mode, the build broken
into a tree of sub-tasks four layers deep. Same structure. Baseline and disciplined build,
dispatched blind, verified by a third agent that had no access to either build's own account of
itself.
This time the blind verifier didn't just re-run existing checks. It wrote its own fixtures from
scratch, working from the original requirements rather than either build's interpretation of them.
That's what caught it: a reproducible bug in the baseline build. A trailing blank line at the end
of the input file threw an error instead of being silently ignored, exactly the kind of edge case
a spec-writer expects a competent tool to handle. The disciplined build handled it correctly.
Here's the part that makes it more than a bug report. The baseline build's own, self-authored test
suite had reported that exact case as passing. The code was wrong, and the tests written by the
same process that wrote the code agreed with it.
| Round | Task | Wall time | Tool calls | Tokens | Outcome |
|---|---|---|---|---|---|
| 1 (easy) | 3-page site, form validation, responsive layout | ~2.5x | ~1.9x | ~1.4x | Builds equivalent, no measurable benefit |
| 2 (hard) | CSV-to-JSON CLI, 15 edge cases, tree depth 4 | ~4.7x | ~4.2x | ~1.6x | Baseline shipped a bug its own tests missed; disciplined build caught it |
All costs relative to that round's baseline build (1x).
Why the verifier had to be blind
This is the actual finding, and it isn't about unlazy at all. When one process writes both the
implementation and the tests for it in the same continuous pass, the tests inherit whatever the
implementation got wrong. If the code never considered a trailing blank line, the tests it writes
for itself won't consider one either, not because of carelessness, but because both the mistake
and the blind spot came from the exact same reasoning.
A test suite written by the code's own author can confirm the code does what its author thinks
it does. It can't tell you what its author never thought of.
Re-running the builder's own tests against a second build proves nothing about that gap. It just
re-asks the same question the builder already answered. A verifier that works from the original
spec instead, with no visibility into either build's self-report, has no reason to share that
blind spot. That's the only reason round 2 produced a decisive result instead of two builds that
both claimed to pass.
What this piece owes the reader
One thing this trial did not confirm, and shouldn't be allowed to quietly imply: whether unlazy's
own Stop hook actually engaged during either round. Both builds ran as subagent dispatches inside
an existing session, not as fully separate Claude Code sessions. Whether that dispatch path goes
through the same hook pipeline a separately-launched session would use is unconfirmed. An
unrelated authentication limitation on the machine running the trial ruled out a true
isolated-session test. Not a choice.
So the finding here is narrower than "unlazy's hook mechanism improved the output," and should be
reported that way. What the trial actually demonstrated is that a build carried out under unlazy's
discipline (whatever combination of prompt framing, gates, and possibly hook enforcement produced
it) caught something the baseline build and its own tests missed. It's the method of blind,
spec-driven verification that surfaced it. Whether the hook itself was the load-bearing mechanism
is an open question this trial can't answer, and this piece says so rather
than rounding up to a cleaner story.
The verdict
Filed as trialled, not adopted outright and not dismissed. The real, disclosed limitation above
means it can't be filed as a clean mechanistic win. But the result that did survive verification is
real: on a task with enough discrete edge cases that a careful single pass, and a self-authored
test suite, can plausibly miss one, the disciplined build caught something the baseline confidently
got wrong. On the easy round, it added cost for nothing. The recommendation is task-shaped,
not blanket: worth reaching for on multi-edge-case builds, not worth it on anything a single
careful pass already handles well.
It generalizes past this one tool
The reusable part isn't the specific tool, it's the verification pattern: a blind agent, working
from the original spec, that writes its own fixtures instead of re-running whatever the build
under test already claims passes. Any tool that markets itself as improving completeness or
correctness deserves exactly this kind of check before its claim gets believed, because the
alternative, letting a build (or its author) grade its own homework, is precisely the setup that
let a bug slip past the very test suite meant to catch it.
Originally published at thekilted.dev/the-test-that-passed-a-bug.
