Skip to content

feat(platform): read and change write allowances over MCP - #4894

Merged
yannickmonney merged 1 commit into
mainfrom
feat/mcp-approval-allowances
Oct 12, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
feat/mcp-approval-allowances

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

A coding agent can read which writes an automation may make without a person approving each run, and an owner's or admin's key can allow or withdraw them, through the new MCP settings kind automation-approval (contract 3.42.0).

  • Read by the automation's name: allowed, used (the writes the latest version makes), requiredByPolicy (those a rule of the approval policy still requires a person for) and grants (who allowed each, by name — never by address). Owners, admins and developers read; any other member is refused; an automation the person cannot see reads as one that does not exist.
  • Changed by the acts grant and revoke (args.types), through the writer the General tab's "Runs without approval" saves with — the same name lock, audit rows (automation.approval_allowance.granted|revoked, made over MCP) and editor hint — against the set that was read. The hash covers the automation and its allowed writes alone: a new version or a policy edit never makes a plan stale, another person's change does (SETTINGS_STALE).
  • Plan: allowing a write names removes-human-approval (critical) unless a rule of the policy already decides it; a withdrawal names nothing; an act that changes nothing plans and applies as unchanged; a name that is no write of the connector catalog is APPROVAL_ALLOWANCE_INVALID.
  • The settings registry reads an act's arguments through a schema (issues point at /args), and the reference describes a kind that has acts and no operations.

Specs MCP-R38 and MCP-R39; docs in English, German and French; manual reference rows; contract, MCP schema snapshot, skill snapshot and OpenAPI version moved together.

Proof

  • Unit: allowance writer and agent read model (28), handler through the registry's own read/plan/apply (23), settings registry, tools arguments, reference and docs guards. Mutation rounds on the handler (25), the writer (19), plan, kit and reference (5): every mutation killed.
  • Real Postgres, lanes checkMcpSettingsConfig and checkApprovalAllowances (92/92): a developer's key reads and is refused a change, a member's read is refused, an owner's key allows a write (critical plan, audited as coming through MCP, granter named) and the approval gate then lets that automation's write pass while another still asks, a moved set is stale, withdrawing makes the write ask again.
  • Whole platform server + PII suite 88,511, UI 7,680, docs 713, tsc, oxlint, format, links, manual lint and knip green before the rebase onto the two commits that landed since; tsc, the MCP/automations/guards suites (1,662), the two lanes, manual lint, knip and oxlint again after it.

A coding agent can read which writes an automation may make without a
person approving each run, and an owner's or admin's key can allow or
withdraw them, through the new settings kind automation-approval.

- Read by the automation's name: the writes allowed, the ones its latest
  version makes, those a rule of the approval policy still requires a
  person for, and who allowed each by name, never by address. Developers
  read; other members are refused; a hidden automation reads as absent.
- Changed by the acts grant and revoke through the writer the General tab
  saves with, against the set that was read. The hash covers the
  automation and its allowed writes alone, so a new version never makes a
  plan stale and another person's change does. Allowing a write plans as
  removes-human-approval at critical risk unless a rule of the policy
  already decides it; an act that changes nothing plans as unchanged.
- The settings registry reads an act's arguments through a schema,
  pointing at /args, and the reference describes a kind with no
  operations.
- Contract 3.42.0, docs in English, German and French, spec MCP-R38 and
  MCP-R39, manual reference rows and real-Postgres probes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant