code wiki / _hdl_build / nx_sourced_census_test.nx

nx_sourced_census_test.nx

buildroot/runtime/_hdl_build/nx_sourced_census_test.nx

9131 B168 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_sourced_census_test.nx -- X-CENSUS-003: LIVE-SOURCED competitive census, union-DATA-aware (the honest no-wave verdict). Insight from reading the live source: a single encyclopedic stub does NOT enumerate granular features, so token/fuzzy matching alone under-measures. But the bench-reference `union` column already states which incumbents claim each feature -- so the VALID head-to-head is computable NOW: nishi_has = re_has(self_model, probe) -- COMPUTED, do WE have it incumbent = union does NOT start with "none" -- bench-reference: any rival claims it jelly_live = fuzzy_has(live_jelly_text, feat|probe) -- live PROVENANCE (case/hyphen-safe) classification (no faked semantics): nishi & !incumbent -> DIFFERENTIATED (sovereign axis: union says no rival has it) nishi & incumbent -> PARITY (we + a rival both have it) !nishi & incumbent -> BEHIND (rival has it, we lack it -- media breadth) !nishi & !incumbent -> NEITHER The live Jellyfin fetch CONFIRMS the union claim where its prose literally states the feature (provenance); where prose words it differently that's the remaining prose->feature SEMANTIC seat (a model seat) -- NOT faked here, just not required for the differentiation/parity/behind verdict. SOURCE-INTEGRITY GATE (no-false-green): live text MUST contain "Jellyfin" + MUST NOT contain a nonsense token; self-model pos/neg controls. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_research_extract.nx nx_html_to_text.nx nx_fuzzy_match.nx nx_sourced_census_test.nx

imports: nx_syscalls.nxnx_research_extract.nxnx_html_to_text.nxnx_fuzzy_match.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 sc_read_file sys_openat_rd sys_read sys_close sc_msg sys_write nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap sys_openat_wr sys_write ↻

structs

none

consts

32const SC_SELF: *u8 = "runtime/_hdl_build/nx_ecosystem_test.nx"
33const SC_REF: *u8 = "knowledge/registry/media_incumbent_ref.tsv"
34const SC_RAW: *u8 = "knowledge/fetched/jellyfin_sovereign.raw"
35const SC_OUT: *u8 = "knowledge/registry/media_sourced_census.tsv"
36const SC_MAXF: i64 = 256

functions

38func sc_msg(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
39func sc_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 }
called by 1: main calls 2: sys_mmapsys_write
40func sc_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
42func sc_read_file(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
51func sc_scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64
called by 1: main
57func sc_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
60func sc_union_none(u: *u8) -> i64
called by 1: main
65func main() -> i64