code wiki / _hdl_build / nx_meta_consumers.nx
nx_meta_consumers.nx
buildroot/runtime/_hdl_build/nx_meta_consumers.nx
about
nx_meta_consumers.nx -- X-CAP-006 (META-consumers-uniform). The four downstream apps --
companion(elder-ai) / apparel-store / writer-ingest / media-mining -- consume a captured-being
record THROUGH THE SAME meta-layer shape: each receives the same wire bytes, parses via the
SHARED ms_parse, and reads via the SHARED ms_get (nx_meta_schema, X-CAP-001). No per-consumer
parser, no parallel substrate -- the modality-agnostic record is the ONE interface (rule 15 DRY).
"Uniform shape" PROVEN: the four consumers' CORE identity views (modality|cid|consent|license)
are byte-identical; each still PROJECTS its own modality attr through the same accessor. A rogue
reader using a DIFFERENT field shape DIVERGES (negative control = the test discriminates), and the
consent hard line (X-CAP-005, anti-deepfake) is enforced UNIFORMLY at every consumer. Built
sovereignly (nx_cc->nxasm_x86, no gcc). license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_meta_schema.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_16384: i64 = 16384 |
functions
| 15 | func mc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 16 | func mc_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64=v; if m<0 {m=0-m}; let t: *u8 = sys_mmap(28); var k: i64=0; if m==0 {t[0]=48;k=1}; while m>0 {t[k]=48+(m%10); m=m/10; k=k+1}; var i: i64=0; while i<k {bb[i]=t[k-1-i]; i=i+1}; sys_write(1, bb, k); return 0 } |
| 19 | func mc_core_view(keys: *i64, vals: *i64, n: i64, out: *u8) -> i64 |
| 33 | func mc_rogue_view(keys: *i64, vals: *i64, n: i64, out: *u8) -> i64 |
| 48 | func consumer_read(wire: *u8, wlen: i64, attrkey: *u8, coreout: *u8) -> i64 |
| 60 | func consumer_valid(wire: *u8, wlen: i64) -> i64 |
| 70 | func main() -> i64 |