code wiki / (root) / nx_climbout.nx

nx_climbout.nx

buildroot/runtime/nx_climbout.nx

3036 B66 linesdepth 3pulls 4 transitivereach 10 importersview sourcekind librarytopic climbout
docsdependenciesstructsconstsfunctions

about

nx_climbout.nx -- R5 of THE NISHI SITUATION-MANAGEMENT arc: the CLIMB-OUT PLAN engine -- the capstone that fuses the whole system into ONE prioritized, dollar-impact path from crisis to peace, then shows an overwhelmed person just the next step. Each candidate ACTION comes from an engine already built this arc: stabilize overdue bills (nx_bills) · recover overcharges (nx_fin_audit dispute) · cut the rate (nx_fin_finance) · attack highest-APR debt (nx_debt avalanche) · build a buffer. Ordered by the FINANCIAL ORDER OF OPERATIONS (a real framework): tier ascending = stabilize < recover-what- is-owed-to-you < cut-ongoing-cost < attack-debt < build-buffer; within a tier, biggest dollar impact first. Then `ac_load_budget` (nx_accommodate) decides HOW MANY steps to surface -- so an ADHD/low-energy person sees ONE next step worth $X, not the whole wall. Exact no-float (nx_money). Advisory, no auto-action. license_tier: ORIGINAL

dependencies 3 imports · 4 importers

nx_syscalls.nx nx_money.nx nx_accommodate.nx nx_climbout.nx nx_climbout_gate.nx nx_climbout_real.nx nx_climbout_real_gate.nx nx_finance_web.nx

imports: nx_syscalls.nxnx_money.nxnx_accommodate.nx

imported by: nx_climbout_gate.nxnx_climbout_real.nxnx_climbout_real_gate.nxnx_finance_web.nx

structs

none

consts

16const CO_STABILIZE: i64 = 0 // overdue bills / keep the lights on -- do first regardless of $
17const CO_RECOVER: i64 = 1 // money owed to YOU -- overbilling disputes
18const CO_CUTCOST: i64 = 2 // cut ongoing cost -- refinance, cheaper insurance
19const CO_ATTACKDEBT:i64 = 3 // attack the highest-APR debt
20const CO_BUILD: i64 = 4 // build the emergency buffer

functions

24func co_plan(tiers: *i64, impacts: *i64, n: i64, out_order: *i64) -> i64
49func co_total_impact(impacts: *i64, n: i64) -> i64
called by 3: maincor_dashboardmain calls 1: mny_add
58func co_next_action(out_order: *i64, done: *i64, n: i64) -> i64
called by 1: main