code wiki / _hdl_build / _queue_cohesion_gate_authored.nx
_queue_cohesion_gate_authored.nx
buildroot/runtime/_hdl_build/_queue_cohesion_gate_authored.nx
about
_queue_cohesion_gate_authored.nx -- gate for X-CONS-003. Drives the REAL
organ elf over scratch worlds:
CLEAN-GREEN no dups, ledger ids all referenced -> exit 0, all zeros
SEEDED-DUP-RED duplicate id -> exit 1 + COHESION-DUP-ID row
SEEDED-TITLE duplicate title -> exit 1 + COHESION-DUP-TITLE row
GAP-COUNTED open ledger id missing from queue -> gap=1, exit STILL 0
(gaps are work, not corruption)
LIVE-COHESIVE the REAL queue + REAL ledger -> exit 0 (dup-free live)
Markers: QCG-*; final QCGATE row -> knowledge/status/queue_cohesion.log
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| none |
functions
| 14 | func qcg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func qcg_f(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 } |
| 16 | func qcg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 18 | func qcg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 25 | func qcg_write(path: *u8, s: *u8) -> i64 |
| 36 | func qcg_run(qp: *u8, ledp: *u8, outpath: *u8) -> i64 |
| 56 | func qcg_has(path: *u8, pat: *u8) -> i64 |
| 79 | func main() -> i64 |