nx_lang_h2h_gate.nx
buildroot/runtime/nx_lang_h2h_gate.nx
about
nx_lang_h2h_gate.nx -- THE REFEREE for the /compare/lang head-to-head receipt (2026-09-01).
Subject: knowledge/compare/lang.bench, the receipt nx_lang_h2h writes, read through the ONE reader every
consumer shares (nx_bench_receipt_lib). The gate proves the receipt is a measurement and not a claim:
- a reference arm and a NishiLang arm exist and are VALID, every VALID arm printed the reference checksum,
every VALID arm carries its run count, min <= median, a positive median, a 64-hex source sha256 and a
64-hex binary sha256, a ratio derived from the reference median, a repro command and a 4-field host line;
- the writer's @verdict and the reader's re-derived verdict AGREE (rows edited after writing are caught);
- the classifier BITES: a planted checksum mismatch reads VOID, a missing reference reads UNMEASURABLE, an
empty receipt reads EMPTY, a forged @verdict over void rows is a writer/reader disagreement.
It says NOTHING about whether the numbers are good: that is the page's honest verdict to state and the
operator's to accept. A receipt that is absent SKIPs (I could not look), never RED.
exit: 0 GREEN . 1 RED . 3 SKIP (gv_verdict) license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_bench_receipt_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
| 17 | const LG_PATH: i64 = 1024 |
| 18 | const LG_FIX: i64 = 8192 |
| 19 | const LG_WORD: i64 = 8 |
| 20 | const LG_SHA_HEX: i64 = 64 |
| 21 | const LG_HOST_FIELDS: i64 = 4 |
| 22 | const LG_PIPE: i64 = 124 |
| 23 | const LG_NX_ARM: *u8 = "nishilang-checked" |
| 24 | const LG_RATIO_PROBE: i64 = 2020 |
| 25 | const LG_RATIO_PROBE_TEXT: *u8 = "2.02x" |
functions
| 27 | func lg_count_pipes(s: *u8) -> i64 { var c: i64 = 0; var i: i64 = 0; while s[i] != (0 as u8) { if (s[i] as i64) == LG_PIPE { c = c + 1 } i = i + 1 } return c } called by 1: main |
| 28 | func lg_is_hex64(s: *u8) -> i64 called by 1: main |
| 42 | func lg_resolve(out: *u8) -> i64 |
| 53 | func lg_fixture(dst: *u8, chk2: i64, withref: i64, verdictword: *u8) -> i64 |
| 64 | func main(argc: i64, argv: *i64) -> i64 |