RaiCentral

Docs / Governance

Policies and rules

Source policies, tool rules, content rules and the default outcome.

The Policy Library holds source documents: regulations and internal requirements, broken into obligations. RAI Rules are the executable controls, which can be linked back to the obligation they implement.

Tool rules

bash
curl -X POST $RAI_BASE_URL/v1/ai-systems/$SYSTEM_ID/policies/tool-rules \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{
    "title": "Approve orders from 1000",
    "tool_id": "'$TOOL_ID'",
    "effect": "REQUIRE_APPROVAL",
    "required_approver_role": "rai_officer",
    "match_mode": "ALL",
    "conditions": [
      {"parameter_path": "amount", "operator": "gte", "value_type": "number", "value": 1000}
    ]
  }'
FieldValues
effectALLOW, MARK, MONITOR, REQUIRE_APPROVAL, DENY
operatoreq, neq, gt, gte, lt, lte, contains, not_contains, in, not_in, regex, exists, not_exists
match_modeALL conditions (default) or ANY
required_approver_roleRequired when the effect is REQUIRE_APPROVAL

A rule without conditions matches every call to the tool. When several match, the strongest effect wins: DENY over REQUIRE_APPROVAL over MONITOR over MARK over ALLOW.

Default outcome

When no tool rule matches, an action that passes authority validation is allowed, unless a platform control applies. Add explicit rules for every action you want held or blocked.

Platform controls require approval when the tool is marked consequential, or when the agent version (or, if the version has none, the tool) is HIGH or CRITICAL risk. An ALLOW rule does not waive them.

Tools on MCP servers

A rule for a tool that belongs to a registered MCP server must include mcp_server_id. It is matched when a Runtime API request sends integration_type: "mcp" with that server's ID as integration_id.

Known limitation in the current build: SDK sessions (/sdk/v1) do not carry the MCP server ID, so rules scoped to an MCP server are not matched there and the request falls through to the default outcome. For tools your application authorizes through the SDK, register them as standalone catalog tools without an MCP server, and test that a denied value is denied.

Content rules

Content rules evaluate text, such as model output or user input, and can create risk findings and suggest interventions. Create them under RAI Rules or with POST /v1/ai-systems/{system_id}/policies/content-rules. Try them in Content Evaluation before relying on them. Evaluation providers include a keyword mock for development and model-based evaluators configured in the environment.

Executable rules across AI systems · Community Edition console · sample data

/governance/rai-rules

RAI Rules list showing tool rules with effects such as Block and Approval
Testing a content rule against a sample reply · Community Edition console · sample data

/risk/content-evaluator

Content Evaluator test result flagging a bank account disclosure as a critical privacy violation