nx_dimret.nx
buildroot/runtime/nx_dimret.nx
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
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
structs
| none |
consts
| 19 | const DR_DEFER: i64 = 0 |
| 20 | const DR_INVEST: i64 = 1 |
| 23 | const DR_CASCADE_HIGH: i64 = 60 // cascade score >= this => fundamental, multiplies upstream |
| 24 | const DR_GAP_SIGNIFICANT: i64 = 50 // (gap_x100 - 100) >= this => >=1.5x behind = a real gap, not parity |
| 25 | const DR_COST_EXTREME: i64 = 80 // eng-cost >= this => "extreme engineering" territory |
functions
| 30 | func nx_dimret_decide(gap_x100: i64, cascade: i64, eng_cost: i64) -> i64 called by 1: main |
| 43 | func dr_putn(n: i64) -> i64 |
| 50 | func dr_sp() -> i64 { sys_write(1, " " as *u8, 1); return 0 } |
| 52 | func main() -> i64 |