code wiki / _hdl_build / nx_collision_resolve_sovaudit.nx

nx_collision_resolve_sovaudit.nx

buildroot/runtime/_hdl_build/nx_collision_resolve_sovaudit.nx

2851 B39 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic collision
docsdependenciesstructsconstsfunctions

about

nx_collision_resolve_sovaudit.nx -- one-shot SOVEREIGN resolver for the nx_sovereignty_audit shadow collision (the highest-value of the 22). Ecosystem-grep (nx_buildsearch_gate) confirmed the _hdl_build CHECKER's only functional referrer is its gate (via a MANUAL /tmp/*.sov.elf prereq, no auto-builder) -- so renaming it is safe + tiny. This RENAMES the checker in place via sys_renameat (sovereign, reversible -- rename back to undo; NO delete), freeing the name so `nx_sov_build_run nx_sovereignty_audit` resolves to the runtime/ debt WALKER. SAFETY: aborts unless the checker exists, the walker exists (collision real), AND the new name is free (no clobber). Pair: update nx_sovereignty_audit_gate.nx's /tmp path to the new name. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_collision_resolve_sovaudit.

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 rw sys_write rexists sys_openat_rd sys_close sys_exit sys_renameat

structs

none

consts

10const CHK_OLD: *u8 = "runtime/_hdl_build/nx_sovereignty_audit.nx"
11const CHK_NEW: *u8 = "runtime/_hdl_build/nx_sov_import_lint.nx"
12const WALKER: *u8 = "runtime/nx_sovereignty_audit.nx"

functions

14func rw(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
15func rexists(p: *u8) -> i64 { let fd: i64=sys_openat_rd(p); if fd>=0 { sys_close(fd); return 1 } return 0 }
called by 1: main calls 2: sys_openat_rdsys_close
17func main() -> i64