code wiki / (root) / nx_teacher_publish.nx

nx_teacher_publish.nx

buildroot/runtime/nx_teacher_publish.nx

6168 B112 linesdepth 11pulls 12 transitivereach 2 importersview sourcekind tooltopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_publish.nx -- the PUBLISHER of the Nishi Teacher loop (Teacher arc, rung R5 = surface it). Operator: "see the nishi teacher and the nishi trainer and the nishi publisher COORDINATING." The publisher EMITS a data-driven curriculum page FROM the unified native capability store (the teacher's output) annotated with the trainer's coverage meter + per-insight practiced/due badge -- so the page is a JOINT artifact of teacher (insights) + trainer (schedule), the coordination made visible. Emit-never-handwrite ([[feedback-live-testable-publish-loop-standard]]); a LIVE push to the site is outward-facing -> operator go-ahead (this organ only STAGES the page to web_assets/). tpub_emit(cap_store, state_store, out_path, now) -> bytes written (or -1) The page carries machine-checkable markers (INSIGHTS=/COVERED=/DUE=/COVERAGE_PERMIL=) + a card per insight (source, id, HTML-escaped rule, practiced|due badge). No hardware writes/network (Rule 26). license_tier: ORIGINAL

dependencies 2 imports · 2 importers

nx_teacher_trainer.nx nx_syscalls.nx nx_teacher_publish.nx nx_teacher_coordinate.nx nx_teacher_coordinate_gate.nx

imports: nx_teacher_trainer.nxnx_syscalls.nx

imported by: nx_teacher_coordinate.nxnx_teacher_coordinate_gate.nx

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

main sys_now_realtime_sec sys_mmap sys_clock_gettime_real tpub_emit 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 ss_hget sys_mmap ↻ ss_idx_find ss_r32 ↻ ss_len ss_kcmp ncfg_atoi trn_coverage ncfg_open ↻

structs

none

consts

none

functions

17func tpub_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 tpub_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func tpub_wr(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return n }
called by 1: tpub_emit calls 1: sys_write
28func tpub_wrn(fd: i64, v: i64) -> i64
called by 1: tpub_emit calls 2: sys_mmapsys_write
42func tpub_wresc(fd: i64, s: *u8) -> i64
called by 1: tpub_emit calls 1: sys_write
56func tpub_emit(cap_store: *u8, state_store: *u8, out_path: *u8, now: i64) -> i64
103func main() -> i64