code wiki / (root) / nx_fabric_census.nx

nx_fabric_census.nx

buildroot/runtime/nx_fabric_census.nx

8404 B174 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic fabric
docsdependenciesstructsconstsfunctions

about

nx_fabric_census.nx -- the SkyHammer fabric exceed LIVING MAP (the "reviewed by the team" artifact). (knowledge/research/2026-06-23-skyhammer-fabric-sclass-exceed-benchmark.md.) Self-gating census: it GRADES each of the 7 axes (A..G) by reading the REAL on-disk evidence each rung's gate left behind (knowledge/status/fabric_*.log "verdict=GREEN" + the rung's marker) -- so the map reflects what is actually proven, not what a doc claims. LIVING: re-running a rung's gate (re-writing its GREEN log) is picked up here; a regressed/missing log re-grades its axis and FAILS the snapshot assertion. LIAR-KILLED BOTH WAYS (the census cannot rubber-stamp): a real marker in its real log grades EXCEEDS; a BOGUS marker, a real marker in the WRONG log, and a MISSING log all MUST grade 0 -- proving the grader reads the bytes rather than asserting a constant. Mirrors nx_connect_census / nx_media_census / nx_vizsla_census. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_fabric_census.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main cp sys_write axis_green sys_mmap cs_read sys_openat_rd sys_read sys_close cs_contains cs_slen grade_line cp ↻ cn sys_mmap ↻ sys_write ↻ sys_openat_append sys_write ↻ fdn sys_mmap ↻ sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

15const K_MAGIC_65536: i64 = 65536

functions

17func cp(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 2: grade_linemain calls 1: sys_write
18func cn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func fdn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
37func cs_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: axis_green
39func cs_contains(hay: *u8, hn: i64, ndl: *u8, nn: i64) -> i64
called by 1: axis_green
51func cs_read(path: *u8, buf: *u8, cap: i64) -> i64
65func axis_green(logpath: *u8, marker: *u8) -> i64
74func grade_line(axis: *u8, label: *u8, g: i64) -> i64
called by 1: main calls 1: cp
83func main() -> i64