code wiki / (root) / nx_fin_mgmt_grade.nx

nx_fin_mgmt_grade.nx

buildroot/runtime/nx_fin_mgmt_grade.nx

3717 B55 linesdepth 2pulls 2 transitivereach 3 importersview sourcekind librarytopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_mgmt_grade.nx -- R-MKT5 of the MARKETS-INVESTING arc: GRADE THE PEOPLE running a company (operator: "understanding the people who are running companies and if they are good or bad like evaluating a team like betting people do"). A handicapper's scorecard for management STEWARDSHIP -- 8 binary governance/capital- allocation tests, each a real signal you can pull from EDGAR (Form 4 insider trades, the 10-K's ROCE, the DEF 14A proxy's pay + board independence + say-on-pay vote). Grounded in the Nishi researcher's fetched knowledge/fetched/fin_mgmt_*.raw (corporate-governance / agency-cost / ROCE / exec-comp / insider / say-on-pay) + fin_val_* (ROIC vs WACC = value creation). Score 0..8 -> letter grade A..F. EXACT integer (counts + threshold compares, no floats). Thresholds are DATA (#11): edit the constants, not the logic. Like the Z-score, it takes the SIGNALS as inputs -- real per-company data arrives at R-MKT6 (EDGAR/proxy parse). Pure function, no store, no hardware writes. license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_fin_mgmt_grade.nx nx_fin_mgmt_grade_gate.nx nx_fin_microcap.nx nx_fin_microcap_gate.nx

imports: nx_syscalls.nx

imported by: nx_fin_mgmt_grade_gate.nxnx_fin_microcap.nxnx_fin_microcap_gate.nx

structs

none

consts

14const MG_F: i64 = 0
15const MG_D: i64 = 1
16const MG_C: i64 = 2
17const MG_B: i64 = 3
18const MG_A: i64 = 4
21const MG_ROCE_GOOD: i64 = 15 // return on capital employed % that signals real capital efficiency
22const MG_PAY_MAX: i64 = 200 // CEO-to-median-worker pay ratio above which comp is "excessive"
23const MG_INDEP_MIN: i64 = 50 // % of board that must be independent (majority)
24const MG_SAYPAY_MIN: i64 = 50 // % shareholder say-on-pay approval
25const MG_SPREAD_MIN: i64 = 5 // ROIC-minus-WACC spread (pp) signalling disciplined reinvestment

functions

35func mg_score(insider_net: i64, roce_pct: i64, roic_pct: i64, wacc_pct: i64, ceo_pay_ratio: i64, board_indep_pct: i64, sayonpay_pct: i64, restatements: i64) -> i64
called by 1: main
49func mg_grade(score: i64) -> i64
called by 2: mainmc_screen