code wiki / _hdl_build / nx_reconcile.nx

nx_reconcile.nx

buildroot/runtime/_hdl_build/nx_reconcile.nx

11757 B257 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_registry_lock.nx nx_itoa_lib.nx nx_reconcile.nx

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

main rc_lockpath rt_lock rt_writeint_fd sys_mmap sys_write rt_now sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real rt_readint sys_openat_rd sys_mmap ↻ sys_read sys_close rt_unlink rc_read sys_read ↻ rt_unlock sys_close ↻ rt_unlink ↻ rc_w sys_openat_append rc_at rc_eval rc_read ↻ rc_len rc_at ↻ rc_wn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_openat_wr rc_stamp_ark_marker sys_openat_wr ↻ rc_w ↻ rc_wn ↻ sys_now_realtime_sec ↻

structs

none

consts

17const K_MAGIC_524288: i64 = 524288
18const K_MAGIC_1048576: i64 = 1048576

functions

20func 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 }
25func rc_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 2: rc_stamp_ark_markermain calls 1: nxi_fd
33func rc_stamp_ark_marker(flips: i64) -> i64
43func rc_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 2: rc_evalmain calls 1: sys_read
53func rc_at(buf: *u8, n: i64, i: i64, pat: *u8, pl: i64) -> i64
called by 2: rc_evalmain
60func 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
63func rc_lockpath(qp: *u8, out: *u8) -> i64
called by 1: main
74func rc_eval(logpath: *u8, anchor: *u8, green: *u8) -> i64
called by 1: main calls 3: rc_readrc_lenrc_at
106func main(argc: i64, argv: *i64) -> i64