You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin RPC handlers receive no caller context, so an RPC cannot bind decisions to its caller #2495
PluginRpcHandlers methods are typed as (input) => output — one parameter, the parsed input, and nothing else (bb-plugin-sdk.d.ts, PluginRpcHandlers<Contract>). A handler has no way to learn who called it: not the calling plugin, thread, or any host-verified identity.
Any RPC whose semantics depend on the caller must therefore trust caller-supplied fields in input. That inverts the trust boundary: a caller can claim any identity, and a handler that needs "exclude the requesting caller" or "attribute this action to the caller" cannot bind the decision to anything real.
No second parameter, no context object, no per-call attribution.
Requested capability
Pass host-verified caller context to RPC handlers — e.g. a second context argument (calling plugin id, calling thread id if any, origin kind), analogous to what agent-tool registration contexts already receive. Handlers could then bind request-scoped decisions (exclusions, attribution, rate keys) to the actual caller instead of trusting input.
Related family: #1541 (host-issued operator receipts for invocation contexts) — same root theme, host-verified attribution for plugin invocations; that one is about operator authority, this one is about caller identity.
Workaround
None from inside a handler. Plugins either trust input (unsafe for the cases above) or refuse the operation.
Activity