Skip to main content
Trace Governance turns a request hierarchy into a read-only passport: which rules matched, what security and harness risks appeared, how evaluations scored, and which policy controls those findings implicate. Open it from Trace detail → Governance tab in the hierarchy explorer. This is operational governance from production telemetry — not a questionnaire-based GRC product.

Prerequisites

  • A project with a working telemetry source (traces)
  • For rule matches and stored evaluations: the OpenLIT intelligence ClickHouse binding for the environment
  • Optional: a prior AI Analysis run so Otter prompt_injection / tool_misuse findings can merge into the same report

Governance tab on a trace

  1. Open a trace from Telemetry → Traces (or from a widget / Otter pill).
  2. In the hierarchy explorer, select the Governance tab (shield icon).
  3. Review:
    • Risk summary and session metrics (spans, tools, errors, cost when reported)
    • Security & policy findings (deterministic checks + evaluation fails + Otter security dims when available)
    • Matched rules with links into the Rule Engine
    • Policy controls mapped to NIST AI RMF, EU AI Act, and OWASP ASI categories
    • Evaluations stored for spans in the tree
  4. Click a span chip to jump selection in the hierarchy.
  5. Use Export JSON to download a passport envelope (schema version, report_id, report body).
Each report includes a stable report_id. Stamp the same value on CI or release metadata with the OpenTelemetry attribute openlit.governance.report_id when you want exports correlated to a build.

What the report includes

Large trees may truncate rule evaluation and evaluation queries; the UI shows a truncated note when that happens.

Extending policy pack coverage

Policy control mappings live as one file per framework under the OpenLIT client:
To deepen coverage for an existing framework, append controls to that framework’s file (control_id, title, finding_categories, optional min_severity / rationale). To add a new pack:
  1. Create policy-packs/<name>.ts with definePolicyPack({ id, framework, version, controls }).
  2. Import it in policy-packs/index.ts and append it to POLICY_PACKS.
  3. If the framework id is new, extend GovernancePolicyFramework in types/governance-report.ts.
The Governance tab and passport export pick up registered packs automatically — no other wiring.

Rule Engine fields for coding agents

Governance and the Rule Engine condition builder share extended fields so policies can match coding-agent and tool attributes, including:
  • gen_ai.tool.name / gen_ai.tool.call.name
  • coding_agent.client
  • coding_agent.policy.permission_mode
  • coding_agent.content_capture_mode
  • coding_agent.user.classification
  • coding_agent.session.outcome
  • coding_agent.tool.name
Author rules in the Rule Engine, then confirm matches on the Governance tab for a live trace.

APIs

Enterprise deployments audit report views and passport exports (metadata only — never raw prompts or secrets).

AI Analysis

Run Otter analysis so prompt injection and tool misuse fold into the passport

Rule Engine

Author conditions on coding-agent and tool fields that Governance will surface