Skip to content
Skills Library
Programming · Testing

negative-control

/negative-control

Prove a check could have failed before reporting it as a pass. Use when writing a pass condition, before marking any case green, when a check passed on the first attempt with no setup, or when deciding whether a run is evidence of anything.

Repository
open-duet ↗
Licence
MIT
Last repository change
30.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Prove a check could have failed before reporting it as a pass. Use when writing a pass condition, before marking any case green, when a check passed on the first attempt with no setup, or when deciding whether a run is evidence of anything.

Original author description

Prove a check could have failed before reporting it as a pass. Use when writing a pass condition, before marking any case green, when a check passed on the first attempt with no setup, or when deciding whether a run is evidence of anything.

How it works

  1. The four controls
  2. What to record
  3. Checks that could not have failed
  4. When no control is possible
Original SKILL.md headings · 67 lines, 578 words
SKILL.md preview
---
name: negative-control
description: Prove a check could have failed before reporting it as a pass. Use when writing a pass condition, before marking any case green, when a check passed on the first attempt with no setup, or when deciding whether a run is evidence of anything.
---

# Negative Control

A check that cannot fail is not evidence — it is a green light wired to nothing.
`AGENTS.md` says any check you run must name a control that could have failed;
this is how to build one and how to spot a check that never could.

## The four controls

Pick the cheapest one that applies to the case in front of you.

| Control | How | What it proves |
| --- | --- | --- |
| **Prior build** | Run the identical steps against the build before the change | The strongest. The change is what moved the result, not the environment or your setup |
| **Broken input** | Change one thing the feature must depend on — wrong id, malformed value, missing required field | You are touching the code you think you are |
| **Off switch** | Flag off, permission revoked, dependency stopped | The path you exercised is the new path, not the old one still serving |
| **Fresh state** | Repeat from empty data, new account, cleared session | The pass belongs to the feature, not to the row you happened to have |

Run the control, **watch it fail**, then run the real check and watch it pass.
Reversing that order — pass first, control afterwards "to be sure" — usually ends
with the control quietly skipped.

## What to record

One sentence in the review record: what you broke, and the failure you saw.

```
Negative control. Re-ran TC-004 with an orderId from another workspace:
200 and the same body → the handler never reads orderId. Check was worthless
and is rewritten as TC-004a.
```

That example is the point. The control's job is to catch checks like TC-004,
which would have gone green against a completely broken feature.

## Checks that could not have failed

Treat any of these as a red flag on the check, not a fact about the feature:

- **Green on the first attempt with no setup.** Nothing had to be arranged for
  the condition to hold, so it probably already held.
- **Two different inputs produce identical output.** The input is not reaching
  the code.
- **It would have passed before the feature existed.** Ask this of every case
  before running it — it is the single most common worthless check.
- **The assertion is on the wrong thing:** page loaded rather than the value on
  it, request returned 200 rather than the record it was supposed to write,
  element present rather than element correct.
- **You read it from a cache.** A stale tab, a CDN, a memoised response, a
  service worker. Hard-reload, or fetch with the cache bypassed, before
  believing any UI pass.
- **The wait did the work.** A check that only passes when you happen to be
  watching, or only after a sleep you added, is timing-dependent — that is a
  finding, not a pass.

## When no control is possible

Say so. Some cases genuinely cannot be inverted cheaply — a destructive
migration, a one-way external side effect, a third-party outage path. Then:

1. Mark the case `not verified`, not `pass`.
2. Name the control that *would* settle it and what it would cost.
3. Carry it into the review's *Not reviewed* section.

`not verified` is a real result and it is safe to publish. A `pass` you could not
control is the one output that makes a team stop looking.

Versions

RepositoryScoreLicence
This page · aomni-com/open-duet100MIT
cookys/autopilot91MIT

Database snapshot: 13.11.2026 · package version 19cbf2270d38 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90prove-checks
    Prove a passing check was capable of failing before recording it as evidence. Use when a test, CI job, build-and-diff, smoke test or rehearsal comes back green and that green is about to be treated as proof - especially when the check depends on a setup mutation (a sed/awk…
  • 100positive-controls-for-absence
    Use when a verification passes because a search, diff, query, or count returned nothing, to prove the instrument could have seen the thing it was looking for.
  • 95hardproof
    Prove coding work before calling it done. Use when the user asks to implement, fix, refactor, migrate, or verify a change and wants evidence, or when the user invokes hardproof. Freezes acceptance checks, runs a read-only independent verifier, and blocks "done" until a gate…
  • 91sawbuck-check
    Verify a passing test or check is real, earned in the source and not gamed by editing a test, grader, or config. Use whenever someone asks whether a fix, a win or passing tests are real, asks to confirm or double-check it before calling it done, or right after you make a change…
  • 90prove-it-can-fail
    Every test, seed, verification script, CI gate, or check must demonstrably be able to fail when the thing it guards is broken. Ask of each check "what does this print if the thing is broken?" Triggers when writing or reviewing any test, smoke, seed, verification file, or CI job,…
  • 86qa-gate
    Run the full done-gate — typecheck, unit, integration/e2e, and visual verification — before claiming work is done. Use before any "done"/"fixed"/"works" claim, before handoff after code changes, or when the user says "verify", "run the gate", "is it green".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.