Dome Systems

dome rules

Deploy, validate, simulate, and rollback authorization rules

dome rules manages the Cedar authorization rules the Gateway evaluates on every tool and model call. Validate and simulate a bundle before deploying it, then roll back to an earlier bundle if it decides something you did not intend. Refer to Rules for the policy model.

Command
Apply rulesdome rules apply [files...]
List rulesdome rules list
Show rulesdome rules show
Validate rulesdome rules validate [files...]
Rollback rulesdome rules rollback <bundle-id>
Generate rulesdome rules generate
Simulate rulesdome rules simulate

Apply rules

dome rules apply [files...]

Deploy a rule bundle from one or more Cedar files.

dome rules apply rules.cedar [flags]
FlagTypeDescription
--agentstringAgent name or ID — deploy rules scoped to this agent
--namestringFriendly name for the rule bundle

After a successful deploy, apply prints advisory warning: lines to stderr for any Dome::MCPTool reference that does not match a tool in the target workspace's persisted MCP tool catalog (typo, rename, or a tool not yet observed). Warnings never block the deploy.

List rules

dome rules list

List rule bundle history.

FlagTypeDescription
--agentstringAgent name or ID — list rules scoped to this agent
--limitintMaximum results (default: 20)

Show rules

dome rules show

Show effective rules across the full scope hierarchy.

FlagTypeDescription
--agentstringAgent name or ID — show rules scoped to this agent

Validate rules

dome rules validate [files...]

Validate Cedar rule files without deploying. Returns errors and prints catalog warnings (unknown tools or connections) to stderr. Pass --agent to run catalog checks against an agent's scope — without it, only syntax and semantic validation runs.

dome rules validate rules.cedar [flags]
FlagTypeDescription
--agentstringAgent name or ID — validate rules against this agent scope

Rollback rules

dome rules rollback <bundle-id>

Rollback to a previous rule bundle. The bundle UUID (from dome rules list) encodes the scope — no extra flags needed.

Generate rules

dome rules generate

Generate starter Cedar authorization rules.

FlagTypeDescription
--from-toolsboolGenerate rules based on registered tools
--outputstringWrite rules to file (default: stdout)

Simulate rules

dome rules simulate

Simulate an authorization decision against active rules.

FlagTypeRequiredDescription
--agentstringYesAgent ID or name
--actionstringYesAction to evaluate (e.g., mcp:call)
--resourcestringYesResource identifier
--resource-typestringNomcp_tool, llm_model, or resource (default: mcp_tool)
--eval-contextkey=valueNoEvaluation context key-value pairs (repeatable), surfaced as context.<key>
--eval-argumentsstringNoPer-call arguments as a JSON object, surfaced as resource.arguments.<key>
--actas-substringNoAct-as subject identifier
--actas-emailstringNoAct-as email
--actas-rolesstringNoAct-as roles (comma-separated)
--actas-groupsstringNoAct-as groups (comma-separated)

On this page

Was this page helpful?