code wiki / (root) / nx_importcensus_gate.nx

nx_importcensus_gate.nx

buildroot/runtime/nx_importcensus_gate.nx

9544 B191 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_importcensus_gate.nx -- referee for nx_importcensus (2026-08-23, compare CE2). END-TO-END: forks the DEPLOYED ./nx_importcensus.elf against the LIVE eco-graph store into a /tmp/<gate>/ fixture path (never the production artifact -- a gate must not share its fixture with a production beat), then reads the artifact back the way a board does: rows first, the stamped LAST line by position. Teeth, both directions where a classifier is involved: T1 precondition the store loads (the organ's own exit 3 -> gv_need -> SKIP, never RED) T2 exit 0 with a receipt naming the artifact T3 the last line is the canonical stamp (# asof=...) with a non-zero asof T4 partition: has_nonval + val_only + orphan == rows (declared) and rows == nodes (a partition is a claim) T5 positive control: nx_syscalls.nx (the god node every organ imports) has importers > 0 AND importers_nonval > 0 T6 anti-vacuity of the validation filter: gates import nx_gate_verdict.nx, so importers_nonval < importers there T7 neg-control: a fabricated basename is ABSENT from the rows (no row invents a node) T8 invariant over EVERY row: importers_nonval <= importers (a count exceeding its superset is a parser defect) T9 the rows are the FULL population: counted rows == nodes declared (no silent cap) license_tier: ORIGINAL expect_exit: 0 GREEN | 1 RED | 3 SKIP

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_tool_run.nx nx_gate_verdict.nx nx_importcensus_gate.nx

imports: nx_syscalls.nxnx_tool_run.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

main gv_head gv_puts sys_write gv_ctr 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_mkdir sys_mmap ↻ tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close_inherited sys_close_inherited_proc sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen sys_close ↻ sys_munmap sys_execve tr_exec_failed sys_write ↻

structs

none

consts

20const IG_CAP: i64 = 65536 // the organ's receipt is one line; this announces if it ever fills
21const IG_FIX_DIR: *u8 = "/tmp/nx_importcensus_gate"
22const IG_FIX_OUT: *u8 = "/tmp/nx_importcensus_gate/importers.tsv"
23const IG_STORE: *u8 = "knowledge/store/ecograph_full"
24const IG_RC_UNOBSERVABLE: i64 = 3 // the organ's declared exit for an unreadable store

functions

26func ig_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: ig_kvig_row
27func ig_starts(s: *u8, p: *u8) -> i64 { var i: i64 = 0; while p[i] != (0 as u8) { if s[i] != p[i] { return 0 } i = i + 1 } return 1 }
called by 2: ig_kvmain
29func ig_digits(b: *u8, i: i64) -> i64
called by 2: ig_kvig_field
42func ig_kv(line: *u8, key: *u8) -> i64
called by 1: main calls 3: ig_slenig_startsig_digits
52func ig_row(b: *u8, n: i64, name: *u8) -> i64
called by 1: main calls 1: ig_slen
69func ig_field(b: *u8, r: i64, f: i64) -> i64
called by 1: main calls 1: ig_digits
80func main(argc: i64, argv: *i64) -> i64