policylayer-dan
policylayer-dan
The persistence path issue is the most immediately actionable: defaulting to a path inside the package directory means any update silently drops state. That alone warrants an upstream fix regardless...
The root cause framing here is correct: the permission gate's source of truth should be the server-side annotation, not a runtime default. Collapsing `undefined` to `false` at the transport layer...
This is a real design tension in MCP today. The consolidated-tool pattern saves context tokens but collapses the permission surface to a single bit, which is too coarse for cases...
The two-tool pattern you're describing, sandboxed-but-automatic vs unsandboxed-but-gated, is a reasonable model, but the distinction worth making explicit is that the sandbox and the approval gate are orthogonal controls. A...
The framing here is correct: tool returns are structurally untrusted and the existing hooks don't give you the right combination of structured context plus replacement semantics in one place. On...
The wrapping approach the issue describes is the right instinct, but it tends to scatter policy logic across the agent stack rather than enforce it at a single layer. A...
The boolean-only `requireToolApproval` limitation is a known friction point. The pattern you want, approval logic driven by a permissions object with regex matching against tool names or request context, is...
The root cause is clear: `resumeStream()` passes `messages: []` to `#execute()`, so the span input is always blank regardless of what `resumeData` contains. The fix is to serialise the relevant...
The root-cause fix does belong in the package, but it's worth being clear about the defence-in-depth layers available today while that fix lands. **In-package:** scheme allowlist (`https` only), host denylist...
The SSRF framing is correct and the finding is well-scoped. A few things worth separating: **Redirect and DNS rebinding** are particularly hard to fix purely at the server layer because...