code wiki / _hdl_build / nx_emu_testbed_gate.nx
nx_emu_testbed_gate.nx
buildroot/runtime/_hdl_build/nx_emu_testbed_gate.nx
about
nx_emu_testbed_gate.nx -- THE REFEREE for the emu testbed.
Proves nx_emu_testbed correctly computes the live virtual-fit matrix AND can SEE every failure
mode (no-fabricated-green):
POSITIVE (real laptop_profiles.tsv + the real host probe):
T1 healthy: probe succeeds, >=1 profile FITS virtually here, 0 never-brick (host-mode) violations.
NEGATIVE CONTROLS (hermetic /tmp fixtures; the flag MUST fire):
N1 oversized : a profile needing ~100 TB RAM -> too_big >= 1
N2 host-mode : a profile with test_mode=host -> never-brick >= 1 (must run in the emu)
N3 uncovered : a profile on a non-emulatable arch -> uncovered >= 1
GREEN only if T1 AND N1..N3. Evidence rows + verdict -> knowledge/status/emu_testbed_gate.log.
Sovereign: imports the testbed + nx_framed_append + nx_syscalls (no gcc). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_emu_testbed.nxnx_framed_append.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
| 20 | const ET_LOG: *u8 = "knowledge/status/emu_testbed_gate.log" |
| 21 | const ET_REAL: *u8 = "knowledge/registry/laptop_profiles.tsv" |
| 22 | const ET_RECCAP: i64 = 512 |
functions
| 24 | func et_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 25 | func et_cat(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 } |
| 26 | func et_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 37 | func et_write_file(path: *u8, content: *u8) -> i64 |
| 46 | func et_tmppath(out: *u8, stem: *u8, epoch: i64, pid: i64) -> i64 |
| 57 | func et_row(name: *u8, pass: i64) -> i64 |
| 71 | func main() -> i64 |