For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating Policies

What you'll learn: How to create policies via the dashboard and the API, how to scope them to specific agents, and how to enable/disable them.


Via the dashboard

  1. Navigate to Policies in the sidebar at platform.kyvvu.com.

  2. Click Create Policy.

  3. 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).

    • Scopeagent_registration or step_execution.

    • Severitylow, medium, high, or critical.

    • Agent (optional) — scope to a specific agent, or leave blank for all agents.

    • Risk classification (optional) — scope to agents with this classification.

  4. 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 scopes.

Note: kyvvu list-policies lists 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

Last updated