code wiki / _hdl_build / nx_browser_ux_census.nx

nx_browser_ux_census.nx

buildroot/runtime/_hdl_build/nx_browser_ux_census.nx

18290 B246 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_ux_census.nx -- the RESEARCH-GROUNDED browser UX/CX census (operator: the testing suite = researcher + census proving s-class on UI/CX/features "without needing a human but matching a humans experience"). Every axis cites the banked research corpus (nx_ux_research_fetch -> ux_*.raw: Nielsen heuristic evaluation, Fitts's law, WCAG, usability testing, digital anthropology) and is graded by a MECHANICAL probe wherever one exists: - WCAG contrast COMPUTED (integer gamma~2 sRGB approximation) for body text + links on our real colors; - legibility = the OCR judge's LIVE number PARSED from ocr_legibility.log (ours vs chrome/edge 1000); - scroll/reflow/click = the synthetic user's artifacts (nx_browser_user_sim gate, usersim_*.png); - target sizes = the chrome's real button geometry vs the WCAG 24px minimum; - un-built human-experience axes (tabs, find, a11y tree, focus, error pages, zoom UI, dark mode) = ADMIT rows -- the census mechanically CANNOT whitewash (C2 forces >=5 admissions). Verdict = census integrity, never the score. NEVER-BRICK: reads evidence, writes status artifacts. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_browser_ux_census.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main uc_puts sys_write sys_mmap uc_app uc_fsize sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close uc_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap uc_contrast_milli uc_appd sys_mmap ↻ uc_parse_after sys_mmap ↻ sys_read_file ↻ uc_write_file sys_openat_wr sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

16const K_MAGIC_2126: i64 = 2126
17const K_MAGIC_7152: i64 = 7152
18const K_MAGIC_10000: i64 = 10000
19const K_MAGIC_12750: i64 = 12750
20const K_MAGIC_65536: i64 = 65536
21const K_MAGIC_4500: i64 = 4500
22const K_MAGIC_50000: i64 = 50000

functions

24func uc_puts(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
29func uc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
30func uc_app(buf: *u8, pos: i64, s: *u8) -> i64 { var p: i64=pos; var i: i64=0; while s[i]!=(0 as u8) { buf[p]=s[i]; p=p+1; i=i+1 } return p }
called by 1: main
31func uc_appd(buf: *u8, pos: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
43func uc_write_file(path: *u8, data: *u8, n: i64) -> i64
50func uc_fsize(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
57func uc_parse_after(path: *u8, key: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
85func uc_contrast_milli(tr: i64, tg: i64, tb: i64, br2: i64, bg2: i64, bb2: i64) -> i64
called by 1: main
99func main() -> i64