code wiki / _hdl_build / nx_clawf_route.nx
nx_clawf_route.nx
buildroot/runtime/_hdl_build/nx_clawf_route.nx
about
nx_clawf_route.nx -- SPLIT-BRAIN ROUTER ORGAN (TS01, 2026-07-21). OO-CONSOLIDATED onto nx_sovjson_lib.
Shift the 80% iterate-and-fix loop OFF Claude onto the 0-API local maker; keep Claude for
architecture. Reads the clawf- catalog (MEASURED from 221 historic Claude transcripts) and maps a
tool-transition SIGNATURE -> {route, organ, confidence}; deterministic, fail-closed (unrecognized
-> CLAUDE-ARCHITECT escalate). Token-efficiency lever measured by nx_seat shift. Helpers COMPOSED
from nx_sovjson_lib (sj_*) = DRY across the token subsystem, no inline dup.
route <sig> [clawfprefix] | table [clawfprefix] | plan [clawfprefix] | selftest [tmpprefix]
clawf- row = id class support route organ note (6-col plane).
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_sovjson_lib.nxnx_store_seed_lib.nxnx_seg_store.nxnx_gate_verdict.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 16 | const CR_CAP: i64 = 1048576 |
| 17 | const CR_OUT: i64 = 8192 |
| 18 | const CR_SPAN: i64 = 16 |
| 19 | const CR_USAGE: i64 = 2 |
| 20 | const CR_HI: i64 = 1000 |
| 21 | const CR_MED: i64 = 100 |
| 22 | const CR_ROWCAP: i64 = 64 |
| 23 | const CR_ESC: i64 = 200 |
functions
| 25 | func cr_route(sig: *u8, prefix: *u8, out: *u8) -> i64 |
| 86 | func cr_table(prefix: *u8, out: *u8) -> i64 |
| 128 | func cr_plan(prefix: *u8, out: *u8) -> i64 |
| 182 | func cr_selftest(base: *u8) -> i64 |
| 230 | func main(argc: i64, argv: *i64) -> i64 |