code wiki / (root) / nx_capsweep.nx

nx_capsweep.nx

buildroot/runtime/nx_capsweep.nx

18683 B344 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_capsweep.nx -- CR1 of /compare/capregistry. ONE ROW PER UNIT, AND A RECONCILIATION THAT REFUSES. nx_capsweep [execsurface.tsv] [tool_allowlist.conf] [cap_consent.log] [actlog.jrnl] [out.tsv] WHY: three censuses of this estate publish three different denominators (2048 promoted artifacts, 2418 organs, 1295 registry rows), each internally reconciled and each correct about its own subject, and NOTHING joins them per unit -- so the estate cannot state how many distinct units it has. This organ answers exactly that and nothing else. IT COLLECTS NOTHING. Every input is an artifact another census already wrote. That is deliberate: the moment this grows a collector it becomes a fourth ruler that can disagree with the three it is joining. EXITS: 0 the partition SUMS and the count is published | 1 it does NOT sum, so the count is REFUSED and the residual is named | 3 an input was unreadable, so the answer is UNPROVEN rather than zero -- an absent spine must abstain, never acquit, because 'zero dark' from an empty expectation reads as health.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_capsweep_lib.nx nx_capsweep.nx

imports: nx_syscalls.nxnx_capsweep_lib.nx

imported by: nobody (leaf or entry point)

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

main 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 ↻ cso_cat sys_write ↻ cs_parse_surface cs_field_end cs_add cs_field_start cs_field_end ↻ cs_surf_code cs_footer_num cso_nl cso_tab cso_num sys_mmap ↻ sys_munmap cs_stage_bits cso_mkpath cso_exists sys_openat_rd sys_close cs_residual_reason cs_partition_ok sys_openat_wr sys_close ↻ sys_now_realtime_sec

structs

none

consts

20const CSO_OUT: i64 = 2097152
21const CSO_DEFAULT_SURF: *u8 = "knowledge/status/execsurface.tsv"
22const CSO_DEFAULT_ALLOW: *u8 = "tool_allowlist.conf"
23const CSO_DEFAULT_CONSENT: *u8 = "cap_consent.log"
24const CSO_DEFAULT_ACTLOG: *u8 = "knowledge/status/actlog.jrnl"
25const CSO_DEFAULT_TSV: *u8 = "knowledge/status/capsweep.tsv"
26const CSO_DEFAULT_RESID: *u8 = "knowledge/status/capsweep_residual.txt"

functions

28func cso_cat(o: *u8, at: i64, s: *u8) -> i64
called by 1: main
35func cso_num(o: *u8, at: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_munmap
48func cso_tab(o: *u8, at: i64) -> i64 { o[at] = 9 as u8; return at + 1 }
called by 1: main
50func cso_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
59func cso_mkpath(dst: *u8, name: *u8, sfx: *u8) -> i64
called by 1: main
68func cso_nl(o: *u8, at: i64) -> i64 { o[at] = 10 as u8; return at + 1 }
called by 1: main
70func main(argc: i64, argv: *i64) -> i64