code wiki / _hdl_build / nx_legal_portal_daemon.nx
nx_legal_portal_daemon.nx
buildroot/runtime/_hdl_build/nx_legal_portal_daemon.nx
about
nx_legal_portal_daemon.nx -- runnable Client Workspace portal: bind
127.0.0.1:8455 and serve the legal portal in an accept loop over the real
lp_handle router. Browse http://127.0.0.1:8455/portal/envelopes
(LOOPBACK ONLY -- a public bind + mTLS + file-backed tenant stores is the
separate, operator-gated production deploy step).
The pctx here is a DEMO tenant fixture (two envelopes incl. a Will routed to
REQUIRES_WET so the never-void surfacing is visible, plus a vault doc + a
pending checklist). Wiring real per-tenant file-backed stores replaces this
fixture at deploy time. license_tier: ORIGINAL
dependencies 9 imports · 0 importers
imports: nx_legal_portal.nxnx_legal_portal_boot.nxnx_legal_store.nxnx_doc_envelope.nxnx_doc_serve.nxnx_doc_annotate.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
| 20 | const LPD_MAGIC_8601: i64 = 8601 |
| 21 | const LPD_MAGIC_9601: i64 = 9601 |
| 22 | const LPD_MAGIC_9602: i64 = 9602 |
| 23 | const LPD_MAGIC_8602: i64 = 8602 |
| 24 | const LPD_MAGIC_2000: i64 = 2000 |
| 25 | const LPD_MAGIC_5001: i64 = 5001 |
| 26 | const LPD_MAGIC_4096: i64 = 4096 |
| 28 | const LPD_PORT: i64 = 0x2107 // 8455, loopback |
| 29 | const LPD_STORE: *u8 = "knowledge/legal_" // durable per-tenant store base (survives restart) |
functions
| 31 | func lpd_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 39 | func lpd_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 41 | func main() -> i64 |