code wiki / (root) / nx_workflow_gate.nx

nx_workflow_gate.nx

buildroot/runtime/nx_workflow_gate.nx

2775 B50 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic workflow
docsdependenciesstructsconstsfunctions

about

nx_workflow_gate.nx -- gates the consolidated workflow tool on a REAL fixture WMS store (authored via the canonical ss_* + the FIXED ws_seg_next): board walks the ws:ids index with correct per-state totals; show returns labeled fields with found/tombstoned/absent discriminated honestly. Runner must clean /tmp/wfgate first. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_workflow_lib.nx nx_workflow_gate.nx

imports: nx_workflow_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_mkdir wg_put ss_begin ss_begin_cap sys_mmap ss_add ss_add2 ss_w32 ss_len wg_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32 ss_kcmp ss_w32 ↻ ss_build_terms sys_mmap ↻

structs

none

consts

7const GATE_CHECKS: i64 = 5
8const DIR_MODE: i64 = 0x1ed // 0755
9const FIX_WS: i64 = 2 // workstreams authored (alpha ACTIVE, beta BLOCKED)
10const TOMB_KIND: i64 = 2 // seg-store tombstone record kind

functions

12func wg_check(name: *u8, ok: i64, pass: *i64) -> i64
called by 1: main calls 1: wf_puts
17func wg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: wg_put
18func wg_put(prefix: *u8, key: *u8, val: *u8, kind: i64) -> i64
24func main(argc: i64, argv: *i64) -> i64