code wiki / (root) / nx_maint_render.nx

nx_maint_render.nx

buildroot/runtime/nx_maint_render.nx

6506 B148 linesdepth 4pulls 9 transitivereach 3 importersview sourcekind librarytopic maint
docsdependenciesstructsconstsfunctions

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

nx_maint_action.nx nx_maint_render.nx nx_maint_render_test.nx nx_maint_simpage.nx

imports: nx_maint_action.nx

imported by: nx_maint_render_test.nxnx_maint_simpage.nx

structs

none

consts

19const NX_MAGIC_2048: i64 = 2048
21const NX_RENDER_DIY: i64 = 0
22const NX_RENDER_ENTERPRISE: i64 = 1

functions

25func nx_health_name(s: i64) -> *u8
35func nx_health_color(s: i64) -> *u8
43func nx_cause_name(c: i64) -> *u8
57func nx_action_name(a: i64) -> *u8
69func mr_cat(buf: *u8, off: i64, s: *u8) -> i64
78func mr_contains(buf: *u8, len: i64, needle: *u8) -> i64
101func nx_maint_render_is_clean(buf: *u8, len: i64) -> i64
called by 2: mainmain calls 1: mr_contains
108func nx_maint_render_card(buf: *u8, cap: i64, asset_name: *u8, severity: i64,