Governance on skills
Each skill call is governed on its own. There is no “approved once, trusted after” window: loading a skill does not pre-authorise its scripts, and one script run does not authorise the next.
What happens on skills__run_script
Section titled “What happens on skills__run_script”Before the skills server sees the call, the MCP route applies the checks every MCP call
gets: the caller’s group must have the skills MCP server bound
(access), the data
residency profile is checked, MCP-surface guardrails read the request body, and per-tool
rate limits and MCP argument policies apply with the skills__* verb as the tool name (so
you can rate-limit skills__run_script like any MCP tool). Then, in this order:
| # | Check | Refusal the agent sees | Audit verdict |
|---|---|---|---|
| 1 | The skill is published and enabled | Skill '...' not found |
|
| 2 | The script is in the manifest and not disabled |
script '...' is not part of skill '...' |
403 |
| 3 | Semantic policies on the skill_input surface, over args |
JSON-RPC error -32602 semantic_policy_blocked |
blocked |
| 4 | Guardrails enabled for skill_input, over every string in args |
Skill input blocked by guardrail ... |
403, guardrail blocked |
| 5 | Argument policies on the skill-input surface (SQL, URL, shell analysers) | Argument policy (...) |
403, policy deny |
| 6 | The group: the one in group_id (which the caller must belong to), else the caller’s own |
skill_error_403: Cannot determine target Resource Group ... |
403 |
| 7 | The skill is assigned to that group, directly or inherited | skill_error_403: Skill is not assigned to the target group |
403 |
| 8 | Execution mode is not disabled |
skill_error_403: Skill execution is disabled ... |
403 |
| 9 | The run’s caps and any operator abort (stopping a run) | skill_error_429 / run_aborted |
429 / 403 |
| 10 | Agent grants for an agent identity; the AI System’s autonomy level for any other caller | agent_not_authorized, skill_error_202: approval_required, autonomy_denied |
403 / 202 |
| 11 | Quotas: the group, its ancestors, the (group, skill) pair and the skill’s tenant-wide quota, admitted as one atomic step | skill_error_403: <quota message> |
skill_quota_exceeded |
| 12 | Approval by execution mode: park the run | {"status": "pending_approval", ...} |
202, approval required |
| 13 | max_concurrent_executions for the group, under a lock so parallel calls cannot overshoot |
skill_error_409: Max concurrent ... |
skill_concurrency_limit |
| 14 | Run the one script in the sandbox | Skill runner error: ... |
502 |
| 15 | Guardrails enabled for skill_output, over the output. A redacting guardrail scrubs it |
Skill output blocked by guardrail ... |
403 |
| 16 | Audit row, execution record, usage attribution | 200 |
skills__read_resource and skills__render_template run the access check (7), the
manifest check and the output guardrail (15). skills__load runs the access check. All
four write the same kind of audit row.
Guardrails on skills
Section titled “Guardrails on skills”A guardrail applies to skills when its configuration has the skill input or skill
output surface switched on (surfaces.skill_input, surfaces.skill_output). Input
guardrails see the script’s args; output guardrails see what is about to go back to the
model: script output, resource content and rendered templates. A PII guardrail in redact
mode scrubs the text and flags the row pii_detected; in block mode the content never
reaches the model. Guardrails are bound to resource groups like everything else:
Guardrails.
Agent grants
Section titled “Agent grants”When the caller is an agent identity, the gateway also asks
whether this agent may run this skill: a grant with action_type: skill_exec whose
target matches the skill id.
curl -s -X POST http://localhost:5050/v1/admin/agent-identities/agent-01M61N3B1GHVSCARE5CJZ5KEZ3/grants \ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"action_type": "skill_exec", "target": "skill-01M61N3A7RB6CWZ8CM8PCEP4SN", "effect": "allow"}'{ "id": "grant-01M61N3B...", "agent_id": "agent-01M61N3B1GHVSCARE5CJZ5KEZ3", "action_type": "skill_exec", "target": "skill-01M61N3A7RB6CWZ8CM8PCEP4SN", "effect": "allow", "enabled": true}effect |
Result on skills__run_script |
|---|---|
allow |
The run continues to the quota check |
deny, or no matching grant |
skill_error_403: agent_not_authorized: <reason> |
approval_required |
An approval request is raised; see approvals |
A grant in dry-run mode logs a would-block and lets the run through. The group decides what
the agent can reach; the grant decides what it may do, and either one can refuse. The
skill_exec grant is checked on skills__run_script only; discovery, load, read and
render are governed by the group. The end-to-end setup for an agent is in
Register and run a skill.
A caller that is not an agent identity (a user, or an API key without an agent) is checked against its AI System’s autonomy level instead: a suspended or read-only AI System refuses every skill run, because running a script is side-effecting by definition.
Execution modes
Section titled “Execution modes”The execution mode says whether a skill may run at all, and whether a person has to agree
first. It is set in three places, and the strictest wins
(disabled, then approval_required, then unrestricted):
| Where | Admin UI | API |
|---|---|---|
| The group, for all its skills (merged with every ancestor) | Resource Groups → group → Governance → Policy → Skill Policies | PATCH /v1/admin/resource-groups/{group_id}/skill-global-governance |
| One (group, skill) pair | The same tab, per skill | PATCH /v1/admin/resource-groups/{group_id}/agent-skills/{skill_id}/governance |
| The skill itself | Skill → Metadata & Tags → Require human approval before execution | metadata.approval_required: true on create (it is content, so it is fixed once published) |
curl -s -X PATCH http://localhost:5050/v1/admin/resource-groups/$GROUP_ID/skill-global-governance \ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"governance": {"execution_mode": "approval_required", "approval_timeout_seconds": 3600, "max_concurrent_executions": 5}}'{ "group_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "group_name": "brutor-demo-system", "skill_global_governance": {"execution_mode": "approval_required", "approval_timeout_seconds": 3600, "max_concurrent_executions": 5}, "effective_skill_governance": {"execution_mode": "approval_required", "approval_timeout_seconds": 3600, "max_concurrent_executions": 5}, "inherited_skill_governance": null}The governance document accepts exactly these fields; anything else is refused:
| Field | Values | Enforced by the gateway | Example |
|---|---|---|---|
execution_mode |
unrestricted, approval_required, disabled |
On every run, group-wide and per pair | approval_required |
approval_timeout_seconds |
Integer, at least 1 | Group-wide: how long a parked execution waits before it expires | 3600 |
max_concurrent_executions |
Integer, at least 1 | Group-wide: running executions per group | 5 |
discovery_enabled |
true / false |
The skill catalog the User Portal’s Skills page reads (GET /v1/proxy/skills/catalog) answers 403 Skill discovery turned off. MCP discovery does not read it |
true |
max_tool_calls_per_execution |
Integer, at least 1 | Returned to callers of the deprecated REST execute only | 20 |
A child group’s merged governance is never looser than its parent’s: the strictest
execution_mode, the minimum of each number, and discovery_enabled false if any level
says false. On a (group, skill) pair only execution_mode is read at run time.
Approvals
Section titled “Approvals”A skill run can wait for a person in two ways. They are different mechanisms:
1. An approval-required skill_exec grant goes through the platform’s shared
approval flow. The run is held, an approval request is raised in
the group’s approvals inbox (the portal’s Inbox, GET /v1/portal/approvals), and the
tool result is skill_error_202: approval_required (428 for a portal user). When a group
member approves, the request carries a one-time token; retry the same call with it in
the approval_token argument:
{"jsonrpc": "2.0", "id": 36, "method": "tools/call", "params": {"name": "skills__run_script", "arguments": {"skill_name": "affordability-check", "script": "affordability.py", "args": {"monthly_income_eur": 2400.0, "term_months": 72}, "approval_token": "Zk3v..."}}}The token is bound to the arguments it was issued for: an approval for one set of args
cannot run a different one. How long the request stays open is the
approval window of the group.
2. An execution mode of approval_required parks the execution instead of running it.
The tool result is not an error:
{ "content": [{ "type": "text", "text": "{\"execution_id\":\"01M61P2W7Z3K5Q9R1T4V6X8Y0B\",\"status\":\"pending_approval\",\"message\":\"Skill 'affordability-check' execution pending approval. An administrator must approve execution ID '01M61P2W7Z3K5Q9R1T4V6X8Y0B'.\",\"skill_name\":\"affordability-check\"}" }], "isError": false}The execution is recorded with approval_status: pending and expires (expired, execution
timed_out) when the window runs out: the group’s approval_timeout_seconds, else the
group, tenant or platform default. An expired hold is sealed as evidence linked to the hold
it closes.
Limits and concurrency
Section titled “Limits and concurrency”Skill limits count executions. Tokens and cost are counted where they are spent, on the
LLM calls, so a budget or tokens section in a skill limit is refused.
| Where | Admin UI | API |
|---|---|---|
| The group, for all its skills | Resource Groups → group → Governance → Limits → Skill Limits | PATCH /v1/admin/resource-groups/{group_id}/skill-global-limits |
| One (group, skill) pair | The same tab, per skill | PATCH /v1/admin/resource-groups/{group_id}/agent-skills/{skill_id}/limits |
| The skill, across every group in the tenant | Skill → Limits | tenant_limits on the skill (PATCH /v1/admin/agent-skills/{id}, allowed on a published skill) |
The Demo System’s live setting:
curl -s -X PATCH http://localhost:5050/v1/admin/resource-groups/$GROUP_ID/skill-global-limits \ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \ -d '{"skill_global_limits": {"execution": {"daily_limit": 500}}}'{ "group_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "group_name": "brutor-demo-system", "skill_global_limits": {"execution": {"daily_limit": 500}}, "effective_skill_limits": {"execution": {"daily_limit": 500}}, "inherited_skill_limits": null, "capacity": null}Field under execution |
Meaning | Example |
|---|---|---|
daily_limit |
Runs per UTC day | 500 |
monthly_limit |
Runs per calendar month | 10000 |
daily_warning_percent, monthly_warning_percent |
Utilisation at which a usage warning is raised | 80 |
The per-pair body is {"limits": {"execution": {...}}}. Every level is a ceiling: a run must
fit the group, each ancestor, the pair and the skill’s tenant-wide quota, and a child group
cannot save a limit looser than what it inherits. All of them are admitted in one atomic
step, so parallel runs cannot overshoot. More on limits:
MCP and skill limits.
The audit row
Section titled “The audit row”Every skill call writes one proxy-log row: the MCP row of the tools/call, with the
skill’s verdict folded into it. It carries the full JSON-RPC request and response bodies,
the skill id, the real verdict status (403, 202, 503) while the client saw 200, and
the flags compliance tagging reads. This is the Demo System’s run from
the example above, trimmed:
{ "id": "01M61N5B0T9RP0C3TDTRZ19KB4", "timestamp": "2026-10-28T16:23:15.787936+00:00", "proxy_type": "mcp", "proxy_subtype": "skill_run", "server_id": "system-agent-skill-server-default", "mcp": {"method": "tools/call", "request_id": "35", "capability_name": "skills__run_script"}, "skill_id": "skill-01M61N3A7RB6CWZ8CM8PCEP4SN", "resource_group_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "actor_agent_id": "agent-01M61N3B1GHVSCARE5CJZ5KEZ3", "agent_impl_name": "brutor-demo-screening-agent", "agent_impl_version": "0.2.0", "step_id": "gather", "correlation_id": "0549f0f8-52dd-4fa4-a748-04e1f57520f2", "success": true, "guardrail_blocked": false, "argument_policy_denied": false, "pii_detected": false, "compliance_tags": ["eu_ai_act.high"], "response": {"status_code": 200, "duration_ms": 191.96}, "chain_seq": 50, "row_hash": "c76676d42147ceca66d923cba49dfbef3f7dd28bfe2c3cffdadb46aebba04e70"}proxy_subtype |
Call |
|---|---|
skill_load, skill_read, skill_run, skill_render |
The layer, allowed or refused (see the status) |
approval_required |
A run that was held or parked. A parked execution’s id is on the row as the approval_request_id |
skill_quota_exceeded, skill_concurrency_limit, agent_authz_block, autonomy_block, run_cap_reached, run_aborted, access_denied |
A run a gate refused, sealed as denied rather than as a failed run |
Besides the row, a successful run writes a usage record (resource_type: skill) for the
group’s quotas and the usage views, and an execution record you can list under the skill
(Executions tab, or GET /v1/admin/agent-skills/{id}/executions). Find a skill’s rows
in Logs by server, tool or skill, or through the API:
curl -s "http://localhost:5050/v1/admin/proxy-logs/export?format=jsonl&hours_ago=24&mcp_capability_name=skills__run_script" \ -H "Authorization: Bearer $ADMIN_TOKEN"More in Logs and audit trail and the audit row reference.

