Check it in three minutes

The repository holds two persisted Relate stores, store/claim-graph.rl and store/messy.rl, each one file. After cargo build --release, ./target/release/claim-graph audit --store store/messy.rl prints 5 findings from the committed store, and ./target/release/claim-graph query --store store/claim-graph.rl "MATCH (n) UNWIND labels(n) AS label RETURN label, count(*) AS nodes ORDER BY label" shows what the graph holds. Every command except ingest opens the store read-only, and cargo test rebuilds both stores from the synthetic inputs and checks that the committed ones hold exactly that graph.

Inspiration

AI research agents can now run experiments and write the paper about them, and their prose reads well whether or not anything stands behind it. A sentence can cite an experiment that never ran, a run that crashed, a reference missing from the bibliography, or a pilot that a later experiment replaced. An abstract can say 74.2% while the run it cites produced 73.9%. Catching this by hand means cross-reading the draft, the bibliography and the run log line by line, which is exactly the kind of connected question a graph answers well.

What it does

Claim Graph is a command-line tool that reads a Markdown draft and a JSON Lines run log into a single-file Relate graph and checks every claim against it.

  • unsupported lists the claims with no path to a completed run or a source the bibliography lists.
  • explain shows, for one claim, each reference it makes, why that reference does or does not support it, and every supporting path.
  • trace walks a number in the text back to the metric, run and experiment that produced it, including a number that is the difference of two runs ("6.1 points above the baseline"), and shows what the experiment's other runs measured.
  • audit adds three checks: references that fail on a claim another reference supports (a citation missing from the bibliography, a crashed run), claims resting on an experiment that a chain of later experiments superseded, and numbers that the completed runs a claim cites did not produce, directly or as a difference of two of them, naming the other claims that state the right value.
  • query runs any read-only Cypher on the store, and dump prints the whole graph as sorted text.
  • --fail turns findings into exit status 3, so a research pipeline can refuse to ship a draft with unsupported claims.

How we built it

Claim Graph is written in Rust and embeds Relate through its Rust crate (version 1.2.0 from crates.io). The store is a single .rl file: the graph is rebuilt from two input files by one process, and one file is the easiest artifact for anyone to copy and inspect. Ingest writes the whole graph in one Relate transaction, and the matching of numbers to metrics runs as Cypher inside that transaction. Every answer is a Cypher query on the reopened store, opened read-only. A reference to something the inputs do not define still becomes a node (a cited key with no bibliography entry, or a run with logged: false), so the gaps are facts in the graph and the same queries find them. Parsing is deterministic: a sentence is checked when it holds a number, a comparison word, a citation or a run or experiment link, and other sentences are counted as prose. The repository includes two synthetic datasets, written by hand and labelled as synthetic, and the stores built from them.

Relate capabilities used

  • Embedded Rust API (Database::open, open_read_only, connect, query_with_params).
  • Single-file .rl store with the JSON snapshot codec.
  • Explicit transactions (begin, commit, rollback) and an explicit checkpoint.
  • Cypher: UNWIND batches with parameters, MERGE ... ON CREATE SET, EXISTS, COUNT and COLLECT subqueries, variable-length paths (*1..2 and unbounded SUPERSEDES*1..), path functions, labels and properties.

Third-party tools

  • Rust crates: clap, serde, serde_json; for tests, tempfile and relate-storage.
  • GitHub Actions for CI, with the Swatinem/rust-cache action.

AI tools

AI coding agents built Claim Graph, directed by Kesh.

  • Claude Opus 5.5 agents wrote the specification, the code, the tests and the submission material, and fixed the review findings.
  • Fable 5.2 planned the work, wrote the briefs, and checked, pushed and merged each change.
  • Antigravity (Gemini 4 Argon) read the finished build once as an adversarial reviewer; its findings were fixed by the agents above, and none of its own edits were committed.
  • CodeRabbit reviewed every pull request.

The demo video is a terminal recording of submission/demo.sh rendered to video with captions by the same agents; no output in it was typed by hand.

Challenges we ran into

  • Making the graph decide what is missing, instead of resolving the draft's references in application code first: dangling references became nodes without the relationship that would make them count, and whether each reference supports its claim is decided in Cypher.
  • Matching numbers honestly: a figure matches a metric only within the precision it was written with, so 71.3% matches 0.7128 but not 0.714; signs count, version strings and model names are not numbers, bare integers are treated as counts, and a difference counts only between completed runs the claim actually cites.
  • Relate's .rl bytes change on every rebuild, so the committed stores are checked by content: the tests rebuild them and compare a canonical dump.

Accomplishments that we're proud of

  • Support is decided by the graph: every answer is a Cypher query on the reopened, read-only store, and a reference that the inputs do not define is a node the same queries find.
  • trace explains a number that no run produced directly, such as "6.1 points" as run r-002 (0.713) minus run r-001 (0.652).
  • The committed stores are part of the test suite: cargo test (150 tests) rebuilds both and compares them by content.

What we learned

  • Whether a claim is supported is a path question, so it reads naturally as Cypher: CITES|SUPPORTED_BY|HAS_RUN*1..2 for support and an unbounded SUPERSEDES* for stale experiments, with no recursion in application code.
  • Treating a missing thing as a node without the relationship that would make it count keeps the gaps visible in the store a judge inspects, instead of hiding them in the parser.

What's next

  • Read LaTeX drafts and common experiment-tracker exports.
  • Follow claims that depend on other claims, so one broken run marks everything built on it.
  • An MCP view, through relate serve, so the agent that wrote the draft can query its own claims before it hands the draft over.

Data

All data in the repository is synthetic and written by hand; no experiment in it was run and no cited work exists.

Built With

  • clap
  • cypher
  • github-actions
  • graph-database
  • neo4j
  • relate
  • rust
  • serde
Share this project:

Updates

Submission history