You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(devx): published-README gate's green line reports what each half READ, not a ratio over an empty set (#9767)
With the ledger at `entries: []` -- the success state PR #9764 recorded -- the
green line ended `0 of the findings are call sites`: a ratio over an EMPTY SET,
printed by the one clause whose whole job is to say "clean" rather than
"unmeasured". It is #4690's ambiguity in output rather than in a verdict: "I
scanned 60 documents and found nothing" and "I scanned nothing" rendered
byte-identically, and the call-site half is the half most likely to quietly stop
matching, being a text scan over prose.
Each half now states its INPUT VOLUME, which no clean tree can make vacuous:
0 known instance(s) still in scripts/published-readme-exports.baseline.json.
Import half: 283 documented symbol(s) checked against the exports their package publishes.
Call-site half: 8 documented `X.y(...)` call(s) checked, on 225 import-bound name(s).
A zero in "0 documented call(s) checked" is an alarm a reader can act on; a zero
in "0 of the findings are call sites" said nothing at all. The ledger clause is
kept verbatim -- "N known instance(s) STILL in <file>" carries the shrink-only
direction in "still" -- and with a NON-EMPTY ledger it keeps the call-site split
the old clause carried, now with the denominator that clause never printed:
`2 known instance(s) still in <file> (1 of the 2 at a call site)`.
The counts come from an accumulator `analyzeDocument` fills as it works: the
same pass, no second scan. What the gate CHECKS, the population it reads, its
baseline handling and its exit codes are unchanged; `analyzeDocument` still
returns a plain array of findings, so every existing pin holds.
Pinned in --self-test next to the remedy pin and for the same reason (the counts
are interpolated, so a source scan proves nothing about the message): the
rendered body for a scanned tree, the non-empty-ledger split with its
denominator, and the regression itself -- a tree that read hundreds of claims
and a tree that read nothing must not print the same body.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqDQYVU5smx29ts9pAErja
0 commit comments