feat(spec,tck): add host-port@1 capability #138
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 300 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #138"
general
weight: 0.35
robmry
Adds
com.docker.sandbox/host-port@1: a capability that exposes one host loopback TCP or UDP service inside the sandbox at an IPv4 loopback endpoint, the reverse ofport@1. TCP is the default; UDP forwarding preserves datagrams and routes replies to the originating sandbox socket.familydescribes the host service:ipv4(default),ipv6, ordualwhen either family reaches the same service. It is part of the permission surface (host->container/transport/family), because IPv4 and IPv6 loopback may serve different host services. Different effective families at the same sandbox endpoint conflict rather than overriding an omitted IPv4 grant.container: 0remains the default-to-host sentinel; the table now states its accepted range as 0–65535. Empty transport remains accepted as TCP in both the Go grammar and JSON Schema.Validation and composition reject a
port@1publication and ahost-port@1mapping claiming the same sandbox port and transport, in either declaration order and regardless of family. Different transports may share a numeric port. No descriptor field was renamed or removed. This capability has not shipped in a tagged release, so its config can change in place under RELEASES.md; no capability or schema version bump is needed.Normative accounting:
host-port@1/config-validis enforced by descriptor validation and the artifact suite;host-port@1/family-honoredhas TCP/UDP IPv4/IPv6 host-listener fixtures and mutations for ignored families, missing family surface, and conflicting family grants. That check also covers the updatedhost-port@1/conflictandhost-port@1/permission-surfaceduties.host-port@1/published-port-conflictis covered by descriptor validation and a two-order runtime refusal check with a fake-adapter mutation. Existing forwarding, lifecycle, on-demand, raw-byte, datagram, and no-extra-access checks remain; unobservable confinement and teardown duties retain their recorded waivers.Rebased onto current main, including its shared instance-key and strict-config validation machinery.
``
release-note
``Add host-port@1 to grant access to a specific IPv4 or IPv6 host loopback TCP or UDP service through a sandbox loopback endpoint.