TLDR: The paper introduces the SAT-Graph API, a formal query layer for the Structure-Aware Temporal Graph RAG (SAT-Graph RAG). This API uses “canonical actions” to provide deterministic and auditable retrieval of legal information, addressing limitations of traditional RAG in high-stakes legal domains. It enables precise historical queries, causal tracing, and robust reference resolution by isolating probabilistic discovery from deterministic retrieval, making AI in law more explainable and trustworthy.
The world of artificial intelligence has seen a significant shift with Retrieval-Augmented Generation (RAG) systems, which help AI models provide more accurate answers by pulling information from factual data. While RAG has been successful in many areas, its application in complex, high-stakes fields like law has faced considerable challenges. Legal documents are not just plain text; they are intricate systems with strict hierarchies, continuous changes over time, and clear chains of legislative actions.
Traditional RAG systems often treat legal texts as simple, unstructured collections. They struggle with understanding how laws evolve, failing to provide the correct historical version of a legal provision, which is crucial for legal precision. This lack of structural and temporal awareness makes them unreliable for serious legal applications.
Introducing the SAT-Graph RAG and its API
To tackle these issues, previous research introduced the Structure-Aware Temporal Graph RAG (SAT-Graph RAG). This framework models legal norms as a verifiable knowledge graph, explicitly representing their hierarchy, evolution over time, and the causal events that change them. While the SAT-Graph provides this rich, verifiable knowledge base, a key question remained: how can external systems, like AI agents, reliably interact with this structured information without losing its deterministic properties?
This is where the SAT-Graph API comes in. This new formal query execution layer is built around what are called “canonical actions.” These actions are atomic, composable, and auditable building blocks that separate the probabilistic process of discovering information from the deterministic process of retrieving it. Essentially, they provide a secure, low-level interface for querying the SAT-Graph.
What the SAT-Graph API Enables
The API offers a comprehensive toolkit for several critical functions:
- High-Precision Hybrid Search: It allows for searches that combine semantic understanding, keyword matching, and structured metadata filters, leading to highly accurate results.
- Robust Reference Resolution: It can reliably translate ambiguous natural language references (like “Article 5 of the Constitution”) into formal, unique identifiers within the graph.
- Point-in-Time Version Retrieval: Users can ask for the exact version of a law that was valid on a specific date, addressing the critical need for temporal accuracy in legal contexts.
- Auditable Causal Tracing: The API can trace the legislative events that caused a specific change in a legal norm, providing a clear and verifiable history.
This two-layer architecture, with the SAT-Graph as the knowledge base and the Action API as the secure interaction protocol, offers a new blueprint for trustworthy legal AI. It directly addresses the requirements for Explainable AI (XAI), making the system’s reasoning transparent and auditable, which is vital for high-stakes domains like law.
How Agents Use the API
Imagine an AI agent guided by a planner. This agent can break down complex natural language queries into a series of these canonical actions, forming a Directed Acyclic Graph (DAG) of tasks. For example, to answer “What was the text of Article 6 of the Constitution in 1999?”, the agent would first use an action to resolve “Article 6 of the Constitution” to its unique ID. Then, it would use another action to find the version valid in 1999, and finally, an action to retrieve the actual text of that version. This sequence ensures a fully deterministic and auditable retrieval plan.
The API is designed with core principles in mind: maximal determinism (once a formal ID is found, retrieval is guaranteed to be deterministic), composability (actions can be chained for complex workflows), and verifiability through auditability (every action returns a result with a confidence score or justification, creating a human-readable audit trail).
Also Read:
- RA–FSM: A New Approach to Hallucination-Resistant AI for Scientific Research
- Natural Language Edge Labelling: A New Framework for Controllable AI Reasoning
Beyond Legal Texts
While designed for the legal domain, the underlying principles and the generic data model used (representing documents, components, concepts, and terms) mean that the SAT-Graph and its API can be applied to other fields that deal with versioned, structured, and evolving documents. This includes technical standards, regulatory compliance documents, and complex engineering manuals – essentially, any domain where “what was” is as important as “what is.”
This work represents a significant step towards building more trustworthy and explainable AI systems for regulated domains, transforming legal information retrieval from an opaque process into a transparent, auditable one. For more technical details, you can refer to the original research paper: Deterministic Legal Retrieval: An Action API for Querying the SAT-Graph RAG.


