Creating Policies
What you'll learn: How to create policies via the dashboard and the API, how to target them at specific agents, and how to enable/disable them.
Via the dashboard
Navigate to Policies in the sidebar at platform.kyvvu.com.
Click Create Policy.
Fill in the form:
Name — a descriptive name (e.g. "No PII to external LLMs").
Rule type — select from the available rules. The form dynamically renders parameter fields based on the rule's schema.
Parameters — configure the rule (e.g. regex patterns, step types, field names).
Enforcement point —
agent_registrationorstep_execution.Severity —
low,medium,high, orcritical.Agent (optional) — target a specific agent, or leave blank for all agents.
Risk classification (optional) — target agents with this classification.
Click Save.
The policy takes effect within the policy TTL window (default: 5 minutes). No agent restart required.
Via the API
Response:
Scoping to an agent
Scoping to a risk classification
Listing available rules
Before creating a policy, you can list all available rule types (the building blocks for policies):
Each rule includes its description, parameter schema, and applicable enforcement points.
Note:
kyvvu list-policieslists your active policies (instantiated rules with parameters), not the available rule types. Use the API endpoint above to discover what rules you can build policies from.
Enabling and disabling
Policies can be toggled without deletion:
Disabled policies are skipped during evaluation. Re-enable by setting enabled: true.
Deleting policies
Deletion is a soft delete — the policy is marked as deleted but retained for audit purposes.
Next steps
OWASP Default Template — the 8 pre-built security policies
Compound Policies — combine rules with
all_of,any_of,notBuilt-in Rules Reference — all 27 rules and their parameters
Last updated
