fix(plugin): bound worker capability calls per invocation (H3-A)
- enforce at most 64 capability requests and 64 KiB per serialized request in both the worker handler and the host bridge - return structured capability.budget_exceeded / request_too_large errors and kill the worker on a host-side violation - add a real C loop fixture and CLI test proving a runaway plugin is stopped without producing file contents - update ADR-0018, plugin-abi and STATUS
This commit is contained in:
1 parent
ea41256671
commit
f69c563afd
7 files changed
+101
-10
No files matched your search
+4
-1
@@ -390,7 +390,10 @@ The id must match and is request-scoped; requests carry no trusted identity
|
||||
unknown/mismatched ids, non-text replies and other frame kinds are protocol
|
||||
errors. The invoke deadline covers the whole exchange. In this build only
|
||||
granted `fs.read` executes; other capabilities return `capability.unavailable`.
|
||||
These frames do not change the C ABI.
|
||||
At most 64 capability requests per invocation and 64 KiB per serialized
|
||||
request; exceeding either is `capability.budget_exceeded`/`request_too_large`.
|
||||
Both the worker handler and the host enforce the limits (the host kills the
|
||||
worker on a violation). These frames do not change the C ABI.
|
||||
|
||||
## 10. SDK usage (`crates/marqdo-plugin-sdk`)
|
||||
|
||||
|
||||
Reference in new issue
Block a user