nx_toolcall_idem_gate.nx
buildroot/runtime/nx_toolcall_idem_gate.nx
about
nx_toolcall_idem_gate.nx -- IN-PROCESS gate over nx_toolcall_idem_lib (/compare/dataio DI4 ta_idempotency_key).
Fixtures under /tmp/<gate>/ (never a production plane). Proves: the decision states, the reservation, the replay,
the release, the row grammar, the digest naming -- and named negatives (a key with whitespace is refused before
anything executes; a second key never sees the first's outcome; two keys never share a digest name).
exit: 0 GREEN / 1 RED (gv_verdict law).
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_toolcall_idem_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
| 11 | const TG_DIR: *u8 = "/tmp/nx_toolcall_idem_gate" as *u8 |
| 12 | const TG_LEDGER: *u8 = "/tmp/nx_toolcall_idem_gate/toolcall_idem.jrnl" as *u8 |
| 13 | const TG_NOW: i64 = 1788640000 |
functions
| 15 | func tg_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 16 | func tg_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] == b[i] { if a[i] == (0 as u8) { return 1 } i = i + 1 } return 0 } called by 1: main |
| 18 | func main() -> i64 |