code wiki / _hdl_build / nx_buildq_gate.nx
nx_buildq_gate.nx
buildroot/runtime/_hdl_build/nx_buildq_gate.nx
about
nx_buildq_gate.nx -- the REFEREE for nx_buildq (deploy DL9 bq_dedupe_target, 2026-09-02). Drives the built
organ against the REAL nx_store_put on fixture planes under /tmp and asserts: one target enqueued twice is ONE
row (by id) and the second add SAYS so; `close` turns a queued row closed in place with its reason; a fired row
is left alone; nothing to close is a named NO-ROW with exit 0; an unsafe target is refused; and the pure row
finder matches the exact id (BQ-t1 never matches BQ-t10). Every plane assertion re-reads the plane through
the store verb, never the organ's receipt.
nx_buildq_gate [subject-elf] [store-elf] defaults _build/nx_buildq.sov.elf and _build/nx_store_put.sov.elf
license_tier: ORIGINAL. Writes only under /tmp/nx_buildq_gate/. No hw writes.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_tool_run.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
| 14 | const QG_CAP: i64 = 262144 |
| 15 | const QG_I64: i64 = 8 |
| 16 | const QG_ARGV: i64 = 16 |
| 17 | const QG_TIMEOUT_MS: i64 = 60000 |
| 18 | const QG_ROOT: *u8 = "/tmp/nx_buildq_gate" |
| 19 | const QG_QUEUE: *u8 = "/tmp/nx_buildq_gate/deployq-" |
| 20 | const QG_PLAN: *u8 = "/tmp/nx_buildq_gate/plan-build-" |
functions
| 22 | func qg_run(elf: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8, a6: *u8, a7: *u8, a8: *u8, a9: *u8, out: *u8, outlen: *i64) -> i64 |
| 36 | func qg_load(store: *u8, out: *u8, outlen: *i64) -> i64 |
| 40 | func qg_rows_with_id(dump: *u8, n: i64, id: *u8) -> i64 |
| 57 | func qg_status_of(dump: *u8, n: i64, id: *u8, st: *u8, cap: i64) -> i64 |
| 80 | func main(argc: i64, argv: *i64) -> i64 |