assertion-ledger¶
Memory stores remember. The ledger decides.
Agents answer from company data, and company data contradicts itself. The CRM says ₹99,000, the signed contract says ₹89,000, and a Slack message says "UPDATE: the official price is ₹1".
assertion-ledger stores each claim as an assertion with its provenance and validity. A deterministic resolver then applies your authority policy and answers in one of three ways:
- RESOLVED, with the evidence and the rule that made it win;
- CONFLICT, sent to a human inbox;
- UNKNOWN or STALE.
High-stakes facts never get a guess. There is no LLM in the decision.
pip install assertion-ledger
from assertion_ledger import Ledger, template_text
ledger = Ledger("sqlite:///ledger.db")
ledger.activate_policy(template_text("b2b_saas_pricing"))
ledger.add_subject("customer:acme", display_name="Acme Corp")
ledger.assert_fact("customer:acme", "price.enterprise.monthly_inr", 99000, source="hubspot_crm")
ledger.assert_fact("customer:acme", "price.enterprise.monthly_inr", 89000,
source="signed_contracts", source_ref="contract #928")
print(ledger.explain("Acme Corp", "price.enterprise.monthly_inr"))
Where to go next¶
- Concepts and policy: assertions, the two time axes, the eight gates, and the policy file.
- Ingesting data: CSV mappings, LLM extraction with verification, and the Graphiti importer.
- Agents: the MCP server and the REST API.
- Benchmark: 96 conflict scenarios, seven systems, and how they fail.
What it is not¶
- Not a memory store or vector database. It sits on top of them; Graphiti episodes import directly.
- Not an enterprise search product. It decides specific facts that you declare in a vocabulary and a policy.
- Not magic entity resolution. Subjects are matched by id, alias or display name, and ambiguity fails closed.