code wiki / _hdl_build / nx_pipeline_census.nx

nx_pipeline_census.nx

buildroot/runtime/_hdl_build/nx_pipeline_census.nx

6182 B121 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic pipeline
docsdependenciesstructsconstsfunctions

about

nx_pipeline_census.nx -- R0 CENSUS of the autonomy pipeline (discover -> research -> spec -> build), the census-first rung the operator's "all s-class exceed" vision needs. MECHANICAL + FILE-GROUNDED (the genealogy "don't-lie audit" rule: classify from real on-disk existence via stat, NEVER from memory/assumption). For each representative stage capability it checks whether the organ source exists (PRESENT) and whether a <name>_gate exists (GATED), then LIAR-KILLS the census with a fabricated capability that MUST come back ABSENT -- a census that reports the fake as present is itself lying and goes RED. Separately probes the WIRING driver (nx_pipeline_run): its absence is the measured GAP -- the stages exist but nothing CHAINS them (= the R1 build). Sovereign: imports only nx_framed_append + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_framed_append.nx nx_syscalls.nx nx_pipeline_census.nx

imports: nx_framed_append.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap cp_ sys_write pc_check pc_src_exists pc_stat1 sys_mmap ↻ fa_cat sys_fstatat pc_gate_exists pc_stat1 ↻ cp_ ↻ cn_ sys_mmap ↻ sys_write ↻ pc_src_exists ↻ cn_ ↻ fa_cat ↻ fa_catn sys_mmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real fa_appendz fa_append sys_mmap ↻ sys_openat_append sys_flock fa_write_all sys_write ↻ sys_close fa_len sys_exit

structs

none

consts

13const PC_LOG: *u8 = "knowledge/status/pipeline_census.log"

functions

15func 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: pc_checkmain calls 1: sys_write
16func cn_(v: i64) -> i64
called by 2: pc_checkmain calls 2: sys_mmapsys_write
27func pc_stat1(dir: *u8, name: *u8, suffix: *u8) -> i64
39func pc_src_exists(name: *u8) -> i64
called by 2: pc_checkmain calls 1: pc_stat1
46func pc_gate_exists(name: *u8) -> i64
called by 1: pc_check calls 1: pc_stat1
53func pc_check(name: *u8, stage: *u8, t: *i64) -> i64
68func main(argc: i64, argv: *i64) -> i64