code wiki / _hdl_build / nx_collision_resolve_sovaudit.nx
nx_collision_resolve_sovaudit.nx
buildroot/runtime/_hdl_build/nx_collision_resolve_sovaudit.nx
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
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
| 10 | const CHK_OLD: *u8 = "runtime/_hdl_build/nx_sovereignty_audit.nx" |
| 11 | const CHK_NEW: *u8 = "runtime/_hdl_build/nx_sov_import_lint.nx" |
| 12 | const WALKER: *u8 = "runtime/nx_sovereignty_audit.nx" |
functions
| 14 | func rw(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 rexists(p: *u8) -> i64 { let fd: i64=sys_openat_rd(p); if fd>=0 { sys_close(fd); return 1 } return 0 } |
| 17 | func main() -> i64 |