nx_skin_ita_gate.nx
buildroot/runtime/nx_skin_ita_gate.nx
about
nx_skin_ita_gate.nx -- GATE for genome-driven skin albedo (charsim R0).
The tooth that matters is T5: the SAME baker with two different genomes must emit DIFFERENT skin.
The incumbent (twelve hardcoded sRGB constants) passes every other tooth here and FAILS that one --
so this gate is calibrated to fail the thing it replaced, not merely to agree with what it kept.
T4 is the anti-vacuity tooth: a locus that produced one skin tone would satisfy monotonicity and
round-tripping perfectly while spanning none of the published classification.
Neg-controls named neg-control-* so the gate-law census can see them.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_skin_ita.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const SG_ANCHOR_BYTE: i64 = 128 |
| 15 | const SG_ANCHOR_LSTAR: i64 = 53590 |
| 16 | const SG_LTOL: i64 = 300 // 0.3 L* -- covers the fixed-point residue, far under one class |
| 17 | const SG_RTOL: i64 = 1200 // 1.2 L* -- covers 8-bit quantisation on the round trip |
| 18 | const SG_STEPS: i64 = 20 |
| 19 | const SG_HUE_MAX: i64 = 1000 |
| 20 | const SG_UNDER: i64 = 0 - 500 |
| 21 | const SG_OVER: i64 = 5000 |
| 22 | const SG_BYTES: i64 = 256 |
functions
| 24 | func sg_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 26 | func main(argc: i64, argv: *i64) -> i64 |