code wiki / _hdl_build / nx_favela_census.nx

nx_favela_census.nx

buildroot/runtime/_hdl_build/nx_favela_census.nx

9418 B191 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_favela_census.nx -- MEASURED ricketiness/favela index of the ecosystem (operator 2026-07-20: "no hacks or workarounds or other bullshit -- measure the ricketiness and favela of our ecosystem"). Data-driven per rule 11: the workaround-class roster lives in knowledge/registry/favela_classes.tsv (class/kind/sev/status/debt/evidence/ root_fix), NOT in code. The organ MEASURES what is live-measurable (dup-basename count from dup_source.log, .bak residue sprawl in the cwd root, wired deploy-guard rows) and computes: favela_permil = open-weight share (open=2*sev, mitigated=sev, rooted=0 over a 2*sev-per-class total) and rooted_permil = retired share. HONEST BY CONSTRUCTION: missing manifest = RED exit 1 (fail-closed); a missing evidence log measures -1 = UNMEASURED, never a silent 0; the surveyed roster is DECLARED as a curated envelope, not claimed exhaustive. Emits JSON to stdout AND colocates it to knowledge/status/favela_census.log with a VERDICT line (evidence layer). NATIVE INFORMATION MANAGEMENT (2026-07-20): the class roster is read from the sovereign SEG-STORE PLANE knowledge/store/favela- (NOT a .tsv) per the standing "no tsv -- nishi formats" law. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_estate_path.nx nx_sovjson_lib.nx nx_favela_census.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nxnx_estate_path.nxnx_sovjson_lib.nx

imported by: nobody (leaf or entry point)

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

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap sys_mmap ↻ sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file 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 ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻

structs

none

consts

18const FV_MAGIC_131072: i64 = 131072
19const FV_MAGIC_4096: i64 = 4096
20const FV_MAGIC_65536: i64 = 65536
22const FV_PLANE_CAP: i64 = 1048576

functions

24func fv_puts(s: *u8) -> i64 { return sj_puts(s) }
called by 1: main calls 1: sj_puts
25func fv_cat(o: *u8, at: i64, s: *u8) -> i64 { return sj_cat(o, at, s) }
called by 1: main calls 1: sj_cat
26func fv_catf(o: *u8, at: i64, p: *u8, n: i64) -> i64 { var i: i64=0; var a: i64=at; while i<n { o[a]=p[i]; a=a+1; i=i+1 } return a }
called by 1: main
27func fv_catn(o: *u8, at: i64, v: i64) -> i64 { return sj_catn(o, at, v) }
called by 1: main calls 1: sj_catn
29func fv_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 2: fv_hasmain
43func fv_has(name: *u8, sub: *u8) -> i64
called by 1: fv_bak_count calls 1: fv_count
48func fv_bak_count() -> i64
70func fv_data_lines(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
86func main() -> i64