Commit d62c7da
Record phase 5 in CLAUDE.md, and correct two comments (#225)
Three documentation changes. No behaviour, and engine.wasm is unchanged.
CLAUDE.md's Rust engine section stopped at phase 4 and still listed Vulcanus
as future work, so the repo's own map said six ported layers did not exist.
Adds a phase 5 section with the 24 frozen counts' four readings, the biome
layer's real cache and why it is the only one, the pre-volcano split, and the
cliff multisample grid.
Fixes an inverted comment on the ashlands basis leaf, found by review on #285.
It said the input scale "divides by the volcanism scale multiplier" where the
code has that multiplier in the NUMERATOR. The code was right and matched both
the TypeScript and the Lua; only the comment was wrong. Worth more than a typo
fix: scale_multiplier is exactly 1 at the default preset, which is what every
fixture and the poison gate run at, so m/50/3 and 1/50/3/m are bit-identical
throughout and an edit "fixing" the code to match the comment would diverge
from the game only at a non-default volcanism frequency, with a green gate.
Corrects the crack layer's #269 note, which blamed the wrong number. It said
the layer is discriminating because its INPUT scales (0.3 * 0.325 and
0.6 * 0.325) are not f32-exact. That is wrong, and measurement says the
discriminator is the OUTPUT scale alone: basis_noise returns an f32, so a
power-of-two output scale is a pure exponent shift and narrowing the product is
the identity, while any other output scale can leave the f32 grid. Over 90,000
samples at a fixed input scale, output scales 1, 0.5, 0.25, 2, 4 and 64 change
0.00% of products; 0.6 changes 79.88%, 0.75 and 3 change 56.32%, 150 changes
97.46%, 125 changes 98.38%. Holding the output scale at 1 and sweeping input
scales 0.125, 0.205, 0.51, 0.6, 1.5 and 0.002 changes 0.00% every time.
So exactly ONE of the crack layer's twelve basis calls is exposed:
hairline_cracks' first term at output scale 0.6, where 80.10% of products
differ. The other eleven sit at 1, 0.5 or 0.25. That is a one-term explanation
for the one bad count in that layer, and why the four fields built only from
power-of-two sites score 15, 40, 10 and 8 rather than 3.
The wrong reasoning is recorded in the comment rather than quietly replaced,
because it is the plausible guess: the input scale is the number that looks
inexact.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X2wz8eFazisYuENEkmBvvG1 parent d618dc0 commit d62c7da
3 files changed
Lines changed: 123 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | | - | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1254 | 1333 | | |
1255 | 1334 | | |
1256 | 1335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
2441 | | - | |
2442 | | - | |
2443 | | - | |
2444 | | - | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
2445 | 2470 | | |
2446 | 2471 | | |
2447 | 2472 | | |
| |||
0 commit comments