code wiki / _hdl_build / nx_teacher_hb.nx

nx_teacher_hb.nx

buildroot/runtime/_hdl_build/nx_teacher_hb.nx

3969 B87 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan librarytopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher.nx -- the NISHI TEACHER / TUTOR organ (operator: "maybe we need a nishi teacher or tutor to partner and gracefully have you hand off what you do as we move towards s class"). The Teacher manages the M0->M4 autonomy ladder PER capability: it decides when the team is ready to take a rung from Claude, advances ONE rung at a time (never a reckless skip), and reports what Claude still owns vs what has been handed off. As the team's grades climb, Claude's load shrinks toward zero -- the whole point of the seed/spore north star. RACI: the Teacher partners with Claude (the tutor) and the Examiner (the grader); it does not grade or build, it sequences the handoff. license_tier: ORIGINAL M0 Claude does it; team cannot M3 team does it autonomously; Claude spot-checks M1 Claude does it; team observes/learns M4 team fully owns it; Claude handed off M2 team does it; Claude verifies

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_teacher_hb.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

15const TCH_M0: i64 = 0
16const TCH_M1: i64 = 1
17const TCH_M2: i64 = 2
18const TCH_M3: i64 = 3
19const TCH_M4: i64 = 4

functions

22func tch_claude_owns(level: i64) -> i64 { if level <= TCH_M1 { return 1 } return 0 }
called by 1: tch_claude_load
25func tch_can_advance(team_grade: i64, threshold: i64, regressed: i64) -> i64
called by 1: tch_next_level
32func tch_next_level(current: i64, team_grade: i64, threshold: i64, regressed: i64) -> i64
calls 1: tch_can_advance
39func tch_handed_off(levels: *i64, n: i64) -> i64
called by 1: tch_progress_permil
46func tch_claude_load(levels: *i64, n: i64) -> i64
calls 1: tch_claude_owns
53func tch_progress_permil(levels: *i64, n: i64) -> i64
calls 1: tch_handed_off
59func tch_next_target(levels: *i64, grades: *i64, n: i64) -> i64
70func tch_premature(advanced: i64, sustained: i64) -> i64
called by 1: tch_rollback
76func tch_rollback(current: i64, advanced: i64, sustained: i64) -> i64
calls 1: tch_premature
82func tch_learned_threshold(base_threshold: i64, premature_count: i64, step: i64) -> i64
87func tch_got_stricter(old_threshold: i64, new_threshold: i64) -> i64 { if new_threshold > old_threshold { return 1 } return 0 }