Inspiration
Agents (and teams) accumulate context over time: decisions, facts, failed attempts, handoffs. Finished work is rarely written down, and flat logs re-surface every claim at equal weight. The result: a superseded decision keeps getting re-trusted, and two sources that can't both be right sit side by side with no signal. I wanted an agent memory where "what do I actually believe" is a query you can trust — not a text log you re-read.
What it does
CrossCheck is a persistent, single-file memory for agents built on Relate by Neo4j (embedded Cypher graph database). A memory is a graph node (kind: decision/fact/attempt/handoff, with source, timestamp, confidence, status). The relationships that matter are first-class edges:
CONTRADICTS— two active claims that can't both be trueSUPERSEDES— a newer decision overturns an older oneSUPPORTS— one claim bolsters anotherABOUT— which topic a memory concerns
Recall becomes a traversal, not a scan. Ask for context and you get ranked, trustworthy results — and everything else is flagged. conflict_scan returns every active claim contradicted by another active claim (CONFLICT) and every memory that still points at a superseded one (STALE). The conflict is a first-class object you can query and count, not a line buried in a log.
How I built it
Python + Relate by Neo4j. The whole memory lives in one .rl file that runs inside your process — no server, no signup, no API key. Cypher constraints enforce unique memory/entity ids; recall and the conflict scan are short MATCH queries over typed edges. CLI: record, recall, audit, supersede.
Challenges I ran into
The two most instructive: propagating on-change event semantics for UI wiring was contrived, and mapping "a flat log hides conflicts" into a graph model meant deciding which relationships are edges versus properties. Supersession had to stay visible (old memory keeps its history but is flagged stale) rather than being deleted — that's what makes the audit honest.
Accomplishments that I'm proud of
- The conflict/staleness scan is topological — it would be a full table scan in a flat store.
- One versionable file that a judge can clone, run, and inspect in minutes.
- A first-class CLI + README that answers "how and why" the graph is used.
What's next
Confidence ranking, cross-product memory (Confluence decisions linked to issues), a stale/conflict watcher, and a Relate WASM in-browser demo so judges can explore the graph with zero install.