code wiki / _hdl_build / nx_teacher_mastery_gate.nx
nx_teacher_mastery_gate.nx
buildroot/runtime/_hdl_build/nx_teacher_mastery_gate.nx
about
nx_teacher_mastery_gate.nx -- proves the honest MASTERY measure: a drill is mastered ONLY on a correct
recall, and mastery cannot be faked. Hermetic /tmp store. Discriminating + liar-killed:
T1 zero-mastery before any attempt
T2 CORRECT recall (answer contains the rule) -> mastered=1
T3 mastery rate rises to 1
T4[neg] WRONG answer -> mastered=0 (cannot fake capability with a wrong recall)
T5 rate stays 1 after the wrong attempt
T6 a later CORRECT recall of I2 -> mastered; rate=2
T7[neg] unknown id -> not mastered (no fabricated mastery for a non-existent insight)
GREEN iff all. Sovereign: imports nx_teacher_mastery + nx_syscalls. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_teacher_mastery.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
| none |
functions
| 14 | func gm_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func gm_putn(v: i64) -> i64 |
| 24 | func gm_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 } |
| 25 | func gm_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 33 | func gm_join(out: *u8, a: *u8, b: *u8) -> i64 { var o: i64 = gm_cat(out, 0, a); o = gm_cat(out, o, b); out[o] = 0 as u8; return o } |
| 34 | func gm_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) } |
| 35 | func gm_assert(label: *u8, cond: i64) -> i64 |
| 40 | func gm_row(w: *i64, idx: i64, id: *u8, rule: *u8) -> i64 |
| 47 | func gm_seed(cap: *u8) -> i64 |
| 56 | func main() -> i64 |