code wiki / _hdl_build / nx_dataplane_census.nx
nx_dataplane_census.nx
buildroot/runtime/_hdl_build/nx_dataplane_census.nx
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
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
structs
| none |
consts
| 13 | const K_MAGIC_65536: i64 = 65536 |
| 14 | const K_MAGIC_1024: i64 = 1024 |
| 15 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 17 | func 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 } |
| 18 | func dc_pn(v: i64) -> i64 |
| 25 | func 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 |
| 27 | func dc_ends(a: *u8, o: i64, l: i64, suf: *u8) -> i64 |
| 35 | func dc_has(a: *u8, o: i64, l: i64, pat: *u8) -> i64 called by 1: dc_scan_buf |
| 49 | func dc_is_dp(a: *u8, o: i64, l: i64) -> i64 |
| 58 | func dc_scan_buf(name: *u8, buf: *u8, n: i64) -> i64 |
| 121 | func dc_scan_dir(dir: *u8, fbuf: *u8, fcap: i64, organs: *i64) -> i64 |
| 169 | func dc_gate() -> i64 |
| 201 | func main(argc: i64, argv: *i64) -> i64 |