code wiki / _hdl_build / nx_tpl_ingest_gate.nx

nx_tpl_ingest_gate.nx

buildroot/runtime/_hdl_build/nx_tpl_ingest_gate.nx

6360 B110 linesdepth 6pulls 12 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 3 imports · 0 importers

nx_gate.nx nx_tpl_ingest.nx nx_gate_verdict.nx nx_tpl_ingest_gate.nx

imports: nx_gate.nxnx_tpl_ingest.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main 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 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 ↻

structs

none

consts

none

functions

12func 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
13func gg_find(hay: *u8, needle: *u8) -> i64
called by 1: main calls 1: gg_slen
20func 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
22func main() -> i64