code wiki / (root) / nx_market.nx

nx_market.nx

buildroot/runtime/nx_market.nx

7312 B137 linesdepth 3pulls 4 transitivereach 2 importersview sourcekind librarytopic market
docsdependenciesstructsconstsfunctions

about

nx_market.nx -- the NISHI MARKET RESEARCHER: sees what the team can CAPITALIZE on (operator). It maps the team's capabilities to OPPORTUNITIES and scores each by VALUE x FEASIBILITY -- but only recommends ones the team can actually DELIVER (its capability is at the grade the opportunity REQUIRES, per the Examiner). High-value opportunities we can't deliver yet are HONESTLY flagged BUILD-FIRST (they feed the Futurist + the backlog), not sold as ready. So the team chases value it can actually ship, and knows exactly what to build to unlock the rest. composes Examiner (grades) + Futurist (timing). RACI: Market Researcher scores; Builder builds the unlock; Scientist publishes the proof a buyer/critic needs. license_tier: ORIGINAL Refs: grade-gated opportunity scoring.

dependencies 2 imports · 2 importers

nx_sclass_grader.nx nx_bom.nx nx_market.nx nx_market_test.nx nx_strategy_test.nx

imports: nx_sclass_grader.nxnx_bom.nx

imported by: nx_market_test.nxnx_strategy_test.nx

structs

none

consts

19const MK_PCT: i64 = 100
20const MK_MIN_MARGIN_PCT: i64 = 40 // below this the margin cannot absorb support + returns
21const MK_MAX_PAYBACK_DAYS: i64 = 180 // 6 months; past that a buyer stops believing the savings story
93const MKT_CAPITALIZE: i64 = 1 // valuable AND deliverable now -> go
94const MKT_BUILD_FIRST: i64 = 2 // valuable but capability not at the required grade -> build the unlock
95const MKT_SKIP: i64 = 3 // not valuable enough

functions

24func mk_production_unit_cost(prototype_cents: i64, bulk_pct: i64) -> i64
31func mk_learning_cost(base_cents: i64, retention_pct: i64, doublings: i64) -> i64
called by 1: main
42func mk_price_for_margin(unit_cost_cents: i64, target_margin_pct: i64) -> i64
called by 1: main
48func mk_gross_margin_pct(price_cents: i64, unit_cost_cents: i64) -> i64
called by 1: main
55func mk_break_even_units(fixed_cents: i64, price_cents: i64, unit_cost_cents: i64) -> i64
called by 1: main
61func mk_daily_savings_cents(liters_per_day: i64, alt_cost_per_l: i64, our_cost_per_l: i64) -> i64
called by 1: main
70func mk_payback_days(price_cents: i64, daily_savings_cents: i64) -> i64
called by 1: main
77func mk_viable(margin_pct: i64, payback_days: i64) -> i64
called by 1: main
86func mk_water_production_cost(bulk_pct: i64) -> i64
98func mkt_can_deliver(capability_grade: i64, required_grade: i64) -> i64
called by 1: mkt_disposition
104func mkt_disposition(value: i64, value_floor: i64, capability_grade: i64, required_grade: i64) -> i64
111func mkt_score(value: i64, feasibility: i64) -> i64 { return value * feasibility }
called by 1: mkt_top_deliverable
114func mkt_top_deliverable(n: i64, value: *i64, feasibility: *i64, grade: *i64, required: *i64, value_floor: i64) -> i64
called by 1: main calls 2: mkt_dispositionmkt_score
128func mkt_top_unlock(n: i64, value: *i64, grade: *i64, required: *i64, value_floor: i64) -> i64
called by 1: main calls 1: mkt_disposition