code wiki / (root) / nx_gaps_pass_gate.nx

nx_gaps_pass_gate.nx

buildroot/runtime/nx_gaps_pass_gate.nx

9564 B128 linesdepth 10pulls 54 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_gaps_pass_gate.nx -- GATE for gaps_pass (ecosystem EC38): the ONE renderer of the record census feed (knowledge/recordgaps.conf.rows + its sibling .stamp) in the compare base lib, driven IN-PROCESS on a planted fixture tree under /tmp/nx_gaps_pass_gate. The gate chdirs into the fixture root so the lib's estate-path probe resolves the feed INSIDE the fixture (as-given wins over ../ and the roots) and never renders the real census. Controls: a board renders ONLY its own directive rows plus the estate-wide organ COUNT; the ecosystem hub renders the un-boarded organs in full; a MALFORMED row is counted and never rendered; an angle bracket in a name is escaped; a STALE stamp renders its rows under the STALE state (a stale census is never "no gaps"); a BLIND stamp says sources read of declared; a FRESH one says FRESH. The absent-feed tooth is named WEAK on purpose: the resolver probes the estate roots ABSOLUTELY, so on the NAS an absent fixture feed legitimately falls through to the production feed -- the tooth accepts either outcome and says so. Every fixture asserts it reached its condition before any outcome is judged. No network. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gatekit_lib.nx nx_swcompare_lib.nx nx_gate_verdict.nx nx_gaps_pass_gate.nx

imports: nx_syscalls.nxnx_gatekit_lib.nxnx_swcompare_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mkdir x_put sys_unlinkat sys_openat_wr sys_write ↻ x_slen sys_close sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real ga_stamp_write sys_mmap ↻ sj_cat sj_catn sys_mmap ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ gv_need gv_puts ↻

structs

none

consts

16const X_ROOT: *u8 = "/tmp/nx_gaps_pass_gate"
17const X_KDIR: *u8 = "/tmp/nx_gaps_pass_gate/knowledge"
18const X_FEED: *u8 = "/tmp/nx_gaps_pass_gate/knowledge/recordgaps.conf.rows"
19const X_STAMP: *u8 = "/tmp/nx_gaps_pass_gate/knowledge/recordgaps.conf.stamp"
20const X_EMPTY: *u8 = "/tmp/nx_gaps_pass_gate_empty"
21const X_EMPTY_K: *u8 = "/tmp/nx_gaps_pass_gate_empty/knowledge"
22const X_A_HTML: *u8 = "/tmp/nx_gaps_pass_gate/a.html"
23const X_A_JSON: *u8 = "/tmp/nx_gaps_pass_gate/a.json"
24const X_HUB_HTML: *u8 = "/tmp/nx_gaps_pass_gate/hub.html"
25const X_HUB_JSON: *u8 = "/tmp/nx_gaps_pass_gate/hub.json"
26const X_STALE_HTML: *u8 = "/tmp/nx_gaps_pass_gate/stale.html"
27const X_FRESH_HTML: *u8 = "/tmp/nx_gaps_pass_gate/fresh.html"
28const X_ABS_JSON: *u8 = "/tmp/nx_gaps_pass_gate/abs.json"
29const X_MODE_RW: i64 = 420
30const X_MODE_RWX: i64 = 493
31const X_CAP: i64 = 262144
32const X_CADENCE: i64 = 86400
33const X_STALE_BEATS: i64 = 5
34const X_TOTAL: i64 = 4
35const X_READ_BLIND: i64 = 3
36const X_DECLARED: i64 = 4
38const X_ROWS: *u8 = "# comparegaps rows ts=1 total=4 organ=2 directive=2 sources_read=3 sources_declared=4\norgan|nx_orphan_q|UNASSIGNED|invoked|count=3\norgan|nx_x<y|UNASSIGNED|invoked|count=1\ndirective|qq_sym|a|plan-queue|rung=A1\ndirective|zz_sym|b|plan-queue|rung=B1\nbad|row\n"

functions

40func x_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: x_putx_find
41func x_put(path: *u8, body: *u8) -> i64
49func x_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: x_slen
57func x_render(dom: *u8, mode: i64, out: *u8, buf: *u8) -> i64
69func main(argc: i64, argv: *i64) -> i64