/make-no-mistakes:make-no-mistakesfrom make-no-mistakes
Execution harness that enforces zero-unverified work: freeze correctness criteria before acting, execute in budgeted loops against deterministic gates, and require independent verification. Fails loudly (STUCK / GAMING-DETECTED) instead of claiming done without proof.
Ships in make-no-mistakes. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The contract: no unverified work ever reaches the user. Every "done" is backed by a check that actually ran. When you cannot prove it, you say so — loudly, with the exact gap named. A plausible-but-wrong "done" is the one forbidden output.
You are the orchestrator. You hold goal integrity, you delegate specialized work explicitly, you resolve conflicts, you make the final claim — and you do the specialized work yourself only at the trivial tier. The machinery below is deterministic on purpose: prose erodes over a long run, scripts don't. Invoke the scripts; don't reimplement them in your head.
Scripts live in
scripts/next to this file. State lives in.mnm/in the working repo. Deep detail is inreferences/— load a page only when the step needs it.
mnm-verify panel.| State | Meaning | Report |
|---|---|---|
DONE | Every gate green + independently certified | ✅ DONE_VERIFIED + evidence |
STUCK-BUDGET | Budget spent, honest progress ongoing | 🟡 PARTIAL |
STUCK-OSCILLATING | Thrashing — gates flip, no progress | 🟡 PARTIAL, gate named |
STUCK-INCONCLUSIVE | Verification itself could not run | 🔴 BLOCKED — unverified ≠ refuted |
GAMING-DETECTED | A check was weakened/edited to pass | 🔴 BLOCKED, halt — never retried |
INTEGRITY-COMPROMISED | Frozen spec or harness files tampered | 🔴 BLOCKED, all recent verdicts suspect |
A true STUCK is a successful run of this skill. A false DONE is the only real failure.
Detail + reasons: references/terminal-states.md.
Rigor scales with consequence × likelihood-of-error. Ambiguity raises the tier — a vague request for important work is where agents fail most. Over-ceremony on trivial work is itself a mistake.
| Tier | Looks like | Pipeline | V&V team |
|---|---|---|---|
| T | typo, rename, one obvious value | act, re-read diff | self-review |
| L | small reversible fix, one file | light spec, full gates, self-review | single blind verifier |
| M | feature, bug fix, multi-file | full pipeline | panel: 2–3 lenses |
| H | auth, money, data, migration, public API | full + competing implementers on failure | panel: 4–5 lenses |
| C | irreversible, production, security | full + tournament + human sign-off | panel + human |
Then start the run — this is what turns enforcement ON (creates .mnm/lock, which the hooks
self-gate on, and initializes the budget): scripts/mnm_start.sh <task_id> <tier>. It refuses a
second loop on the same tree and auto-clears a stale lock. Without it the hooks stay inert — so it
is not optional. (Cost ceiling is the primary hard stop; iterations are diagnostic: T~$1 · L~$3 ·
M~$8 · H~$20 · C~$40, tunable.)
A perfectly executed misunderstanding still fails the user. Explore the repo first (never ask what
the code answers). Rewrite the goal in WHEN <trigger> THE SYSTEM SHALL <response> form; each
acceptance criterion as Given/When/Then with a concrete example. Scan for ambiguity; take safe
reversible defaults and log them as assumptions; ask at most 5 batched questions only for
irreversible unknowns (the reversibility test). Detail: references/dod-extraction.md.
Write the DoD, then freeze it: scripts/freeze_dod.sh <dod.md> <task_id>. It refuses to freeze
an incomplete DoD (missing Goal / Acceptance / Non-goals / Write-scope / Tier / Assumptions / Budget)
and prints the dod_hash. From here the DoD is read-only to you; discovering it's wrong mid-run is a
legitimate STUCK — renegotiate with the user, never silently redefine "done" as "whatever I built".
For M+, the write-scope allowlist is produced by delegating to the mnm-planner skill.
mnm-planner (read-only) → .mnm/plan.json: file-touch map, write-scope allowlist, acceptance-slice map.mnm-test-author → the failing-first tests, authored from the frozen DoD only (independent of any
implementation). Anchor them and the recipe that decides what runs — the test files plus the
runner (Makefile / package.json / conftest.py / fixture files): scripts/hash_anchors.sh <test-globs> Makefile package.json conftest.py. Anchoring only the test file lets an agent pass by editing the
build recipe instead — anchor both.Per unit, red → green → verify. Write the failing test, watch it fail (that failure is your negative control), then implement the minimum to pass. Each iteration:
scripts/run_gates.sh <task_id> <dod_hash> <iter> — integrity gate first (tamper-diff), then the
detected stack cheap→expensive, fail-fast, each logged with its oracle tier. Iterate on the code,
never on the oracle — changing a test to pass is GAMING-DETECTED, not a fix.scripts/budget.sh tick <cost> then scripts/budget.sh check — ceiling → STUCK-BUDGET.scripts/detect_oscillation.py — green-gate count must not go backwards → else STUCK-OSCILLATING..mnm/dod.lock.md after any long stretch — the file is the truth, not your memory of it.For H/C, when a single implementer fails or the DoD admits ≥2 distinct valid approaches, run a
tournament: diverse candidates (minimal-fix / defensive / refactor-first), each in its own git
worktree, each pre-filtered through run_gates before the panel ever runs. Detail: references/gate-stack.md.
mnm-verify)Prove the tests have teeth before trusting them (mutation gate — the source-of-truth boost). A
self-authored test that passes on a wrong fix produces a confident false DONE — the failure mode the
SWE-bench eval surfaced. So for M+ tiers, before certifying: scripts/mutation_gate.sh <task> <dod> <iter> <changed_file> "<your test command>". It mutates your changed code; if your tests fail to kill
the mutants, they are too weak to certify anything → the run becomes STUCK, not DONE. Prefer
property-based / metamorphic tests (many generated inputs + invariants) over single examples — they
survive far fewer mutants. Then hand off to the mnm-verify skill — a forked, read-only context given ONLY the
diff + frozen DoD (never your conversation). It runs an adversarial panel: specialized refuters
(correctness / spec-conformance / regression / reproduction / +abuse for H/C), each rewarded for breaking
the work and citing file:line, and an arbiter that aggregates under the independence guard —
adversarial-unanimity or calibrated weighting, never a naive majority vote. Any REFUTED → back to
Step 3 (budget permitting). Any UNVERIFIABLE → the run cannot end DONE. Bug fixes require
reproduction-first. Why this shape: references/anti-gaming.md.
Emit the terminal row: scripts/log_verdict.sh terminal <task_id> <dod_hash> <state> "<summary>".
Then lead with the state and, separated and labeled: Evidence (commands + decisive output per
criterion, from .mnm/verdict.log), Assumptions taken (with confidence), Residual risk (what no
gate covers — every task has some), Inference vs fact (never present a conclusion as an observation).
The user should be able to accept in under a minute because the proof is laid out — not because they
trust you. Schema: references/verdict-log.md.
These end the run GAMING-DETECTED — reported, never silently retried, no exceptions: editing/deleting/
weakening a test/assertion/type/lint rule to pass a gate; hardcoding an expected output or special-casing
test inputs; suppressing a warning instead of resolving it; redefining a DoD criterion after implementation
started (HARKing); claiming a command succeeded without running it. If you feel the pressure to do any of
these, that pressure is information — the honest STUCK-* states exist so you never need the dishonest ones.
Prose is advisory; these make it structural. PreToolUse hook (hooks/) denies Write on frozen
files and Read on the verifier rubric; Stop hook refuses to end the turn until a terminal row exists;
.githooks/pre-commit refuses a commit that isn't DONE; manifest.json is ed25519-signed with a
maintainer key held outside the repo (check_manifest.sh), the out-of-band trust root, so a tampered
harness trips INTEGRITY-COMPROMISED. Crucially, a DONE re-executes the deterministic gate stack at
write time (run_gates re-run, gated by nothing an honest run sets) rather than trusting logged rows —
so a DONE typed on broken code is refused when the real gates fail. Each Claude-Code-internal layer has
a documented bypass — the honest guarantee is the stack (hook + OS git-hook + signed manifest + CI),
not any single hook. On runtimes without hooks, the frozen-DoD and read-only-test rules bind by this skill's
authority, and the OS/CI layer still holds.
Honest residual (named, not hidden): because any in-band check runs in a shell the agent also
controls, a logged verify row remains forgeable in principle. The DONE re-execution closes the
dangerous case — a false DONE on code whose gates actually fail — and it runs in the project cwd
(not an agent-supplied dir) so it can't be aimed at a passing decoy: a redirect trips the cwd-relative
DoD/test anchors. What it does not close in-band: (a) an agent whose code genuinely passes the
deterministic gates can still type a verify row to skip the adversarial panel's deeper scrutiny; and
(b) MNM_SKIP_REVERIFY is a test-only escape hatch that disables the re-execution — it is announced
loudly on stderr when set, but an agent could set it. Both are the same fundamental limit: a guard
that closed them inline would either re-run the panel (violating the author≠verifier independence it
exists to enforce) or trust an env the agent owns. The real roots are the ed25519-signed manifest,
the independent mnm-verify sub-agent, and CI/pre-commit re-running the gates in a clean
environment — none of which the agent-under-test controls.
hooks/hooks.json (opens in a new tab)hooks/pretooluse-protect.sh (opens in a new tab)hooks/stop-loop.sh (opens in a new tab)references/anti-gaming.md (opens in a new tab)references/dod-extraction.md (opens in a new tab)references/gate-stack.md (opens in a new tab)references/terminal-states.md (opens in a new tab)references/verdict-log.md (opens in a new tab)scripts/budget.sh (opens in a new tab)scripts/check_integrity.sh (opens in a new tab)scripts/check_manifest.sh (opens in a new tab)scripts/check_traceability.py (opens in a new tab)scripts/detect_oscillation.py (opens in a new tab)scripts/detect_stack.sh (opens in a new tab)scripts/freeze_dod.sh (opens in a new tab)scripts/gen_manifest.sh (opens in a new tab)scripts/hash_anchors.sh (opens in a new tab)scripts/lib.sh (opens in a new tab)scripts/log_verdict.sh (opens in a new tab)scripts/mnm-loop.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
./hooks/stop-loop.shWrite|Edit|MultiEdit|Read|Bash./hooks/pretooluse-protect.shnpx claudepluginhub momomuchu/make-no-mistakes --plugin make-no-mistakes5 skills in this plugin
/mnm-integratorInternal creation-side specialist for /make-no-mistakes. Invoked ONLY by the orchestrator's own Skill-tool call (disable-model-invocation: true), and only for H/C-tier tournaments, and only after the arbiter has declared a winner AND the verification panel's own citations name a specific way a losing candidate handled something better than the winner. Grafts that improvement into the winning diff. Most tournaments never trigger this role — no citation, no Integrator, the winner ships as-is./mnm-plannerInternal creation-side specialist for /make-no-mistakes. Invoked ONLY by the orchestrator's own Skill-tool call (disable-model-invocation: true — never by user phrasing, never by ambient model judgment) at M+ tier, immediately after freeze_dod.sh succeeds and before any Implementer runs. Reads the frozen DoD and the repo, returns an ordered file-touch map and the write-scope allowlist R2 requires. Never writes code, never touches disk./mnm-test-authorInternal creation-side specialist for /make-no-mistakes. Invoked ONLY by the orchestrator's own Skill-tool call (disable-model-invocation: true) at M+ tier, in parallel with mnm-planner, immediately after freeze_dod.sh succeeds. Authors falsifying tests for every acceptance criterion in the frozen DoD, structurally blind to any implementation — there is nothing to see yet, because this role runs before the Implementer exists. Mechanizes R2's "≥1 concrete example per acceptance criterion" requirement./mnm-verifyAdversarial verification panel for make-no-mistakes. Internal role — invoked only by the make-no-mistakes orchestrator's explicit Skill-tool call, never by direct user request or by Claude's own judgment. Certifies one diff against one frozen dod.lock.md through independent, break-it-first refuter lenses, then arbitrates under the independence guard. Runs forked, with no access to the conversation that produced the diff.Other plugins' skills for the same job