code wiki / _hdl_build / nx_codewiki_ask.nx
nx_codewiki_ask.nx
buildroot/runtime/_hdl_build/nx_codewiki_ask.nx
about
nx_codewiki_ask.nx -- ASK THE CODE WIKI, and nothing else.
===== WHY THIS IS A SEPARATE BINARY =====
The allowlist grants a tool either FIXED args (caller argv ignored) or full
caller control -- there is no middle. A question must come from the caller,
so this tool's row must be unpinned; and an unpinned row on the GENERATOR
would hand its holder an arbitrary-path read/write primitive (walk any root,
write pages anywhere). So the ask surface is its own entry point that
composes the same library and can do exactly one thing: read its own index
and print cited hits. **Least authority by construction, not by promise.**
nx_codewiki_ask <question words...>
Retrieval is LEXICAL and says so: a question sharing no token with the
corpus returns NO-MATCH rather than the least-bad guess.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_eco_graph.nxnx_gatelib.nxnx_import_scan.nxnx_codewiki_lib.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
| 24 | const K_MAGIC_1024: i64 = 1024 |
functions
| 26 | func cwa_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 28 | func main(argc: i64, argv: *i64) -> i64 |