nx_maint_render.nx
buildroot/runtime/nx_maint_render.nx
about
nx_maint_render.nx -- R6: the fronts. Renders a MaintResult + ActionPlan into
a self-contained, ZERO-JS, privacy-first HTML card -- in two modes: DIY
("what to do yourself") and ENTERPRISE ("work order / dispatch"). Same core,
two fronts (the operator's monitor/fix/replace, DIYer -> enterprise).
Operator doctrine (Vizsla/IoT render arcs): 0 <script>, 0 third-party loads,
data treated as valuable not stolen -> FAIL-CLOSED: the card self-scans and
nx_maint_render_is_clean REFUSES anything containing a script or an http load.
Operator (2026-06-23): "from the hardware rung up each rung" -- R6 on top of
R5's ActionPlan. The last SOLO rung before R0 (live) needs hardware.
NEVER-BRICK (#26): builds bytes into a caller buffer; no syscalls, no writes.
genealogy_id: project-maintenance-platform-sclass-2026-06-23 (R6 fronts)
license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_maint_action.nx
imported by: nx_maint_render_test.nxnx_maint_simpage.nx
structs
| none |
consts
| 19 | const NX_MAGIC_2048: i64 = 2048 |
| 21 | const NX_RENDER_DIY: i64 = 0 |
| 22 | const NX_RENDER_ENTERPRISE: i64 = 1 |
functions
| 25 | func nx_health_name(s: i64) -> *u8 called by 1: nx_maint_render_card |
| 35 | func nx_health_color(s: i64) -> *u8 called by 1: nx_maint_render_card |
| 43 | func nx_cause_name(c: i64) -> *u8 called by 1: nx_maint_render_card |
| 57 | func nx_action_name(a: i64) -> *u8 called by 1: nx_maint_render_card |
| 69 | func mr_cat(buf: *u8, off: i64, s: *u8) -> i64 |
| 78 | func mr_contains(buf: *u8, len: i64, needle: *u8) -> i64 |
| 101 | func nx_maint_render_is_clean(buf: *u8, len: i64) -> i64 |
| 108 | func nx_maint_render_card(buf: *u8, cap: i64, asset_name: *u8, severity: i64, |