code wiki / (root) / nx_forge_cascade.nx

nx_forge_cascade.nx

buildroot/runtime/nx_forge_cascade.nx

4015 B93 linesdepth 5pulls 7 transitivereach 1 importersview sourcekind tooltopic forge
docsdependenciesstructsconstsfunctions

about

nx_forge_cascade.nx -- THE CASCADE CONSUMER (dossier M4 consumer + M5 capture, 2026-07-16). The no-paid-API cascade [[feedback-frontier-tier-via-subscription-not-api]]: the LOCAL tier exhausts -> nx_forge_engine writes esc_<organ>.txt -> a SUBSCRIPTION Claude seat reads that bundle, writes a candidate, and calls THIS organ to CLOSE it. The candidate is judged by the SAME sovereign byte-exact lane (fg_run); a training pair is captured ONLY on GREEN, so the frontier seat can never inject an unverified pair -- the compiler is the arbiter, always. close <organ> <expectfile> <candfile> -> build FTASK|organ|expect|none|cand|1, fg_run it; on GREEN append PAIR|organ|cand|us to knowledge/forge/cascade_pairs.tsv (the N7 corpus, compile-verified BY CONSTRUCTION). Exit 0 iff GREEN. This is the mechanism that reaches Fable-tier NishiLang TODAY (local does the easy rungs, the sub seat handles the hard ones), with NO speed unlock and NO paid API -- every output judged. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_forge.nx nx_sov_ledger.nx nx_forge_cascade.nx nx_forge_cascade_gate.nx

imports: nx_forge.nxnx_sov_ledger.nx

imported by: nx_forge_cascade_gate.nx

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

main std_putln std_puts std_slen sys_write std_streq fca_run sys_openat_wr fc_wb sys_write ↻ fg_run fc_read sys_openat_rd sys_read sys_close fc_fstart fc_fend fc_line_cend std_memcpy std_atoi fg_mkpath sys_openat_wr ↻ std_puts ↻ std_pdec sys_mmap std_itoa sys_mmap ↻ sys_write ↻ fc_ws std_slen ↻ fc_wb ↻ std_putln ↻ fc_contains fc_wb ↻ fg_spawn sys_fork sys_openat_wr ↻ sys_dup3 sys_execve sys_wait4

structs

none

consts

15const K_MAGIC_2048: i64 = 2048

functions

17func fca_run(organ: *u8, expectf: *u8, candf: *u8) -> i64
70func main(argc: i64, argv: *i64) -> i64