code wiki / _hdl_build / nx_coach_rubric.nx

nx_coach_rubric.nx

buildroot/runtime/_hdl_build/nx_coach_rubric.nx

5688 B91 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic coach
docsdependenciesstructsconstsfunctions

about

nx_coach_rubric.nx -- SKILL-COACH rung R2: the DATA-DRIVEN RUBRIC STORE (rule #11/#25). The R1/R3 coach verdicts map to DRILLS via a sovereign seg_store (knowledge/store/coach-rubric-), keyed "<discipline>:<verdict>" -> drill text, + numeric thresholds. The coach ENGINE reads drills FROM the store (not hardcoded), so the team extends the curriculum (new drills, disciplines, voice-types) by editing DATA, no recompile -- and it's sovereign + content- addressed, not a .tsv/.json. Composes ss_* (the store pattern proven this session). Self-gate: seed -> reopen -> drills + threshold byte-faithful + a MISSING key returns ABSENT (liar-kill: never a fabricated drill). ORIGINAL

dependencies 3 imports · 0 importers

nx_seg_store.nx nx_itoa_lib.nx nx_syscalls.nx nx_coach_rubric.nx

imports: nx_seg_store.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main rb_puts sys_write rubric_seed ss_begin ss_begin_cap sys_mmap rb_add ss_add ss_add2 ss_w32 ss_len rb_slen ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32 ss_kcmp ss_w32 ↻

structs

none

consts

11const RB_PFX: *u8 = "knowledge/store/coach-rubric-" as *u8

functions

13func rb_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
18func rb_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
19func rb_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: rb_hasrb_add
20func rb_has(b: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: rb_slen
32func rb_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
38func rb_add(w: *i64, key: *u8, drill: *u8) -> i64 { return ss_add(w, 1, key, drill, rb_slen(drill)) }
called by 1: rubric_seed calls 2: ss_addrb_slen
40func rubric_seed(prefix: *u8) -> i64
57func rubric_get(h: *i64, key: *u8, outlen: *i64) -> *u8
called by 1: main calls 2: sys_mmapss_hget
64func main() -> i64