code wiki / _hdl_build / nx_biotwin_morphometrics_gate.nx
nx_biotwin_morphometrics_gate.nx
buildroot/runtime/_hdl_build/nx_biotwin_morphometrics_gate.nx
about
nx_biotwin_morphometrics_gate.nx -- the LIAR-KILL gate for the morphometric-derivation organ (board axis 8).
Grades a MEASUREMENT engine in a medical domain, so it must be impossible to rubber-stamp. The gate does NOT
trust the organ's self-report: it RE-DERIVES the axes itself through the same shared library and checks the
values against the BANKED canon (a known-answer test on real SDF geometry). Teeth:
T1 ARTIFACT EXISTS -- the organ ran and wrote knowledge/nx_biotwin_morphometrics.json.
T2 CANON KNOWN-ANSWER -- gate re-derives preset 0; every axis must land in its banked canon band. This is
the correctness tooth AND the negative-control target: a wrong transform in the lib drives a value out
of band -> RED (proven by the mutation test).
T3 PROVENANCE PUBLISHED -- the emitted artifact carries a transform + inputs for EVERY axis (grep count).
T4 DETERMINISM -- two independent derivations hash identically (the sovereign bit-exact exceed).
T5 THE FENCE IS ALIVE -- bm_fence_blocked()>=1 live in THIS run (the promotion clamp fires), the board's
axis-21 planted lie + clamp still stand in source, and the artifact publishes morpho_fence_blocked.
T6 CROSS-BODY GENERALISE-- the same engine on 3 body presets: statures differ (it reads real geometry) yet
heads-tall stays canon-valid on every body (it did not overfit to one human).
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_biotwin_morpho.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
| 23 | const PLAUS_LO: i64 = 65 |
| 24 | const PLAUS_HI: i64 = 85 |
functions
| 26 | func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 27 | func gn(v: i64) -> i64 |
| 36 | func match_at(buf: *u8, n: i64, i: i64, pat: *u8) -> i64 |
| 41 | func contains(buf: *u8, n: i64, pat: *u8) -> i64 |
| 46 | func count_occ(buf: *u8, n: i64, pat: *u8) -> i64 |
| 53 | func main() -> i64 |