code wiki / (root) / nx_research_flow_gate.nx

nx_research_flow_gate.nx

buildroot/runtime/nx_research_flow_gate.nx

6483 B155 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic research
docsdependenciesstructsconstsfunctions

about

nx_research_flow_gate.nx -- TEETH for the rivers-to-ocean research surface. THE DEFECT CLASS IT EXISTS TO CATCH: an index and the pages it indexes drifting apart. A brief gets published but never registered (invisible to the ocean and to every miner), or a row is registered pointing at a page that was never written (the ocean advertises a 404). Both read as success from one side. This is the "artifacts never placed where consumers look" class, made mechanical. THE PARTITION CLAIM: for every non-STUB row in the `resbrief-` plane there must be a served page at sites/nishifamily/<area>/<slug>.html, derived from the SAME two columns the ocean derives its links from -- so a row that renders a link here is a row whose target is proven to exist. STUB rows are corpus-only by declaration and are correctly NOT expected on disk. T4 is a BITE tooth: the presence detector must FIRE on a path that does not exist and stay SILENT on one that does. Without it, a gate that always returns "present" would pass this file green forever -- a green-before-the-defect-exists gate proves nothing (nx_gate_bite doctrine). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 4 imports · 0 importers

nx_gate_verdict.nx nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_research_flow_gate.nx

imports: nx_gate_verdict.nxnx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sts_mm sys_mmap ↻ sts_werr sys_write ↻ sys_exit sts_load_honest 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

structs

none

consts

23const RF_PLANE: *u8 = "knowledge/store/resbrief-"
24const RF_OCEAN: *u8 = "sites/nishifamily/wiki/research.html"
25const RF_ROOT: *u8 = "sites/nishifamily/"
26const RF_RCAP: i64 = 262144
27const RF_PATHCAP: i64 = 1024
28const RF_FLAGB: i64 = 64
29const RF_SPB: i64 = 256
30const RF_NL: i64 = 10
31const RF_TAB: i64 = 9
32const RF_MAXCOL: i64 = 16
33const RF_PAIR: i64 = 2
34const RF_C_AREA: i64 = 1
35const RF_C_SLUG: i64 = 2
36const RF_C_STATUS: i64 = 5
37const RF_NCOL: i64 = 8

functions

39func rf_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: rf_slice_eqs
40func rf_slice_eqs(q: *u8, a: i64, b: i64, s: *u8) -> i64
called by 1: main calls 1: rf_slen
47func rf_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
called by 1: main
62func rf_cat_slice(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64
called by 1: main
69func rf_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
76func main() -> i64