code wiki / _hdl_build / nx_teacher_coordinate_gate.nx

nx_teacher_coordinate_gate.nx

buildroot/runtime/_hdl_build/nx_teacher_coordinate_gate.nx

6509 B124 linesdepth 12pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_coordinate_gate.nx -- proves the TEACHER + TRAINER + PUBLISHER coordinate: the published page is a JOINT artifact whose content depends on BOTH the teacher's store AND the trainer's live state. Hermetic /tmp. Seed 3 insights (teacher), practice one (trainer), emit the page (publisher), read it: T1 emit produced bytes T2 page carries the teacher's insight COUNT (INSIGHTS=3) T3 page carries the trainer's COVERED meter (COVERED=1 after one practice) T4 page renders the teacher's insight rules (rule one / two / three) -- data-driven, all of them T5 page carries source+id (the unified record shape) T6[neg] no-fabrication: a rule never seeded is ABSENT from the page T7 COORDINATION: practice a 2nd insight -> re-emit -> the page now shows COVERED=2 (the publisher reflects the trainer's UPDATED state -- proof the meter is live, not a constant) GREEN iff all. Sovereign: imports nx_teacher_publish + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_teacher_publish.nx nx_syscalls.nx nx_teacher_coordinate_gate.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 cg_puts sys_write sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ cg_cat cg_catn sys_mmap ↻ cg_mkdir sys_mkdir cg_join cg_cat ↻ cg_write sys_openat_wr sys_write ↻ sys_close 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

structs

none

consts

none

functions

17func cg_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 2: cg_assertmain calls 1: sys_write
18func cg_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func cg_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 2: cg_joinmain
28func cg_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
36func cg_join(out: *u8, a: *u8, b: *u8) -> i64 { var o: i64 = cg_cat(out, 0, a); o = cg_cat(out, o, b); out[o] = 0 as u8; return o }
called by 1: main calls 1: cg_cat
37func cg_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) }
called by 1: main calls 1: sys_mkdir
38func cg_write(path: *u8, content: *u8) -> i64
44func cg_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
50func cg_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
62func cg_assert(label: *u8, cond: i64) -> i64
called by 1: main calls 1: cg_puts
67func main() -> i64