Commit f8d72fd
authored
Add the sandbox link protocol, relay core and Sandbox I/O bootstrap (#338)
Define the Link protocol between the agent-host Runtime, the Sandbox I/O
service and the relay in internal/sandboxlink: sandboxwire-framed control
messages, typed failures, the Authority interface, serve and attach peer
libraries over yamux on WebSocket, and a relay that authorizes, binds and
splices service streams with leases, generations and revocation. File
binds carry export grants and Network binds carry egress rules. Peers
dial only wss:// or loopback ws:// relay URLs.
Add sandboxwire.RequestSequence, the strictly increasing request ID rule
the sandbox I/O protocols share, and use it for Link control streams.
Add internal/sandboxbootstrap for the Provider-to-service startup file,
the two protocol documents and their AGENTS.md and development.md rows.1 parent 02a4ed2 commit f8d72fd
21 files changed
Lines changed: 4388 additions & 0 deletions
File tree
- docs
- internal
- sandboxbootstrap
- sandboxlink
- relay
- sandboxlinktest
- testdata
- sandboxwire
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments