code wiki / _hdl_build / nx_legal_portal_live_gate.nx
nx_legal_portal_live_gate.nx
buildroot/runtime/_hdl_build/nx_legal_portal_live_gate.nx
about
nx_legal_portal_live_gate.nx -- LIVE LOOPBACK proof for the legal portal.
The same fork pattern as nx_email_live_gate: parent = the portal server
(sys_accept -> lp_serve_conn over the real router), child = a real HTTP client
that connects over 127.0.0.1 and asserts the response BYTES came back over the
wire. This lifts the portal from "pure handler proven in-process" to "served
correctly over a real socket" -- WITHOUT any production deploy (loopback only,
the process exits; pointing a public daemon at it is a separate operator step).
conn 1: GET /portal/envelopes -> 200 + "env 9601 status SENT" over the wire
conn 2: GET /portal/doc?id=8601 -> 200 + the document body BYTE-EXACT over
the socket (binary integrity end-to-end).
GREEN iff the child asserts both and exits 0.
Evidence -> knowledge/status/legal_portal_live.log
license_tier: ORIGINAL
dependencies 9 imports · 0 importers
imports: nx_legal_portal.nxnx_connect.nxnx_doc_envelope.nxnx_doc_serve.nxnx_doc_annotate.nxnx_doc_vault.nxnx_doc_seal.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
| 27 | const LPL_PORT: i64 = 0x2560 // 9568, loopback |
| 28 | const LPL_LOG: *u8 = "knowledge/status/legal_portal_live.log" |
functions
| 30 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 31 | func g_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 39 | func g_starts(buf: *u8, n: i64, s: *u8) -> i64 |
| 46 | func g_contains(hay: *u8, n: i64, needle: *u8) -> i64 |
| 59 | func g_read_all(fd: i64, buf: *u8, cap: i64) -> i64 |
| 69 | func g_client_once(addr: *u8, reqline: *u8, resp: *u8, rcap: i64) -> i64 |
| 84 | func mk_seal(s: *NxSeal, dt: i64, ewills: i64, signer: *u8, ts: i64, |
| 93 | func lpl_log(green: i64) -> i64 |
| 103 | func main() -> i64 |