feat(net): capsule inbound TCP bind (bind_tcp) (#1230) - #1457
Merged
joshuajbouw merged 7 commits intoAug 12, 2026
Conversation
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
joshuajbouw
force-pushed
the
feat/1230-capsule-bind-tcp
branch
from
August 12, 2026 17:07
9c0f0ce to
3f4d129
Compare
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
joshuajbouw
added a commit
to astrid-runtime/wit
that referenced
this pull request
Aug 12, 2026
## Summary - document that `bind-tcp` is loopback-only - name the implemented `[capabilities].net_bind` authority - remove the unsupported wildcard-interface and `net_tcp_bind` claims ## Validation - matched against the runtime gate and host implementation in astrid-runtime/astrid#1457 Related to astrid-runtime/astrid#1457. Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
This was referenced Aug 12, 2026
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Member
|
added the breaking change label. I want to pull the other libs except astrid and astrid-types from crates anyways as they shouldn't be used as libraries and only for this project. CI will get cranky but c'est la vie. |
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
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.
Linked Issue
Closes #1230.
Summary
Adds governed inbound TCP listeners for WASM capsules. A capsule can bind an explicitly declared loopback endpoint, await readiness or accept a connection, and use the existing network-stream interface without ambient host networking.
Changes
Verification
Regression coverage includes Unix and TCP authority separation, cancellation and concurrent readiness, listener lifetime, quota release, two-Store pooled accounting, loopback policy, and audit provenance.
AI / Tool Assistance
Assisted-by: Anthropic Claude: Opus 5nAssisted-by: OpenAI Codex: GPT-5
Claude Opus 5 assisted Jamie with the original implementation. Codex performed the subsequent adversarial review, implemented authority and accounting fixes, added regression coverage, aligned contract documentation, and validated the affected crates. Human-authored DCO and GPG signatures remain on every commit.
Checklist