code wiki / _hdl_build / nx_sota_page.nx

nx_sota_page.nx

buildroot/runtime/_hdl_build/nx_sota_page.nx

19839 B254 linesdepth 11pulls 21 transitivereach 0 importersview sourcekind tooltopic sota
docsdependenciesstructsconstsfunctions

about

nx_sota_page.nx -- GENERATE the SOTA page from the live instruments. Kills debt 1785514548. THE DEFECT: https://nishifamily.com/sota was HAND-COMPOSED PROSE. On 2026-07-31 it claimed "456 permil across 20 domains" while the live rollup said 434 across 26, with cited sources 12 days stale. A derived artifact that a human can author WILL drift, and it drifts silently because nothing compares it to its own source. Hand-editing that page to today's number is not a fix -- it re-arms the identical failure tomorrow. The fix is that no human writes this page at all. Every number below is read at generation time from the sovereign store and the durable ledger: maturity from em_rollup_store, growth decomposition from em_trend, per-domain rows from the same walk that nx_ecomat_domledger_gate proves reconciles with the headline. The page prints its own generation epoch and its sources so a reader can re-derive it. argv[1]=out_html argv[2]=store argv[3]=ledger. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_ecomat_trend_lib.nx nx_ecomat_domledger_lib.nx nx_ecomat_domtrend_lib.nx nx_rankmap.nx nx_sota_page.nx

imports: nx_ecomat_trend_lib.nxnx_ecomat_domledger_lib.nxnx_ecomat_domtrend_lib.nxnx_rankmap.nx

imported by: nobody (leaf or entry point)

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

main em_rollup_store sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close el_last_after el_len el_match sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real ss_open ss_open2 ss_open3 sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss3_admit ss3_ann

structs

none

consts

26const SP_OUT: *u8 = "sites/nishifamily/sota.html"
27const SP_MODE: i64 = 0x1a4
28const SP_AUTOLOG: *u8 = "knowledge/status/autonomy_meter.log"

functions

30func sp_pct_w(cur: i64, bar: i64) -> i64
called by 1: sp_domains
36func sp_domains(fd: i64, prefix: *u8) -> i64
76func main(argc: i64, argv: *i64) -> i64