code wiki / _hdl_build / nx_favela_census.nx
nx_favela_census.nx
buildroot/runtime/_hdl_build/nx_favela_census.nx
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
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
structs
| none |
consts
| 18 | const FV_MAGIC_131072: i64 = 131072 |
| 19 | const FV_MAGIC_4096: i64 = 4096 |
| 20 | const FV_MAGIC_65536: i64 = 65536 |
| 22 | const FV_PLANE_CAP: i64 = 1048576 |
functions
| 24 | func fv_puts(s: *u8) -> i64 { return sj_puts(s) } |
| 25 | func fv_cat(o: *u8, at: i64, s: *u8) -> i64 { return sj_cat(o, at, s) } |
| 26 | func 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 |
| 27 | func fv_catn(o: *u8, at: i64, v: i64) -> i64 { return sj_catn(o, at, v) } |
| 29 | func fv_count(buf: *u8, n: i64, needle: *u8) -> i64 |
| 43 | func fv_has(name: *u8, sub: *u8) -> i64 |
| 48 | func fv_bak_count() -> i64 |
| 70 | func fv_data_lines(path: *u8) -> i64 |
| 86 | func main() -> i64 |