Knowledge Base updated: 2026-11-22
Tirith knowledge base
Tirith is a command-safety and supply-chain security tool. It evaluates commands and execution context, applies policy and risk decisions, protects agent and MCP interactions, and records audit and provenance data.
Its primary parts are the analysis and rule engine, CLI workflows, agent/MCP gateway protections, artifact and registry intelligence, execution capsules, and audit/reporting surfaces.
Critical state includes policies and suppressions, execution receipts and provenance records, audit/event storage, ThreatDB feed data, and configuration used by CLI and integration workflows.
flowchart TD
CLI[CLI workflows] --> Engine[Command safety engine]
Agent[Agent context] --> MCP[MCP gateway]
MCP --> Engine
Engine --> Rules[Rule detection]
Rules --> Policy[Policy and verdicts]
Policy --> Risk[Risk scoring]
Risk --> CLI
Engine --> Capsules[Execution capsules]
Capsules --> Provenance[Execution provenance]
Engine --> Artifacts[Artifact analysis]
Artifacts --> Intel[ThreatDB and registry intelligence]
Intel --> Policy
Engine --> Audit[Audit data]
Provenance --> Audit
Audit --> Reports[Reporting outputs]
Glossary
- ThreatDB — Tirith's threat-intelligence data and feed source for package and ecosystem correlation.
- Capsule — a platform-specific isolated execution boundary for child processes.
- Receipt — a persisted record used to communicate and verify an execution or decision outcome.
- Command card — contextual information presented when agent-originated activity requires safety guidance.
- Verdict — the actionable decision resolved from findings, policy, approvals, and suppressions.
Codebase-wide invariants
- Safety findings must resolve through policy and scoring before they become user-facing execution decisions; evidence:
**/*policy*,**/*verdict*, and**/*risk*. - Agent and MCP-originated requests are subject to the same safety-analysis boundary as CLI-originated commands; evidence:
**/*mcp*and**/*agent*. - Execution isolation and provenance records must remain associated with the child execution they describe; evidence:
**/*capsule*,**/*provenance*, and**/*receipt*. - Threat intelligence is data-driven and must remain traceable to its manifest/feed inputs; evidence: threatdb-manifest.json and
**/*threatdb*. - Audit/reporting outputs must preserve machine-readable safety information while applying their output-handling rules; evidence:
**/*audit*,**/*sarif*, and**/*report*.
Routing table
**/*command*,**/*shell*,**/*execution-state*-> Command safety engine**/*rule*,**/*detect*,**/*credential*-> Rule detection system**/*policy*,**/*verdict*,**/*suppress*,**/*approval*-> Policy and verdict decisions**/*risk*,**/*score*,**/*explanation*-> Risk scoring and explanations**/*cli*,**/*command-line*-> CLI and user workflows**/*check*,**/*audit*,**/*incident*,**/*pending*-> Interactive safety workflows**/*install*,**/*onboard*,**/*completion*,**/*doctor*-> Installation and self-management**/*agent*,**/*prompt*,**/*mcp*-> Agent and MCP protection**/*mcp*,**/*gateway*,**/*resource*,**/*output-filter*-> MCP gateway and content controls**/*agent*,**/*prompt-injection*,**/*command-card*-> Agent context and prompt safety**/*package*,**/*registry*,**/*artifact*,**/*supply-chain*-> Supply-chain and artifact security**/*archive*,**/*wheel*,**/*quarantine*,**/*resolver*-> Artifact analysis lifecycle- threatdb-manifest.json,
**/*threatdb*,**/*osv*,**/*registry*-> Threat intelligence and registry correlation **/*capsule*,**/*isolation*,**/*provenance*-> Execution isolation and provenance**/*linux*,**/*darwin*,**/*macos*,**/*windows*,**/*capsule*-> Cross-platform execution capsules**/*provenance*,**/*receipt*,**/*checkpoint*,**/*trusted-child*-> Execution provenance and trust**/*audit*,**/*event*,**/*dashboard*,**/*report*-> Audit, observability, and reporting**/*audit*,**/*sarif*,**/*redact*,**/*report*-> Audit data and reporting outputs