nx_compare_results.nx
buildroot/runtime/nx_compare_results.nx
about
nx_compare_results.nx -- CLI over nx_compare_results_lib (ecosystem EC64, 2026-09-17): a board's results in ONE place.
nx_compare_results emit <dom> <results-file> <out.html> -> render any results file to any page (fixtures, previews)
nx_compare_results publish <dom> -> buildroot/knowledge/compare/<dom>.results rendered to
sites/nishifamily/compare/<dom>/results/index.html
Every image on the page sits behind the estate's click-to-open primitive; the page is refused when the audit finds a
media tag outside one. Receipt: one COMPARE-RESULTS line, verdict last.
exit: 0 emitted | 2 usage | 3 results file unreadable | 4 no live rows | 5 write refused | 6 page overflow | 7 bare media
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_compare_results_lib.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 CRC_EXIT_USAGE: i64 = 2 |
| 13 | const CRC_ARGC_EMIT: i64 = 5 |
| 14 | const CRC_ARGC_PUBLISH: i64 = 3 |
| 15 | const CRC_MODE755: i64 = 493 |
| 16 | const CRC_STDOUT: i64 = 1 |
| 17 | const CRC_DATA_PREFIX: *u8 = "buildroot/knowledge/compare/" |
| 18 | const CRC_DATA_SUFFIX: *u8 = ".results" |
| 19 | const CRC_SITE_PREFIX: *u8 = "sites/nishifamily/compare/" |
| 20 | const CRC_SITE_DIR: *u8 = "/results" |
| 21 | const CRC_SITE_PAGE: *u8 = "/results/index.html" |
functions
| 23 | func crc_puts(s: *u8) -> i64 { sys_write(CRC_STDOUT, s, rvl_slen(s)); return 0 } |
| 24 | func crc_putn(v: i64) -> i64 |
| 30 | func crc_kv(k: *u8, v: i64) -> i64 { crc_puts(k); return crc_putn(v) } |
| 31 | func crc_usage() -> i64 { crc_puts("usage: nx_compare_results emit <dom> <results-file> <out.html> | publish <dom>\n" as *u8); return CRC_EXIT_USAGE } |
| 32 | func crc_streq(a: *u8, b: *u8) -> i64 { return rvl_span_is(a, 0, rvl_slen(a), b) } |
| 33 | func crc_verdict(code: i64) -> *u8 called by 1: crc_run |
| 41 | func crc_run(dom: *u8, results_path: *u8, out_path: *u8) -> i64 |
| 58 | func main(argc: i64, argv: **u8) -> i64 |