nx_browser_census.nx
buildroot/runtime/nx_browser_census.nx
about
nx_browser_census.nx -- SOVEREIGN browser-parity census scoreboard organ (MCP tool + API payload).
Operator directive 2026-07-23: "mcp and api and object oriented and agentic and workflow ready ... it needs
to scale." Replaces the one-off PowerShell -> static-JSON pipeline (the scattering root) with a data-driven
sovereign organ: sites + per-site results live in the SEG-STORE PLANE knowledge/store/browsercensus- (NOT
hardcoded, NOT a tsv per the sovereign-formats law) -> ADD SITES WITHOUT TOUCHING CODE = scales to N.
Reads the plane, parses each site RECORD, aggregates a SCOREBOARD (mean reading-recall vs Chrome, class
counts, mean height-ratio), emits structured JSON to stdout (the MCP + API payload) AND colocates it to
knowledge/status/browser_census.log (evidence). Fail-closed: absent/empty plane -> RED exit 1 (no scoreboard
without data). Row schema, 6 tab fields: site \t class \t reading_recall_pm \t ratio_pct \t chrome_h \t nishi_h.
reading_recall_pm/ratio_pct = "-" or non-digit means UNMEASURED (excluded from the mean, never a silent 0).
Workflow-ready: one plane row per site, one JSON record per site -> composable/fan-out. license_tier: ORIGINAL
expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_store_seed_lib.nxnx_seg_store.nxnx_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
| 16 | const BC_MAGIC_4096: i64 = 4096 |
| 18 | const BC_PLANE_CAP: i64 = 1048576 |
| 19 | const BC_JSON_CAP: i64 = 262144 |
functions
| 22 | func bc_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 23 | func bc_cat(o: *u8, at: i64, s: *u8) -> i64 { var i: i64=0; var a: i64=at; while s[i]!=(0 as u8){o[a]=s[i]; a=a+1; i=i+1} return a } called by 1: main |
| 24 | func bc_catf(o: *u8, at: i64, p: *u8, n: i64) -> i64 { var i: i64=0; var a: i64=at; while i<n { o[a]=p[i]; a=a+1; i=i+1 } return a } called by 1: main |
| 25 | func bc_catn(o: *u8, at: i64, v: i64) -> i64 |
| 35 | func bc_field_has(p: *u8, n: i64, sub: *u8) -> i64 called by 1: main |
| 47 | func bc_field_int(p: *u8, n: i64) -> i64 called by 1: main |
| 57 | func main() -> i64 |