Repository navigation
Description
Why it matters
CLAUDE.md: "An assertion that cannot fail witnesses nothing." #320 and #362 made every catalog falsifier run in CI. But in at least 12 examples, the falsifier flag flips a setting and the script then fails at an early read-back of the value the flag just wrote. The behavioral check (evaluated geometry, render pixels, exported data), which is the whole point of the example, is never reached under falsification. Deleting that check would leave smoke green.
Evidence (code read)
examples/ngon-triangulate/*.py:121-125 already explains and avoids this pattern; the others don't.
| Example | Falsifier | Exits at | Never reached |
|---|---|---|---|
| damped-track-aim | --mute (:214) |
:246 if con.mute ...: return 7 |
evaluated aim-dot (exit 9) |
| compositor-glare | Threshold flag (:370) |
read-back :190, exit 3 |
halo pixel checks (4/5) |
| gn-modifier-inputs | :390 |
read-back :410, exit 7 |
evaluated Z extent (8) |
| curve-bevel-arc | :57 |
use_fill_caps read-back :86, exit 6 |
tessellation (7) |
| color-attribute-wheel | :90 |
domain read-back, exit 5 | — |
| light-link-studio | :310-314 |
receiver_collection read-back, exit 5 | render checks (6/7) |
| sky-texture-sun-elevation | --unlink-sky |
link check, exit 6 | zenith render probe (7) |
| gp-lineart-contour | :699 |
use_contour read-back :522, exit 4 |
evaluated strokes (5) |
| shader-node-group | --same-tint |
:258 compares default_values |
no per-instance colour is ever evaluated |
| text-version-stamp | --wrong-body |
body read-back, exit 4 | (its docstring also cites export-preset-axis's --same-axis by mistake) |
| swatch-grid | --same-base |
read-back, exit 3 | engine-id check (5) has no falsifier; specular_socket is printed, never asserted |
| export-preset-axis | --same-axis |
special branch :467-475 returns 9 before the normal checks |
real check at :497; deleting it leaves the falsifier green |
Suggested approach
For each row, let the falsifier flow through to the behavioral check. Either drop the read-back guard, or move it after the behavioral check as a diagnostic. Then repoint the catalog expect_exit and the README "lands here" notes.
Optionally add a heuristic lint: flag a falsifier whose expect_exit maps to an exit_codes entry described as "read-back", or that fires before any evaluated_get, render or export call.
Done when
Every catalog falsifier exits on a check that depends on evaluated, rendered or exported output. For each row above, deleting the behavioral check makes its falsifier fail in run_catalog.py.
Activity
fix(examples): reserve exits 2/10/11 and make falsifiers reach behavi…
fix(examples): reserve exits 2/10/11 and make falsifiers reach behavi…