Commit 094e664
`basisInputScale.spec.ts` shipped in `00b5fea` with an assertion labelled "the
shipped basisNoise scores this, today", frozen at `[196, 196, 3, 4, 3, 20, 79]`
and described - in its own docblock, in the commit message and in the PR - as
written to go red when #290 lands.
It would not have. It scored the `unnarrowed` MODEL formula, not the port. The
fix for #290 changes `basisNoiseExpr`, which that assertion never called, so the
tripwire would have stayed green through the exact event it existed to catch.
Now it reads `basisNoiseExpr`. Verified both ways rather than assumed: green on
`main` at the same seven counts, and red under a scratch application of the
#290 fix, reporting `[196 x 7]` against the frozen row.
A second assertion pins the two together - the port and the formula ARE the same
function today, because `basisNoiseExpr` at `output_scale = 1` reduces to
`f32(basis_noise(x * input_scale, ...))`. That is why the mistake was invisible,
and it is what #290 breaks. Keeping it asserted means this file's other counts
demonstrably describe the port and not just an idea of it.
The lesson is general enough to be worth stating: a frozen count is only a
tripwire if it is wired to the thing that moves. This one graded four candidate
models beautifully and forgot to grade the shipped code.
Full gate green at VERIFY_RC=0.
Claude-Session: https://claude.ai/code/session_01X2wz8eFazisYuENEkmBvvG
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 00b5fea commit 094e664
1 file changed
Lines changed: 40 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
137 | 149 | | |
138 | 150 | | |
139 | | - | |
140 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
141 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
142 | 177 | | |
143 | 178 | | |
144 | 179 | | |
| |||
0 commit comments