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

9629 B206 linesdepth 12pulls 21 transitivereach 0 importersview sourcekind gate/prooftopic legal
docsdependenciesstructsconstsfunctions

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

nx_legal_portal.nx nx_connect.nx nx_doc_envelope.nx nx_doc_serve.nx nx_doc_annotate.nx nx_doc_vault.nx nx_doc_seal.nx nx_legal_compliance.nx nx_syscalls.nx nx_legal_portal_live_gate.nx

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

main sys_mmap nx_env_create nx_legal_doc_classify lc_ci_contains lc_slen lc_lower nx_legal_regime nx_legal_is_excluded nx_env_add_recipient nx_env_send ne_find_env nx_env_required_signers mk_seal slen nx_seal_create sys_mmap ↻ nx_legal_verdict nx_legal_regime ↻ nx_seal_canonical sl_cat ed25519_sign_full sys_mmap ↻ ed25519_sha512 sys_mmap ↻ sha512_init sha512_update sha512_blk_set_byte sha512_compress sha512_final sha512_blk_set_byte ↻ sha512_compress ↻ ge_p3_alloc sys_mmap ↻ fe_alloc nx_scratch fe_zero ed25519_basepoint_p3 sys_mmap ↻ ge_p3_decompress

structs

none

consts

27const LPL_PORT: i64 = 0x2560 // 9568, loopback
28const LPL_LOG: *u8 = "knowledge/status/legal_portal_live.log"

functions

30func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
31func g_addr(out: *u8, port: i64) -> i64
called by 1: main
39func g_starts(buf: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: slen
46func g_contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: slen
59func g_read_all(fd: i64, buf: *u8, cap: i64) -> i64
called by 1: g_client_once calls 1: sys_read
69func g_client_once(addr: *u8, reqline: *u8, resp: *u8, rcap: i64) -> i64
84func mk_seal(s: *NxSeal, dt: i64, ewills: i64, signer: *u8, ts: i64,
called by 1: main calls 2: slennx_seal_create
93func lpl_log(green: i64) -> i64
103func main() -> i64