code wiki / _hdl_build / nx_tpl_ingest_gate.nx

nx_tpl_ingest_gate.nx

buildroot/runtime/_hdl_build/nx_tpl_ingest_gate.nx

5822 B102 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic tpl
docsdependenciesstructsconstsfunctions

about

nx_tpl_ingest_gate.nx -- referee for R4 (nx_tpl_ingest). Proves the pattern-corpus extractor consumes template STRUCTURE (not files) into a content-addressed, deduped corpus, classifies archetypes, extracts the ordered section-sequence, and is BUDGET-GUARDED (fail-fast) + resumable. Positive tests + negative controls (structural dedup collapse, budget-trap fires, junk skipped). GREEN iff 7/7. Fixtures: web_assets/_tpl_seed/{landing,landing2(near-dup),shop(ecom),resume,junk}.html The build wrapper cleans + creates /tmp/tplcorpus_gate and /tmp/tplcorpus_gate2 before the run. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_gate.nx nx_tpl_ingest.nx nx_tpl_ingest_gate.nx

imports: nx_gate.nxnx_tpl_ingest.nx

imported by: nobody (leaf or entry point)

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

main sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close ti_seq ti_find_ci ti_len ti_lc ti_cta_off ti_find_ci ↻ ti_cat ti_classify ti_has ti_find_ci ↻ ti_count_ci ti_len ↻ ti_lc ↻ ti_mkkey ti_arch_name ti_cat ↻ ti_cat ↻ ti_hash ti_catn ti_streq gg_find gg_slen ti_run ss_manifest_file sys_mmap ↻ ss_cat ss_readall sys_openat_rd ↻ sys_lseek ↻ sys_mmap ↻ sys_read ↻ sys_close ↻ ss_open

structs

none

consts

none

functions

11func gg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: gg_find
12func gg_find(hay: *u8, needle: *u8) -> i64
called by 1: main calls 1: gg_slen
19func gg_row(name: *u8, ok: i64) -> i64 { gw(" " as *u8); gw(name); if ok==1 { gw(" PASS\n" as *u8) } else { gw(" FAIL\n" as *u8) } return 0 }
called by 1: main calls 1: gw
21func main() -> i64