code wiki / _hdl_build / nx_legal_portal_post_gate.nx
nx_legal_portal_post_gate.nx
buildroot/runtime/_hdl_build/nx_legal_portal_post_gate.nx
about
nx_legal_portal_post_gate.nx -- GATE for the interactive POST routes (lp_handle_post), ENGINEER verify.
Proves the portal's MUTATING actions over HTTP (the markup/checklist interactivity),
composing D4 (annotate) + D8 (persist), each with a control:
T1 POST annotate : POST /portal/annotate adds a note -> 200, store grows
T2 POST check : add a required checklist item then POST /portal/check?ann= ->
the item is DONE (GET /portal/checklist -> remaining 0 READY)
T3 MUTATION PERSISTS : after the POSTs, save + reload into FRESH arrays -> the
checklist done-state + the note survive (durable interactivity)
T4 AUTHZ : POST to /staff at level 1 -> 403 ; unknown path -> 404
T5 NEG : POST /portal/annotate with no doc -> 400 (not silent)
lp_handle (GET) is UNCHANGED -- the POST router is a new function, so the existing
portal GET gates are not regressed (re-verified separately).
Evidence -> knowledge/status/legal_portal_post.log
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_legal_portal.nxnx_legal_portal_boot.nxnx_doc_annotate.nxnx_doc_envelope.nxnx_doc_vault.nxnx_legal_compliance.nxnx_syscalls.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
| 26 | const LPP_LOG: *u8 = "knowledge/status/legal_portal_post.log" |
| 27 | const LPP_BASE: *u8 = "/tmp/nx_lpp_" |
functions
| 29 | func ew(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 30 | func ewn(fd: i64, v: i64) -> i64 |
| 39 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 40 | func g_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { d[o + i] = s[i]; i = i + 1 } return o + i } called by 1: main |
| 41 | func g_starts(buf: *u8, n: i64, s: *u8) -> i64 |
| 48 | func g_contains(hay: *u8, n: i64, needle: *u8) -> i64 |
| 62 | func main() -> i64 |