code wiki / _hdl_build / nx_rebuild_plan_test.nx
nx_rebuild_plan_test.nx
buildroot/runtime/_hdl_build/nx_rebuild_plan_test.nx
about
nx_rebuild_plan_test.nx -- runs the BUILT-not-INSTALLED detector and prints its verdict.
WHY THIS EXISTS (2026-07-30): nx_rebuild_plan is PROMOTED but was UNREGISTERED (an S3 UNEXPOSED
instance, nx_wirecensus). Registering it makes it callable, but a NEW MCP tool needs a client
reconnect before a stub exists, and /api/gate_run -- the one route that executes an organ on demand --
admits VERIFIERS ONLY (name must end gate|test|kat), which is exactly what makes that route
never-brick. So the sanctioned way to run a non-verifier organ on demand, this session, is a thin
verifier that forks it. That is this file.
COMPOSITION, NOT REIMPLEMENTATION (the nx_debt_view pattern): fork-capture the canonical binary via
tr_run1 so there is no second copy of the staleness logic to drift.
⚠nx_plan_run was tried first and REFUSED: its plane reader reports 'plan plane EMPTY / unseeded'
for a plane that nx_store_put load prints a row from -- writer and runner disagree on the same
prefix. Filed separately; not worked around here.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_tool_run.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
| 19 | const RPT_CAP: i64 = 262144 |
| 20 | const RPT_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_rebuild_plan.elf" as *u8 |
functions
| 22 | func rpt_w(s: *u8) called by 1: main |
| 28 | func main(argc: i64, argv: *i64) -> i64 |