nx_treatment.nx
buildroot/runtime/nx_treatment.nx
about
nx_treatment.nx -- CLI over nx_treatment_lib: does this board declare the three-step treatment (mcp, api, primitive,
workflow, agent) per rung, and does each declaration verify against the estate?
nx_treatment <domain> per treat row a line with its five field states, the rungs with no row, the census, verdict LAST
exit: 0 TREATED | 1 PARTIAL (a declared row unmet: the hard fail) | 2 usage | 3 NO-TREATMENT or NO-PLAN
Evidence: tool_allowlist.conf (the MCP and API surfaces), the source tree through ep_src_path (the primitive), the
plan_run plane manifest knowledge/store/plan-<id>-manifest.txt (the workflow), the clock DESIRED plane loaded
through nx_store_seed_lib and knowledge/gateroster.conf (the agent). Paths resolve from either cwd through
nx_estate_path, so the seat and the ranker read the same evidence.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_estate_path.nxnx_barfresh_lib.nxnx_store_seed_lib.nxnx_treatment_lib.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 TC_ARG_DOMAIN: i64 = 1 |
| 17 | const TC_EXIT_USAGE: i64 = 2 |
| 18 | const TC_EXIT_NOPLAN: i64 = 3 |
| 19 | const TC_STDOUT: i64 = 1 |
| 20 | const TC_NUM_CAP: i64 = 24 |
| 21 | const TC_PATH_CAP: i64 = 1024 |
| 22 | const TC_ALLOW: *u8 = "tool_allowlist.conf" |
| 23 | const TC_ROSTER: *u8 = "knowledge/gateroster.conf" |
| 24 | const TC_CLOCK_PLANE: *u8 = "knowledge/store/clockjobs-" |
| 25 | const TC_PLANE_CAP: i64 = 1048576 // the clock DESIRED plane read: 188 rows on 2026-09-16; a fill is announced UNPROVEN |
| 26 | const TC_WF_PFX: *u8 = "knowledge/store/plan-" |
| 27 | const TC_WF_SFX: *u8 = "-manifest.txt" |
| 28 | const TC_MISS_CAP: i64 = 256 |
functions
| 30 | func tc_w(s: *u8) -> i64 { return sys_write(TC_STDOUT, s, trt_slen(s)) } |
| 31 | func tc_wn(v: i64) -> i64 |
| 44 | func tc_wspan(buf: *u8, off: i64, len: i64) -> i64 |
| 48 | func tc_span_copy(buf: *u8, off: i64, len: i64) -> *u8 |
| 57 | func tc_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var oo: i64 = o; while s[i] != (0 as u8) { d[oo] = s[i]; oo = oo + 1; i = i + 1 } d[oo] = 0 as u8; return oo } called by 1: main |
| 60 | func tc_read_estate(rel: *u8, outp: *i64) -> i64 |
| 70 | func main(argc: i64, argv: *i64) -> i64 |