code wiki / _hdl_build / nx_coach_rubric.nx
nx_coach_rubric.nx
buildroot/runtime/_hdl_build/nx_coach_rubric.nx
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
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
structs
| none |
consts
| 11 | const RB_PFX: *u8 = "knowledge/store/coach-rubric-" as *u8 |
functions
| 13 | func 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 } |
| 18 | func rb_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 19 | func rb_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 20 | func rb_has(b: *u8, n: i64, needle: *u8) -> i64 |
| 32 | func rb_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64 called by 1: main |
| 38 | func rb_add(w: *i64, key: *u8, drill: *u8) -> i64 { return ss_add(w, 1, key, drill, rb_slen(drill)) } |
| 40 | func rubric_seed(prefix: *u8) -> i64 |
| 57 | func rubric_get(h: *i64, key: *u8, outlen: *i64) -> *u8 |
| 64 | func main() -> i64 |