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

7434 B164 linesdepth 13pulls 21 transitivereach 0 importersview sourcekind gate/prooftopic legal
docsdependenciesstructsconstsfunctions

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

nx_legal_portal.nx nx_legal_portal_boot.nx nx_doc_annotate.nx nx_doc_envelope.nx nx_doc_vault.nx nx_legal_compliance.nx nx_syscalls.nx nx_legal_portal_post_gate.nx

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

main sys_mmap nx_vault_add g_cat lp_handle_post sys_mmap ↻ lp_pathlen lp_prefix lp_slen lp_text_response lp_cat lp_num sys_mmap ↻ lp_eq lp_slen ↻ lp_query_int lp_slen ↻ nx_ann_add na_put lp_cat ↻ lp_num ↻ nx_ann_resolve na_find g_starts slen g_contains slen ↻ nx_ann_count nx_ann_checklist_remaining lp_handle sys_mmap ↻ lp_prefix ↻ lp_text_response ↻ lp_eq ↻ lp_cat ↻ lp_num ↻ nx_env_status_name nx_env_status ne_find_env nx_env_signed_count

structs

none

consts

26const LPP_LOG: *u8 = "knowledge/status/legal_portal_post.log"
27const LPP_BASE: *u8 = "/tmp/nx_lpp_"

functions

29func 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 }
called by 1: main calls 1: sys_write
30func ewn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
39func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: g_startsg_contains
40func 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
41func g_starts(buf: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: slen
48func g_contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: slen
62func main() -> i64