code wiki / _hdl_build / nx_ale_grade_nondet_stub.nx

nx_ale_grade_nondet_stub.nx

buildroot/runtime/_hdl_build/nx_ale_grade_nondet_stub.nx

2152 B45 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic ale
docsdependenciesstructsconstsfunctions

about

nx_ale_grade_nondet_stub.nx -- the TAMPER fixture for ALE-R1a: a NON-DETERMINISTIC grader. It IGNORES (reference, artifact) and emits a CLOCK-DERIVED, time-varying milli-score instead of a pure function of the two files. The diff-lane gate _ale_grade_gate runs THIS twice on the same inputs; because the score changes between runs, the gate REJECTS it (the determinism check BITES). This is the negative control proving the real grader's determinism contract is enforced, not assumed. NEVER on the runtime path; fixture only. Lives in runtime/_hdl_build/ so `import "nx_syscalls.nx"` resolves (the import walker reaches runtime/); the fixture DATA (.txt) lives under knowledge/specs/ale_grade_examples/. Same I/O surface as nx_ale_grade: argv[1]=ref, argv[2]=art; writes the milli-score (decimal + newline) to the scratch path in argv[3] (or stdout if absent). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ale_grade_nondet_stub.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_now_us sys_mmap sys_clock_gettime_mono sys_openat_wr ng_wn sys_mmap ↻ sys_write sys_close sys_exit

structs

none

consts

none

functions

13func ng_wn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func main(argc: i64, argv: *i64) -> i64