Files
archie/internal/platform/pg/migrations/00047_connectors_effects.sql
T
sam bc72655c8e feat(judgement): refuse privileged and undeclared actions in chat (#2071)
Connector actions and lookups now declare privilege change and secret access,
and an MCP server declares both per installation. Chat withholds and refuses
any tool that has either effect or declared nothing, in judgement and at
execution, so an approval cannot convert the refusal. Workflows and the
dashboard are unchanged.
2026-11-21 21:28:06 +11:00

9 lines
342 B
SQL

-- +goose Up
-- The privileged effects an operator declared for an MCP server: a JSON object
-- with privilege_change and secret_access. Null means nothing is declared, and
-- chat doesn't offer the server's tools.
ALTER TABLE connectors.accepted ADD COLUMN effects jsonb;
-- +goose Down
ALTER TABLE connectors.accepted DROP COLUMN effects;