code wiki / _hdl_build / nx_converge.nx

nx_converge.nx

buildroot/runtime/_hdl_build/nx_converge.nx

7608 B197 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_converge.nx -- CLI/MCP surface for the retention convergence controller. All control logic lives in nx_converge_lib.nx, which the GATE imports too, so the thing that ships and the thing that is graded are the same code. VERBS plan <target> <tol> -> the FIRST denoise probe to render, plus the step budget. Costs zero GPU. next <target> <tol> <lo> <hi> <probe> <measured> <steps_used> -> the next probe (or DONE) given what the ruler measured for the last render. STATELESS: the bracket travels in the arguments, so an agent/workflow can drive one render at a time and the whole search is replayable from its transcript. simulate <target> <tol> -> run the controller to completion against the oracle built from REAL measured retention, printing the full trajectory. This is how you see the step count before spending GPU. selftest expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_converge_lib.nx nx_converge.nx

imports: nx_converge_lib.nx

imported by: nobody (leaf or entry point)

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

main cw c_streq c_selftest cv_run cv_first_probe sys_mmap cv_reachable cv_oracle cv_lerp cv_step cv_reachable ↻ cw ↻ c_status_name cw ↻ cn c_atoi cv_reachable ↻ cn ↻ cv_first_probe ↻ cv_step ↻ c_status_name ↻ c_simulate cw ↻ cn ↻ cv_first_probe ↻ cv_reachable ↻ cv_oracle ↻ cv_step ↻ c_status_name ↻

structs

none

consts

18const K_MAGIC_1200: i64 = 1200

functions

20func cw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
21func cn(v: i64) -> i64
35func c_streq(a: *u8, b: *u8) -> i64
called by 1: main
42func c_atoi(s: *u8) -> i64
called by 1: main
56func c_status_name(st: i64) -> i64
called by 3: c_simulatec_selftestmain calls 1: cw
64func c_simulate(target: i64, tol: i64) -> i64
104func c_selftest() -> i64
called by 1: main calls 4: cv_runcwc_status_namecn
135func main(argc: i64, argv: *i64) -> i64