code wiki / (root) / nx_dimret.nx

nx_dimret.nx

buildroot/runtime/nx_dimret.nx

3949 B68 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_dimret.nx -- the LAW OF DIMINISHING RETURNS (a Warden/PM team function): decide whether to INVEST in pushing a work piece past competitive toward exceed, or DEFER it. Institutionalizes the operator's rule so it is CLEAR, every time, whether an edge investment is worth it. The rule (operator, 2026-06-02): INVEST iff the gain CASCADES downstream (core/low-layer fundamentals multiply upstream value -- a 5x gap on the divider is NOT a 1% chase; it feeds crypto -> the LLM -> all advanced work) OR there is a real gap to close. DEFER only when we are AT PARITY *and* the research says further gains need EXTREME ENGINEERING *and* there is no cascade (true diminishing returns -- don't dump a billion dollars into a 1% leaf gain until the whole stack is up and we have the bandwidth). Sovereign NishiLang, integer-only, pure (KAT-able). Data-driven thresholds. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_dimret.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main nx_dimret_decide dr_putn sys_write sys_mmap dr_sp sys_write ↻ sys_write ↻ sys_exit

structs

none

consts

19const DR_DEFER: i64 = 0
20const DR_INVEST: i64 = 1
23const DR_CASCADE_HIGH: i64 = 60 // cascade score >= this => fundamental, multiplies upstream
24const DR_GAP_SIGNIFICANT: i64 = 50 // (gap_x100 - 100) >= this => >=1.5x behind = a real gap, not parity
25const DR_COST_EXTREME: i64 = 80 // eng-cost >= this => "extreme engineering" territory

functions

30func nx_dimret_decide(gap_x100: i64, cascade: i64, eng_cost: i64) -> i64
called by 1: main
43func dr_putn(n: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
50func dr_sp() -> i64 { sys_write(1, " " as *u8, 1); return 0 }
called by 1: main calls 1: sys_write
52func main() -> i64