code wiki / _hdl_build / nx_relate_live_gate.nx
nx_relate_live_gate.nx
buildroot/runtime/_hdl_build/nx_relate_live_gate.nx
about
nx_relate_live_gate.nx -- LIVE: the Relationship OS over a REAL HTTP socket (loopback fork gate, the exact
nx_email_webmail_gate pattern). Seeds the store (Rose + Andelin West + a works-at edge), then fork:
parent = the server: accept 3 connections -> rv_read_req -> rv_handle -> rv_write_all
child = a real HTTP/1.1 client:
1. GET / -> HTML lists the SEEDED graph ("Rose Andelin" + the edge role "Managing Partner")
2. POST /add-entity -> form body type=org&name=First+Ward&tenant=personal; redraw shows "First Ward"
3. GET / -> still shows Rose AND First Ward (persisted across connections)
Then the parent verifies the STORE really grew (entities == 3). ONE fork (degraded-box discipline).
Evidence -> knowledge/status/relate_live.log (RELATELIVEGATE ... verdict=GREEN)
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_relate_serve.nxnx_connect.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
| 14 | const RL_PORT: i64 = 0x2557 |
| 15 | const RL_LOG: *u8 = "knowledge/status/relate_live.log" |
functions
| 17 | func g_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 25 | func g_writes(fd: i64, s: *u8) -> i64 |
| 30 | func http_req(addr: *u8, req: *u8, out: *u8, cap: i64) -> i64 |
| 47 | func g_run_client(addr: *u8) -> i64 |
| 70 | func main() -> i64 |