code wiki / (root) / nx_fin_risk_engine_gate.nx

nx_fin_risk_engine_gate.nx

buildroot/runtime/nx_fin_risk_engine_gate.nx

2382 B43 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_risk_engine_gate.nx -- R4 GATE: proves the sizers + circuit breaker on hand-computed values (no network, no false-green). Kelly, the 1% risk rule, the drawdown breaker, and the ADV cap each checked against arithmetic done by hand. Exits 0 iff all pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_gate.nx nx_fin_marketdata.nx nx_fin_risk_engine.nx nx_fin_risk_engine_gate.nx

imports: nx_gate.nxnx_fin_marketdata.nxnx_fin_risk_engine.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main chk gw sys_write gn sys_write ↻ sys_mmap re_kelly_bps re_frac_kelly re_size_by_risk re_size_by_kelly re_dd_ok re_cap_shares md_capacity gw ↻ gn ↻

structs

none

consts

none

functions

8func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
14func main() -> i64