nx_toolreg_reconcile_gate.nx
buildroot/runtime/nx_toolreg_reconcile_gate.nx
about
nx_toolreg_reconcile_gate.nx -- gates the discovery reconciler on a THROWAWAY registry prefix +
fixture confs (runner: cd a scratch dir with a knowledge/ subdir). Asserts: missing GREEN tools get
registered with the AUTHOR'S schema desc; schema-less tools are SKIPPED (fail-closed, counted);
already-registered tools are LEFT ALONE; the whole run is IDEMPOTENT (2nd pass registers 0);
comment rows ignored. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_toolreg_reconcile_lib.nxnx_seg_store.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
| 9 | const TG_CHECKS: i64 = 10 |
| 10 | const TG_PTR: i64 = 16 // ptr/len out cells |
| 11 | const TG_FIX_ROWS: i64 = 4 // non-comment fixture allowlist rows (toola/toolb/toolc/toold) |
| 12 | const TG_ASCII_0: i64 = 48 // '0' |
| 13 | const TG_SLASH: i64 = 47 // '/' |
| 14 | const TG_EXP_ALREADY2: i64 = 2 // idempotent 2nd pass: both schema-tools "already"; also = drift on the 2-tool dirty audit |
| 15 | const TG_TENS: i64 = 10 // 2-digit score render |
functions
| 17 | func tg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 31 | func tg_write(path: *u8, body: *u8) -> i64 { return ss_writefile(path, body, rr_len(body)) } |
| 33 | func tg_cat(o: *u8, at: i64, s: *u8) -> i64 called by 1: main |
| 39 | func tg_num(o: *u8, at: i64, v: i64) -> i64 called by 1: main |
| 50 | func main() -> i64 |