Commit bdb0332
Rename doom_* noise distributions to neutral names
The five `doom_*` input distributions defined in
`scripts/measure_op_noise.py` were named after the doom-graph callsites
that originally motivated them. After Step E, those callsites live in
the sibling `torchwright_doom` repo; the distributions still encode the
input-range characterizations used to calibrate piecewise ops, but the
names and descriptions pointed at deleted code (Option A from inventory).
Renames (chosen to match the file's existing `<op>_<range>_<details>`
style — e.g. `log_4decades_001_100`, `compare_uniform_pm80`):
- `doom_reciprocal_wall` → `reciprocal_03_200`
- `doom_reciprocal_sorted` → `reciprocal_01_50_step01`
- `doom_diff_trig` → `diff_trig_nonuniform`
- `doom_diff_vel` → `diff_vel_nonuniform`
- `doom_atan_cross_dot` → `atan_cross_dot_nonuniform`
Description rewrites (drop the `mirrors the X callsite at
torchwright/doom/...:line` tail; keep the input-range characterization).
The `compare_near_thresh_05` and `linear_bin_index_tex_col_16`
descriptions also had similar dead-callsite tails — scrubbed inline.
Regenerated by `make measure-noise`:
- `docs/op_noise_data.json` (commit SHA + new names)
- `docs/numerical_noise.md` (auto-rendered)
- per-op `.. noise-footer::` blocks in `torchwright/ops/{arithmetic,
logic}_ops.py`
Hand-edited `docs/numerical_noise_findings.md`:
- Renamed all distribution references to the new names.
- Renamed 'Input-amplification hazards (the Phase E trap, now partially
mitigated)' to 'Input-amplification hazards in gate ops'; dropped the
'Worked Phase E example (historical)' subsection (postmortem
pointer was deleted in Step E).
- Dropped the 'Wired into DOOM' subsection of the `log` finding —
documented how DOOM used log/exp on `torchwright/doom/stages/render.py`.
- Dropped the E1M1/`inv_scale` worked example from the
`compare(x, 0)` finding; kept the general working-rule.
- Renamed 'Known gap: reciprocal sorted callsite' to 'Known gap:
reciprocal at step=0.1'; dropped the `thinking_wall.py:1196`
callsite reference and 'Latent production implication' paragraph.
- Deleted the entire 'Production call-sites' section: every row was
a deleted `torchwright/doom/stages/...` path.
CLAUDE.md:
- Removed the 'which DOOM call-sites each distribution covers' clause
from the Numerical-noise section preamble.
- Removed the 'Keep the call-site cross-reference table in sync when
you add, rename, or remove a `doom_*` distribution' bullet from the
measure-noise workflow.
Also scrubbed one stale ops-docstring mention: `log_abs`'s docstring
example 'coord · inv_scale in DOOM normalization' → 'signed_coord ·
positive_scale' (matches the parallel rewrite in the findings doc).
Verified: full `make test` passes — 635 passed, 3 skipped.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c234ba4 commit bdb0332
7 files changed
Lines changed: 138 additions & 254 deletions
File tree
- docs
- scripts
- torchwright/ops
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
0 commit comments