Repository navigation
Commit 4ce4cc3
fix(scripts): read the receivers a README BUILDS, and print the blind spot that remains (#9870)
`check:published-readme-exports` typed a receiver only when the fence had
imported it, so its call-site half was checking 8 call sites while 262 across
39 of 60 published documents went unread — and the green line's `60 published
document(s)` read as coverage of documents rather than of the import-bound
receivers inside them.
Measured with the gate's own `publishedDocs()`, the two escape routes the card
named are not the same size: 109 of the 251 never-import-bound receivers are
BUILT from a name the fence did import (`const kernel = new ObjectKernel()`,
`const stack = await bootStack(app)`), while call-expression receivers have a
population of zero with an import-bound base — so the first is implemented and
the second deliberately is not, rather than shipping a rule that scans nothing.
Call-site half: 8 → 78 checks. One finding in the 70 newly-read sites, and it
is real: plugin-hono-server's README booted a kernel with `await kernel.start()`
where `ObjectKernel` ships `bootstrap()`. Zero false positives — every ambiguity
in `extractLocalBindings` rejects rather than guesses, because a wrong green
leaves a site unread while a wrong red accuses a correct README on a
merge-blocking gate whose baseline refuses to mute it.
The green line now also states what it could NOT read (120 calls on 72
receivers), marked as visibility rather than a verdict.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wt1 parent 2e39181 commit 4ce4cc3
3 files changed
Lines changed: 627 additions & 52 deletions
File tree
- .changeset
- packages/plugins/plugin-hono-server
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments