code wiki / _hdl_build / nx_capreg_librarian_test.nx

nx_capreg_librarian_test.nx

buildroot/runtime/_hdl_build/nx_capreg_librarian_test.nx

3585 B72 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic capreg
docsdependenciesstructsconstsfunctions

about

nx_capreg_librarian_test.nx -- ENGINEER's gate for the Librarian registry repair. Real KATs on a synthetic journal reproducing BOTH observed failure modes from the crash: byte-identical snapshot re-appends (the 416->51 bloat) and true cross-session idx collisions (the 212-227 bug). PASS = regen dedups + renumbers exactly, allocator hands out max+1, dual-write hits both files, and a second regen after new registrations is idempotent. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_capreg_librarian.nx nx_syscalls.nx nx_capreg_librarian_test.nx

imports: nx_capreg_librarian.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 sys_openat_wr sys_exit cl_w sys_write sys_close cl_regen 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 ↻ cl_is_entry cl_parse_int cl_line_end cl_cats sys_openat_wr ↻ cl_emit_entry cl_parse_int ↻ cl_digits_end cl_hash_range cl_w ↻ cl_wn

structs

none

consts

none

functions

10func ts_find(b: *u8, n: i64, s: *u8) -> i64
called by 1: main
26func main() -> i64