code wiki / _hdl_build / nx_reconcile.nx
nx_reconcile.nx
buildroot/runtime/_hdl_build/nx_reconcile.nx
about
nx_reconcile.nx -- the AUTONOMOUS STATUS-KEEPER (X-Q-005): DONE flips on
EVIDENCE, with no session. For every TODO/WIP queue row whose gate cell
carries the machine suffix
...||MARK=<logpath>::<anchor>::<green-substring>
evaluate it exactly like the examiner/rung-grade family (the LAST <anchor>
line in <logpath> must contain <green-substring>); if GREEN, rewrite that
row's status to DONE in place. Rows without a MARK suffix are untouched
(X-Q-003b migrates them); NOVEL rows are NEVER auto-flipped (tutor work is
judged by its own gates after the visit). Deps untouched -- the sequencer
re-derives readiness next beat. Appends RECONCILE rows to
knowledge/status/reconcile.log; rewrite is whole-file (read -> patch in
memory -> write), safe at this row count.
argv[1] = queue override (gates use a scratch queue).
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_registry_lock.nxnx_itoa_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
| 17 | const K_MAGIC_524288: i64 = 524288 |
| 18 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 20 | func rc_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 25 | func rc_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 33 | func rc_stamp_ark_marker(flips: i64) -> i64 |
| 43 | func rc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 53 | func rc_at(buf: *u8, n: i64, i: i64, pat: *u8, pl: i64) -> i64 |
| 60 | func rc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: rc_eval |
| 63 | func rc_lockpath(qp: *u8, out: *u8) -> i64 called by 1: main |
| 74 | func rc_eval(logpath: *u8, anchor: *u8, green: *u8) -> i64 |
| 106 | func main(argc: i64, argv: *i64) -> i64 |