Policy Registry
Browse available policies:Installing Policies
Removing Policies
Example: research-agent Policy
Theresearch-agent policy is designed for AI agents doing research tasks — web search, reading documentation, summarizing content.
Example: mcp-server Policy
Themcp-server policy adds safety rules for MCP tool calls.
mcp-destructive: Tools containingdelete,destroy,remove,dropmcp-dangerous: Tools containingstop,restart,execute,modify
Team Policy Sync
Sync policies from a git repository. This is useful for teams that want to share policies without manual distribution.One-Shot Sync
Continuous Sync
Run in the background and poll for updates:Example Team Repo
.yaml files in the repo root are loaded.
Security Notes
- HTTPS only —
rampart policy synconly acceptshttps://URLs (no SSH git URLs) - SHA-256 verification — policies are checksummed on fetch
- Deny-wins — synced policies can’t weaken your global policy
- Disable with env var —
RAMPART_NO_SYNC_POLICY=1to skip synced policies
Creating Community Policies
Want to contribute a policy to the registry?-
Write the policy
-
Test it
-
Submit to the registry
Open a PR to peg/rampart-policies with:
- Policy YAML file
- README describing the use case
- Test suite (JSON format)
Policy Precedence with Community Policies
When community policies are loaded:- Global policies (
~/.rampart/policies/*.yaml) load first - Community/synced policies load next
- Project policies (
.rampart/policy.yaml) load last - Deny always wins — if any policy denies, the action is denied
See Also
- Writing Policies — Full YAML schema reference
- Profiles — Built-in policy presets
- Project Policies — Team-shared repo-specific rules
- Testing Policies — Validate with
rampart testandrampart bench