code wiki / (root) / nx_teacher_coordinate.nx

nx_teacher_coordinate.nx

buildroot/runtime/nx_teacher_coordinate.nx

4718 B78 linesdepth 12pulls 13 transitivereach 0 importersview sourcekind tooltopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_coordinate.nx -- the COORDINATOR: runs the Nishi TEACHER, TRAINER and PUBLISHER together, in dependency order, through the ONE shared native capability store (the coordination medium). Operator (2026-06-20): "see the nishi teacher and the nishi trainer and the nishi publisher COORDINATING." Pipeline: 1. TEACHER -- tsyn_merge_cols x3: synthesize every insight ledger into knowledge/store/teacher-capability- 2. TRAINER -- trn_coverage / trn_due_count: schedule + measure over that store 3. PUBLISHER -- tpub_emit: emit the curriculum page reflecting BOTH (insights + coverage meter) One SITREP + a durable coordination log. The handoff is through the store, not a private side-channel, so each organ stays single-responsibility (#9) and the loop is re-runnable + idempotent (#10). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_teacher_publish.nx nx_syscalls.nx nx_teacher_coordinate.nx

imports: nx_teacher_publish.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 co_puts sys_write sys_now_realtime_sec sys_mmap sys_clock_gettime_real tsyn_merge_cols sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close 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_cat ↻ ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap ssc_retire_handle ncfg_count sys_mmap ↻ ncfg_count_key

structs

none

consts

none

functions

15func co_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
16func co_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
26func co_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 }
called by 1: main
27func co_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
36func main() -> i64