nx_ask_gate.nx
buildroot/runtime/nx_ask_gate.nx
about
nx_ask_gate.nx -- gates the user-question capability on a THROWAWAY store prefix... except nx_ask pins
the canonical knowledge/store/ask- prefix BY DESIGN (one queue, no ambient prefix injection), so this
gate runs against a scratch CWD instead: the runner must cd to a throwaway dir (the store prefix is
CWD-relative). Asserts the FULL contract via the CLI-level funcs: post -> id; pending shows the OPEN
row; answer flips it; get serves all fields; pending drains; unknown id is the store's honest ABSENT
(negative control). Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_ask_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
| 9 | const AG_CHECKS: i64 = 6 |
| 10 | const AG_AV_BUF: i64 = 64 // synthetic argv vector buffer |
| 11 | const AG_PTR_BUF: i64 = 16 // ptr+len out-param cells |
functions
| 13 | func ag_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 19 | func ag_run(a1: *u8, a2: *u8, a3: *u8, argc: i64) -> i64 |
| 28 | func main() -> i64 |