code wiki / _hdl_build / nx_teacher_learn.nx

nx_teacher_learn.nx

buildroot/runtime/_hdl_build/nx_teacher_learn.nx

4685 B61 linesdepth 10pulls 11 transitivereach 0 importersview sourcekind tooltopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_learn.nx -- closes the AUTONOMOUS-LEARNING loop: the team captures the lessons from its OWN work session directly into the unified native capability store (no TSV), where they become immediately consumable (recall) / schedulable (trainer) / masterable (mastery). This is the teacher's "grow from caught-mistake signals" principle, run for real on THIS session's verified events. Every lesson below is from a REAL, verified event this session (Rule 4 -- not fabricated): the duplicate Nishi Publisher caught by import resolution; the nx_wiki_devlog prose false-positive; the nxasm ctx-x- output-path bug measured against a manual rc=0 build; the coordinate-through-store decoupling; the runtime/ vs _hdl_build/ import path. Idempotent (dedup by rule). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_teacher_merge.nx nx_syscalls.nx nx_teacher_learn.nx

imports: nx_teacher_merge.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 tl_puts sys_write 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_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free sys_munmap ↻ sys_munmap ↻

structs

none

consts

12const K_MAGIC_4096: i64 = 4096

functions

14func tl_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: tl_learnmain calls 1: sys_write
15func tl_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
24func tl_learn(store: *u8, id: *u8, rule: *u8) -> i64
called by 1: main calls 2: tsyn_add_insighttl_puts
31func main() -> i64