ReviewOS

home-lang/home

Activate protocol-agnostic Bun.serve HTTP/1.1 and HTTP/3 matrix

#179
Closed chris opened this 10 days ago ·
10 days ago

Scope\n\nActivate the byte-identical upstream js/bun/http/serve-protocols.test.ts matrix in Home instead of rewriting the whole file to one TODO.\n\nCurrent baseline:\n- 0 passed\n- 0 failed\n- 0 unsupported\n- 1 TODO\n- Home/upstream SHA-256: 49b62c241b08a5142d972383b2a099309ae85ba4012c43ee74de0b6af39d27dd\n\nRequired behavior:\n- run the same ten cases over HTTP/1.1 and HTTP/3\n- long-lived spawned Bun.serve lifecycle with stderr port discovery and stdin/kill shutdown\n- protocol-aware fetch routing, including protocol: http3 and TLS rejectUnauthorized options\n- hello/status/header fidelity\n- 1, 100, 10,000, and 1,000,000-byte POST echo integrity\n- 512 KiB response checksum\n- ReadableStream response completion\n- 16 concurrent requests without cross-talk\n- preserve the upstream corpus file unchanged\n- add a durable exact-corpus regression and pass the full Home gate\n\nTracked under #66.

10 days ago

Completed on main in 43a972d.\n\nVerification:\n- Source fidelity: Home and ~/Code/bun serve-protocols.test.ts are byte-identical at SHA-256 49b62c241b08a5142d972383b2a099309ae85ba4012c43ee74de0b6af39d27dd.\n- Exact untouched corpus: 20 passed, 0 failed, 0 TODO, 0 unsupported.\n- Both ten-case blocks are active: HTTP/1.1 and HTTP/3.\n- All four echo sizes round-trip with MD5 integrity, including 1,000,000 bytes.\n- The 512 KiB response checksum, nine status codes, long headers, eight-chunk ReadableStream response, and 16 concurrent GETs pass over both transports.\n- Home now supplies a real long-lived spawned Bun.serve fixture with stderr port discovery, stdin/kill lifecycle, protocol-tagged HTTP/3 routing, normal Request/Response body flow, request/response byte accounting, and zero-active-request shutdown diagnostics.\n- Durable Zig regression asserts the upstream matrix, absence of suppression, transport validation, lifecycle diagnostic, and exact 20/20 result.\n- Adjacent protocol/HTTP evidence: 222 active passes across this matrix, chunked transfer, request-smuggling hardening, async streaming, and Bun.serve file routes; only two explicit upstream file-route TODOs remain.\n- Full home_test gate: 1,137 passed, 1 skipped, 0 failed (1,138 total), exit 0 in 1,486.17 seconds.\n- The first full invocation reached 1,136 pass and found only a shortened diagnostic string in the new durable assertion. The assertion was corrected to the actual lifecycle diagnostic; the unchanged runtime then passed the complete rerun.\n\nThis closes #179; the broader native HTTP/3 UDP corpus and remaining Bun gaps continue under #66.

Sign in to comment on this issue.