Repository navigation
v1.10.1 — cover triage.py's offline half, the one that has to hold
v1.10.0 shipped scripts/triage.py with no test. The repo has one for audit.py and one for render.py, and the omission was worst exactly here: the script's central claim is that ranking is a layer and never a dependency — that with no SDK and no key the run still prints a complete list — and that path was the untested one.
tests/test_triage.py, eight checks, none of which makes a call:
collect()reproducesaudit.py's candidate list exactly. Compared as sequences, both ways, against the reportaudit.pyprints — parsed out of that report rather than imported, because importing the generators would comparetriage.pyagainst itself and prove nothing. A candidateaudit.pyfound andcollect()missed is a check silently narrowed; onecollect()invented is a candidate no auditor reading the report would ever see. Order is part of it: the fallback's whole promise is that it prints the list inaudit.py's order.- The fallback prints every candidate computed.
suppressedis a heading, not a filter. --keepand--dropare inclusive at the boundary, and an unanswered candidate isuncertainrather thansuppressed. The buckets are not symmetric in consequence: one that slides out ofkeeploses its place at the top, and one that slides intosuppressedis the one a reader skips last.- 0, 1 and 2 stay distinguishable. A CI step that treats any non-zero as one case cannot tell "this machine has no ranking" from "I asked for ranking and did not get it".
--check-setupexits 1 naming both gaps;--require-modelexits 2 and prints no list. - Every generator reaches a question, check 8's fence and URL shapes get different ones, and an unknown check raises instead of ranking at 0.5.
line_atreturns nothing out of range rather than a neighbouring line. Counting is the one thing the model is documented to get wrong, which is why the candidate's line is quoted verbatim; a helper that silently returned a neighbour would put that failure back, confidently.- A directory with no
_facts.yml, an unknown--checks, and--dropabove--keepare all refused rather than reported as a clean set.
Setup is probed with HOME redirected to an empty directory: a test whose result depends on whether the machine running it happens to have a key configured is not a test.
Every check was verified to fail against a mutation of the behaviour it covers. Two did not, on the first pass, and one of those was the test's fault — the check 8 comparison held whole question dicts against each other, and those differ either way because they embed the candidate's own what, so it would have passed even with both shapes routed to the same question. It now compares the question text alone.
A check that raises now reports as a failure instead of taking the suite down with it: seven results and a traceback is the same silent-skip shape this script exists to close.
Ranking itself is not exercised — a test that needs a key is a test that does not run. 179/179 · 2/2 · 8/8.