code wiki / (root) / nx_librarian_audit.nx

nx_librarian_audit.nx

buildroot/runtime/nx_librarian_audit.nx

5318 B124 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic librarian
docsdependenciesstructsconstsfunctions

about

nx_librarian_audit.nx -- LIBRARIAN rung 1: the FORMAT-SPRAWL INSTRUMENT. The operator's charge (2026-07-10): "a bunch of tsv and other non native and non interoperable formats kicking around" -- this lib MEASURES that mechanically so the migration ladder is driven by numbers, not vibes. It walks data roots via raw getdents64 and classifies every regular file by format class, tallying count+bytes: 0 tsv · 1 csv · 2 json/jsonl · 3 pipe-data (.q .axes .matrix .list .sota .cal .compdocs .flows .steps) · 4 txt · 5 raw · 6 SEG-STORE (the sovereign native store: *seg-*.docs/.idx/.pos) · 7 log 8 conf · 9 other The NATIVE share (class 6) over total data bytes is the honest permille the migration work must move. Read-only by construction: opens directories and files O_RDONLY, writes nothing. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_librarian_audit.nx nx_librarian_audit_gate.nx

imports: nx_syscalls.nx

imported by: nx_librarian_audit_gate.nx

structs

none

consts

11const K_MAGIC_65536: i64 = 65536
12const K_MAGIC_1024: i64 = 1024

functions

15func la_ends(name: *u8, nlen: i64, suf: *u8) -> i64
called by 1: la_class
26func la_has(name: *u8, nlen: i64, needle: *u8) -> i64
called by 1: la_class
40func la_class(name: *u8, nlen: i64) -> i64
called by 1: la_scan_dir calls 2: la_hasla_ends
67func la_fsize(path: *u8) -> i64
77func la_scan_dir(dirpath: *u8, st: *i64) -> i64
121func la_permil(part: i64, total: i64) -> i64
called by 1: main