code wiki / _hdl_build / nx_mm_migrate_census.nx

nx_mm_migrate_census.nx

buildroot/runtime/_hdl_build/nx_mm_migrate_census.nx

6559 B132 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mm_migrate_census.nx -- R0 of the MEDIA-MANAGER -> GALLERY migration factory. Measures, MECHANICALLY and with no fabricated greens, how much of the Python media-manager (C:\Users\elder\mm, 375 endpoints / ~20 source sites) has been migrated INTO the sovereign gallery. It reads the DESCRIPTOR SPINE knowledge/registry/mm_migrate_ref.tsv (the QUESTIONS: feature<TAB>gallery_probe<TAB>note) and for each row decides PRESENT iff gallery_probe is a REAL substring of the LIVE gallery source runtime/_hdl_build/nx_gallery_serve.nx -- so PRESENT == genuinely wired into the gallery, never "exists somewhere". ABSENT rows are the migration backlog (each names its emitter in the note). LIAR-KILL: a positive control token that MUST be present in the evidence + a negative control that MUST be absent; if either fails the census verdict is RED (a broken/empty evidence read can't score green). Writes the scorecard to knowledge/registry/mm_migrate_census.tsv and prints a CENSUSGATE reach line. Sovereign: nx_syscalls only. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_mm_migrate_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 sys_mmap mmc_read sys_openat_rd sys_read sys_close mmc_w sys_write sys_exit mmc_app mmc_scan mmc_has sys_openat_wr sys_write ↻ sys_close ↻ mmc_n sys_mmap ↻ sys_write ↻

structs

none

consts

12const MMC_MAGIC_400000: i64 = 400000
13const MMC_MAGIC_80000: i64 = 80000
14const MMC_MAGIC_120000: i64 = 120000
16const MMC_REF: *u8 = "knowledge/registry/mm_migrate_ref.tsv"
17const MMC_EVID: *u8 = "runtime/_hdl_build/nx_gallery_serve.nx"
18const MMC_OUT: *u8 = "knowledge/registry/mm_migrate_census.tsv"

functions

20func mmc_w(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 1: main calls 1: sys_write
21func mmc_n(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
31func mmc_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
45func mmc_scan(buf: *u8, n: i64, start: i64, delim: i64) -> i64
called by 1: main
52func mmc_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
65func mmc_app(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off + i] = s[i]; i = i + 1 } return off + i }
called by 1: main
67func main() -> i64