code wiki / _hdl_build / nx_rebuild_plan_test.nx

nx_rebuild_plan_test.nx

buildroot/runtime/_hdl_build/nx_rebuild_plan_test.nx

2132 B45 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_tool_run.nx nx_rebuild_plan_test.nx

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

main tr_run1 sys_mmap tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit sys_read sys_wait4 wait_exit_code rpt_w

structs

none

consts

19const RPT_CAP: i64 = 262144
20const RPT_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_rebuild_plan.elf" as *u8

functions

22func rpt_w(s: *u8)
called by 1: main
28func main(argc: i64, argv: *i64) -> i64
calls 2: tr_run1rpt_w