code wiki / _hdl_build / nx_codewiki_ask.nx

nx_codewiki_ask.nx

buildroot/runtime/_hdl_build/nx_codewiki_ask.nx

1937 B48 linesdepth 7pulls 8 transitivereach 0 importersview sourcekind tooltopic codewiki
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_eco_graph.nx nx_gatelib.nx nx_import_scan.nx nx_codewiki_lib.nx nx_codewiki_ask.nx

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

main cwa_w sys_write sys_exit sys_mmap

structs

none

consts

24const K_MAGIC_1024: i64 = 1024

functions

26func 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 }
called by 1: main calls 1: sys_write
28func main(argc: i64, argv: *i64) -> i64