code wiki / _hdl_build / nx_algo_retire.nx

nx_algo_retire.nx

buildroot/runtime/_hdl_build/nx_algo_retire.nx

5165 B98 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_algo_retire.nx -- the DEBT-DROP: retire the 3,281 specs/algo_registry/<name>/meta.json now that the cards live byte-faithful in knowledge/store/algo-registry- + the sovereign registry (nx_algo_registry) preserves the capability + the only consumer (nx_bundle_gen) is dormant. SAFE BY CONSTRUCTION: each meta.json is moved ONLY IF its bytes BYTE-MATCH the store copy (no data loss -- it's in the store AND the moved file), and it is MOVED (sys_renameat) to specs/algo_registry/_retired/ (the auditor fences "/_retired/" -> un-counted) -- NEVER DELETED (rule #13 additive, never-brick: reversible by moving back). impl.nx/test.nx (the primitives) are untouched. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_seg_store.nx nx_syscalls.nx nx_algo_retire.nx

imports: nx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main rt_puts sys_write sys_mkdir ss_open ss_open2 sys_mmap ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻ ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ss_r32 ↻ ssl_key_eq ss_r32 ↻

structs

none

consts

10const AR_MAGIC_262144: i64 = 262144
11const AR_MAGIC_1024: i64 = 1024
12const AR_MAGIC_3000: i64 = 3000
14const AR_PREFIX: *u8 = "knowledge/store/algo-registry-" as *u8

functions

16func rt_puts(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
17func rt_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func rt_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
32func rt_isdot(nm: *u8) -> i64
called by 1: main
41func main() -> i64