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

Effective View

See exactly which rules apply to a specific agent — baseline plus any agent policy combined.

{% include "policy_nav.html" %} {% if error_message %}

{{ error_message }}

{% endif %}

Select Agent

{% if agent_id and not agent_record %}

Agent "{{ agent_id }}" not found.

{% elif not agent_id and not effective_rules %}

Select an agent above to see its effective rules.

The effective view shows the combined baseline + agent policy rules that apply to a specific agent.

{% else %}

{% if agent_record %}Policy Stack for {{ agent_record.agent_id }}{% else %}Baseline Policy (no agent selected){% endif %}

{% for layer in effective_stack %} {% endfor %}
OrderPolicyTypeRules
{{ layer.load_order }} {{ layer.name or layer.policy_id }} {{ "Baseline" if layer.policy_type == "global" else "Agent" }} {{ layer.rule_count }}
{% if effective_rules %}

All Effective Rules ({{ effective_rules|length }})

These rules are evaluated in order when this agent performs an action.

{% for rule in effective_rules %}

{{ rule.name }}

{% if rule.description %}

{{ rule.description }}

{% endif %}
{{ rule.effect }} {{ "Baseline" if rule.source_type == "global" else rule.source_policy }}

{{ rule.category_label }} {{ rule.action_type }}

{% if rule.constraint_rows %}
{% for row in rule.constraint_rows %}
{{ row.label }}
{% if row.monospace %}{{ row.value }}{% else %}{{ row.value }}{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}

No rules loaded for this agent.

{% endif %} {% endif %} {% endblock %}