[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CJ93GRYMHCZZS657RBHPW6":3,"skill-same:01M6CJ93GRYMHCZZS657RBHPW6":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6CJ93GRYMHCZZS657RBHPW6","checks-that-fail-open",null,"A check whose pass condition is an ABSENCE certifies a run that never happened. Restate it as a specific PRESENCE - and an empty result is a broken instrument, never a clean run. Use when the task involves: verify, prove it, sweep, grep returned nothing, zero hits, clean run, it passed, no defects, reviewed, delivered, double check, how do we know.","thefrederiksen\u002Fdevthrottle","thefrederiksen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F220024918?v=4","01M6CJ5XSV9624762E0FDS49BZ","01M6CJ5XY3WWF9943901Y87DEX",110,"MIT","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fagent-discipline\u002Fskills\u002Fchecks-that-fail-open\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"open","checks that fail open","clean","when","prove","result","defects","presence","restate","condition","as","task","do","run","double check","never","use","broken","check","grep","sweep","how","verify","ZeRO","2026-11-10 10:12:30",false,"---\nname: checks-that-fail-open\ndescription: \"A check whose pass condition is an ABSENCE certifies a run that never happened. Restate it as a specific PRESENCE - and an empty result is a broken instrument, never a clean run. Use when the task involves: verify, prove it, sweep, grep returned nothing, zero hits, clean run, it passed, no defects, reviewed, delivered, double check, how do we know.\"\nlicense: MIT\n---\n\n# Checks That Fail Open\n\n**A check FAILS OPEN when its pass condition is an ABSENCE, and FAILS CLOSED when its pass condition is a specific PRESENCE.**\n\nThat is the whole law. Doing nothing at all satisfies an absence. Doing nothing produces the wrong value against a presence.\n\nWritten up 2026-08-07 after this fleet hit the same defect eight times in one day, in eight different media, and nobody recognised it as one thing until they were listed side by side. The ninth will be somewhere nobody predicted, which is why this is a skill and not an issue.\n\n## The root\n\n**Every instance is a measurement standing in for the thing it measures.**\n\n| The measurement | What it stood in for |\n|---|---|\n| \"Delivered\" | received |\n| a working spinner | doing the work you asked for |\n| a count | the list |\n| a tail | the whole output |\n| a comment | the code |\n| ancestry (`git branch --merged`) | the work landed |\n| \"no defects posted\" | reviewed |\n| \"the bad string is gone\" | the true string is present |\n| an empty roster row | nothing to say |\n| an error category | the answer the component actually produced |\n\nAnd the honest reason it goes unnoticed: **the tool usually makes the weaker claim cheap and the stronger claim effortful.** `message send` reported delivery in one command; the blocking ask (since removed) waited for the agent's own answer. Two careful sessions used only the first, all night, without noticing. Today `message send` answers only \"queued\", and the stronger claim is a reply you asked for with `--reply-wanted` and read from your inbox.\n\n## The eight that cost a day\n\n1. **A sweep that searched nothing.** Run by absolute path from outside a repository, `git grep` errored, the return code was ignored, and it printed `files searched: 0 \u002F UNANNOTATED CLAIMS: 0` and exited 0 - certifying the whole repository while searching nothing.\n2. **An `awk` range that never matched.** It printed no delete-shaped calls and looked exactly like proof - inside a writer's own verification of a fix to an overclaim.\n3. **`git grep` with a leading slash, on Windows.** Git Bash rewrites a leading-slash argument to a Windows path before git sees it, so `\u002Fdocs\u002Fstart` arrives as `C:\u002FProgram Files\u002FGit\u002Fdocs\u002Fstart`. **No error, no warning, exit 0.** A sweep run exactly as written in the plan reports a clean pass having searched for the wrong string. Guard with `MSYS_NO_PATHCONV=1`, drop the slash, bracket it as `\"[\u002F]docs\u002Fstart\"`, or use ripgrep.\n4. **A guard that cried wolf on prose ABOUT the defect.** A grep for a bad address also matched the comment discussing that address - so it fired on exactly the file it existed to guard, teaching whoever ran it to wave the hit away.\n5. **A range anchored on a heading.** Rename the heading and the range yields nothing, the grep prints zero lines, zero lines contain no bad string - a pass, while the check ran over nothing.\n6. **A review.** Three review seats died in one night; one had completed its review and recorded the verdict NOWHERE. \"No defects were posted\" is an absence, and is satisfied by a review that never ran.\n7. **A success test reading a truncated tail.** `Delivered to \u003Clong name> (1 session(s)).` wraps; `| tail -1` showed only `session.`; the test looking for `Delivered` failed, and four identical messages all landed while the check said none had.\n8. **A shell that ate the content.** A `gh pr comment --body` containing a backticked filename had it command-substituted away. `gh` posted, returned a URL, and exited 0 - and the published sentence was missing the two words it existed for. **A tool that returns a link is not a tool that returned your content.** Use `--body-file` with a quoted heredoc.\n\n## The repair, which is always the same\n\n**Do not fix an absence-shaped check with more care. Restate it as a presence.**\n\n**And the presence must not filter on the property the defect would fail.** This qualifier is\nload-bearing, and it was learned by watching the law applied mechanically produce a new hole.\nRestating \"the stylesheet is stamped\" as the specific presence\n`count(stamped URLs) == count(stamp placeholders in the template)` is a presence, it is specific,\nand it CANNOT FAIL: add a file that was never stamped at all and both numbers are unchanged. The\nfailing case sits outside both sides of the comparison. **A presence filtered on the property\nunder test is the same hole with a number in front of it** - see the count-shaped section below.\n\n**The presence that works is a DERIVED enumeration with a per-item assertion**: not \"four URLs\nare stamped\" but \"here is every static URL found ON THE PAGE ITSELF, and each one ends with the\nstamp\".\n\n**DERIVED is the whole of it, and it is what reconciles this with \"an enumeration is an\nabsence claim wearing a list's clothes\" under the table.** An enumeration you HAND-KEEP is\nexactly that - it is true only if\nexhaustive and it cannot prove its own exhaustiveness, and the hand-kept list in the\ncount-shaped section below went stale exactly that way: it named three files while the\ntemplate stamped four. An enumeration DERIVED\nfrom the artifact under test - every URL the rendered page actually contains, every input tag\nthe template actually declares - is exhaustive by construction, because the thing being checked\nis the thing being enumerated. **If you had to type the list, it will go stale. If the check\nreads the list off the artifact, it cannot.**\n\n| Fails open | Fails closed |\n|---|---|\n| \"no bad string in the output\" | \"exactly these two lines, and here they are\" |\n| \"zero unannotated claims\" | \"N files searched, and here they are\" |\n| \"no defects were posted\" | \"PASS - here is what I read, and what I could not reach\" |\n| \"nothing currently writes to it\" | \"no write route exists - here is the search\" |\n| \"its only handlers are X, Y, Z\" | \"no `OnPaste`, no `PasteEvent`, no Ctrl+V branch - here is the search\" |\n| \"the bad string is gone\" | \"the corrected string reaches the built artifact\" |\n| \"`git branch --merged` says merged\" | \"the changed files are byte-identical to `origin\u002Fmain`\" |\n| \"N of them carry the stamp, and N is what I expected\" | \"here are ALL of them, and each one carries it\" |\n\n**An enumeration is an absence claim wearing a list's clothes** - true only if exhaustive, and an enumeration cannot prove its own exhaustiveness. One page asserted five event handlers where there were six: the conclusion was right and the evidence was wrong, which is the worst combination, because it survives review.\n\n## Five rules that fall out of it\n\n1. **State all three arms.** A reader assumes two outcomes. There are three: the expected result is a pass, a bad result is the defect, and **an EMPTY result is a repair job on the instrument - never a clean run.**\n2. **Quote the actual output, never the word \"passed\".** A load-bearing count is only load-bearing if it is visible in the record.\n3. **Reconcile a sweep against its own expected inventory.** Name what you expect it to find FIRST, run it, then compare. A count with nothing to compare against proves only that the tool ran - and a truncated sweep is indistinguishable from a clean file. One sweep covered 23 of 37 and reported clean; it was caught only because the missing items were known to exist.\n4. **A control proves the check RAN, not that it reached FAR ENOUGH.** A line count is a control for TRUNCATION, not for SCOPE. An event, a callback, a hook, a registration - any fan-out is a REACH problem, and only enumerating the subscribers answers it.\n5. **Run it against a known-BAD input.** A check only ever run against the state you hope passes has demonstrated nothing. Prove it FIRES as well as passes.\n\n## The subtler sibling: a claim that is RIGHT resting on evidence that is WRONG\n\nHarder to catch, because **the conclusion survives scrutiny precisely because it is correct - so nobody re-examines what it stands on.**\n\nSeen four times in one day, every one found only because a reviewer opened the cited range: a correct negative proved by an incomplete enumeration; a correctly narrowed claim citing a comment about a different class; a correct exoneration resting on a comment saying so; and a real experiment with a correct conclusion whose one wrong detail would have argued for the wrong practice **while citing the experiment as proof**.\n\nA wrong conclusion gets argued with. A right conclusion with false evidence gets agreed with, cited, and inherited - and the falsehood travels inside it.\n\n**Agreeing with a conclusion is not a reason to skip its citation - it is the situation where skipping is most likely and most costly.** And when you cannot find evidence for something you believe is true, **say less** rather than reaching for the nearest plausible citation.\n\n## Applying it to review, which is where it costs most\n\n- State a **PASS** as explicitly as a defect, naming what you checked AND what you could not reach. A pass with no stated scope cannot be judged by anyone who was not there - and everybody who was there is exactly the population that disappears. Report it wherever the review was asked for; if you have been asked to publish it somewhere, publish the same scope there.\n- **Name the artifact, not just \"durably\".** Where a verdict is recorded decides whether it survives, and the tiers are not equal: a comment on the change beats a pushed file beats a committed file beats a local one beats a message that scrolls away. \"Durably\" with no named target lets someone pick the weakest rung and believe they complied. Do not write to anywhere you were not asked to write - a review that posts itself somewhere unexpected is its own defect.\n- A verdict on file that covers a commit which is no longer the head **is not a verdict on the head**. A verification has a timestamp.\n- **A comment describing a fix is itself a claim, and goes stale like any other text.** A durability rule manufactures this surface: telling a fleet to write everything down produces comment blocks, inventory rows and defect narratives, all of which read as commentary and none of which is exempt. The rule ships with the leg-hunt attached.\n\n## The COUNT-SHAPED check, and three siblings (2026-08-20)\n\nFour more, in one evening, between two sessions. The first three are one shape and it is not\ncovered above: it is not an absence, it is a **comparison of two numbers where BOTH SIDES FILTER\nON THE PROPERTY THE DEFECT WOULD FAIL**, so the failing case sits outside both sides and is\ninvisible to the comparison. The check is a presence, it is specific, and it still cannot fail.\n\n- A hand-kept list naming three stamped static files while the template stamped FOUR. The fourth\n  arrived with a later feature and nobody updated the list; the test passed on the three it knew.\n- `assert page.count(stamp) == template.count(stamp_placeholder)`. Add a fifth static file with\n  NO stamp and both numbers stay four - counts agree, test passes, page ships an unstamped file.\n  **Measured ALIVE** by mutation before the repair.\n- `assert page.count(\"data-default\") >= 2` on a slider-reset control. It counts only the sliders\n  that HAVE a default, so a slider with none is invisible and never gets reset. **Measured ALIVE.**\n\n**One sentence: a test checking a NUMBER ABOUT the thing instead of the thing.** The repair is\nalways to enumerate and assert the property of EACH item - every static URL carries the stamp;\nevery range input carries a default.\n\n**How the third was found, which is the transferable part.** Not by re-reading, and not by\ngrepping for `count(`. By searching the suite for the DEFECT'S SHAPE: *which assertion compares\ntwo numbers where both sides filter on the property the defect would fail.* Searching by the TOOL\n(`ast.walk`, `rglob`, `count(`) finds duplicates of a mechanism. Searching by the SHAPE finds the\nsame defect in code that shares no tool with it - a stamp count and a slider count have nothing\nin common but the shape. **When you fix one instance, search for its shape before you close it.**\n\nTwo other count-shaped assertions in the same window were put to the same mutation and CAUGHT it.\nSay so. \"I examined three and fixed one\" and \"I fixed one\" are different claims.\n\n### A guard whose blind spot is ALIGNED WITH ITS OWN SUCCESS CONDITION\n\nA syntax-tree guard stopped test files building their own template environment, but scanned only\n`test_*.py`. `conftest.py` is exactly where a helper LANDS when somebody tidies it out of a test\nfile - so the guard went blind at precisely the moment its own success condition was being met.\n\n**Ask of any guard: when this succeeds, where does the thing it forbids MOVE TO - and can the\nguard see there?** A blind spot pointed at your own success is worse than a random one, because\nit opens exactly when the guard appears to be working.\n\n### Prose that contradicted the code IN THE SAME BREATH\n\nThe skill's closing law - *prose about a rule is not the rule* - has a sharper form. That finder's\ndocstring claimed an aliased import was found. True of `import jinja2 as j`; FALSE of\n`from jinja2 import Environment as Env`, which binds a different name it never matched. **Not\ndrift. It was never true**, written wrong alongside the code it described, and no suite anywhere\ncould have said so.\n\nUnrun prose DRIFTS from the code and someone eventually notices. Prose that was false when written\nhas no moment of divergence to notice. **Write the reach as a TEST first and the sentence second.**\n\nThe executable form: a test named `..._and_that_is_declined` that asserts the CURRENT behaviour of\neach known gap, plus a note that if it goes red the guard GREW and the note should be deleted\nrather than repaired. **The line for closing a gap versus declining it is ACCIDENT versus\nEVASION** - who would do this, and why - rather than what a parser can reach.\n\n### Reading a tool's PROSE when it has an exit code\n\nInstance 7 above is `| tail -1` truncating a delivery message. This is its general\nform, and it is worth separating because the repair is one word rather than a habit.\n\nSweeping nine containers to prove a fixed guard fired on the stale ones, the harness\nparsed pytest's own output with `tail -2 | head -1` and read the PROGRESS line\n(`.` \u002F `[100%]`) as the summary. It reported the guard firing on all nine, including\nthe three that were correct - which would have sent somebody to \"fix\" a guard that\nwas already right. It did not error. It produced a plausible wrong answer.\n\nIt was caught only by contradiction with a full run done minutes earlier. **That is\nnot a method, it is luck**, and it does not scale to the checks nobody happens to\nhave a contradicting run for.\n\n**The rule: if the tool sets an exit code, read the exit code.** `pytest`, `git`,\n`grep`, `curl`, `docker` all do. Parsing their human-readable output is choosing the\nweaker signal when the stronger one is one character away - the skill's own root,\nthat the tool makes the weak claim cheap and the strong claim effortful, except here\nthe strong claim is CHEAPER and gets skipped from habit.\n\n| Weak, and what breaks it | Strong |\n|---|---|\n| `grep -c passed` on pytest output | `pytest ...; echo $?` |\n| `tail -1` on anything that wraps | the exit code, or the whole output |\n| \"the word ERROR does not appear\" | the exit code, plus what it printed |\n| a JSON tool piped through `head` | parse the JSON |\n\nAnd when there is genuinely no exit code - a message tool, an API that always\nreturns 200 - **do not parse the summary line. Read the artifact back.** Fetch the\npublished page, re-read the row, list the assets. The write's own report of itself\nis the thing under test, not the evidence for it.\n\n### \"Each of N does X\" answered by counting matches of ONE SPELLING of X\n\nChecking a claim that all three syntax-tree guards carried a can-it-actually-see-one self-test, a\nsession grepped for one spelling and matched one of three - a FALSE NEGATIVE. The other two spell\nthe same idea `test_an_assignment_counts_and_an_import_does_not` and\n`test_the_scan_finds_the_imports_that_are_there`.\n\n**When the claim is \"each of N does X\", ENUMERATE the N and inspect each**, because X is spelled\ndifferently by whoever wrote it. Counting matches of one spelling is the count-shaped defect again.\n\nAnd the meta-lesson, which is why that one is in here at all: **a claim that is right by ACCIDENT\nteaches nothing and leaves the broken method in place.** Being right because the check worked and\nbeing right while the check was broken look identical in the report. The second is worse than\nbeing wrong, because being wrong gets fixed. It is the mirror of the RIGHT-claim-on-WRONG-evidence\nsection above, seen from the checker's side rather than the author's.\n\n## An extraction whose END is arbitrary (2026-08-21)\n\nDifferent from the range anchored on a heading in the list of eight above, and it is worth\nkeeping both: there the range failed to match and yielded nothing, which at least LOOKS empty.\nHere the range MATCHES and returns text - text that exists nowhere in the file.\n\n```bash\nsed -n \"\u002Fsized like the content\u002F,+14p\" UI_STYLE_GUIDE.md\n```\n\nThe start is anchored on structure. The end is `+14`, a distance. Fourteen lines happened to\ncross a section boundary, so the output spliced the tail of one paragraph onto the head of\nanother and read as a single fluent sentence:\n\n```text\n...the movement of the element BELOW it, which must be\nalready rejects. A single-section screen gets the skeleton...\n```\n\nBoth halves are real. The sentence is not. The reader was one message away from reporting a\nfreshly-merged document as containing garbled prose, on evidence their own command had\nmanufactured.\n\n**An extraction whose end is an arbitrary distance can manufacture a plausible reading that\nexists in no file.** A truncation you can SEE is a nuisance; a splice you cannot see is false\nevidence, and it is worse the more fluent the result.\n\n**Anchor BOTH ends on structure, or read the whole thing.** `sed -n '\u002F^## 8\u002F,\u002F^## 9\u002Fp'` has an\nend that means something. `+14` means \"as far as I guessed\".\n\nThe general form is the same root as everything else here: the window stood in for the document.\nAnd the tell is the one below - `+14` is a specific value, so it is a hand-kept list of one.\n\n## The CATEGORY standing in for the ANSWER (2026-08-21)\n\nA screen pointed at a wide log returned `HTTP 500`. It was not a crash. The renderer had\nDECLINED, deliberately, above a threshold of `len(model.stations) > 60`, and had written the\nreader a sentence with the fix in it - verbatim from the source and confirmed identical in the\nlive response:\n\n```text\nRefusing to lay out 135 stations - the result would be a hairball that\ndiscredits the data. Fold the activity vocabulary harder (see\nabstract(fold=...)) or restrict object_types.\n```\n\nWhat reached the reader was `Error: HTTP 500`.\n\nThe log was the German Bundestag object-centric dataset, period 20\n(DOI 10.5281\u002Fzenodo.16811928, CC-BY 4.0): 62,719 events, 44 object types, 148 event types. The\n135 is what THIS log produced, not a constant.\n\n**A route that turns a deliberate, actionable refusal into a generic failure has thrown away the\nonly useful thing on the screen.**\n\nIt belongs in this skill because **no check anywhere was failing, and every layer was locally\ncorrect.** The engine correctly refused and said why. The client correctly declines to render a\n5xx body, because a 5xx body is a stack trace and not a message for a reader. The route\n\"correctly\" reported an error for an exception. Three right answers compose into a screen that\ntells the reader nothing.\n\nIt is the root of this skill with the CATEGORY standing in for the ANSWER. A status code, an\nexception class, an error enum, a log level - each is metadata ABOUT an answer, and a pipeline\nthat propagates only the metadata destroys the answer while every component reports success.\nThe observable was present; the presence was of the wrong thing.\n\n**The defect lives in the SEAM, and nothing tests seams.** The presence that fails closed is\nend-to-end and is about content, not status: assert that the SENTENCE the component wrote\nreaches the rendered page. Not that the call returned. Not that the status was appropriate.\n\n### The half that transfers furthest: an instance fix is a hand-kept list of one\n\n**That defect had already been fixed once, on that same route, and shipped as done.** On\n2026-08-20, in `def train_map_canvas`, a single `except _trainmap.TooFewObjectTypes` was added,\nreturning an `HTMLResponse` with no `status_code` - which is 200. Every other refusal the engine\ncan write went on failing for another day, and it surfaced only when somebody finally pointed a\n44-object-type log at the screen - the sample could not produce a refusal at all.\n\nTeaching ONE exception type to answer correctly is **a hand-kept enumeration at its smallest\npossible size**, which this skill already says goes stale and cannot prove its own exhaustiveness.\nAt length one it is almost invisible, because it arrives with a passing test beside it and looks\nexactly like a fix. The derived repair drives the exception TYPE through the route, so every\nrefusal the engine can write is covered by construction rather than by a list somebody maintains.\n\n**The tell, and it is cheap to check: a fix that names a specific VALUE is a hand-kept list of\none.** One exception class, one status code, one message string, one column name, one file. When\nyou see that shape, the question is not \"is this fix correct\" - it usually is - but **\"what class\nis this an instance of, and what else is in it?\"**\n\nFix the class, or say in the commit that you knowingly fixed one instance and why. An instance fix\nwith no such note is indistinguishable from a class fix six weeks later, and the difference is a\nday of somebody else's time.\n\n### A postscript, because it happened while this entry was being written\n\nThe four facts above were taken from a chat message and were about to be published unverified -\ninto this skill, in the section about correct conclusions resting on evidence nobody checked. They\nwere sent back to be read off the branch instead. **Three were right. The wrong one was the\nverbatim quote**, which is the single thing in an entry like this that most needs to be exact.\n\nThe parenthetical `(see abstract(fold=...))` had been dropped, and it had been dropped in THREE\nplaces - the message, the commit message, and the author's own timings document - because it was\ncopied forward from the first write-up rather than re-read from the source each time. Quoted\nwhole, the sentence carries a second finding for free: a developer-facing API hint sitting in the\nmiddle of reader-facing prose. Quoted as it had been copied, it reads as clean product writing,\nwhich is the opposite of true.\n\n**Copying a quotation forward is not quoting. Re-read the source every time, including from your\nown earlier write-up** - especially from your own earlier write-up, because that is the copy you\ntrust without noticing you are trusting it.\n\n## SELECTING THE WRONG LINE, which returns something complete and false (2026-08-21)\n\nDifferent from the truncated tail in the eight, and the difference is the whole\npoint. That one LOST content - `Delivered to \u003Cname> (1 session(s)).` wrapped and\n`tail -1` showed `session.`, which is visibly a fragment. This one returns a\nwhole line, correctly formatted, that is not the line you wanted and carries no\nwarning that it is not.\n\n**Produced deliberately for this entry**, on a real suite with a planted failing\ntest, rather than written from memory of it happening:\n\n```\n$ python -m pytest tests\u002Ftest_train_map_edges.py -q > run.log ; echo $?\n1\n\n$ tail -2 run.log | head -1\nFAILED tests\u002Ftest_train_map_edges.py::test_deliberately_failing_...\n```\n\nSo far so good, by luck. Now the same command on a run that PASSES:\n\n```\n$ python -m pytest tests\u002Ftest_train_map_edges.py -q > run.log ; echo $?\n0\n\n$ tail -2 run.log | head -1\n-- Docs: https:\u002F\u002Fdocs.pytest.org\u002Fen\u002Fstable\u002Fhow-to\u002Fcapture-warnings.html\n```\n\n**A documentation URL, presented as a test result.** Nothing is malformed. The\nline that `-2` lands on depends on whether pytest emitted a warnings block, so\nthe reading's meaning changes with the weather. Search that for `failed`, find\nnothing, call it green - right by accident. Search it for `passed`, find nothing,\ncall it red - wrong, on a suite that passed.\n\n### And the short forms are worse - in OPPOSITE directions\n\nAll four cases, run rather than reasoned about. Six tests, one `warnings.warn` so\nthe warnings block exists, one test deliberately NAMED `test_five_handles_failed_login`,\nand `assert 1 == 2` planted for the failing rows:\n\n```\ncase            exit   grep -c passed   grep -c failed   LAST line matching passed|failed\nall pass, -q      0          1                0          6 passed, 1 warning in 0.08s\nall pass, -v      0          1                1  \u003C-!     ====== 6 passed, 1 warning in ...\none fail, -q      1          1  \u003C-!            1          1 failed, 5 passed, 1 warning ...\none fail, -v      1          1  \u003C-!            2          ====== 1 failed, 5 passed, ...\n```\n\n**`grep -c passed` is 1 in ALL FOUR.** It does not distinguish anything. The\nsummary of a failing run reads `1 failed, 5 passed, 1 warning` - the word `passed`\nis inside the failure - so a grep for the good news matches the bad news, always.\n\n**`grep -c failed` is 1 on a fully PASSING verbose run.** The line it matches is:\n\n```\ntest_probe.py::test_five_handles_failed_login PASSED                     [ 83%]\n```\n\nA test NAME. Under `-q` pytest never prints a passing test's name, so there is\nnothing to match and the trap is invisible; under `-v` it fires. Which of the two\nshort forms is wrong therefore depends on **a verbosity flag nobody thinks of as\npart of the check** - and one of them is wrong either way.\n\nThey fail in opposite directions, which is worse than either alone:\n\n- `grep -c passed` **fails open** - good news on a broken run.\n- `grep -c failed` **false-alarms** - a failure count on a run where everything\n  passed. A team that meets that a few times learns to wave the count away, which\n  is entry 4 of the eight arriving by a different road.\n\n### The cases OUTSIDE those four rows, where every reading says clean\n\nThe four rows above all assume the suite RAN. Reproduced across two machines,\nhere is what happens when it did not:\n\n```\ncase                                 exit   c:passed  c:failed   LAST passed|failed line\ncollection error (syntax error)        2        0         0      (empty)\nno tests at all (bare directory)       5        0         0      (empty)\n-k matching nothing, real suite        5        0         0      (empty)\nfile present, no test functions        5        0         0      (empty)\n-k matching SOME, real suite           0        1         0      1 passed, 5 deselected\n```\n\nThe real summaries are `1 error in 0.31s`, `no tests ran in 0.00s` and\n`6 deselected in 0.01s` - **none of which contains the word `passed` or the word\n`failed`**.\n\nSo `grep -c failed` returns **0 - clean** for a suite that never ran. That is this\ndocument's headline defect, committed by the check people use to police it.\n\nThe realistic instance is the third row: a CI step filtering on a test name, the\ntest gets renamed, the filter matches nothing, and the step runs zero tests\nforever while every prose reading reports clean. Nobody edits that step again.\n\nThe sound form - the last line matching `passed|failed` - returns an **empty\nstring** in the first four. That is rule 1 of this document: an empty result is a\nbroken instrument, never a clean run. It is sound inside the four rows and SILENT\noutside them, and silence is what a caller reads as fine.\n\n### The exit code, corrected twice\n\nThe first version of this entry said the exit code is \"0 and 1, correct in all\nfour\". True of the four cases that had been run, and **too narrow** - which is the\nsame defect as everything else here, applied to the advice.\n\nPytest uses **2** for a collection error and **5** for no-tests-collected. A\nscript asking `if exit == 1 then failed` calls a suite that never ran\nnot-failed.\n\n**Exit 0 is the only success. Every non-zero is not. Never test for 1.**\n\n**And that is still not sufficient**, which the last row proves:\n\n```\n$ pytest test_probe.py -q -k test_one ; echo $?\n1 passed, 5 deselected in 0.06s\n0\n```\n\n**Exit 0. Five of six tests never ran.** Every check named in this entry passes\nthat: exit is 0, `grep -c failed` is 0, and the sound form returns a real summary\nrather than an empty string. A filter whose name has drifted lands here rather\nthan on exit 5 the moment it still matches ONE thing.\n\nThe complete form is this document's own rule 3 - reconcile a sweep against its\nexpected inventory - pointed at its own test suites:\n\n**exit 0 AND the collected count reconciled against what you expected to find.**\n\nExit 0 says nothing failed. It does not say your 812 tests ran.\n\n### The same shape in the skill cache itself\n\nChecking whether an entry had landed, the local copy of a shared document -\nthis very skill, cached on disk by the agent that had loaded it - was a version\nbehind. Searching it for a section that had just been published returned nothing,\nand the next step would have been to report the section missing: from a v4, about\na v5.\n\n**A local cache of a shared document is a hand-kept copy that looks\nauthoritative and carries no version on its face.** Fetch from the source before\nsaying a section is absent. Same shape as copying a quotation forward: the copy\nyou trust without noticing is your own.\n\n---\n\n## Care is not the mechanism. Reproduction is.\n\nTwo sessions produced everything in the two 2026-08-21 sections above by refusing\nto take each other's word. Every single finding came from the other one declining\nto accept a report and running it instead:\n\n- three readings reported -> a fourth case found in reproducing them\n- that fourth case reported -> a fifth found, `grep -c passed` constant in all four\n- the four-row table reported -> the cases OUTSIDE the four rows found\n- the exit-code rule recommended -> its own author found it too narrow, and then\n  the reader found a case that defeats the corrected version too\n\n**Both parties were being careful the whole time.** Care is what produces a\nconfident wrong reading - a quotation copied forward three times, a `+14` window,\na grep for one spelling, an exit-code rule true of the cases its author had run.\nNone of those is carelessness; each is a competent person going one step less far\nthan the step that would have caught it.\n\nThe practice that caught them is cheap and unpleasant: **do not accept a reported\nresult into anything permanent, and do not accept your own from an earlier\nwrite-up.** Ask for the command. Run it. Then run the case next to it.\n\nStated as what it cost rather than as a principle: of eleven findings across one\nevening, ZERO were found by the person who made the mistake, and every one was\nfound within minutes of somebody else refusing to take the report on trust.\n\n---\n\n## And the reason this is a skill\n\n**Prose about a rule is not the rule.** A note saying \"check both surfaces\" cannot check both surfaces. Three times in one night, somebody broke a rule in the same file where they had just written it - because writing the note FEELS like doing the work.\n\nEvery law that held that night held because it was a command somebody could run. Every one that failed was prose. **Ship the check, not the reminder.**\n","# Checks That Fail Open\n\n**A check FAILS OPEN when its pass condition is an ABSENCE, and FAILS CLOSED when its pass condition is a specific PRESENCE.**\n\nThat is the whole law. Doing nothing at all satisfies an absence. Doing nothing produces the wrong value against a presence.\n\nWritten up 2026-08-07 after this fleet hit the same defect eight times in one day, in eight different media, and nobody recognised it as one thing until they were listed side by side. The ninth will be somewhere nobody predicted, which is why this is a skill and not an issue.\n\n## The root\n\n**Every instance is a measurement standing in for the thing it measures.**\n\n| The measurement | What it stood in for |\n|---|---|\n| \"Delivered\" | received |\n| a working spinner | doing the work you asked for |\n| a count | the list |\n| a tail | the whole output |\n| a comment | the code |\n| ancestry (`git branch --merged`) | the work landed |\n| \"no defects posted\" | reviewed |\n| \"the bad string is gone\" | the true string is present |\n| an empty roster row | nothing to say |\n| an error category | the answer the component actually produced |\n\nAnd the honest reason it goes unnoticed: **the tool usually makes the weaker claim cheap and the stronger claim effortful.** `message send` reported delivery in one command; the blocking ask (since removed) waited for the agent's own answer. Two careful sessions used only the first, all night, without noticing. Today `message send` answers only \"queued\", and the stronger claim is a reply you asked for with `--reply-wanted` and read from your inbox.\n\n## The eight that cost a day\n\n1. **A sweep that searched nothing.** Run by absolute path from outside a repository, `git grep` errored, the return code was ignored, and it printed `files searched: 0 \u002F UNANNOTATED CLAIMS: 0` and exited 0 - certifying the whole repository while searching nothing.\n2. **An `awk` range that never matched.** It printed no delete-shaped calls and looked exactly like proof - inside a writer's own verification of a fix to an overclaim.\n3. **`git grep` with a leading slash, on Windows.** Git Bash rewrites a leading-slash argument to a Windows path before git sees it, so `\u002Fdocs\u002Fstart` arrives as `C:\u002FProgram Files\u002FGit\u002Fdocs\u002Fstart`. **No error, no warning, exit 0.** A sweep run exactly as written in the plan reports a clean pass having searched for the wrong string. Guard with `MSYS_NO_PATHCONV=1`, drop the slash, bracket it as `\"[\u002F]docs\u002Fstart\"`, or use ripgrep.\n4. **A guard that cried wolf on prose ABOUT the defect.** A grep for a bad address also matched the comment discussing that address - so it fired on exactly the file it existed to guard, teaching whoever ran it to wave the hit away.\n5. **A range anchored on a heading.** Rename the heading and the range yields nothing, the grep prints zero lines, zero lines contain no bad string - a pass, while the check ran over nothing.\n6. **A review.** Three review seats died in one night; one had completed its review and recorded the verdict NOWHERE. \"No defects were posted\" is an absence, and is satisfied by a review that never ran.\n7. **A success test reading a truncated tail.** `Delivered to \u003Clong name> (1 session(s)).` wraps; `| tail -1` showed only `session.`; the test looking for `Delivered` failed, and four identical messages all landed while the check said none had.\n8. **A shell that ate the content.** A `gh pr comment --body` containing a backticked filename had it command-substituted away. `gh` posted, returned a URL, and exited 0 - and the published sentence was missing the two words it existed for. **A tool that returns a link is not a tool that returned your content.** Use `--body-file` with a quoted heredoc.\n\n## The repair, which is always the same\n\n**Do not fix an absence-shaped check with more care. Restate it as a presence.**\n\n**And the presence must not filter on the property the defect would fail.** This qualifier is\nload-bearing, and it was learned by watching the law applied mechanically produce a new hole.\nRestating \"the stylesheet is stamped\" as the specific presence\n`count(stamped URLs) == count(stamp placeholders in the template)` is a presence, it is specific,\nand it CANNOT FAIL: add a file that was never stamped at all and both numbers are unchanged. The\nfailing case sits outside both sides of the comparison. **A presence filtered on the property\nunder test is the same hole with a number in front of it** - see the count-shaped section below.\n\n**The presence that works is a DERIVED enumeration with a per-item assertion**: not \"four URLs\nare stamped\" but \"here is every static URL found ON THE PAGE ITSELF, and each one ends with the\nstamp\".\n\n**DERIVED is the whole of it, and it is what reconciles this with \"an enumeration is an\nabsence claim wearing a list's clothes\" under the table.** An enumeration you HAND-KEEP is\nexactly that - it is true only if\nexhaustive and it cannot prove its own exhaustiveness, and the hand-kept list in the\ncount-shaped section below went stale exactly that way: it named three files while the\ntemplate stamped four. An enumeration DERIVED\nfrom the artifact under test - every URL the rendered page actually contains, every input tag\nthe template actually declares - is exhaustive by construction, because the thing being checked\nis the thing being enumerated. **If you had to type the list, it will go stale. If the check\nreads the list off the artifact, it cannot.**\n\n| Fails open | Fails closed |\n|---|---|\n| \"no bad string in the output\" | \"exactly these two lines, and here they are\" |\n| \"zero unannotated claims\" | \"N files searched, and here they are\" |\n| \"no defects were posted\" | \"PASS - here is what I read, and what I could not reach\" |\n| \"nothing currently writes to it\" | \"no write route exists - here is the search\" |\n| \"its only handlers are X, Y, Z\" | \"no `OnPaste`, no `PasteEvent`, no Ctrl+V branch - here is the search\" |\n| \"the bad string is gone\" | \"the corrected string reaches the built artifact\" |\n| \"`git branch --merged` says merged\" | \"the changed files are byte-identical to `origin\u002Fmain`\" |\n| \"N of them carry the stamp, and N is what I expected\" | \"here are ALL of them, and each one carries it\" |\n\n**An enumeration is an absence claim wearing a list's clothes** - true only if exhaustive, and an enumeration cannot prove its own exhaustiveness. One page asserted five event handlers where there were six: the conclusion was right and the evidence was wrong, which is the worst combination, because it survives review.\n\n## Five rules that fall out of it\n\n1. **State all three arms.** A reader assumes two outcomes. There are three: the expected result is a pass, a bad result is the defect, and **an EMPTY result is a repair job on the instrument - never a clean run.**\n2. **Quote the actual output, never the word \"passed\".** A load-bearing count is only load-bearing if it is visible in the record.\n3. **Reconcile a sweep against its own expected inventory.** Name what you expect it to find FIRST, run it, then compare. A count with nothing to compare against proves only that the tool ran - and a truncated sweep is indistinguishable from a clean file. One sweep covered 23 of 37 and reported clean; it was caught only because the missing items were known to exist.\n4. **A control proves the check RAN, not that it reached FAR ENOUGH.** A line count is a control for TRUNCATION, not for SCOPE. An event, a callback, a hook, a registration - any fan-out is a REACH problem, and only enumerating the subscribers answers it.\n5. **Run it against a known-BAD input.** A check only ever run against the state you hope passes has demonstrated nothing. Prove it FIRES as well as passes.\n\n## The subtler sibling: a claim that is RIGHT resting on evidence that is WRONG\n\nHarder to catch, because **the conclusion survives scrutiny precisely because it is correct - so nobody re-examines what it stands on.**\n\nSeen four times in one day, every one found only because a reviewer opened the cited range: a correct negative proved by an incomplete enumeration; a correctly narrowed claim citing a comment about a different class; a correct exoneration resting on a comment saying so; and a real experiment with a correct conclusion whose one wrong detail would have argued for the wrong practice **while citing the experiment as proof**.\n\nA wrong conclusion gets argued with. A right conclusion with false evidence gets agreed with, cited, and inherited - and the falsehood travels inside it.\n\n**Agreeing with a conclusion is not a reason to skip its citation - it is the situation where skipping is most likely and most costly.** And when you cannot find evidence for something you believe is true, **say less** rather than reaching for the nearest plausible citation.\n\n## Applying it to review, which is where it costs most\n\n- State a **PASS** as explicitly as a defect, naming what you checked AND what you could not reach. A pass with no stated scope cannot be judged by anyone who was not there - and everybody who was there is exactly the population that disappears. Report it wherever the review was asked for; if you have been asked to publish it somewhere, publish the same scope there.\n- **Name the artifact, not just \"durably\".** Where a verdict is recorded decides whether it survives, and the tiers are not equal: a comment on the change beats a pushed file beats a committed file beats a local one beats a message that scrolls away. \"Durably\" with no named target lets someone pick the weakest rung and believe they complied. Do not write to anywhere you were not asked to write - a review that posts itself somewhere unexpected is its own defect.\n- A verdict on file that covers a commit which is no longer the head **is not a verdict on the head**. A verification has a timestamp.\n- **A comment describing a fix is itself a claim, and goes stale like any other text.** A durability rule manufactures this surface: telling a fleet to write everything down produces comment blocks, inventory rows and defect narratives, all of which read as commentary and none of which is exempt. The rule ships with the leg-hunt attached.\n\n## The COUNT-SHAPED check, and three siblings (2026-08-20)\n\nFour more, in one evening, between two sessions. The first three are one shape and it is not\ncovered above: it is not an absence, it is a **comparison of two numbers where BOTH SIDES FILTER\nON THE PROPERTY THE DEFECT WOULD FAIL**, so the failing case sits outside both sides and is\ninvisible to the comparison. The check is a presence, it is specific, and it still cannot fail.\n\n- A hand-kept list naming three stamped static files while the template stamped FOUR. The fourth\n  arrived with a later feature and nobody updated the list; the test passed on the three it knew.\n- `assert page.count(stamp) == template.count(stamp_placeholder)`. Add a fifth static file with\n  NO stamp and both numbers stay four - counts agree, test passes, page ships an unstamped file.\n  **Measured ALIVE** by mutation before the repair.\n- `assert page.count(\"data-default\") >= 2` on a slider-reset control. It counts only the sliders\n  that HAVE a default, so a slider with none is invisible and never gets reset. **Measured ALIVE.**\n\n**One sentence: a test checking a NUMBER ABOUT the thing instead of the thing.** The repair is\nalways to enumerate and assert the property of EACH item - every static URL carries the stamp;\nevery range input carries a default.\n\n**How the third was found, which is the transferable part.** Not by re-reading, and not by\ngrepping for `count(`. By searching the suite for the DEFECT'S SHAPE: *which assertion compares\ntwo numbers where both sides filter on the property the defect would fail.* Searching by the TOOL\n(`ast.walk`, `rglob`, `count(`) finds duplicates of a mechanism. Searching by the SHAPE finds the\nsame defect in code that shares no tool with it - a stamp count and a slider count have nothing\nin common but the shape. **When you fix one instance, search for its shape before you close it.**\n\nTwo other count-shaped assertions in the same window were put to the same mutation and CAUGHT it.\nSay so. \"I examined three and fixed one\" and \"I fixed one\" are different claims.\n\n### A guard whose blind spot is ALIGNED WITH ITS OWN SUCCESS CONDITION\n\nA syntax-tree guard stopped test files building their own template environment, but scanned only\n`test_*.py`. `conftest.py` is exactly where a helper LANDS when somebody tidies it out of a test\nfile - so the guard went blind at precisely the moment its own success condition was being met.\n\n**Ask of any guard: when this succeeds, where does the thing it forbids MOVE TO - and can the\nguard see there?** A blind spot pointed at your own success is worse than a random one, because\nit opens exactly when the guard appears to be working.\n\n### Prose that contradicted the code IN THE SAME BREATH\n\nThe skill's closing law - *prose about a rule is not the rule* - has a sharper form. That finder's\ndocstring claimed an aliased import was found. True of `import jinja2 as j`; FALSE of\n`from jinja2 import Environment as Env`, which binds a different name it never matched. **Not\ndrift. It was never true**, written wrong alongside the code it described, and no suite anywhere\ncould have said so.\n\nUnrun prose DRIFTS from the code and someone eventually notices. Prose that was false when written\nhas no moment of divergence to notice. **Write the reach as a TEST first and the sentence second.**\n\nThe executable form: a test named `..._and_that_is_declined` that asserts the CURRENT behaviour of\neach known gap, plus a note that if it goes red the guard GREW and the note should be deleted\nrather than repaired. **The line for closing a gap versus declining it is ACCIDENT versus\nEVASION** - who would do this, and why - rather than what a parser can reach.\n\n### Reading a tool's PROSE when it has an exit code\n\nInstance 7 above is `| tail -1` truncating a delivery message. This is its general\nform, and it is worth separating because the repair is one word rather than a habit.\n\nSweeping nine containers to prove a fixed guard fired on the stale ones, the harness\nparsed pytest's own output with `tail -2 | head -1` and read the PROGRESS line\n(`.` \u002F `[100%]`) as the summary. It reported the guard firing on all nine, including\nthe three that were correct - which would have sent somebody to \"fix\" a guard that\nwas already right. It did not error. It produced a plausible wrong answer.\n\nIt was caught only by contradiction with a full run done minutes earlier. **That is\nnot a method, it is luck**, and it does not scale to the checks nobody happens to\nhave a contradicting run for.\n\n**The rule: if the tool sets an exit code, read the exit code.** `pytest`, `git`,\n`grep`, `curl`, `docker` all do. Parsing their human-readable output is choosing the\nweaker signal when the stronger one is one character away - the skill's own root,\nthat the tool makes the weak claim cheap and the strong claim effortful, except here\nthe strong claim is CHEAPER and gets skipped from habit.\n\n| Weak, and what breaks it | Strong |\n|---|---|\n| `grep -c passed` on pytest output | `pytest ...; echo $?` |\n| `tail -1` on anything that wraps | the exit code, or the whole output |\n| \"the word ERROR does not appear\" | the exit code, plus what it printed |\n| a JSON tool piped through `head` | parse the JSON |\n\nAnd when there is genuinely no exit code - a message tool, an API that always\nreturns 200 - **do not parse the summary line. Read the artifact back.** Fetch the\npublished page, re-read the row, list the assets. The write's own report of itself\nis the thing under test, not the evidence for it.\n\n### \"Each of N does X\" answered by counting matches of ONE SPELLING of X\n\nChecking a claim that all three syntax-tree guards carried a can-it-actually-see-one self-test, a\nsession grepped for one spelling and matched one of three - a FALSE NEGATIVE. The other two spell\nthe same idea `test_an_assignment_counts_and_an_import_does_not` and\n`test_the_scan_finds_the_imports_that_are_there`.\n\n**When the claim is \"each of N does X\", ENUMERATE the N and inspect each**, because X is spelled\ndifferently by whoever wrote it. Counting matches of one spelling is the count-shaped defect again.\n\nAnd the meta-lesson, which is why that one is in here at all: **a claim that is right by ACCIDENT\nteaches nothing and leaves the broken method in place.** Being right because the check worked and\nbeing right while the check was broken look identical in the report. The second is worse than\nbeing wrong, because being wrong gets fixed. It is the mirror of the RIGHT-claim-on-WRONG-evidence\nsection above, seen from the checker's side rather than the author's.\n\n## An extraction whose END is arbitrary (2026-08-21)\n\nDifferent from the range anchored on a heading in the list of eight above, and it is worth\nkeeping both: there the range failed to match and yielded nothing, which at least LOOKS empty.\nHere the range MATCHES and returns text - text that exists nowhere in the file.\n\n```bash\nsed -n \"\u002Fsized like the content\u002F,+14p\" UI_STYLE_GUIDE.md\n```\n\nThe start is anchored on structure. The end is `+14`, a distance. Fourteen lines happened to\ncross a section boundary, so the output spliced the tail of one paragraph onto the head of\nanother and read as a single fluent sentence:\n\n```text\n...the movement of the element BELOW it, which must be\nalready rejects. A single-section screen gets the skeleton...\n```\n\nBoth halves are real. The sentence is not. The reader was one message away from reporting a\nfreshly-merged document as containing garbled prose, on evidence their own command had\nmanufactured.\n\n**An extraction whose end is an arbitrary distance can manufacture a plausible reading that\nexists in no file.** A truncation you can SEE is a nuisance; a splice you cannot see is false\nevidence, and it is worse the more fluent the result.\n\n**Anchor BOTH ends on structure, or read the whole thing.** `sed -n '\u002F^## 8\u002F,\u002F^## 9\u002Fp'` has an\nend that means something. `+14` means \"as far as I guessed\".\n\nThe general form is the same root as everything else here: the window stood in for the document.\nAnd the tell is the one below - `+14` is a specific value, so it is a hand-kept list of one.\n\n## The CATEGORY standing in for the ANSWER (2026-08-21)\n\nA screen pointed at a wide log returned `HTTP 500`. It was not a crash. The renderer had\nDECLINED, deliberately, above a threshold of `len(model.stations) > 60`, and had written the\nreader a sentence with the fix in it - verbatim from the source and confirmed identical in the\nlive response:\n\n```text\nRefusing to lay out 135 stations - the result would be a hairball that\ndiscredits the data. Fold the activity vocabulary harder (see\nabstract(fold=...)) or restrict object_types.\n```\n\nWhat reached the reader was `Error: HTTP 500`.\n\nThe log was the German Bundestag object-centric dataset, period 20\n(DOI 10.5281\u002Fzenodo.16811928, CC-BY 4.0): 62,719 events, 44 object types, 148 event types. The\n135 is what THIS log produced, not a constant.\n\n**A route that turns a deliberate, actionable refusal into a generic failure has thrown away the\nonly useful thing on the screen.**\n\nIt belongs in this skill because **no check anywhere was failing, and every layer was locally\ncorrect.** The engine correctly refused and said why. The client correctly declines to render a\n5xx body, because a 5xx body is a stack trace and not a message for a reader. The route\n\"correctly\" reported an error for an exception. Three right answers compose into a screen that\ntells the reader nothing.\n\nIt is the root of this skill with the CATEGORY standing in for the ANSWER. A status code, an\nexception class, an error enum, a log level - each is metadata ABOUT an answer, and a pipeline\nthat propagates only the metadata destroys the answer while every component reports success.\nThe observable was present; the presence was of the wrong thing.\n\n**The defect lives in the SEAM, and nothing tests seams.** The presence that fails closed is\nend-to-end and is about content, not status: assert that the SENTENCE the component wrote\nreaches the rendered page. Not that the call returned. Not that the status was appropriate.\n\n### The half that transfers furthest: an instance fix is a hand-kept list of one\n\n**That defect had already been fixed once, on that same route, and shipped as done.** On\n2026-08-20, in `def train_map_canvas`, a single `except _trainmap.TooFewObjectTypes` was added,\nreturning an `HTMLResponse` with no `status_code` - which is 200. Every other refusal the engine\ncan write went on failing for another day, and it surfaced only when somebody finally pointed a\n44-object-type log at the screen - the sample could not produce a refusal at all.\n\nTeaching ONE exception type to answer correctly is **a hand-kept enumeration at its smallest\npossible size**, which this skill already says goes stale and cannot prove its own exhaustiveness.\nAt length one it is almost invisible, because it arrives with a passing test beside it and looks\nexactly like a fix. The derived repair drives the exception TYPE through the route, so every\nrefusal the engine can write is covered by construction rather than by a list somebody maintains.\n\n**The tell, and it is cheap to check: a fix that names a specific VALUE is a hand-kept list of\none.** One exception class, one status code, one message string, one column name, one file. When\nyou see that shape, the question is not \"is this fix correct\" - it usually is - but **\"what class\nis this an instance of, and what else is in it?\"**\n\nFix the class, or say in the commit that you knowingly fixed one instance and why. An instance fix\nwith no such note is indistinguishable from a class fix six weeks later, and the difference is a\nday of somebody else's time.\n\n### A postscript, because it happened while this entry was being written\n\nThe four facts above were taken from a chat message and were about to be published unverified -\ninto this skill, in the section about correct conclusions resting on evidence nobody checked. They\nwere sent back to be read off the branch instead. **Three were right. The wrong one was the\nverbatim quote**, which is the single thing in an entry like this that most needs to be exact.\n\nThe parenthetical `(see abstract(fold=...))` had been dropped, and it had been dropped in THREE\nplaces - the message, the commit message, and the author's own timings document - because it was\ncopied forward from the first write-up rather than re-read from the source each time. Quoted\nwhole, the sentence carries a second finding for free: a developer-facing API hint sitting in the\nmiddle of reader-facing prose. Quoted as it had been copied, it reads as clean product writing,\nwhich is the opposite of true.\n\n**Copying a quotation forward is not quoting. Re-read the source every time, including from your\nown earlier write-up** - especially from your own earlier write-up, because that is the copy you\ntrust without noticing you are trusting it.\n\n## SELECTING THE WRONG LINE, which returns something complete and false (2026-08-21)\n\nDifferent from the truncated tail in the eight, and the difference is the whole\npoint. That one LOST content - `Delivered to \u003Cname> (1 session(s)).` wrapped and\n`tail -1` showed `session.`, which is visibly a fragment. This one returns a\nwhole line, correctly formatted, that is not the line you wanted and carries no\nwarning that it is not.\n\n**Produced deliberately for this entry**, on a real suite with a planted failing\ntest, rather than written from memory of it happening:\n\n```\n$ python -m pytest tests\u002Ftest_train_map_edges.py -q > run.log ; echo $?\n1\n\n$ tail -2 run.log | head -1\nFAILED tests\u002Ftest_train_map_edges.py::test_deliberately_failing_...\n```\n\nSo far so good, by luck. Now the same command on a run that PASSES:\n\n```\n$ python -m pytest tests\u002Ftest_train_map_edges.py -q > run.log ; echo $?\n0\n\n$ tail -2 run.log | head -1\n-- Docs: https:\u002F\u002Fdocs.pytest.org\u002Fen\u002Fstable\u002Fhow-to\u002Fcapture-warnings.html\n```\n\n**A documentation URL, presented as a test result.** Nothing is malformed. The\nline that `-2` lands on depends on whether pytest emitted a warnings block, so\nthe reading's meaning changes with the weather. Search that for `failed`, find\nnothing, call it green - right by accident. Search it for `passed`, find nothing,\ncall it red - wrong, on a suite that passed.\n\n### And the short forms are worse - in OPPOSITE directions\n\nAll four cases, run rather than reasoned about. Six tests, one `warnings.warn` so\nthe warnings block exists, one test deliberately NAMED `test_five_handles_failed_login`,\nand `assert 1 == 2` planted for the failing rows:\n\n```\ncase            exit   grep -c passed   grep -c failed   LAST line matching passed|failed\nall pass, -q      0          1                0          6 passed, 1 warning in 0.08s\nall pass, -v      0          1                1  \u003C-!     ====== 6 passed, 1 warning in ...\none fail, -q      1          1  \u003C-!            1          1 failed, 5 passed, 1 warning ...\none fail, -v      1          1  \u003C-!            2          ====== 1 failed, 5 passed, ...\n```\n\n**`grep -c passed` is 1 in ALL FOUR.** It does not distinguish anything. The\nsummary of a failing run reads `1 failed, 5 passed, 1 warning` - the word `passed`\nis inside the failure - so a grep for the good news matches the bad news, always.\n\n**`grep -c failed` is 1 on a fully PASSING verbose run.** The line it matches is:\n\n```\ntest_probe.py::test_five_handles_failed_login PASSED                     [ 83%]\n```\n\nA test NAME. Under `-q` pytest never prints a passing test's name, so there is\nnothing to match and the trap is invisible; under `-v` it fires. Which of the two\nshort forms is wrong therefore depends on **a verbosity flag nobody thinks of as\npart of the check** - and one of them is wrong either way.\n\nThey fail in opposite directions, which is worse than either alone:\n\n- `grep -c passed` **fails open** - good news on a broken run.\n- `grep -c failed` **false-alarms** - a failure count on a run where everything\n  passed. A team that meets that a few times learns to wave the count away, which\n  is entry 4 of the eight arriving by a different road.\n\n### The cases OUTSIDE those four rows, where every reading says clean\n\nThe four rows above all assume the suite RAN. Reproduced across two machines,\nhere is what happens when it did not:\n\n```\ncase                                 exit   c:passed  c:failed   LAST passed|failed line\ncollection error (syntax error)        2        0         0      (empty)\nno tests at all (bare directory)       5        0         0      (empty)\n-k matching nothing, real suite        5        0         0      (empty)\nfile present, no test functions        5        0         0      (empty)\n-k matching SOME, real suite           0        1         0      1 passed, 5 deselected\n```\n\nThe real summaries are `1 error in 0.31s`, `no tests ran in 0.00s` and\n`6 deselected in 0.01s` - **none of which contains the word `passed` or the word\n`failed`**.\n\nSo `grep -c failed` returns **0 - clean** for a suite that never ran. That is this\ndocument's headline defect, committed by the check people use to police it.\n\nThe realistic instance is the third row: a CI step filtering on a test name, the\ntest gets renamed, the filter matches nothing, and the step runs zero tests\nforever while every prose reading reports clean. Nobody edits that step again.\n\nThe sound form - the last line matching `passed|failed` - returns an **empty\nstring** in the first four. That is rule 1 of this document: an empty result is a\nbroken instrument, never a clean run. It is sound inside the four rows and SILENT\noutside them, and silence is what a caller reads as fine.\n\n### The exit code, corrected twice\n\nThe first version of this entry said the exit code is \"0 and 1, correct in all\nfour\". True of the four cases that had been run, and **too narrow** - which is the\nsame defect as everything else here, applied to the advice.\n\nPytest uses **2** for a collection error and **5** for no-tests-collected. A\nscript asking `if exit == 1 then failed` calls a suite that never ran\nnot-failed.\n\n**Exit 0 is the only success. Every non-zero is not. Never test for 1.**\n\n**And that is still not sufficient**, which the last row proves:\n\n```\n$ pytest test_probe.py -q -k test_one ; echo $?\n1 passed, 5 deselected in 0.06s\n0\n```\n\n**Exit 0. Five of six tests never ran.** Every check named in this entry passes\nthat: exit is 0, `grep -c failed` is 0, and the sound form returns a real summary\nrather than an empty string. A filter whose name has drifted lands here rather\nthan on exit 5 the moment it still matches ONE thing.\n\nThe complete form is this document's own rule 3 - reconcile a sweep against its\nexpected inventory - pointed at its own test suites:\n\n**exit 0 AND the collected count reconciled against what you expected to find.**\n\nExit 0 says nothing failed. It does not say your 812 tests ran.\n\n### The same shape in the skill cache itself\n\nChecking whether an entry had landed, the local copy of a shared document -\nthis very skill, cached on disk by the agent that had loaded it - was a version\nbehind. Searching it for a section that had just been published returned nothing,\nand the next step would have been to report the section missing: from a v4, about\na v5.\n\n**A local cache of a shared document is a hand-kept copy that looks\nauthoritative and carries no version on its face.** Fetch from the source before\nsaying a section is absent. Same shape as copying a quotation forward: the copy\nyou trust without noticing is your own.\n\n---\n\n## Care is not the mechanism. Reproduction is.\n\nTwo sessions produced everything in the two 2026-08-21 sections above by refusing\nto take each other's word. Every single finding came from the other one declining\nto accept a report and running it instead:\n\n- three readings reported -> a fourth case found in reproducing them\n- that fourth case reported -> a fifth found, `grep -c passed` constant in all four\n- the four-row table reported -> the cases OUTSIDE the four rows found\n- the exit-code rule recommended -> its own author found it too narrow, and then\n  the reader found a case that defeats the corrected version too\n\n**Both parties were being careful the whole time.** Care is what produces a\nconfident wrong reading - a quotation copied forward three times, a `+14` window,\na grep for one spelling, an exit-code rule true of the cases its author had run.\nNone of those is carelessness; each is a competent person going one step less far\nthan the step that would have caught it.\n\nThe practice that caught them is cheap and unpleasant: **do not accept a reported\nresult into anything permanent, and do not accept your own from an earlier\nwrite-up.** Ask for the command. Run it. Then run the case next to it.\n\nStated as what it cost rather than as a principle: of eleven findings across one\nevening, ZERO were found by the person who made the mistake, and every one was\nfound within minutes of somebody else refusing to take the report on trust.\n\n---\n\n## And the reason this is a skill\n\n**Prose about a rule is not the rule.** A note saying \"check both surfaces\" cannot check both surfaces. Three times in one night, somebody broke a rule in the same file where they had just written it - because writing the note FEELS like doing the work.\n\nEvery law that held that night held because it was a command somebody could run. Every one that failed was prose. **Ship the check, not the reminder.**\n",{"name":5,"license":14,"description":7},"main","12032d2a3437cdccc46ff85a50252c60258f2e2e","plugins\u002Fagent-discipline\u002Fskills\u002Fchecks-that-fail-open",12,"https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle","https:\u002F\u002Fdevthrottle.com\u002F?ref=gh-about","https:\u002F\u002Fgithub.com\u002Fthefrederiksen","2026-11-11 12:28:38",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add thefrederiksen\u002Fdevthrottle --skill checks-that-fail-open",{"tool":61,"command":62},"bunx","bunx skills add thefrederiksen\u002Fdevthrottle --skill checks-that-fail-open",{"tool":64,"command":65},"pnpm","pnpm dlx skills add thefrederiksen\u002Fdevthrottle --skill checks-that-fail-open","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fagent-discipline\u002Fskills\u002Fchecks-that-fail-open\u002FSKILL.md",true,[],[70,96,114,141,165,181],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":42},"01M6CJ9FZRKCB1Y8AY6WAK3JJM","devthrottle-sessions","Talk to the other DevThrottle sessions running across your machines - list them, rename this one, send one of the rare queued messages, read the inbox, reply, open a new session, and close one down. Use when the task involves: message another session, ask another session, list sessions, what sessions are running, spawn a session, rename this session, close this session.","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fdevthrottle\u002Fskills\u002Fdevthrottle-sessions\u002FSKILL.md",[],[77,78,79,80,81,18,82,83,84,85,86,34,87,29,88,89,90,91,92,93,21,94,95],"sessions","devthrottle sessions","inbox","messages","new session","ask","read","list","spawn","session","reply","rename","message","across","close","down","send","running","new",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":42},"01M6CJ9CYRKE8TSBX67XPTT65R","devthrottle-install","Hand the user the documented steps to install or update DevThrottle, and to connect a gateway afterwards. Use when the task involves: install DevThrottle, set up DevThrottle, update DevThrottle, connect a gateway, cc-devthrottle not found, where do the cc tools come from.","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fdevthrottle\u002Fskills\u002Fdevthrottle-install\u002FSKILL.md",[],[103,104,105,106,107,108,109,110,34,111,112,30,29,113,21],"install","devthrottle install","connect","update","gateway","SET","Tools","user","up","cc","hand",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":42},"01M6CJ99Q2QJSXDYAKRBWPGKN2","proof-covers-the-wrong-thing","A proof can be valid and still say nothing about what you changed - wrong surface, wrong reader, wrong caller, or an untested premise. Name what your evidence does NOT cover. Use when the task involves: prove it, by construction, root cause, reproduced it, repro, guard-local, skipped test, suite is green, premise, assumption, self review, it is settled.","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fagent-discipline\u002Fskills\u002Fproof-covers-the-wrong-thing\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,34,130,131,132,29,133,134,135,136,137,138,139,22,140,21],"proof covers the wrong thing","proof","Wrong","review","valid","test","self review","guard","reader","evidence","repro","say","green","self","local","you","can","cover","suite","root cause",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":42},"01M6CJ96VERHA4PKRHMF9ZXTBF","destructive-sweeps-lean-to-keep","A destructive operation acts only on what it can positively prove is disposable. Enumerate what to DELETE, never what to skip - and refresh the safety signal on every real use. Use when the task involves: sweep, purge, cleanup, delete old, prune, reclaim space, stale files, retention, aged out, rm -rf, git clean, drop the table.","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002Fplugins\u002Fagent-discipline\u002Fskills\u002Fdestructive-sweeps-lean-to-keep\u002FSKILL.md",[],[148,149,150,151,152,153,154,155,156,38,157,34,33,158,159,160,20,29,161,162,163,164,22,21],"lean","destructive sweeps lean to keep","keep","cleanup","delete","git","Safety","prune","table","refresh","only","stale","files","drop","retention","reclaim space","signal",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":42},"01M6CJ906AQPKFA2CCKKHAZC13","wingman-brief-reviewer","RETIRED 2026-09-16 - do not run it. It reviewed saved wingman turn BRIEFS, whose writer was retired in issue","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwingman-brief-reviewer\u002Fskill.md",[],[172,173,174,31,175,30,176,177,178,179,180],"brief","reviewer","wingman brief reviewer","issue","writer","it","briefs","saved","2026",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":42},"01M6CJ8WCQHQM92EE94RM5T7RM","warning-fixer","Fix compiler warnings using proper null handling and senior developer practices. Use when asked to fix warnings in a file, clean up nullable warnings, or resolve CS warnings. Works one file at a time with test coverage.","https:\u002F\u002Fgithub.com\u002Fthefrederiksen\u002Fdevthrottle\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwarning-fixer\u002Fskill.md",[],[188,189,190,126,191,192,193,194,195,34,196,111,20,197,198,199,200,21,201],"warning fixer","fixer","warning","compiler","file","developer","coverage","fix","test coverage","nullable","time","with","at","senior"]