Manuscript Offprint

arXiv:2610.17719

Keep Your Receipts: Trustworthy Cleanup of Agent-Built Knowledge Graphs

Vishisht Choudhary

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Vishisht Choudhary

Technical University of Munich

Preprint; the camera-ready for the NeurIPS 2026 workshop “Who Verifies the Agents?” may differ.

Abstract

Agents build knowledge graphs as memory, and building them has become easy. Maintaining them has not. When a source is retracted, overruled, or erased, everything built on top of it, entity merges, entailed edges, community summaries, has to be re-examined, and the maintainer must choose between deleting too much and deleting too little. Deployed pipelines delete only the directly extracted facts. On our corpus that reduces contaminated queries from 32.2% to 28.0% under a real retraction and leaves predicate revocation unchanged at 36.8%. Rebuilding is no repair for a constructor that samples: two builds of the same 300-document corpus differ in 29,475 artifacts, five times the 6,248 that removing the 61 retracted documents changes. PolyGraph instead asks the constructor for receipts: for every artifact, alternative bundles of source evidence, each claimed sufficient on its own, emitted in the call that creates the artifact. Cleanup is then set arithmetic over the receipts, milliseconds on a 24,381-artifact graph, with no model calls. Because receipts are the model's own self-report, a re-derivation audit checks them by deleting the cited evidence and testing whether the constructor still produces the artifact. The audit finds that a receipt is trustworthy when it is shaped like the claim it backs. Merge receipts, each backing one narrow claim, agree with re-derivation 68% and 85% of the time. Summary receipts, elicited per sentence but stored as one flat list for the whole text, are wrong about two thirds of the time under the two graded deletions and 41% of the time pooled over ten further random retractions, almost always by keeping dead content. Eliciting one receipt per sentence instead gives receipts that are 100% and 88% faithful and lets cleanup keep 33 of 35 touched summaries by removing only their dead sentences. The layer ordering and the direction of the errors hold under a second oracle model, a claim-blind prompt, a second domain and a second constructor. Distrusting the summary layer cuts contaminated queries to 0.4% and 0.8% while retaining 99.8 to 100% of the recall a perfect maintainer would return.

1 Introduction

Knowledge graphs are becoming the ground truth for agentic memory systems, and constructing them has become easy. Maintaining them has not. This paper is about one part of maintenance: removing an invalidated source from an agent-built graph without also removing knowledge that still stands, and without rebuilding the graph to find out which is which.

The difficulty has a simple shape. Two corpora X and Y support an inferred fact Z. When X is retracted, deleting X's own statements is easy, but Z must be re-examined: perhaps Y alone justifies it, perhaps not. Once further deductions are built on Z, each fed by further sources, the cost of deciding

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Who Verifies the Agents? Toward Reliable Agent Development.

Figure

Figure 1: Two real chains from the corpus. Deployed deletion removes only the extracted claims (dashed). The entity merge keeps one evidence source from a paper that still stands, so it is correctly retained (green); five of five re-derivations agree. The entailed edge and the summary rest only on retracted evidence, mention no retracted paper, and keep reaching the retriever (red). Support labels delete the edge with one disjointness test. The summary's label wrongly claims it still stands, the failure Section 6 measures; the layered policy of Section 6.4 removes it.

what still stands grows with every layer. Figure 1 shows two real instances from our corpus. The maintainer has two ways to fail. Deleting everything downstream of the retraction destroys artifacts that a second, untouched derivation still supports. Deleting only the directly extracted facts, which is what deployed pipelines do, leaves most of the contamination in place.

Existing database systems each solve half of the problem. Versioned stores can rewind to any past state but track no dependencies between items, so a retraction can be undone but never propagated. The classical propagation algorithms [Gupta et al., 1993, de Kleer, 1986, Green et al., 2007] would cascade it exactly, but they consume a justification record that only a deterministic engine can write; a language model does not produce one, and re-running the model cannot recover it (Section 5). The pipelines that actually build agent graphs [Edge et al., 2024, Guo et al., 2024] store provenance and use it for nothing beyond deleting the directly extracted facts. On our corpus that cleanup reduces contaminated queries from 32.2% to 28.0% under a real retraction, about one eighth of the problem, and under predicate revocation it changes nothing, 36.8% before and after, because the damage sits in derived edges and summaries rather than in the facts.

PolyGraph closes the gap with two steps. First, the constructor must emit a receipt for every artifact in the same call that creates it. A receipt is a support label [de Kleer, 1986]: a set of alternative evidence bundles over source assertions, each claimed sufficient on its own. Cleanup then needs no model calls, because the information that removal requires was stored before it was needed; processing a withdrawal is set arithmetic over the receipts, 1 to 21 ms on our whole 24,381-artifact graph. Second, because the receipts are the model's own self-report, a re-derivation audit grades them: it deletes the cited evidence and asks whether the constructor, shown only what survives, still produces the artifact. It is important to keep your receipts, and just as important to check who wrote them.

The audit’s verdict is that trust depends on the shape of the receipt. At the merge layer, where each receipt backs one narrow identity claim, the receipts are trustworthy. At the summary layer, where one flat receipt has to vouch for several sentences, they are wrong about two thirds of the time, almost always by keeping content that no longer re-derives. A controlled re-elicitation traces most of that failure to the shape of the receipt rather than to the model: asked for one receipt per sentence, the same constructor writes receipts that are 100% and 88% faithful, and cleanup can keep the sentences that still stand instead of deleting whole summaries. The general lesson is that a receipt is trustworthy when it is shaped like the claim it backs, so an agent’s outputs should decompose into narrow, falsifiable sub-claims, each with its own receipt.

The paper contributes:

  • the receipt-and-audit protocol, with a distinction between the liveness the audit measures and the source-groundedness a compliance setting would need (Section 4);

  • the measurement that replay cannot stand in for it on a sampling constructor: resampling noise is five times the signal a deletion leaves (Section 5);

• the layer-dependent faithfulness result, its receipt-shape explanation, and the sentence-level receipts that repair it (Sections 6.1 to 6.2);

• evidence that the result is not an artifact of the sample, the oracle, the corpus, or the constructor: ten further pooled deletions, a second oracle model and a claim-blind prompt, a second domain (Supreme Court opinions) and a second constructor (Section 6.3);

• the retrieval-level consequence: acting on the verdict cuts contaminated search results from 32 to 37% of queries to 0.4% and 0.8% while keeping 99.8 to 100% of the recall a perfect maintainer would return, and what the receipts cost to write and store (Section 6.4).