code wiki / (root) / nx_retire_onto.nx

nx_retire_onto.nx

buildroot/runtime/nx_retire_onto.nx

3306 B54 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic retire
docsdependenciesstructsconstsfunctions

about

nx_retire_onto.nx -- CLI for retiring a private function onto its shared owner (global tooling, 2026-08-24). Thin main only; every function lives in nx_retire_onto_lib.nx so nx_retire_onto_gate composes them in-process. nx_retire_onto one <file.nx> <private_fn> <owner_lib.nx> <owner_fn> [dry|prove|apply] nx_retire_onto sweep <plane-prefix> <symbol-suffix> <owner_lib.nx> <owner_fn> [dry|prove|apply] prove = generate a differential probe (private vs owner over a declared input ladder), build it with the estate's builder, run it; apply = the same, and write ONLY on a PASS. Nothing writes unproven. plane-prefix is the libindex row plane, spelled IN FULL (knowledge/store/libindex-); every library symbol ending in <symbol-suffix> is a candidate. Dry by default. Prints one line per candidate and a partition that sums: retirable + already + applied + refused = candidates. exit 0 = ran (dry, applied, already) · 1 = a sweep saw at least one REFUSED · 2 = usage or a single REFUSED license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_retire_onto_lib.nx nx_retire_onto.nx

imports: nx_retire_onto_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rom_usage ro_out ro_w ro_slen sys_write ro_streq ro_one ro_streq ↻ ro_basename ro_report ro_out ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ro_locate sys_mmap ↻ ro_mk_pat ro_slen ↻ sys_munmap ↻ ro_find_bol

structs

none

consts

none

functions

16func rom_usage() -> i64
called by 1: main calls 1: ro_out
25func main(argc: i64, argv: *i64) -> i64