code wiki / _hdl_build / nx_landmine_probe.nx
nx_landmine_probe.nx
buildroot/runtime/_hdl_build/nx_landmine_probe.nx
about
nx_landmine_probe.nx -- THE LANDMINE RETIREMENT ENGINE (seq291/seq711, 2026-07-23).
THE STALL IT ENDS: LM-003/LM-007 were retired in June by writing a probe that PROVED the root fixed,
but that was never mechanized -- so 28 landmines sat un-re-probed for 36 days while nx_cc moved on and
the registry accumulated instead of draining. This organ makes re-probing a STANDING BEAT: it discovers
every lmprobe_<id>.elf in the deploy root, RUNS each (a probe is import-light so a BUILD FAILURE already
removed it = STILL-LIVE by construction; a runnable probe exits 0 = ROOT-FIXED), tallies, and appends ONE
append-only journal frame per probe so the ROOT-FIXED/STILL-LIVE state becomes a TREND (the same shape
nx_law_warden uses). A landmine that quietly gets fixed then shows ROOT-FIXED on the next beat -- visible,
zero-Claude. Retirement itself stays the documented reviewed one-liner (a registry mutation that could
re-introduce a trap must not be silent) -- but it is now backed by continuous runnable proof, not memory.
SCALES BY CONSTRUCTION: a NEW landmine probe = one lmprobe_<id>.nx file; this engine finds and runs it
with ZERO code change. MCP-registered + schema'd (agent/API-callable); composed into a workflow via a
store row (nx_plan_run); cron-driven for the zero-Claude beat.
COMPOSES the base classes (rule 15 / L010): nx_tool_run (fork+capture), nx_estr (the shared emit/itoa).
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_tool_run.nxnx_estr.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
| 23 | const LP_DIRBUF: i64 = 131072 |
| 24 | const LP_CAP: i64 = 65536 |
| 25 | const LP_NAME: i64 = 256 |
| 26 | const LP_ARGVB: i64 = 32 |
| 27 | const LP_LINE: i64 = 512 |
| 28 | const LP_MODE_644: i64 = 420 |
| 29 | const LP_TAB: i64 = 9 |
| 30 | const LP_LF: i64 = 10 |
| 31 | const LP_ROOT: *u8 = "/volume1/homes/elderwesto/nishihost/" |
| 32 | const LP_JRNL: *u8 = "knowledge/status/landmine_probe.jrnl" |
functions
| 35 | func lp_pre(nm: *u8, pre: *u8) -> i64 called by 1: main |
| 41 | func lp_elf(nm: *u8) -> i64 called by 1: main |
| 52 | func lp_has(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 67 | func lp_frame(probe: *u8, verdict: *u8, rc: i64) -> i64 |
| 87 | func main() -> i64 |