code wiki / _hdl_build / nx_teacher_coordinate_gate.nx
nx_teacher_coordinate_gate.nx
buildroot/runtime/_hdl_build/nx_teacher_coordinate_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 17 | func 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 } |
| 18 | func cg_putn(v: i64) -> i64 |
| 27 | func 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 } |
| 28 | func cg_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 36 | func 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 } |
| 37 | func cg_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) } |
| 38 | func cg_write(path: *u8, content: *u8) -> i64 |
| 44 | func cg_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 50 | func cg_contains(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 62 | func cg_assert(label: *u8, cond: i64) -> i64 |
| 67 | func main() -> i64 |