code wiki / _hdl_build / nx_biotwin_morphometrics_gate.nx

nx_biotwin_morphometrics_gate.nx

buildroot/runtime/_hdl_build/nx_biotwin_morphometrics_gate.nx

9731 B189 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic biotwin
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_biotwin_morpho.nx nx_biotwin_morphometrics_gate.

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

main gw sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close gn sys_write ↻ sys_mmap ↻ bm_derive sys_mmap ↻ bm_measure atlas_hand_curl atlas_build ba_add sys_mmap ↻ ba_axis_x ba_ax_defaults ba_is_arm ba_is_leg ba_axis_y

structs

none

consts

23const PLAUS_LO: i64 = 65
24const PLAUS_HI: i64 = 85

functions

26func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
27func gn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
36func match_at(buf: *u8, n: i64, i: i64, pat: *u8) -> i64
called by 2: containscount_occ
41func contains(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main calls 1: match_at
46func count_occ(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main calls 1: match_at
53func main() -> i64