{% extends "base.html" %} {% block title %}Playground{% endblock %} {% block body %}

Playground

Assert a fact and evaluate it against a ruleset. The decision, reason, and full rule/module trace come straight from POST /api/v1/evaluate.

{% if not configured %}
Read-only: set FATHOM_API_TOKEN and FATHOM_RULESET_ROOT to evaluate against the mounted engine.
{% endif %}
{% if scenarios %}

Seed an example

One-click load a bundled example (examples/01–05): its rules + facts are asserted into a fresh session and evaluated.

{% endif %} {% if error %}
Error: {{ error }}
{% endif %} {% if result %}

decision: {{ result.decision if result.decision is not none else '(none)' }}

reason{{ result.reason if result.reason is not none else '(none)' }}
duration_us{{ result.duration_us }}

rule_trace

{% if result.rule_trace %}
{% for r in result.rule_trace %}{{ r }}
{% endfor %}
{% else %}

(empty)

{% endif %}

module_trace

{% if result.module_trace %}
{% for m in result.module_trace %}{{ m }}
{% endfor %}
{% else %}

(empty)

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