feat(host): add in-process ResourceProvider v1 (CM-A09 slice)
- Add ResourceProvider v1 trait with name/protocol/kinds/open/read/write/close; host still issues the opaque language Resource handle, provider tokens stay private. - Add StdHost::register_resource_provider with protocol/version, reserved-name and duplicate-kind checks; add Capabilities.allow_resource_provider grants. - Provider kinds are project-mode only; pure/strict refuse them; in-process providers are trusted and not a sandbox (ADR-0033). - Reuse resource.* and Result shapes; no parser/Value/runtime/HostOp changes. - Add mock read/write provider and rejection tests, docs/spec/status/evidence. Gate: fmt, clippy -D warnings, 423 tests passed.
This commit is contained in:
1 parent
a8e62a5ba9
commit
1be4662049
13 files changed
+640
-18
No files matched your search
@@ -171,6 +171,13 @@ by:
|
||||
* fixture 55 additionally has a second-free detection path: freeing an
|
||||
already-free block returns `{ok:false, code:"alloc.double_free"}`.
|
||||
|
||||
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
|
||||
and read/written through `resource.*` with a project-mode name grant; missing
|
||||
grant, pure/strict, bad protocol version, reserved kinds and duplicate kinds
|
||||
are rejected.
|
||||
|
||||
RFC-CM CM-A08 table stdlib (ADR-0032) is pinned by
|
||||
`crates/cli/tests/stdlib_table.rs`, which runs `stdlib/tests/table.mq.md` and
|
||||
checks select/filter/sort/append/set/join/group results plus original-table
|
||||
|
||||
Reference in new issue
Block a user