Skip to the content

Dead Certain

Dead Certain

LLMs guess. The dead are certain.

A language model drafts the rules from a rulebook once, at build time. From then on a small engine decides, in your browser, and every verdict comes with its proof. Here is one, worked out as this page loaded.

Paid in part. ₹1,32,000 of ₹2,10,000 will be paid

Claim ledger
ItemClauseAmount
Hospital bill₹2,10,000
5.3− ₹12,000
4.2− ₹5,000
4.2− ₹28,000
6.1− ₹33,000
Amount payable₹1,32,000

A sample claim on a sample policy written for this project. The verdict was worked out in your browser.

From rulebook to verdict

Three steps, and only the first uses a language model. A person checks its output before anything ships.

  1. The rulebook

    Each app starts from a rulebook written in plain words. This is clause 4.2, which the rule below cites.

    Clause 4.2 Room rent limit

    The room rent limit is 1% of the sum insured for each day. If the room rent for a day is higher than the limit, the policy deducts the difference for every day charged. Other charges then reduce in the same ratio: the policy pays only the limit divided by the room rent, multiplied by the other charges, and deducts the rest. If the room rent is at or below the limit, nothing is deducted under this clause.

    Read clause 4.2 in the rulebook
  2. The rules

    A model drafted each rule from its clause, once, at build time, and a person checked it against the clause.

    ROOM-03

    The room rent limit is 1% of the sum insured for each day.

    round(year_cover * 0.01 / 100) * 100

    Cites clause 4.2

  3. The verdict

    The engine applies the rules to the answers and returns the verdict above, with its proof. Nothing in it is guessed.

    Open the proof above

The specs, the engine and the rules were written with Kiro. The interface was built with Claude Code.

The .kiro folder

Two apps on the same engine

Claim Check

Works out how much of a hospital bill a sample health policy pays, with the clause behind every deduction.

Consultation: a policyholder answers questions and gets the amount paid.

Pre-Flight

Checks a public GitHub repository against a submission checklist, with the rule and evidence behind each check.

Audit: a developer submits a public GitHub repository and gets pass or fail for each checklist item.

Build a third app

The two apps share a skeleton. One command creates a third app from the template, with a starter rulebook you replace with your own.

pnpm new-app <name>

Read "Add a third app" in the README

No guesses were made in the production of this verdict.