code wiki / (root) / nx_ask_gate.nx

nx_ask_gate.nx

buildroot/runtime/nx_ask_gate.nx

4756 B85 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic ask
docsdependenciesstructsconstsfunctions

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

nx_ask_lib.nx nx_ask_gate.nx

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

main sys_unlinkat ag_check ak_puts sys_write ag_run ak_main ak_puts ↻ sys_mmap ak_seq ak_epoch sys_mmap ↻ sys_clock_gettime_real ak_ntos sys_mmap ↻ ak_key ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_scan_seglist ss_len sys_mmap ↻ ss_cat ss_readall ss_r32 ak_flat ak_commit ss_begin ss_begin_cap sys_mmap ↻ sys_mmap ↻ ss_get ↻ ss_add ss_add2 ss_w32 ss_len ↻ ss_next_segid

structs

none

consts

9const AG_CHECKS: i64 = 6
10const AG_AV_BUF: i64 = 64 // synthetic argv vector buffer
11const AG_PTR_BUF: i64 = 16 // ptr+len out-param cells

functions

13func ag_check(name: *u8, ok: i64, pass: *i64) -> i64
called by 1: main calls 1: ak_puts
19func ag_run(a1: *u8, a2: *u8, a3: *u8, argc: i64) -> i64
called by 1: main calls 1: ak_main
28func main() -> i64