feat(net): add experimental HTTP and TLS capability stack - #282
Draft
HalfSweet wants to merge 7 commits into
Draft
feat(net): add experimental HTTP and TLS capability stack#282HalfSweet wants to merge 7 commits into
HalfSweet wants to merge 7 commits into
Conversation
Collaborator
|
Please share your session via https://spool.new/ 😉 |
HalfSweet
force-pushed
the
feat/network-architecture
branch
from
August 16, 2026 08:52
e979da9 to
7c838a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
PocketJS needs a network capability whose authority, resource limits, native provider selection, and Guest/Host ownership are fixed before Guest evaluation. The implementation remains fail-closed while the remaining ESP-IDF allocation, DNS completeness, and product-admission gates are completed.
Repository footprint and review order
mainand replaced 150 development-history commits with seven review commits: contracts, SDK, compiler boundary, HTTP Core, ESP runtime, conformance harness, and documentationesp_http_clientbackend prototype and Guest spike rather than maintaining two native stacksImpact
This PR adds the experimental substrate and conformance tooling. It does not advertise
network.http.clientornetwork.http.client.tlsfrom a stock target, and it does not make the staged HTTP surface generally available.Validation
bunx tsc --noEmit --pretty falseand the repository contract drift guard-Wall -Wextra -Werrorwith ASan/UBSan for HTTP Core, ESP transport state, and ESP runtime contract/fake integration7101770dc6db) clean full-link builds for ESP32-S3 and ESP32-P4, with build-local artifact generation and embeddingtls_hostname_mismatch; unknown CA, expired, not-yet-valid, and bad-signature certificates map totls_certificate_invalidtimed_outand a 500-ms AbortController delay maps toabortedwhile the peer holds the TLS 1.2 handshake for 10 secondsmbedtls_ssl_get_verify_result()recovers verification flags from the failed negotiation state; host tests cover captured/live flag precedence and generic X.509 fallback4ffb324d...c551b; Tab5 1,913,296 bytes, SHA-25635d66e5b...ffb2f)Remaining public-admission gates