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
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
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
structs
| none |
consts
| none |
functions
| 13 | func ng_wn(fd: i64, v: i64) -> i64 |
| 28 | func main(argc: i64, argv: *i64) -> i64 |