code wiki / _hdl_build / nx_printer_ctl_gate.nx
nx_printer_ctl_gate.nx
buildroot/runtime/_hdl_build/nx_printer_ctl_gate.nx
about
nx_printer_ctl_gate.nx -- gate for the sovereign printer-control organ.
Proves the composed capability WITHOUT live hardware (the QIDI is offline
per the LAN research probe): pure-logic teeth (dotted-IP parse, the
NEVER-BRICK safe-endpoint allowlist) + REAL loopback roundtrips through a
fork'd fake Moonraker server (bytes over the real kernel TCP stack via the
production nx_mr_*_ipv4 path -- the exact code nx_printer_ctl runs).
T1 dotted-IPv4 parse -> correct packed value
T2 malformed IPs rejected (fail-closed)
T3 NEVER-BRICK: every verb maps ONLY to a safe control endpoint; a
raw-gcode / script verb has NO route (cannot reach a firmware-write path)
T4 GET /printer/info roundtrip -> HTTP 200 over real loopback
T5 POST /printer/emergency_stop roundtrip -> HTTP 200 (Content-Length: 0)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_tls13_io.nxnx_moonraker_client.nxnx_moonraker_io.nxnx_printer_ctl_lib.nxnx_gate_verdict.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
| none |
functions
| 25 | func g_contains(buf: *u8, len: i64, needle: *u8) -> i64 |
| 46 | func g_roundtrip(id: i64, port: i64) -> i64 |
| 112 | func main() -> i64 |