code wiki / _hdl_build / nx_dataplane_census.nx

nx_dataplane_census.nx

buildroot/runtime/_hdl_build/nx_dataplane_census.nx

10881 B216 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_dataplane_census.nx -- FLAT-FILE DATA-PLANE CENSUS (operator 2026-07-16: "eat our debt for the whole ecosystem" after the store-law correction). Measures the ecosystem-wide violation class the arch-board just repaired for itself: organs whose DATA PLANE is a flat .tsv/.data/.reg/.conf/.csv file instead of a knowledge/store/ seg-store key ([[feedback-sovereign-store-not-flat-files]]). Scans every .nx in the two zones for QUOTED literal paths with a data-plane extension; skips comment tails, knowledge/store/ paths (sovereign), /tmp + logs/ (scratch/diagnostics), and *superseded* gravestones. Emits `DP|<organ>|<path>` rows + a parseable summary -- the arch board composes this as its `flat_dataplanes` ratchet metric and banks the rows to its store. nx_dataplane_census <core-dir> <organ-dir> -- census; exit 0 nx_dataplane_census gate -- self-test on planted fixtures; exit 0/1 license_tier: ORIGINAL module: nishi-core.architect.dataplane_census

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_dataplane_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 dc_gate dc_p sys_write sys_mmap dc_scan_buf sys_mmap ↻ dc_is_dp dc_ends dc_has dc_p ↻ sys_write ↻ sys_munmap dc_pn dc_p ↻ sys_mmap ↻ sys_write ↻ sys_munmap ↻ sys_exit dc_streq dc_p ↻ sys_mmap ↻ dc_scan_dir sys_openat_rd sys_mmap ↻ sys_getdents64 dc_ends ↻ sys_read sys_close dc_scan_buf ↻ sys_munmap ↻ dc_pn ↻

structs

none

consts

13const K_MAGIC_65536: i64 = 65536
14const K_MAGIC_1024: i64 = 1024
15const K_MAGIC_1048576: i64 = 1048576

functions

17func dc_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
18func dc_pn(v: i64) -> i64
25func dc_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
27func dc_ends(a: *u8, o: i64, l: i64, suf: *u8) -> i64
called by 2: dc_is_dpdc_scan_dir
35func dc_has(a: *u8, o: i64, l: i64, pat: *u8) -> i64
called by 1: dc_scan_buf
49func dc_is_dp(a: *u8, o: i64, l: i64) -> i64
called by 1: dc_scan_buf calls 1: dc_ends
58func dc_scan_buf(name: *u8, buf: *u8, n: i64) -> i64
121func dc_scan_dir(dir: *u8, fbuf: *u8, fcap: i64, organs: *i64) -> i64
169func dc_gate() -> i64
201func main(argc: i64, argv: *i64) -> i64