{% extends "base.html" %} {% block title %}Policy | Suvra{% endblock %} {% block content %}

Policy Viewer

Read-only view of active policy configuration.

Environment
{{ active_environment }}
Policy Path
{{ policy_path }}
Last Modified
{{ modified_at }}
Workspace Root
{{ workspace_dir }} (prefix: {{ workspace_prefix }})
Workspace Absolute Path
{{ workspace_root }}
{% if not is_scoped_dir %}

Single-file mode. To use the scoped policy browser, set SUVRA_POLICY_PATH to a directory of scoped policy files.

Policy Content

{{ policy_content }}
{% endif %}
{% if is_scoped_dir %}

Scoped Policy Files

Each file targets a specific scope level. Rules are evaluated in scope order: global → tenant → business_unit → domain → workspace → agent → environment.

{% for sp in scoped_policies %} {% else %} {% endfor %}
File Scope Level Scope Identity Default Mode Rules
{{ sp.file }} {{ sp.scope_level }} {{ sp.scope_identity }} {{ sp.default_mode }} {{ sp.rule_count }}
Rules ({{ sp.rule_count }}) {% if sp.rules %} {% for rule in sp.rules %} {% endfor %}
Rule ID Effect Action Type Constraints
{{ rule.id }} {{ rule.effect }} {{ rule.type }} {{ rule.constraints | tojson if rule.constraints else '—' }}
{% else %}

No rules defined.

{% endif %}
No scoped policy files found.
{% endif %}

Built-in Templates

Read-only templates available for onboarding and environment bootstrap.

{% for item in templates %} {% else %} {% endfor %}
Template File Path
{{ item.name }} {{ item.path }}
No templates found.

OpenClaw Starter Templates

Role-based starter profiles. Set SUVRA_POLICY_PATH to one of these files.

{% for item in openclaw_templates %} {% else %} {% endfor %}
Template File Path
{{ item.name }} {{ item.path }}
No OpenClaw starter templates found.
{% endblock %}