code wiki / _hdl_build / nx_galx_audit.nx

nx_galx_audit.nx

buildroot/runtime/_hdl_build/nx_galx_audit.nx

5791 B134 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_audit.nx -- audit the ENTIRE cid->path store. Every entry. No sampling. Operator 2026-08-07: *"not to do it only partially but have full ecosystem scope as you seem to do sample size bullshit"*. Fair, and specific: after joining 109 gen images I reported "5/5 serve 200" and called the job verified. Five. Of a hundred and nine. Of two hundred and thirty-five thousand. ★★★★★★ A SPOT CHECK PROVES THE MECHANISM CAN WORK, NEVER THAT THE POPULATION DOES. The whole class of defect this session has been about -- 0 of 109 joined, a stale index, a collision that silently ate an image -- is INVISIBLE to a sample drawn from the head of a file, because the head is the oldest and most-tested part of any append-only store. ★★★★★ SAMPLE THE HEAD OF AN APPEND-ONLY FILE AND YOU HAVE SAMPLED ITS PAST, NOT ITS PRESENT. So: walk every bucket, resolve every path, stat every file. The cost is one stat per entry and it is worth paying, because the answer "how much of this gallery is actually backed by bytes" has apparently never been asked. Usage: nx_galx_audit <idx> <blob> [--list-missing N] license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_strconv.nx nx_galx_cid_index.nx nx_galx_audit.nx

imports: nx_syscalls.nxnx_strconv.nxnx_galx_cid_index.nx

imported by: nobody (leaf or entry point)

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

main ga_puts sys_write nx_strconv_parse_i64 nx_ascii_is_digit 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 cidx_rd64 sys_fstatat sys_write ↻ ga_i sys_mmap ↻ sys_write ↻ nx_strconv_format_i64 ga_permille

structs

none

consts

23const K_MAGIC_4096: i64 = 4096
24const K_MAGIC_4000: i64 = 4000

functions

26func ga_puts(s: *u8) -> i64
called by 1: main calls 1: sys_write
31func ga_i(v: i64) -> i64
37func ga_permille(a: i64, b: i64) -> i64
called by 1: main
42func main(argc: i64, argv: *i64) -> i64