code wiki / _hdl_build / nx_archivist_durability.nx

nx_archivist_durability.nx

buildroot/runtime/_hdl_build/nx_archivist_durability.nx

3156 B53 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_archivist_durability.nx -- the ARCHIVIST's first duty under the 2026-06-09 RACI clarification: a log that grades or governs MUST be durable. The cap registry, PM plan, and issues log live in /tmp and DIE ON REBOOT (observed: this session opened with the prior session's /tmp logs gone). This organ snapshots each into knowledge/status/ with a dated marker line (ADDITIVE -- /tmp stays; the dual-write law is the team's follow-on). Re-runnable; appends a fresh snapshot each run. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_archivist_durability.nx

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

main _p sys_write ad_copy sys_mmap sys_openat_rd sys_read sys_close sys_openat_append _fp sys_write ↻ _fn sys_mmap ↻ sys_write ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_write ↻ _pn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

8const K_MAGIC_2097168: i64 = 2097168
9const K_MAGIC_2097152: i64 = 2097152

functions

10func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
11func _pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" 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);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
12func _fp(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 }
called by 1: ad_copy calls 1: sys_write
13func _fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; 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);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 }
called by 1: ad_copy calls 2: sys_mmapsys_write
14func ad_copy(src: *u8, dst: *u8) -> i64
37func main() -> i64