<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Stale Facts on RockB</title><link>https://baeseokjae.github.io/tags/stale-facts/</link><description>Recent content in Stale Facts on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 24 Nov 2026 11:45:00 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/stale-facts/index.xml" rel="self" type="application/rss+xml"/><item><title>Zep Temporal Memory and Stale Facts: A Reproducible 30-Case Fixture (2026)</title><link>https://baeseokjae.github.io/posts/zep-temporal-memory-stale-fact-fixture-2026/</link><pubDate>Fri, 30 Oct 2026 00:00:00 +0000</pubDate><guid>https://baeseokjae.github.io/posts/zep-temporal-memory-stale-fact-fixture-2026/</guid><description>A 30-case, stdlib-only fixture that separates stale facts caused by a store&amp;#39;s invalidation policy from stale facts caused by extraction error, with the full 16-cell result matrix.</description><content:encoded><![CDATA[<p>An agent answers &ldquo;your plan is the Starter tier&rdquo; three weeks after the account moved to Enterprise. The fact is in the store. The store has timestamps. The answer is still wrong. When that happens the team usually has three suspects and no way to tell them apart: the extraction step filed something incorrectly, the store&rsquo;s invalidation rule never closed the old fact, or the retrieval query asked the wrong question. This post is a fixture that splits those three apart on paper and in code, so you can tell which one you are looking at. To be precise about the scope: what the fixture exercises is four modelled invalidation policies, not Zep or Graphiti themselves — neither product is run anywhere below. The governance version of the same argument is in <a href="/posts/anatomy-of-persistent-memory-contextnest-vs-mem0-vs-zep/">the anatomy of persistent memory</a>; this post is the measurement that argument does not carry.</p>
<h2 id="what-zep-and-graphiti-actually-claim-about-temporal-invalidation">What Zep and Graphiti actually claim about temporal invalidation</h2>
<p>The primary source is <a href="https://arxiv.org/abs/2501.13956">arXiv:2501.13956, &ldquo;Zep: A Temporal Knowledge Graph Architecture for Agent Memory&rdquo;</a>, submitted 2025-01-20 by Rasmussen, Paliychuk, Beauvais, Ryan and Chalef. All five authors are Zep-affiliated, and as of 2026-10-30 the arXiv API lists a single version, v1. The abstract reports Deep Memory Retrieval accuracy of 94.8% against 93.4% for MemGPT, and LongMemEval accuracy improvements of up to 18.5% with a 90% latency reduction against &ldquo;baseline implementations&rdquo;. Those are vendor-authored claims. This post does not re-run them, and nothing below should be read as a check on them.</p>
<p>The framework documentation is more specific about the mechanism. <a href="https://raw.githubusercontent.com/getzep/graphiti/main/README.md">The Graphiti README</a> states that facts &ldquo;have validity windows&rdquo;, that &ldquo;when information changes, old facts are invalidated — not deleted&rdquo;, and that a caller can &ldquo;query what&rsquo;s true now, or what was true at any point in time&rdquo;. Its comparison table contrasts &ldquo;explicit bi-temporal tracking with automatic fact invalidation&rdquo; against &ldquo;basic timestamp tracking&rdquo;. <a href="https://help.getzep.com/graphiti/getting-started/overview">The Graphiti docs overview</a> describes the framework as covering &ldquo;entity and edge extraction, the bi-temporal model, fact invalidation, and hybrid retrieval&rdquo;, and says edges &ldquo;include temporal metadata to record relationship lifecycles&rdquo;. Repository metadata re-read on 2026-11-24 from <a href="https://api.github.com/repos/getzep/graphiti">the GitHub REST API</a> shows Apache-2.0, 33,049 stars, last push 2026-11-24T00:19:58Z, and <a href="https://api.github.com/repos/getzep/graphiti/releases/latest">the latest release</a> tagged mcp-v1.1.4 published 2026-11-23T21:44:16Z; the 2026-10-30 read recorded 32,367 stars with v0.31.2. Metadata only: no Graphiti process, graph database or LLM extraction call was made for this article.</p>
<p>That distinction matters because documentation describes a design contract, not observed behaviour. If the paper&rsquo;s pages go deeper on what those benchmarks measure, <a href="/posts/zep-ai-agent-memory-review-2026/">the source-based review of Zep&rsquo;s paper</a> covers it; this page deliberately does not re-litigate it.</p>
<h2 id="why-vendor-benchmarks-cannot-answer-the-stale-fact-question">Why vendor benchmarks cannot answer the stale-fact question</h2>
<p>DMR and LongMemEval score end-task answers. Neither reports a stale-return rate, and neither separates an error caused by the store&rsquo;s invalidation rule from an error caused by a fact that was never extracted correctly in the first place. A model that answers a temporal question well can still be reading a superseded edge; a model that answers badly may simply have been handed the wrong fact. The paper and the framework documentation, as of 2026-10-30, do not publish a measurement that isolates the two — which is not the same as claiming nobody has measured it, only that these four artifacts do not.</p>
<p>So the useful question for a team is narrower than &ldquo;is this memory layer accurate&rdquo;: given the same 30 changing facts, does the invalidation policy change how often a superseded value comes back, and how much of the residual error is extraction?</p>
<h2 id="the-fixture-30-cases-four-policies-two-instants-two-extraction-arms">The fixture: 30 cases, four policies, two instants, two extraction arms</h2>
<p>The fixture is <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/scripts/stale_fact_fixture.py">scripts/stale_fact_fixture.py</a> — Python standard library only, no network at run time, no model, no container. Its input is a frozen dataset of 30 scripted facts, <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/fixtures/stale_fact_cases.json">fixtures/stale_fact_cases.json</a>: each case names an entity, an attribute, and two or three events carrying a value, a valid-time window and an ingestion timestamp. The fixture validates that each case&rsquo;s windows are disjoint and that at most one event covers each evaluation instant — with deliberate zero-coverage instants where the truthful answer is &ldquo;no active fact&rdquo; (20 of the 60 case-instant pairs: the ten late-arriving corrections fall into a gap between windows at 2026-08-01, and the ten time-bounded cases have nothing valid left at 2026-10-29) — so the correct answer at any moment is known by construction rather than by judgement.</p>
<p>The cases cover three change shapes. Ten are in-order updates, where ingestion order agrees with valid-time order. Ten are late-arriving corrections, where a fact for a historical window is ingested after the current value, so the most recently ingested edge is not the current truth. Ten are time-bounded validity, where the attribute simply lapsed, so the truthful current answer is &ldquo;no active fact&rdquo;.</p>
<p>Four store policies are implemented in roughly fifteen lines each, as stand-ins for design patterns rather than for any product: append-only with recency ranking, last-write-wins upsert, bitemporal invalidation (supersession stamped from <em>valid-time</em> order, an edge closed at its successor&rsquo;s <code>valid_from</code>), and bitemporal invalidation plus a query-time as-of predicate. Each policy is evaluated at two instants — &ldquo;what is X now&rdquo; at 2026-10-29 and &ldquo;what was X on 2026-08-01&rdquo; — and under two extraction conditions: a clean store, and a seeded arm in which 3 of 30 cases (10%) have the edge covering the current instant stored under a wrong attribute, modelling a mis-extraction.</p>
<p>An error is counted as extraction-attributable only when that same policy answered the same case correctly with a clean store. If the policy was already wrong with a perfect store, the error stays with the policy. That rule is what keeps the attribution from flattering either side.</p>
<h2 id="results-the-full-16-cell-matrix">Results: the full 16-cell matrix</h2>
<p>Run with <code>python3 research/evidence/zep-temporal-memory-stale-fact-fixture-2026/scripts/stale_fact_fixture.py</code>. The published output is <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/results/stale_fact_matrix.csv">results/stale_fact_matrix.csv</a>, reproduced here row for row:</p>
<table>
	<thead>
			<tr>
					<th>policy</th>
					<th>query</th>
					<th>arm</th>
					<th>n</th>
					<th>exact correct</th>
					<th>exact accuracy</th>
					<th>stale returns</th>
					<th>stale rate</th>
					<th>extraction errors</th>
					<th>policy errors</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>append_only_recency</td>
					<td>current</td>
					<td>clean</td>
					<td>30</td>
					<td>10</td>
					<td>33.3</td>
					<td>20</td>
					<td>66.7</td>
					<td>0</td>
					<td>20</td>
			</tr>
			<tr>
					<td>append_only_recency</td>
					<td>current</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>9</td>
					<td>30.0</td>
					<td>21</td>
					<td>70.0</td>
					<td>1</td>
					<td>20</td>
			</tr>
			<tr>
					<td>append_only_recency</td>
					<td>as_of</td>
					<td>clean</td>
					<td>30</td>
					<td>14</td>
					<td>46.7</td>
					<td>16</td>
					<td>53.3</td>
					<td>0</td>
					<td>16</td>
			</tr>
			<tr>
					<td>append_only_recency</td>
					<td>as_of</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>15</td>
					<td>50.0</td>
					<td>15</td>
					<td>50.0</td>
					<td>0</td>
					<td>15</td>
			</tr>
			<tr>
					<td>lww_upsert</td>
					<td>current</td>
					<td>clean</td>
					<td>30</td>
					<td>10</td>
					<td>33.3</td>
					<td>20</td>
					<td>66.7</td>
					<td>0</td>
					<td>20</td>
			</tr>
			<tr>
					<td>lww_upsert</td>
					<td>current</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>9</td>
					<td>30.0</td>
					<td>21</td>
					<td>70.0</td>
					<td>1</td>
					<td>20</td>
			</tr>
			<tr>
					<td>lww_upsert</td>
					<td>as_of</td>
					<td>clean</td>
					<td>30</td>
					<td>14</td>
					<td>46.7</td>
					<td>16</td>
					<td>53.3</td>
					<td>0</td>
					<td>16</td>
			</tr>
			<tr>
					<td>lww_upsert</td>
					<td>as_of</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>15</td>
					<td>50.0</td>
					<td>15</td>
					<td>50.0</td>
					<td>0</td>
					<td>15</td>
			</tr>
			<tr>
					<td>bitemporal_invalidate</td>
					<td>current</td>
					<td>clean</td>
					<td>30</td>
					<td>30</td>
					<td>100.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>0</td>
					<td>0</td>
			</tr>
			<tr>
					<td>bitemporal_invalidate</td>
					<td>current</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>27</td>
					<td>90.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>3</td>
					<td>0</td>
			</tr>
			<tr>
					<td>bitemporal_invalidate</td>
					<td>as_of</td>
					<td>clean</td>
					<td>30</td>
					<td>4</td>
					<td>13.3</td>
					<td>16</td>
					<td>53.3</td>
					<td>0</td>
					<td>26</td>
			</tr>
			<tr>
					<td>bitemporal_invalidate</td>
					<td>as_of</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>6</td>
					<td>20.0</td>
					<td>13</td>
					<td>43.3</td>
					<td>0</td>
					<td>24</td>
			</tr>
			<tr>
					<td>bitemporal_asof</td>
					<td>current</td>
					<td>clean</td>
					<td>30</td>
					<td>30</td>
					<td>100.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>0</td>
					<td>0</td>
			</tr>
			<tr>
					<td>bitemporal_asof</td>
					<td>current</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>27</td>
					<td>90.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>3</td>
					<td>0</td>
			</tr>
			<tr>
					<td>bitemporal_asof</td>
					<td>as_of</td>
					<td>clean</td>
					<td>30</td>
					<td>30</td>
					<td>100.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>0</td>
					<td>0</td>
			</tr>
			<tr>
					<td>bitemporal_asof</td>
					<td>as_of</td>
					<td>mis_extraction_10pct</td>
					<td>30</td>
					<td>30</td>
					<td>100.0</td>
					<td>0</td>
					<td>0.0</td>
					<td>0</td>
					<td>0</td>
			</tr>
	</tbody>
</table>
<p>Rates are percentages of the 30 evaluations in that cell; &ldquo;stale returns&rdquo; counts answers that named a real value of that attribute which was not the value asked for, as opposed to returning no fact at all. The run record is <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/first-party-fixture-run-2026-10-30.json">first-party-fixture-run-2026-10-30.json</a>: Python 3.12.3 on Linux aarch64, 2 CPUs, 480 evaluations, and 0.0042 s inside the evaluation loop, which is the only timing the script itself records. Whole-script wall time sits next to it in the same record as an external measurement rather than a script figure: five runs of the script, timed from interpreter start to exit on the same 2-vCPU host, gave 0.056-0.057 s, median 0.057 s. Sub-0.1 s numbers move with host and load — independent re-measurement during review gave 0.07 s for the same script, and a 2026-11-24 relocation check recorded 0.0051 s inside the loop and 0.07 s wall — so read both as &ldquo;well under a second&rdquo;, not as a benchmark. No product, model or graph database was executed. When these files moved into the evidence bundle, that check also re-derived the CSV byte for byte and confirmed a tampered copy still fails verification; its <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/verification-2026-11-24.json">verification record</a> carries the current file hashes.</p>
<h2 id="reading-the-matrix-policy-failure-versus-extraction-failure">Reading the matrix: policy failure versus extraction failure</h2>
<p>Change only the policy, keep extraction clean, and the current-truth question separates hard: append-only recency and last-write-wins both land at 33.3% exact accuracy with a 66.7% stale-return rate, while both bitemporal policies reach 100% with zero stale returns. All twenty clean-arm errors for the recency policies are policy-attributable, and they cluster exactly where you would expect: the ten late-arriving corrections, whose newest-ingested edge is a historical one, and the ten lapsed attributes, whose last ingested edge is expired.</p>
<p>Append-only and last-write-wins produce identical rows in every cell, and that is a finding rather than a bug in the fixture: when retrieval ranks by ingestion time and no temporal predicate is applied, keeping every historical edge and overwriting it are behaviourally the same answer. History that is stored but never queried does not protect anyone.</p>
<p>Change only the query instant and the picture inverts. Without a query-time as-of predicate, the bitemporal policy answers every as-of question with the current truth and scores 13.3% — it only succeeds on the four cases whose value had already stopped changing before 2026-08-01. Adding the predicate takes the same store to 100%. Invalidation alone fixes &ldquo;what is X now&rdquo;; it does not give you &ldquo;what was X then&rdquo;, which needs the predicate at query time, not at write time.</p>
<p>The 10% extraction arm is where the attribution earns its keep. Under both bitemporal policies, 3 of 30 current-truth answers become wrong and all three are extraction-attributable — the store is right, the fact was filed under the wrong attribute, and the query returns no current fact at all, so the stale-return rate stays at zero while exact accuracy drops to 90%. Mis-extraction under a bitemporal store shows up as silence, not as a stale value. Under the recency policies the same corruption surfaces differently: one case flips to a stale answer, because dropping the newest edge from the ranking promotes the previous one.</p>
<p>Two honest artifacts are worth naming. First, the 10% arm moves the recency policy&rsquo;s as-of score <em>up</em>, from 46.7% to 50.0%, and the bitemporal policy&rsquo;s as-of score from 13.3% to 20.0%: removing a fact can accidentally improve a coarse policy, which is exactly why single-cell deltas should not be read as quality signals. Second, the extraction arm&rsquo;s three faults are a seeded synthetic condition, not a measured extraction error rate of any product.</p>
<p>What this means operationally is narrow but useful. Instrument the two failure modes separately: log the edges your store considers currently valid for an attribute, and log whether the queried attribute had zero current edges. A zero-edge result under a bitemporal store points at extraction or entity resolution; a non-zero edge set containing a superseded value points at the policy or at a write path that never stamped supersession. One counter per failure mode will tell you which one you are paying for.</p>
<h2 id="reproduce-it-and-check-the-numbers">Reproduce it and check the numbers</h2>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git clone --depth <span style="color:#ae81ff">1</span> https://github.com/baeseokjae/baeseokjae.github.io
</span></span><span style="display:flex;"><span>cd baeseokjae.github.io
</span></span><span style="display:flex;"><span>python3 research/evidence/zep-temporal-memory-stale-fact-fixture-2026/scripts/stale_fact_fixture.py --verify
</span></span></code></pre></div><p><code>--verify</code> re-derives all sixteen cells from the frozen case file and compares them byte for byte against the published CSV, exiting non-zero on any mismatch; the CSV sha256 recorded here is <code>c1d96ab3fe5b0112e6705f0f22ffa936ce4927517c58b06b4f19da97f9953548</code>. If you edit a policy or add cases, drop <code>--verify</code> to regenerate, then read <a href="https://raw.githubusercontent.com/baeseokjae/baeseokjae.github.io/main/research/evidence/zep-temporal-memory-stale-fact-fixture-2026/results/STALE-FACT-NOTES.md">results/STALE-FACT-NOTES.md</a> for the exact commands, hashes and the two artifacts above. The script, case file, CSV and notes all live in <code>research/evidence/zep-temporal-memory-stale-fact-fixture-2026/</code>, so they stay together and the command works from any checkout. The script and dataset are first-party originals written for this post; no third-party source downloads and no credentials are included.</p>
<h2 id="what-this-fixture-does-not-prove">What this fixture does not prove</h2>
<p>It does not test Graphiti or Zep Cloud. No server was installed, no Neo4j, FalkorDB or Neptune instance was created, no extraction model was called, and no account was used. The four policies model documented patterns; the numbers describe those models and nothing about vendor runtime behaviour, latency or cost.</p>
<p>It is synthetic by construction: 30 cases with clean, disjoint valid-time windows and a single attribute per case. Real corpora bring overlapping assertions, entity-resolution ambiguity and extraction quality that no seeded 10% arm represents. Its value is as a control: if a policy cannot suppress superseded facts here, it will not do so on messy data either.</p>
<p>For choosing between vendor memory layers, <a href="/posts/mem0-vs-zep-production-guide-2026/">the Mem0-versus-Zep production guide</a> covers pricing and deployment questions this post does not touch, and <a href="/posts/agent-memory-comparison-2026/">the agent memory comparison</a> is the framework selection matrix. If you want to run the equivalent split against a real system rather than a model of one, that is the measurement still missing from this site — and from the sources cited above.</p>
]]></content:encoded></item></channel></rss>