lensmithLibraryGet new artifacts

Building block

  • Model:bring your own
  • Cost:up to 2 model calls per claim
Source

Checks whether each claim is actually backed by the sources it cites, sentence by sentence, and seals the result so a later edit shows.

In use

A brief card: a SUPPORTED chip, the headline “Safety decisions need policy-relevant evidence, not believable forecasts.”, and two claims underlined with the numbers 1 and 2.
A brief marked SUPPORTED, two of its claims underlined and numbered.

The machine

1 of 2

What this is

It is for anyone who publishes writing with citations, or builds a tool that writes it. It checks each citation before a reader sees it, and seals the result so a later edit shows.

Parts of the machine

Each station is one step this building block runs on a piece of writing. Open a label to see what it does.

To run your ownYour own computer is enough

Overview

What it does

Two passes. Plain code finds each cited source; then one model call per claim rates how well the source backs it. Each verdict row is sealed into a chain.

Where it is used

In Composer:

Each claim is checked against the article it cites: does the cited title exist, and do the words hold up? claim-seal is that check as an open building block; run again on the recorded answers, it agreed with all six verdicts.

How it's made

How it's made

Text + sources → Pass 1: find → Pass 2: support → Each sentence → The seal → Not sealed

Python 3.10 or newer and its standard library only: the package declares no dependencies. It was extracted from Composer, which writes short sourced briefs and checks each one before a reader sees it, with the same method, judge prompts and defaults.

Limits

  • It does not prove a claim true: a claim faithfully backed by a wrong source still passes. Its judge is a language model, so a verdict can be mistaken.

Deliver it

Deliver it

Source

Your computer is enough.

It is a Python package with no dependencies that you call from your own tool. It needs no server; a model key only for its second pass.

Needed

Your computer

Only you can open it.

Try it offline first: it plays back recorded answers, so no key is needed. For real checks, set two things: OPENAI_API_KEY (your key) and CLAIM_SEAL_MODEL (the model's name). Any OpenAI-compatible service works: set CLAIM_SEAL_BASE_URL to its address.

Public, MIT, Python 3.10 or newer, standard library only.

Run the offline demo

git clone https://github.com/lensmith-ai/claim-seal
cd claim-seal
python3 -m claim_seal check examples/brief.json examples/sources.json --judge replay:examples/replay-answers.json --out /tmp/result.json
python3 -m claim_seal verify-seal /tmp/result.json

Cost: up to 2 model calls per claim, on your model key

Receipts

Its own code: github.com/lensmith-ai/claim-seal · MIT · commit used: 331d6a0

Built with
PartWhat it is used forRole, licence and version
Python 3.10+ standard libraryAll claim-seal needs to run: plain Python, nothing else to install.runs on · Python 3.10 or newer; no other dependency
Cost records
What it is used forWhat it paid forAmount
model calls on your own keyup to 2 model calls per claimyour own bill

Get new artifacts

Privacy notice

Why I built this

I honestly wanted to know where information came from and what was considered an educated guess or opinion vs true fact. The best arguments build on reality to show us a perspective we haven't seen, plausible enough to be questioned. Evidence supports that view. I wanted to be sure the evidence was legit and where we were taking a "leap of faith" before I decided what to believe in.

Arya