code wiki / (root) / nx_dr_ocm.nx

nx_dr_ocm.nx

buildroot/runtime/nx_dr_ocm.nx

3723 B101 linesdepth 2pulls 2 transitivereach 5 importersview sourcekind librarytopic dr
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_dr_ocm.nx nx_dr_conductor.nx nx_dr_ocm_cli.nx

imports: nx_syscalls.nx

imported by: nx_dr_conductor.nxnx_dr_ocm_cli.nx

structs

none

consts

none

functions

18func ocm_isqrt(n: i64) -> i64
called by 1: ocm_gscore
28func ocm_priority(value: i64, momentum: i64, cost: i64) -> i64
35func ocm_gscore(selfcons: i64, prior: i64) -> i64
calls 1: ocm_isqrt
40func ocm_fill_priorities(v: *i64, m: *i64, c: *i64, n: i64, pr: *i64) -> i64
called by 1: main calls 1: ocm_priority
47func ocm_rank(pr: *i64, n: i64, out_order: *i64) -> i64
called by 2: cond_runmain calls 1: sys_mmap
71func ocm_opp_cost(pr: *i64, order: *i64, n: i64, oc: *i64) -> i64
called by 1: main
84func ocm_select(pr: *i64, c: *i64, order: *i64, n: i64, budget: i64, sel: *i64, out_spent: *i64) -> i64
called by 2: cond_runmain