code wiki / _hdl_build / nx_archcensus.nx

nx_archcensus.nx

buildroot/runtime/_hdl_build/nx_archcensus.nx

6788 B152 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_archcensus.nx -- ECOSYSTEM OO-HEALTH CENSUS (the "use the atlas to consolidate and architect" capstone). Composes nx_sharpgrade_core (sgc_grade, DRY) over a whole tree: grades every organ SHARP | SHARP-LIB | SPLIT-K, rolls up an ecosystem SHARPNESS gauge (permil sharp-or-lib), and names the worst SPLIT offenders (the ranked split backlog). Seeds the archcensus- plane = the atlas-integrated SSOT of architectural health, so the consolidation backlog is DERIVED from measurement, not taste. argv: <dir> [dir2...] Report: SPLIT <file> comp=K pref=P per split organ, then NX-ARCHCENSUS organs=N sharp=S sharplib=L split=P worst=<file>@<k> sharpness_permil=<g> exit 0. Deterministic. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 6 imports · 0 importers

nx_sharpgrade_core.nx nx_seat_drive_lib.nx nx_store_seed_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_syscalls.nx nx_archcensus.nx

imports: nx_sharpgrade_core.nxnx_seat_drive_lib.nxnx_store_seed_lib.nxnx_seg_store.nxnx_deploy_lib.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 sd_w sys_write sys_exit sys_mmap sys_openat_rd sys_getdents64 dirent_type dirent_name ac_ends_nx sys_read sys_close sgc_grade sys_mmap ↻ sgc_isid sgc_calls sgc_call_at sgc_isid ↻ sgc_union sgc_find sgc_find ↻ sgc_pref_eq sgc_preflen sd_num sys_mmap ↻ sd_cat dirent_reclen sts_seed ss_begin_cap sys_mmap ↻ sts_mm sys_mmap ↻ sts_werr sys_write ↻ sys_exit ↻ sts_rowkey ss_catn sys_mmap ↻ ss_add ss_add2

structs

none

consts

16const AC_MAGIC_262144: i64 = 262144
17const AC_MAGIC_1024: i64 = 1024
19const AC_SRCCAP: i64 = 4194304
20const AC_QCAP: i64 = 4194304

functions

22func ac_ends_nx(nm: *u8) -> i64
called by 1: main
30func main(argc: i64, argv: *i64) -> i64