code wiki / (root) / nx_teacher_mastery.nx

nx_teacher_mastery.nx

buildroot/runtime/nx_teacher_mastery.nx

8242 B168 linesdepth 8pulls 9 transitivereach 1 importersview sourcekind tooltopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_mastery.nx -- the TRAINER's honest CAPABILITY measure (Teacher arc, rung R3b). The trainer's coverage meter ([[project-tsv-native-migration-janitor-2026-06-20]]) measures SCHEDULING (fraction of insights under spaced practice) -- NOT a proven capability gain. This rung adds the honest gap: MASTERY = the team can RECALL an insight's rule on demand, and it is mastered ONLY IF the recall is mechanically correct (the rule is contained in the answer) -- you cannot fake mastery with a wrong answer (Rule 4, no-overclaim, liar-kill). Mastery is DISTINCT from coverage: coverage = attempted; mastery = answered correctly. The before/after capability lift = mastery_rate rising as the team correctly recalls. HONEST SCOPE: this is the measurement SUBSTRATE. Real mastery requires the team's OWN independent recalls (its reasoning produces the answers) fed to mst_attempt; this organ does the mechanical correctness check + the append-only mastery record. Imports ONLY nx_native_config (shallow -> small object). No network, no hardware writes (Rule 26). license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_native_config.nx nx_syscalls.nx nx_teacher_mastery.nx nx_teacher_mastery_gate.nx

imports: nx_native_config.nxnx_syscalls.nx

imported by: nx_teacher_mastery_gate.nx

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

main mst_puts sys_write ncfg_open ss_open_cached ssc_init sys_mmap ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free sys_munmap ↻ sys_munmap ↻

structs

none

consts

16const K_MAGIC_8192: i64 = 8192

functions

18func mst_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
19func mst_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
28func mst_streq(a: *u8, b: *u8) -> i64
34func mst_atoi(s: *u8) -> i64
called by 1: mst_mastered
40func mst_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: mst_contains
42func mst_contains(hay: *u8, needle: *u8) -> i64
called by 1: mst_attempt calls 1: mst_slen
56func mst_rule_of(cap_store: *u8, want: *u8, out: *u8) -> i64
81func mst_append(mastery_store: *u8, id: *u8, mastered: i64) -> i64
98func mst_attempt(cap_store: *u8, mastery_store: *u8, id: *u8, answer: *u8) -> i64
107func mst_mastered(mastery_store: *u8, id: *u8) -> i64
126func mst_rate(cap_store: *u8, mastery_store: *u8) -> i64
145func main() -> i64