code wiki / _hdl_build / nx_vizsla_serve_gate.nx
nx_vizsla_serve_gate.nx
buildroot/runtime/_hdl_build/nx_vizsla_serve_gate.nx
about
nx_vizsla_serve_gate.nx -- VIZSLA serve gate: the HTTP transport routes a first-party browser request to the
right handler. Uses the daemon's `handle <base> <reqfile>` mode (router over a request read from a file =
gateable without socket timing). Proves: GET /<tid> -> the sovereign page; POST /v/submit -> mutation + 303
redirect; invalid tid blocked. 100% sovereign: writes the tenant + synthetic HTTP requests, runs the daemon
in handle mode, greps the response + the mutated tenant files.
Rows:
1 get-200 GET /srv -> "HTTP/1.1 200 OK"
2 get-page response carries the rendered page ("Nishi Vizsla")
3 get-form response carries the in-page form ("Add someone")
4 post-303 POST /v/submit (add-contact) -> "303 See Other" + "Location: /srv"
5 post-mutated after the POST, srv.contacts.txt has CONTACT webby Web-Person inner 08-08
6 neg-invalid-tid POST with tid=".." -> NOT mutated into srv (no "Evil")
Evidence: VIZSLA-SERVE-GATE -> stdout + knowledge/status/vizsla_gate.log; exit 0 iff 6/6.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_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
| none |
functions
| 18 | func og_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 19 | func og_p(s: *u8) -> i64 { sys_write(1, s, og_slen(s)); return 0 } |
| 21 | func og_cat(dst: *u8, off: i64, s: *u8) -> i64 |
| 27 | func og_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 40 | func og_write(path: *u8, content: *u8) -> i64 |
| 48 | func og_readall(path: *u8, szout: *i64) -> *u8 |
| 62 | func og_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 87 | func og_has(path: *u8, needle: *u8) -> i64 |
| 104 | func og_row(name: *u8, pass: i64) -> i64 |
| 110 | func og_args(a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> *i64 |
| 116 | func og_join(base: *u8, name: *u8) -> *u8 |
| 123 | func main(argc: i64, argv: *i64) -> i64 |