nx_dr_ocm.nx
buildroot/runtime/nx_dr_ocm.nx
about
nx_dr_ocm.nx -- SOVEREIGN Opportunity-Cost Model ranker for research vectors (DR-6).
The operator's "integrate opportunity cost analysis" made a live capability: rank
candidate research rungs by Priority = (Value * Momentum) / Cost, report the
OPPORTUNITY COST of each pick (the forgone best alternative), and do budget-aware
greedy selection (FutureWeaver arXiv:2512.11213: score-cheap-before-spending
g = geomean(self-consistency, prior); only spend within the compute budget = h).
Composes the frontier ranking law (impact x maturity-gap x momentum) with an
explicit COST denominator. Integer, deterministic, bit-exact reproducible; imports
ONLY nx_syscalls = drift-immune. No hardware writes (Rule 26).
module: nishi-core.research.dr_ocm
depends: nx_syscalls.nx
wired_status: LIBRARY (conductor dispatch = DR-4; cost inputs = nx_cost_decompose)
genealogy_id: opportunity_cost_econ + futureweaver_2026_budget_planner
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_dr_conductor.nxnx_dr_ocm_cli.nx
structs
| none |
consts
| none |
functions
| 18 | func ocm_isqrt(n: i64) -> i64 called by 1: ocm_gscore |
| 28 | func ocm_priority(value: i64, momentum: i64, cost: i64) -> i64 |
| 35 | func ocm_gscore(selfcons: i64, prior: i64) -> i64 calls 1: ocm_isqrt |
| 40 | func ocm_fill_priorities(v: *i64, m: *i64, c: *i64, n: i64, pr: *i64) -> i64 |
| 47 | func ocm_rank(pr: *i64, n: i64, out_order: *i64) -> i64 |
| 71 | func ocm_opp_cost(pr: *i64, order: *i64, n: i64, oc: *i64) -> i64 called by 1: main |
| 84 | func ocm_select(pr: *i64, c: *i64, order: *i64, n: i64, budget: i64, sel: *i64, out_spent: *i64) -> i64 |