nx_browser_local_test.nx
buildroot/runtime/nx_browser_local_test.nx
about
nx_browser_local_test.nx -- end-to-end "browser is up" demo.
Takes a hardcoded HTML page (no network), runs it through:
nx_http_response_parse (full HTTP/1.1 response → body)
nx_html_to_text (HTML body → plain text)
then writes the rendered text to stdout via sys_write. This is
the smallest standalone proof the sovereign browser substrate
end-to-end pipeline composes and produces visible output.
Cardinal compliance:
- bits-up substrate; no C, no third-party
- per [[feedback-no-skip-paths-as-error-codes]] verdict is
CAPABILITY_COMPLETENESS PARTIAL: cert validation + real DNS
+ real network are tracked as separate browser-arc items
- F7 post-order DFS so callees are above callers
Smoke asserts:
* sys_write returns >= rendered_len
* rendered_len matches expected ("Hello\nfrom the\nsovereign
browser\n")
expect_exit: 0
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_http_response_parse.nxnx_html_to_text.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
| 39 | func bl_write(out: *u8, off: i64, s: *u8, n: i64) -> i64 |
| 45 | func bl_status_line(out: *u8) -> i64 |
| 56 | func bl_content_type(out: *u8, off: i64) -> i64 |
| 69 | func bl_content_length(out: *u8, off: i64) -> i64 |
| 82 | func bl_body(out: *u8, off: i64) -> i64 |
| 105 | func bl_build_response(out: *u8) -> i64 |
| 118 | func nx_browser_render_response(buf: *u8, buf_len: i64, out: *u8, out_cap: i64) -> i64 |
| 126 | func bl_equal(got: *u8, n: i64, exp: *u8, m: i64) -> i64 called by 1: main |
| 136 | func bl_expected(buf: *u8) -> i64 |
| 155 | func main() -> i64 |