code wiki / _hdl_build / nx_capaxes_derive.nx

nx_capaxes_derive.nx

buildroot/runtime/_hdl_build/nx_capaxes_derive.nx

12420 B288 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic capaxes
docsdependenciesstructsconstsfunctions

about

nx_capaxes_derive.nx -- DERIVES capability axis vectors from a LIVE source and ranks the rocks. WHY (operator 2026-07-30): the census is "gamed on coverage to 1000permil but with below toy quality" and partial capabilities are "treated as completed capabilities not as things that need a full living iteration loop to determine biggest rocks". nx_capaxes_lib made the SHAPE measurable; this closes the loop by feeding it real numbers and emitting the rock order. SOURCE (composition, not reimplementation -- the nx_debt_view pattern): fork nx_sota_status and read its per-domain rows. Every domain it lists carries local .matrix evidence, so GROUNDING is real for these (unlike nx_cap_census, which reports "vs 0 SOTA-src" for every row = an EMPTY comparator, debt 1785465147). AXES SET HERE, and what is HONESTLY NOT YET WIRED: coverage <- the row's own cov= figure MEASURED evidence <- 0, because every row nx_sota_status prints with MEASURED a cov= figure sits in its CLAIM-ONLY block (PROVEN is 0/40, so no row scores above this) grounding <- CAX_FULL: the domain HAS a .matrix comparator MEASURED quality <- UNMEASURED (-1), needs the ecomat maturity grade scale <- UNMEASURED (-1), needs the gate envelope N adoption <- UNMEASURED (-1), needs the nx_wirecensus join -1 is NOT a silent 0 and the lib proves it can never become the minimum (nx_capaxes_gate T3). Three axes measured is a FLOOR, declared in the envelope -- never presented as the whole picture. THE POINT: with evidence=0 the headline is 0 no matter how high coverage climbs, so LEVERAGE is what orders the work -- and leverage IS the coverage claim. A domain asserting cov=1000 with zero executable evidence is the BIGGEST rock, not the most finished one. That inverts the gamed ranking exactly. nx_capaxes_derive [topN] exit 0 ok | 4 capture-fail license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_capaxes_lib.nx nx_tool_run.nx nx_capaxes_derive.nx

imports: nx_capaxes_lib.nxnx_tool_run.nx

imported by: nobody (leaf or entry point)

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

main cax_atoi tr_run1 sys_mmap tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit sys_read sys_wait4 wait_exit_code cax_puts sys_write cd_match cd_num_at cax_puti sys_mmap ↻ sys_write ↻ cax_rock cax_headline cax_min_idx cax_kv cax_puts ↻ cax_puti ↻ cax_headline ↻ cax_skew cax_min_idx ↻ cax_max_idx cax_axis_name cax_min_idx ↻ cax_mean sys_read_file sys_openat_rd sys_lseek

structs

none

consts

33const CD_CAP: i64 = 262144
34const CD_MAXDOM: i64 = 128
35const CD_NAMEW: i64 = 40
36const CD_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_sota_status.elf" as *u8
39const CD_STAMP: *u8 = "knowledge/status/adopt_census.stamp" as *u8
40const CD_ADOPT_KEY_LEN: i64 = 16

functions

42func cd_match(buf: *u8, at: i64, end: i64, pat: *u8, pl: i64) -> i64
called by 1: main
52func cd_num_at(buf: *u8, at: i64, end: i64) -> i64
called by 1: main
72func main(argc: i64, argv: *i64) -> i64