feat(host): add worker resource-provider transport v1
- Add a host-managed helper process speaking framed JSON (4-byte BE length) with ping/open/read/write/close/shutdown, max 1 MiB frames and structured error mapping (ADR-0035). - Add StdHost::register_worker_resource_provider using the same protocol, kind-conflict and name-grant checks as the in-process provider; pure/strict refuse provider kinds. - Tests spawn a Python helper and cover round-trip, grant/mode denial and missing-program failure; no parser/Value/runtime/HostOp change. - Update ADR/spec/status/README/changelog and evidence; C ABI binding remains open. Gate: fmt, clippy -D warnings, 433 tests passed.
This commit is contained in:
1 parent
12be02e24b
commit
01f6fe46a7
12 files changed
+585
-8
No files matched your search
@@ -177,6 +177,12 @@ grant/pure/strict/DNS refusal) and
|
||||
`crates/cli/tests/resource_streams.rs::tcp_stream_round_trips_through_mqmd_with_a_network_grant`
|
||||
(`--allow-net 127.0.0.1`).
|
||||
|
||||
RFC-CM CM-A09 worker provider transport (ADR-0035) is pinned by
|
||||
`crates/marqdo-host/tests/worker_provider.rs`: a Python helper is spawned,
|
||||
pinged, opened/read/written/closed through framed JSON; missing grant, pure,
|
||||
strict and missing-program cases are rejected. The helper is trusted, not a
|
||||
sandbox.
|
||||
|
||||
RFC-CM CM-A09 in-process provider v1 (ADR-0033) is pinned by the three
|
||||
`registered_provider_streams_*` / `provider_*` tests in
|
||||
`crates/marqdo-host/tests/resource_streams.rs`: a mock provider is registered
|
||||
|
||||
Reference in new issue
Block a user