Document and regulation intelligence

We turn rules, contracts and filings into records your systems can check. Each field links to the passage it came from, and a person reviews every record.

What we work with

Regulatory intelligence and contract data extraction with LLMs: obligations, triggers, thresholds, exceptions and deadlines read from the text into records, each linked to the phrase it came from.

Document typeWhat we extractWhat it becomes
Legal decisions and statutesHoldings, outcomes, dates, cited authorities and the passages that support themResearch corpora, citation graphs and retrieval for legal research agents
RegulationObligations, triggers, thresholds, exceptions and effective datesObligation registers and rule models
Exchange and venue rulebooksOrder types, priority and matching rules, auctions, price bands and haltsMachine-checkable models of order handling
Technical specificationsParameters, limits, interfaces and conformance requirementsRequirement tables and conformance checks
Contracts and filingsParties, defined terms, obligations, conditions and deadlinesStructured records and obligation and deadline lists

Scanned pages are read with OCR, and each field still links to its page and passage.

  • Contracts and filings

    Parties, defined terms, obligations, conditions and deadlines, read into one record per contract or filing. Each field links to its passage and page, including on scanned copies read with OCR.

  • Technical specifications

    Parameters, limits, interfaces and conformance requirements, read into a requirements table with one row per requirement. Each row links to the clause that states it, so a conformance check cites its source.

Regulatory change and obligations registers

An obligations register lists what each rule requires, of whom and by when, one row per obligation. We read it from the regulation text, and every row links to the passage it came from.

ruleRegulation SHO, Rule 201(b)
partytrading center
obligationwritten policies and procedures reasonably designed to prevent a short sale at or below the national best bid
triggerprice ≤ 0.90 × prior close
durationrest of trigger day + the following day
source17 CFR 242.201(b)(1), linked to its phrase
reviewreviewer, time and source version
One register row, from Rule 201(b)Each field links to the passage it came from

When a rule changes

We compare the new version of the text with the one each row was read from. Rows tied to a changed passage go back to review, and each row keeps its source version and every change since.

Discuss an obligations register

Rules as code: from text to model

Rules as code writes a rule's text as a model a program can check. One example: the short-sale price test in SEC Regulation SHO Rule 201(b). The same steps apply to any clause, obligation or requirement.

From rule text to a checked propertySix steps: the rule passage, LLM extraction of fields from phrases, a linked record with every field sourced, human review of each field, a stated property of what must hold, and a check that either shows the property holds or returns a counterexample. A counterexample is traced back to the clause it breaks.Rule passageThe source textLLM extractionFields from phrasesLinked recordEvery field sourcedHuman reviewEach field checkedStated propertyWhat must holdCheckHolds, or returnsa counterexampleA counterexample is traced back to the clause it breaksFrom rule text to a checked propertySix steps: the rule passage, LLM extraction of fields from phrases, a linked record with every field sourced, human review of each field, a stated property of what must hold, and a check that either shows the property holds or returns a counterexample. A counterexample is traced back to the clause it breaks.Rule passageThe source textLLM extractionFields from phrasesLinked recordEvery field sourcedHuman reviewEach field checkedStated propertyWhat must holdCheckHolds, or returnsa counterexampleA counterexample is traced backto the clause it breaks
From rule text to a checked propertyEvery step keeps its link to the source passage

Source text, 17 CFR 242.201(b)(1)

A trading center shall establish, maintain, and enforce written policies and procedures reasonably designed to:

(i) Prevent the execution or display of a short sale order of a covered security at a price that is less than or equal to the current national best bid if the price of that covered security decreases by 10% or more from the covered security's closing price as determined by the listing market for the covered security as of the end of regular trading hours on the prior day; and

(ii) Impose the requirements of paragraph (b)(1)(i) of this section for the remainder of the day and the following day when a national best bid for the covered security is calculated and disseminated ...

Extracted record

ruleRegulation SHO, Rule 201(b)
triggerprice ≤ 0.90 × prior close
baselinelisting market close, prior day
restrictionno short sale at or below national best bid
durationrest of trigger day + the following day
exceptions(b)(1)(iii)(A) and (B), extracted as separate records
source17 CFR 242.201(b)(1)

Each field keeps a link to the exact phrase it came from. Point at a field or a phrase to see the pair.Each tag in the text names the field it became.

Source: SEC Regulation SHO Rule 201, 17 CFR 242.201(b)(1)Extracted by an LLM, reviewed by a person

A stated property, then a check

Once the record is reviewed, we write down what the rule requires and test the model against it with property-based testing: generated cases search for one that breaks the stated property.

Property, stated in plain language and encoded in the model

Once the trigger fires, no short sale order executes or displays at or below the national best bid until the end of the following day, except as (b)(1)(iii) allows.

  • Boundary cases

    Checks start where the text draws lines. A fall of exactly 10% triggers the restriction, because the rule says "10% or more". A trigger in the last minutes of the session carries the restriction through the next day.

  • Generated sequences

    We generate sequences of quotes, orders and cancellations around the trigger and run each one through the model. Any sequence that breaks the property comes back as a counterexample, with the clause involved.

  • Recorded history

    The same model can also run over the U.S. equity trade and quote history from 2018 that Rillor holds, to compare trigger and duration logic with recorded prices as well as generated cases.

The result is one of two outcomes. The property holds on the model, or the check returns a concrete sequence of events that breaks it, traced back to the clause in the source text.

Market rules as checkable models

We model how a trading system accepts, prioritizes, matches and cancels orders, and how scarce capacity is allocated. Then we state the properties it should hold and search for counterexamples.

What we test

  • Priority rules such as price-time priority, where the best price fills first and orders at the same price fill in the order they arrived.
  • Properties such as "every order shown in the book can execute" and "moving the price requires capital at risk".
  • Counterexample search: sequences of orders and events that break a stated property.
  • Timing and sequencing: order arrival, cancel races and stale state.
  • Paths to manipulation or disruption through a venue's public interfaces.
  • Repairs: proposed rule changes, checked so normal operation keeps working.

Where we apply it

  • EquitiesOrder types, price-time priority, opening and closing auctions, Limit Up-Limit Down price bands and short-sale rules such as Rule 201.
  • FuturesMatching and allocation rules, price limits and trading halts.
  • Decentralized exchangesOn-chain order books and perpetual futures, including matching, liquidation and funding rules.
  • Compute capacitySpot, preemptible and reserved pricing, interruption rules, reservation windows, and who gets capacity when it runs short. Rillor Compute Index
Discuss a rulebook

The same evidence rule in production

Two of our own systems hold every extracted fact to its source passage.

  • Grellum

    Agentic legal research. Every citation in an answer must match the retrieved source passage, across the full corpus.

    Every citation checked against the source passage it came from

    grellum.com
  • Public-records platform

    Archives public procurement records and regulation text, extracts document text, including OCR, and tracks changes, so every record links back to the document and version it came from.

    Every record links to the document version it came from

    Public-records intelligence

Extraction accuracy and human review

The LLM proposes each field. A reviewer accepts it before the record is used.

  • What the reviewer seesEach proposed field beside the passage it came from, with the phrase highlighted.
  • What the reviewer doesAccepts, corrects or rejects each field.
  • What the record keepsThe reviewer, the time, the source version and every change since.
  • When the source changesRecords that depend on the changed passage go back to review.
  • Where corrections goInto the test set for the next extraction run, so a repeated error is caught before review.
  • Documents from outside sourcesDocuments reach an extraction agent marked as data from outside, never as its instructions. Text planted in a document to steer the agent is indirect prompt injection, one of the attacks we test agents against. Agentic security
Test extraction on your documents

Common questions

  • How is this different from intelligent document processing?

    Our work starts from text that sets rules, obligations or requirements. Every field keeps a link to the exact phrase it came from, and a person reviews every record before it is used. A rule can go one step further, into a model checked against stated properties.

  • Can you read scanned pages?

    Yes. Scanned pages are read with OCR, and each field still links to its page and passage, as it does in a text document.

  • What happens when a regulation changes?

    We compare the new version of the text with the one each record was read from. Records tied to a changed passage go back to review, and each record keeps its source version and every change since.

Notices

SI outputs. Superintelligence (SI) outputs can be wrong. Important decisions should include human review.

Bring us the documents you rely on.

Send a sample of the rulebooks, regulations, contracts or filings you work from and the fields you need from them.