code wiki / _hdl_build / nx_mm_migrate_census.nx
nx_mm_migrate_census.nx
buildroot/runtime/_hdl_build/nx_mm_migrate_census.nx
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
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
| 12 | const MMC_MAGIC_400000: i64 = 400000 |
| 13 | const MMC_MAGIC_80000: i64 = 80000 |
| 14 | const MMC_MAGIC_120000: i64 = 120000 |
| 16 | const MMC_REF: *u8 = "knowledge/registry/mm_migrate_ref.tsv" |
| 17 | const MMC_EVID: *u8 = "runtime/_hdl_build/nx_gallery_serve.nx" |
| 18 | const MMC_OUT: *u8 = "knowledge/registry/mm_migrate_census.tsv" |
functions
| 20 | func 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 } |
| 21 | func mmc_n(v: i64) -> i64 |
| 31 | func mmc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 45 | func mmc_scan(buf: *u8, n: i64, start: i64, delim: i64) -> i64 called by 1: main |
| 52 | func mmc_has(hay: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 65 | func 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 |
| 67 | func main() -> i64 |