nx_teacher_consult.nx
buildroot/runtime/nx_teacher_consult.nx
about
nx_teacher_consult.nx -- makes the unified capability store ACTIONABLE (Teacher arc, rung R4): the team
(or operator) ASKS "what do we know about <topic>?" and gets every matching insight. Until now the store
was write + recall-by-id only; consult turns 113 stored lessons into on-demand wisdom the team consults
WHILE working (e.g. before a build: consult "compile"; before a publish: consult "publish").
Match = the insight's rule CONTAINS the query (case-insensitive substring). Reads the shared native store
via ncfg -- coordinates THROUGH the store (SL-004), imports nx_teacher_merge for the store machinery only.
No network/hardware writes (Rule 26). license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_teacher_merge.nxnx_syscalls.nx
imported by: nx_teacher_consult_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 12 | func tc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func tc_putn(v: i64) -> i64 |
| 22 | func tc_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c } called by 1: tc_contains_ci |
| 24 | func tc_contains_ci(hay: *u8, needle: *u8) -> i64 |
| 38 | func tc_consult(store: *u8, query: *u8) -> i64 |
| 68 | func tc_ask(store: *u8, query: *u8) -> i64 |
| 75 | func main() -> i64 |