← Latest papers
🤖 AI

Deterministic Legal Agents: A Canonical Primitive API for Auditable Reasoning over Temporal Knowledge Graphs

This contribution introduces the SAT Graph API, a canonical primitive interface that enables verifiable, deterministic legal reasoning by confining LLM uncertainty to intent translation and narrative synthesis, while all structural, temporal, and causal graph traversals are executed through reliable symbolic operations.

Original authors: Hudson de Martim

Published 2026-04-30
📖 6 min read🧠 Deep dive

Original authors: Hudson de Martim

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a complex legal puzzle, such as determining exactly what a specific law stated on a particular day in the past.

In the world of standard AI (like the chatbots we use today), the system behaves a bit like a librarian who can only guess. If you ask, "What did the housing law state in 2001?", the librarian searches the library, finds pages that look similar to your question, and hands them to you. However, here lies the problem: the librarian might grab a page from 2024, or a page from another country, or a page that was deleted years ago. The librarian is good at guessing the words, but terrible at understanding the history or the rules of the library.

This article proposes a new way to build legal AI, called Deterministic Legal Agents. Instead of a guessing librarian, they want to build a robotic archivist that follows a strict, unbreakable set of rules.

Here is how the article explains this new system using simple concepts:

1. The Problem: The "Flat" Library

Current AI treats laws like a pile of loose sheets. It does not understand that a law is part of a larger book, that books have chapters, and that laws change over time.

  • The Analogy: Imagine trying to find a specific sentence in a novel, but the AI simply grabs random sentences from the book that contain the same words. It might grab a sentence from the beginning of the book when you need one from the end, or a sentence from a draft that was discarded. In law, this is dangerous because a law that was true yesterday could be false today.

2. The Solution: The "SAT-Graph" (The Master Blueprint)

The authors have previously developed a special database called the SAT-Graph. Do not think of this as a pile of paper, but as a living, breathing family tree for laws.

  • Each law is an "element."
  • Every time a law changes, a new "version" is born.
  • Every change is caused by a specific "action" (such as the signing of a new bill).
  • This graph knows the exact history: Which is the parent law? What did it change? When did it expire?

3. The New Interface: The "Primitive API" (The Strict Menu)

The big question the article answers is: How do we let the AI speak with this complex family tree without allowing it to make mistakes?

If we allow the AI to write its own database queries (like asking it to write SQL code), it could become confused and request the wrong thing. Therefore, the authors created a canonical primitive API.

  • The Analogy: Imagine the AI is a guest in a very upscale restaurant.
    • Old Way: The guest enters the kitchen and starts shouting orders at the chef, trying to cook the food themselves. They might burn the soup or use the wrong ingredients.
    • New Way (The API): The guest can only order from a strict, pre-approved menu. The menu has specific buttons like "Retrieve the version of Article 6 from 2001" or "Show me who changed this law." The AI is not allowed to wander into the kitchen; it can only press buttons.

4. The Golden Rule: "Probabilistic Isolation"

This is the most important concept in the article. The authors recognized that AI is inherently "fuzzy" (it guesses), whereas legal facts must be "sharp" (they are either true or false).

They created a rule called Probabilistic Isolation. Think of this as a security checkpoint:

  • Zone 1 (The Fuzzy Zone): The AI is allowed to guess here. It takes your question ("What about housing?") and guesses which law you are referring to. It might say, "I think you mean Article 6, but I am only 80% sure."
  • The Checkpoint: Once the AI selects a specific law ID (like "Article 6"), it passes through a checkpoint.
  • Zone 2 (The Strict Zone): From this point on, no guessing is allowed. The AI presses a button to retrieve the 2001 version. The robotic archivist must deliver the exact text from that date. It must not guess. It must not hallucinate. It simply retrieves the exact data.
  • Zone 3 (Back to the Fuzzy Zone): Once the robot delivers the exact text, the AI is allowed to guess again to write a nice summary for you.

5. How It Works in Real Life (The Use Cases)

The article demonstrates how this works with three examples:

  • Time Travel: You ask, "What did the law state on May 20, 2001?"
    • Old AI: Might show you the law as it is today.
    • New AI: Guesses the law name, then presses the button "Retrieve Version 2001." The robot delivers the exact text from that day.
  • Detective Work: You ask, "How did the law change when 'housing' was added?"
    • Old AI: Might find the word "housing" and show you a paragraph.
    • New AI: Finds the law, examines its history, locates the exact moment "housing" was added, and shows you the text before and after the change, along with the specific bill that caused it.
  • The Ripple Effect: You ask, "Which laws did this new amendment change?"
    • Old AI: Might search for the name of the amendment in other laws (which often fails).
    • New AI: Follows the "action" trail. It sees that the amendment was a "parent" element that created new versions of other laws. It lists exactly what changed.

Summary

The article does not claim that this AI is perfect at being a lawyer. It claims to solve the reliability problem.

It builds a system where the AI is allowed to be creative to understand your question and formulate the final answer, but is forced to be a robot when searching for facts. It separates "guessing" from "fact-checking," so every piece of evidence the AI uses can be traced back to a specific, immutable dataset in the database.

It is like giving a detective a magnifying glass that shows only the truth, rather than a crystal ball that shows what might be true.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →