← Witness

For judges

When an agent answers from a graph, Witness hands back a small graph that reproduces the answer (57,645 relationships → 22), and proves that deleting any one of its relationships changes the answer.

Witness is built on Relate, the embedded graph database, for the Relate by Neo4j hackathon.

The 30-second path

  1. Open the landing page: the agent's answer, the 22 relationships that reproduce it, and the check line; nothing to install.
  2. Open the exhibit page: the register of kept relationships, each tagged as one whose deletion changes the answer.
  3. Optional, one command: git clone https://github.com/edycutjong/witness && cd witness && uv run witness demo (needs uv; the repository opens at submission).

The receipts

57,645 → 22relationships in the air-routes graph vs in the witness (3,748 nodes → 12 nodes in the witness graph; witnesses/two-hub.manifest.json)
22 of 22deleting any one of them from the witness changes the answer; checked on relate-db and on the Relate CLI (22 of 22 change the answer)
68 → 22the answer rows bind 68 relationships (queries/two-hub-bindings.cypher); deleted from the full graph, only 20 of them change the answer, because other routes back the rest up (evidence/neo4j-compare-2026-11-24.md, targeted pass). 11 of those 20 are in the witness; the other 9 are flights of Mexican airports outside it, whose deletion adds that airport to the answer (evidence/full-graph-necessity.json). The witness keeps 22, each needed in the witness (witnesses/two-hub.manifest.json)
57,645 → 5a second case: a plausible agent mistake written for this case (the first flight matched in either direction) and the headline query disagree on IN/DEL; 5 of 5 end the disagreement (witnesses/direction-bug.manifest.json)
57,645 → 92a third: differs, a smaller repro of a wrong answer; the same mistaken query returns 13 rows where the expected answer has 12, and the repro keeps that wrong answer; 92 of 92 change the answer (witnesses/wrong-answer.manifest.json)
371 trials · 1.095 sdelete, re-run, roll back; 86 deletions kept the answer and were applied (witnesses/two-hub.manifest.json). Trials and deletions repeat exactly; wall-clock seconds do not: the landing's paste reduced in 0.998 s (evidence/demo-2026-11-24.txt), the video's take in 0.91 s (evidence/video-demo-run-2026-11-27.txt)
366.8 vs 90.2trials per second, Relate in-process vs Neo4j 2026.10.2 in Docker, median of 3 runs on one machine (evidence/neo4j-compare-2026-11-24.md)
517 tests pass · 100% coveragereal Relate; the graph store, rollback and queries are never mocked. relate pull (needs a Neo4j server) is stood in, and a few tests substitute timers, process calls, a failing CLI, a database wrapper that injects engine faults, or one reducer phase to reach rare branches (evidence/pytest-2026-11-27.txt, pytest --cov=witness, gate in pyproject.toml)
byte-identicalthe same query and seed give a byte-identical rebuild script (.cypher) on 2 runs (evidence/determinism.json)

Reproduce it

git clone https://github.com/edycutjong/witness && cd witness
uv run witness demo

The repository opens at submission; until then use the live pages above.

The whole suite against real Relate (CI and deterministic replay, not the product path): uv run pytest --cov=witness

Honest limitations

Links