Manuscript Offprint
arXiv:2611.02912A State Change Is Local, Its Consequences Are Not: Dependency-Aware State Revision for Long-Term Agent Memory
Abstract
Long-lived agents rely on persistent memory of users, tasks and decisions, and this memory must stay consistent with a world that keeps changing. When an upstream fact changes, however, memory systems can revise the contradicted memory itself while the beliefs, plans and actions derived from it remain accepted, even though they have lost their support. We therefore formulate dependency-aware state revision, which asks not only what changed but also which dependent states should no longer be trusted. To address it, StateGraph maintains an evolving state dependency graph whose edges are recovered from interaction histories. Its core design is counterfactual verification: each candidate edge is tested by asking whether the dependent state would survive the loss of its premise, which separates support dependence from semantic relatedness, and revision then invalidates a dependent state only when a strict dependency fails and no independent support path survives. To test this design, we introduce StateChangeBench, a controlled benchmark of 50 author-constructed cases annotated with cascade depth, hard negatives and action consequences. On it, StateGraph's Impact-F1 margin over a CUPMem reimplementation is 6.9 percentage points at depth 1 and 26.0 at depth 3+. On public long-term memory benchmarks, its point estimates are comparable to or higher than those of the evaluated baselines on most datasets. These results provide initial evidence that explicit dependency tracking can improve selective memory revision under changing conditions.
1 Introduction
Long-lived agents must update persistent state as availability, tasks, permissions and bookings change. Existing systems consolidate facts (Chhikara et al., 2025), link notes (Xu et al., 2025), page context (Packer et al., 2023), track temporal validity (Rasmussen et al., 2025) or adjudi-
cate state conflicts with propagation-aware search (Chao et al., 2026). These systems address consolidation, temporal validity and state conflicts, but do not necessarily identify which downstream conclusions lose support after an upstream revision.
Consider states : the user is available Friday afternoon, and : a 3pm review is feasible, with pending action : schedule the review. The user then mentions a Friday-afternoon flight, which invalidates without directly contradicting , leaving unsupported but still accepted, so item-level revision can let proceed (Figure 1). A state change is local, but its consequences need not be. Knowledge-editing benchmarks show a similar gap between recalling a changed fact and reasoning about its implications (Zhong et al., 2023; Cohen et al., 2024).
We therefore formulate dependency-aware state revision: identify changed states and the downstream beliefs, plans and actions requiring revision. Three challenges arise. Discovery must recover dependencies that are rarely stated explicitly; verification must distinguish support dependence from semantic similarity; and propagation must revise consequences without invalidating weakly dependent states, which should be flagged instead, or independently supported ones.
StateGraph addresses these challenges in turn. Bounded candidate discovery proposes dependency pairs from structural, provenance and linguistic cues rather than comparing all state pairs. Its core design is counterfactual verification: each candidate is tested by asking whether the dependent state would survive the loss of its premise, which grades the edge as STRICT, WEAK or NONE instead of accepting topical association as dependence. Propagation then follows verified edges and invalidates a dependent state only when a STRICT dependency fails and no independent support path survives, flagging weakly dependent states as UNCERTAIN.
Existing benchmarks evaluate recall, temporal

Figure 1: A state change is local, but its consequences are not. The new observation contradicts only . Left: a system that revises only the contradicted memory marks stale but retains , permitting the pending action to confirm an infeasible meeting. Right: StateGraph propagates along verified dependency edges and returns the pending action for replanning.
reasoning and obsolete-information avoidance (Wu et al., 2025; Uddin et al., 2026; Hu et al., 2025), but lack joint labels for dependencies, downstream targets, unaffected states and action consequences. To test the design, we introduce StateChangeBench, a controlled benchmark of 50 author-constructed cases that provides these labels. On it, StateGraph's Impact-F1 margin over our CUPMem reimplementation is 6.9 percentage points at depth 1 and 26.0 at depth 3+, and on public memory benchmarks its point estimates are comparable or higher on most datasets. These results provide initial evidence that explicit dependency tracking can improve selective memory revision when upstream facts change; establishing this beyond a small controlled benchmark requires larger independent evaluations.
We make four contributions.
-
We identify how local state changes invalidate downstream beliefs, plans and actions through latent dependencies without directly contradicting them.
-
We introduce StateGraph, whose main methodological contribution is recovering support dependencies from interaction histories and verifying them counterfactually; its propagation stage applies established dependency-directed revision with explicit support and scope checks rather than invalidating every reachable state.
-
We introduce StateChangeBench, a controlled 50-case benchmark annotating dependency structure, cascade depth, hard negatives and action consequences, with metrics for dependency
recovery, multi-hop impact and over-/under-invalidation.
- We evaluate StateGraph against eight memory baselines and two ported-mechanism variants, with ablations isolating verification, alternative support, conservative revision and propagation (§6).
Graph-based memory. HippoRAG and HippoRAG 2 combine knowledge graphs with Personalized PageRank for relational retrieval (Jiménez Gutiérrez et al., 2024; Gutiérrez et al.,
2025). StructMem preserves event-level bindings and consolidates cross-event connections (Xu et al., 2026). Temporal graphs encode semantic relations and validity intervals, excluding superseded facts at retrieval time (Rasmussen et al., 2025). SWAP represents reasoning steps as an entailment graph whose intermediate steps can be verified (Xiong et al., 2025), but the graph is built within a single reasoning episode rather than maintained across a changing memory. Retrieving related states and determining which states lose support after a change are distinct tasks.
State-aware memory. STALE (Chao et al., 2026) evaluates implicit conflict: later observations invalidate earlier memories without explicit negation. CUPMem combines state consolidation and propagation-aware search. MCB evaluates whether an agent reusing information should persist it, use it only in context, re-verify it or ask for clarification (Li et al., 2026); we instead ask which downstream states require revision once an upstream state changes. Our direct revision (§4.1) follows write-time adjudication, while dependency verification determines downstream support.
Knowledge editing and ripple effects. Multi-hop editing benchmarks distinguish recalling edits from propagating their consequences (Zhong et al., 2023; Cohen et al., 2024). These benchmarks evaluate the propagation of triple edits over knowledge graphs; we recover latent dependencies from unstructured observations. Parametric editing methods (Meng et al., 2022, 2023) target model parameters rather than memory states.
Questionable assumptions in QA. QA benchmarks study questions with questionable premises (Kim et al., 2023; Yu et al., 2023). Stale premises are a temporal instance: a premise was valid earlier but has since changed. Memory records when it ceased to hold, enabling evidence-backed correction.
Truth maintenance and belief revision. Truth maintenance retracts unsupported beliefs (Doyle, 1979; de Kleer, 1986); belief revision formalizes change (Alchourrón et al., 1985); incremental view maintenance propagates updates (Gupta and Mumick, 1995). These systems receive explicit dependencies. StateGraph discovers and counterfactually verifies dependencies latent in interaction (§4.2–§4.3), then applies dependency-directed propagation.
3 Dependency-Aware State Revision
3.1 State Dependency Graph
We model memory at time as a directed graph whose nodes partition into evidence (observations, messages, tool outputs), states and pending actions . A state is a tuple
where is an entity, an attribute, a value, a temporal scope, a condition scope, the supporting evidence, a confidence, and a status drawn from
Only CURRENT states may be asserted as facts. STALE marks loss of current warrant; HISTORICAL retains a previously valid version. UNCERTAIN marks unknown validity, to be flagged rather than asserted; NEEDS-RECOMPUTE marks a derived conclusion whose inputs changed.
Edges are typed. SUPPORTS links evidence to a state it licenses; UPDATES and INVALIDATES link a newer state to one it supersedes or refutes; DERIVED-FROM links premise states to a conclusion inferred from them; DEPENDS-ON links a prerequisite state to a state whose validity rests on it; AFFECTS-ACTION links a state to a pending action for which it is a precondition. The last three are dependency edges, and are the object of this paper.
3.2 Two Distinct Tasks
Let be new evidence. Direct revision identifies the states whose validity itself settles:
This is the task existing systems address. Cascade revision takes the resulting invalidated set and asks which other states or pending actions require revision:
The central difficulty is that is not the set of states reachable from over dependency edges:
(5) with strict inclusion when independent support or scope restrictions leave reachable nodes CURRENT. Weak dependencies require uncertainty handling, not wholesale invalidation. Cascade revision must identify the nodes requiring revision rather than invalidate all of .
3.3 A Consistency Property
Gold labels assess revision correctness; conditional invalidation closure checks consistency given dependency and support judgments. A STRICT edge states that depended on given the evidence available when the edge was verified (§4.3); it does not rule out support that arises later. A node has alternative support when CURRENT, scope-compatible evidence or states independently license its operative claim after removal of the failed path. Self-support, failed-path evidence and circular justification are excluded; reachability alone does not make otherwise independent support ineligible.
Definition 1 (Conditional Invalidation Closure). A memory state satisfies conditional invalidation closure if, for every pair that is a STRICT dependency (§4.3),
Weakly dependent states are flagged, while independently supported states remain valid. Closure Violation Rate (CVR) is the fraction of eligible pairs violating Definition 1, assessed over a common reference set of dependency pairs; using only each system's edges would let an empty graph satisfy it vacuously. CVR measures one-way closure; over-invalidation is measured separately. Additional non-CURRENT nodes can activate previously inactive closure requirements. Invalidating all nodes reached in an inferred graph therefore need not close the common reference graph.
4 StateGraph
StateGraph's main methodological contribution lies in recovering and verifying support dependencies from interaction histories. Its propagation stage applies established dependency-directed revision principles (Doyle, 1979) with explicit support and scope checks. StateGraph incrementally performs direct revision (§4.1), candidate discovery (§4.2), counterfactual verification (§4.3) and conservative propagation (§4.4). Premise-aware use (§4.5) gates queries and actions (Figure 2).
4.1 State Representation and Direct Revision
Observation yields states with type, provenance and temporal/conditional scope (§3). Canonical slot identifiers track logical states; separate identifiers distinguish assertion versions. Matching uses canonical revision keys and functional identity, meaning that the assertions describe the same logical state. Each matched pair is classified as consistent, duplicate, update, explicit conflict, implicit invalidation, temporary exception or uncertain (Figure 2A). Updates and conflicts change status while preserving older assertions and provenance. Scoped overrides distinguish temporary exceptions from general changes. We adopt the write-time adjudication principle of CUPMem (Chao et al., 2026) within StateGraph's state schema, canonical matching and scoped status transitions. This produces the seed set ; §6.2 compares the implemented systems' direct-revision outcomes.
4.2 Dependency Candidate Discovery
Given and new states, discovery retrieves a bounded pool of historical states using six structural, revision and provenance sources (Figure 2B1), avoiding exhaustive pairwise comparison:
- Shared entity or task context — states about the same entity, event or task.
- Explicit derivation — one state was inferred from another in an earlier turn.
- Execution provenance — a tool call consumed one state as input and produced another.
- Action preconditions — a plan was committed on the basis of a state.
- Temporal co-scoping — two states share a constrained window.
- Linguistic cues — because, since, that way, so we can.
Directed Relation Typing. Discovery returns unordered pairs. Each is examined in both directions, using for prerequisite-to-dependent edges. Types are DEPENDS-ON, where 's validity relies on ; DERIVED-FROM, where is inferred from ; and AFFECTS-ACTION, where is a precondition for action . Directional evidence and endpoint compatibility determine accepted types;

Figure 2: The StateGraph pipeline. (A) Direct revision settles what the observation itself contradicts, yielding the seed set . (B) Dependency reasoning—this paper's contribution—proposes candidates from six bounded sources, then verifies each counterfactually, so the verified graph is a subgraph of the candidate graph. (C) Conservative revision maps each verified edge to a status instead of invalidating everything reachable. (D) Premise and action gating turns status into behavior. Panels correspond to §4.1–§4.5.
candidates with unresolved direction or insufficient relational evidence are rejected before verification.
Similarity retrieves candidates but never establishes dependency: states about one meeting may be independent, while a scheduling commitment may depend on a travel fact with no shared vocabulary. Verification selects supported dependencies from this candidate pool (§6.3). Discovery prioritizes recall; verification filters candidates for precision.
4.3 Counterfactual Dependency Verification
For each candidate , we probe whether survives antecedent invalidation:
If were no longer a valid current premise, and all other evidence in the verification context remained unchanged, would still hold?
and label the edge from the answer:
-
STRICT — does not survive in the verification context. Its support there runs through .
-
WEAK — contributes to 's support, but is not defeated without it: either its validity becomes undetermined, or independent support already in the verification context still establishes it.
-
NONE — is unaffected. The states were related, not dependent.
The verifier rejects judgments inconsistent with their counterfactual outcome. Accepted STRICT and WEAK edges retain direction, relation type and dependency strength; NONE edges do not propagate. The counterfactual probe is designed to distinguish support dependence from topical relatedness by testing whether the dependent claim loses its warrant; it also grades the dependency as STRICT or WEAK and identifies reachable states that survive antecedent removal (Equation 5).
Strictness and alternative support. Verification and revision answer different questions. Verification runs when an edge is proposed and judges against the support context available to the verifier at that time. An edge is STRICT only if fails in that context once is removed; if independent support for is already present there, holds and the edge is labeled WEAK (Appendix B.5). STRICT thus means that depended on given the evidence available at verification, not that no other support can arise later. Invalidating the dependent state therefore additionally requires that no independent support path survives at revision time. When later fails, alternative-support assessment
Algorithm 1 Conservative Cascade Revision
Require: verified graph , seeds
Ensure: revised graph
1:
2:
3: seen
4: while do
5:
6: for all do
7: if then
8: continue
9: end if
10:
11:
12: if then
13: Apply
14: seen
15: if then
16: push
17: end if
18: end if
19: end for
20: end while
21: return
searches the current graph for current, independent and sufficient evidence or supporting states outside the failed path, excluding self-support, failed-path evidence and circular justification. Because support already in the verification context yields WEAK, such support for a STRICT edge must have arrived after the edge was verified or lain outside the verifier's bounded context. Strictly dependent states with surviving support are re-grounded rather than invalidated, preserving hard negatives (§5).
4.4 Conservative Cascade Revision
Breadth-first propagation from (Algorithm 1) follows verified edges and Table 1. Each step checks strength, independent support, state type and temporal/conditional scope; only new downstream consequences trigger further traversal. Marking weakly supported states UNCERTAIN rather than STALE parallels confidence-gated selective prediction, which abstains on low-confidence outputs instead of committing to them (Zheng et al., 2026). Here identifies the root and the failed path. Is-New requires an unseen root/node/effect and a new status or support-provenance effect; weaker effects do not overwrite stronger ones.
| Edge | Alt. support | Consequence |
|---|---|---|
| STRICT | none | STALE / NEEDS-RECOMPUTE |
| STRICT | survives | CURRENT (re-grounded) |
| WEAK | none | UNCERTAIN / Downweight |
| WEAK | survives | CURRENT |
| NONE | not assessed | No propagation |
| Invalid action premise | none | Block / Replan |
Table 1: Conservative revision rule, shown graphically in Figure 2C. Derived conclusions that lose their supporting inputs are no longer CURRENT and require re-derivation before reuse; NEEDS-RECOMPUTE explicitly records this obligation, while STALE records loss of current warrant. Past-valid states are retained as HISTORICAL.
4.5 Premise- and Action-Aware State Use
At use time, StateGraph classifies requests as current-state queries, historical queries or actions; retrieves states and dependency context; extracts presuppositions; and checks them against (Figure 2D). CURRENT premises are accepted. STALE premises, or HISTORICAL ones requiring current validity, trigger correction with the revised state and the evidence establishing the change. UNCERTAIN and NEEDS-RECOMPUTE premises trigger clarification or re-derivation. Actions follow AFFECTS-ACTION edges: stale preconditions return a plan for revision with its invalidation path (Figure 1).
Complexity. Exhaustive adjudication requires model calls per observation and for pairwise cascade reasoning. With candidate set , StateGraph uses relation/verification judgments and traversal per root, excluding independent-support assessments. Per cascade case, it uses 12.5K tokens/92.0s, versus 3.5K/45.0s for vector RAG and 90.6K/340.6s for CUPMem. Full costs appear in Appendix A.
5 StateChangeBench
5.1 What Existing Benchmarks Do Not Isolate
Existing benchmarks measure recall, retrieval, temporal reasoning, abstention, environment experience and obsolete-information avoidance (Maharana et al., 2024; Wu et al., 2025, 2026; Uddin et al., 2026; Hu et al., 2025), without the dependency and downstream-revision labels needed to assess cascades. Episode-level protocols for workflow agents score state continuity, evidence traceability and escalation decisions rather than one-shot outputs (Yao et al., 2026a), and task success can diverge from the behavior a system is meant to support, so the two should be reported separately (Yao et al., 2026b). StateChangeBench likewise scores post-revision states and downstream actions separately from answer accuracy.
5.2 Case Design
Each case includes history, pre-existing states and dependencies, new evidence, and a query or pending action. Gold labels specify every state's post-revision status, invalidation depth/path, STRICT/WEAK strength, surviving-support conditions and action (proceed, revise-plan, ask-clarification). Strata cover depth 0–3+, implicit/weak dependencies, alternative support, temporary exceptions, historical states and action consequences.
Hard negatives. Weak dependencies, surviving support and scope-narrowing exceptions test selective revision against indiscriminate invalidation. StateChangeBench has 50 cases: 10/15/15/10 at depth 0/1/2/3+, including 17 hard negatives (34%) and 36 action-consequence cases (72%). We report over-invalidation alongside recall; Appendix C, Table 9, provides the specification and distribution.
5.3 Construction and Quality Control
Cases are seeded from interaction data (Wu et al., 2025) and organized under a stratum specification. Human annotators label post-update state status, cascade depth and dependency type. Agreement on a double-annotated subset, whose size was not recorded, is reported separately for these dimensions, with Cohen's values of 0.7915, 1.0000 and 0.5583, respectively. Dependency paths, downstream revision targets and preservation conditions are specified in Appendix C.
6 Experiments
We evaluate direct revision (RQ1), dependency recovery (RQ2), cascade revision (RQ3) on StateChangeBench, and report a supplementary evaluation on public long-term memory benchmarks (RQ4). Action-decision results are not reported in this version (see Limitations).
6.1 Setup
Baselines. Baselines are vector RAG (Lewis et al., 2020), time-decay RAG, summary memory, Mem0 (Chhikara et al., 2025), Zep/Graphiti (Rasmussen et al., 2025), A-MEM (Xu et al., 2025), CUPMem (Chao et al., 2026) and Full Context. We reimplement CUPMem within the shared evaluation framework. Reported token usage covers the complete memory-processing and response pipeline: on cascade revision, CUPMem uses 90.6K tokens per case versus StateGraph's 12.5K (approximately ), distinct from the matched answer-time context budget.
Ported-mechanism condition. Mem0 and CUP-Mem augmented with cascade revision isolate the mechanism's contribution while retaining their extraction and retrieval.
Protocol. The reported experiments use DeepSeek-v4-Flash. StateChangeBench results pool counts across repeated evaluation runs per configuration (Appendix A.7); the number of runs per configuration was not preserved in our retained records. Model-request settings and answer-time evidence limits are specified in Appendix A.6; reported tokens and latency cover all LLM calls per case. StateChangeBench evaluation covers all 50 cases and depth strata (0, 1, 2, 3+), including ablations ( ). Thinking is disabled. Configuration-specific differences are described alongside the corresponding experiments. Implementation settings and answer-context limits are detailed in Appendix A.6. Prompt templates appear in Appendix B.
6.2 RQ1: Direct State Revision
StateGraph and CUPMem have comparable direct-revision performance across StateChangeBench depths: direct update accuracy and stale detection are 84.9%/86.5% versus 82.7%/80.3%, respectively. STALE State Resolution is 75.4% versus 72.1% (Chao et al., 2026). The stale-detection gain is 6.2 percentage points. RQ1 establishes each system's direct-revision capability as context for RQ3, which evaluates downstream cascades. Full comparisons and costs appear in Appendix A, Table 4.
6.3 RQ2: Dependency Recovery
On all 50 StateChangeBench cases, candidate recall, typing recall, verification F1 and final edge F1 are 62.5%, 47.0%, 55.5% and 61.7%, respectively (Appendix A, Table 5). These measure discovery, typing and verification separately from cascade revision. Verification F1 summarizes the verification stage, whereas Edge F1 summarizes final dependency recovery; the two values are not successive scores on a single prediction task. Candidate and type recall use gold dependency edges across all 50 cases as their denominator, and Edge F1 compares the final verified edge set with them. Impact-F1 (RQ3) instead scores predicted downstream invalidations against gold propagated-invalidation targets in the 40 depth 1–3+ cases. The two are linked but

Figure 3: Impact-F1 versus cascade depth on StateChangeBench (15/15/10 cases at depth 1/2/3+). All methods degrade on deeper chains; in these strata, StateGraph degrades least and its margin over the baselines is larger at greater depth.
not interchangeable: an edge error lowers Impact-F1 only if it changes some state's predicted status, so edges ending in states that stay CURRENT, such as hard negatives, count toward Edge F1 but not Impact-F1, and Impact-F1 can therefore exceed Edge F1.
6.4 RQ3: Cascade Revision
We evaluate all 50 StateChangeBench cases. Cascade Impact-F1 is reported on the 40 depth 1–3+ cases, excluding the 10 depth 0 cases. All F1 in Table 2 is the case-count-weighted mean . We also measure impact-set precision and recall against gold invalidations, plus over-/under-invalidation and CVR (§3.3), with depth-wise results in Table 2. Impact-F1 counts only gold propagated-invalidation targets, excluding directly revised roots; uncertainty, downweighting and scoped overrides are assessed separately, and CVR uses strict DEPENDS-ON reference pairs. Impact-set and closure formulas appear in Appendix A.7.
| Cascade-depth performance | ||||
|---|---|---|---|---|
| Method | D1 F1 ↑ | D2 F1 ↑ | D3+ F1 ↑ | All F1 ↑ |
| Vector RAG | 20.8 | 10.6 | 5.4 | 13.1 |
| Time-decay RAG | 24.6 | 13.4 | 7.2 | 16.1 |
| Summary Memory | 61.8 | 43.7 | 27.9 | 46.5 |
| Mem0 | 65.1 | 47.2 | 30.8 | 49.8 |
| Zep / Graphiti | 67.4 | 50.3 | 34.6 | 52.8 |
| A-MEM | 68.9 | 51.6 | 35.7 | 54.1 |
| CUPMem | 75.8 | 62.9 | 49.1 | 64.3 |
| Full Context | 72.5 | 57.8 | 42.6 | 59.5 |
| Mem0 + Cascade | 73.4 | 62.1 | 51.0 | 63.6 |
| CUPMem + Cascade | 79.2 | 70.4 | 61.7 | 71.5 |
| StateGraph | 82.7 | 79.3 | 75.1 | 79.5 |
Mem0 drops from 65.1% to 47.2% F1 at depth 1/2. In the depth strata of this benchmark, StateGraph's margin over CUPMem is 6.9 per-
centage points at depth 1 (82.7% versus 75.8%) and 26.0 at depth 3+ (Figure 3; §7). With 10–15 cases per stratum, we report this as an observed pattern on StateChangeBench rather than a general depth trend. Its CVR is 7.6%, versus CUP-Mem's 35.1%; the other unaugmented baselines range from 38.9% to 78.2%. Counterfactual verification and alternative-support checks limit over-invalidation to 5.2%.
| Revision errors | |||
|---|---|---|---|
| Method | Over-Inv. ↓ | Under-Inv. ↓ | CVR ↓ |
| Vector RAG | 31.4 | 73.5 | 78.2 |
| Time-decay RAG | 28.7 | 69.8 | 74.5 |
| Summary Memory | 19.8 | 48.4 | 56.1 |
| Mem0 | 17.2 | 44.1 | 51.8 |
| Zep / Graphiti | 15.6 | 40.8 | 46.3 |
| A-MEM | 14.9 | 39.2 | 44.6 |
| CUPMem | 10.6 | 29.6 | 35.1 |
| Full Context | 12.1 | 33.8 | 38.9 |
| Mem0 + Cascade | 11.2 | 27.0 | 26.5 |
| CUPMem + Cascade | 7.9 | 18.4 | 17.8 |
| StateGraph | 5.2 | 10.8 | 7.6 |
Table 2: Cascade revision on StateChangeBench. D1–D3+ denote cascade depth; F1 is Impact-F1. All F1 weights D1/D2/D3+ by 15/15/10 cases (40 total), excluding depth 0. Over-/under-invalidation and closure violation rate (CVR) measure revision errors. All values are percentages. Full results, including tokens and latency, appear in Table 6.
6.5 RQ4: Supplementary Evaluation on Public Memory Benchmarks
This supplementary evaluation checks whether adding dependency revision coincides with lower performance on standard long-term memory tasks. Using State Answer Accuracy, StateGraph scores 52.0% on STALE versus CUPMem's 51.7%, and 53.9% on LongMemEval (Wu et al., 2025) versus Mem0's 51.3%. On MemoryAgentBench it scores 36.6%, below A-MEM's 43.1% and above CUP-Mem's 28.1%. Its point estimates are comparable to or higher than those of the evaluated baselines on five of the six benchmarks. We did not run significance tests, so these results do not establish the absence of degradation. Appendix A, Table 7, reports all six benchmarks.
6.6 Ablations
We remove one mechanism at a time using DeepSeek-v4-Flash on all 50 StateChangeBench cases and depths (Table 3). Depth-wise results and costs appear in Appendix A, Table 8.
| Memory revision | |||
|---|---|---|---|
| Configuration | All F1 ↑ | Over-Inv. ↓ | CVR ↓ |
| Full StateGraph w/o Counterfactual Verification | 79.5 | 5.2 | 7.6 |
| w/o Alternative Support | 65.9 | 19.0 | 23.0 |
| w/o Conservative Revision | 68.2 | 21.0 | 19.0 |
| w/o Cascade Propagation | 62.8 | 25.0 | 28.0 |
| LLM-only Revision | 45.6 | 7.0 | 51.0 |
| 46.7 | 29.0 | 41.0 | |
Table 3: Ablations on the full 50-case State-ChangeBench using DeepSeek-v4-Flash. All values are percentages. Depth-wise results, under-invalidation and costs appear in Table 8.
Observation 1: verification limits over-validation. Removing counterfactual verification propagates over all candidate edges: over-invalidation rises from 5.2% to 19.0% and Impact-F1 falls to 65.9 as false edges propagate downstream.
Observation 2: conservative revision improves accuracy. Replacing the conservative rule in Table 1 with STALE for every reached dependent node reduces overall Impact-F1 by 16.7 percentage points and raises over-invalidation from 5.2% to 25.0%. The conservative rule preserves independently supported states while revising unsupported dependents. Removing only alternative-support checks reduces Impact-F1 by 11.3 percentage points.
Observation 3: the graph supports multi-hop revision. Removing cascade propagation reduces D3+ Impact-F1 from 75.1 to 17.9 (Table 8), showing its contribution within StateGraph. LLM-only revision uses full history without a persistent graph and scores 64.2/25.7 F1 at depth 1/3+. StateGraph achieves 82.7/75.1, gains of 18.5/49.4 points, using 1.67× the tokens (12.5K versus 7.5K).
Observation 4: cascade revision also helps other memory systems. On StateChangeBench, adding cascade revision improves Mem0 and CUP-Mem Impact-F1 by 13.8 and 7.2 points, respectively, without changing extraction or retrieval.
7 Analysis
Why the margin is larger at greater depth. The larger margin at depth 2–3+ is observed on State-ChangeBench’s depth strata; the following explanation is consistent with the ablations but is not separately tested. At depth 1, new evidence often lies near affected states in topic and time, enabling direct adjudication. At depth 2+, new evidence need not mention downstream states. Unverified propagation compounds false edges across hops; counterfactual verification selects supported edges, while conservative revision preserves independently supported states (Figure 3; Observations 1–3).
8 Conclusion
Long-term agents can fail not only by forgetting or by remembering the wrong thing, but by continuing to trust conclusions whose grounds have disappeared. We formulated dependency-aware state revision and introduced StateGraph, which recovers dependencies, verifies them counterfactually and propagates revisions selectively, together with StateChangeBench for measuring this capability. StateGraph addresses downstream loss of support that may remain unresolved after direct memory revision. Experiments on a small controlled cascade benchmark suggest benefits from explicit dependency verification and selective propagation. Larger independent evaluations are needed to establish robustness across domains, backbones and extended interaction histories. An open problem is how to verify dependencies without relying on the same model that proposes them: the current pipeline provides no independent guarantee of detecting correlated errors across proposal, verification and support assessment.
Limitations
The evidence supports dependency-aware revision under the evaluated conditions: full-benchmark experiments using DeepSeek-v4-Flash, including all 50 StateChangeBench cases and depth strata. StateChangeBench isolates cascade reasoning through author-constructed English cases, a written stratum specification and double annotation of a subset (Appendix C); the broader memory benchmarks provide complementary coverage. With 50 cases and 10–15 cases per depth stratum, and without significance tests, the depth-wise differences should be read as initial evidence.
Our retained records are incomplete. They do not preserve the number of evaluation runs per configuration or the size of the double-annotated subset, so these quantities are not reported. For the same reason, this version omits the action-decision evaluation and the premise-gate ablation: their aggregation could not be reconstructed from the remaining records. We plan to rerun these evaluations with complete logging in a future version. These results do not establish performance across other backbones, languages, multimodal inputs or multi-agent deployments.
Relation typing, counterfactual verification and alternative-support assessment use the same LLM, so their errors can be correlated. CVR checks closure using the system's support judgments and is not an independent validation of those judgments; gold-labeled impact and invalidation metrics provide complementary outcome evaluation. WEAK edges trigger reassessment without recursive propagation, restricting cascades to verified STRICT dependencies. Propagation uses lineage-aware cycle handling; mutually supporting cycles require separate validation. Verification adds write-time computation; the tables report total per-case LLM tokens and latency, with costs depending on workload and serving conditions.
Ethics Statement
StateGraph addresses outdated premises and unsupported downstream actions through counterfactual verification, alternative-support checks and premise-aware gating. Incorrect dependency judgments can nevertheless cause missed or unnecessary revisions. This version does not evaluate action decisions, and benchmark results do not certify deployment safety or replace human authorization for consequential actions.
Evaluation uses existing memory benchmarks and StateChangeBench to assess memory revision and downstream action behavior. For deployments that store personal states, memory management should also incorporate data minimization, access controls, appropriate retention periods, and user correction and deletion mechanisms for both memories and dependency links.
References
Carlos E. Alchourrón, Peter Gärdenfors, and David Makinson. 1985. On the logic of theory change: Partial meet contraction and revision functions. The Journal of Symbolic Logic, 50(2):510–530.
Hanxiang Chao, Yihan Bai, Rui Sheng, Tianle Li, and Yushi Sun. 2026. STALE: Can LLM agents know when their memories are no longer valid? arXiv preprint arXiv:2605.06527.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building production-ready AI agents with scalable long-term memory. arXiv preprint arXiv:2504.19413.
Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, and Mor Geva. 2024. Evaluating the ripple effects of knowledge editing in language models. Transactions of the Association for Computational Linguistics, 12:283–298.
Johan de Kleer. 1986. An assumption-based TMS. Artificial Intelligence, 28(2):127–162.
Jon Doyle. 1979. A truth maintenance system. Artificial Intelligence, 12(3):231–272.
Jizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Huajun Chen, and Ningyu Zhang. 2026. LightMem: Lightweight and efficient memory-augmented generation. In The Fourteenth International Conference on Learning Representations.
Ashish Gupta and Inderpal Singh Mumick. 1995. Maintenance of materialized views: Problems, techniques, and applications. IEEE Data Engineering Bulletin, 18(2):3–18.
Bernal Jiménez Gutiérrez, Yiheng Shu, Weijian Qi, Sizhe Zhou, and Yu Su. 2025. From RAG to memory: Non-parametric continual learning for large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 21497–21515. PMLR.
Yuanzhe Hu, Yu Wang, and Julian McAuley. 2025. Evaluating memory in LLM agents via incremental multi-turn interactions. arXiv preprint arXiv:2507.05257.
Bernal Jiménez Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. 2024. HippoRAG: Neurobiologically inspired long-term memory for large language models. In Advances in Neural Information Processing Systems, volume 37.
Jiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai. 2025. Memory OS of AI agent. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 25961–25970. Association for Computational Linguistics.
Najoung Kim, Phu Mon Htut, Samuel R. Bowman, and Jackson Petty. 2023. (QA) : Question answering with questionable assumptions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8466–8487, Toronto, Canada. Association for Computational Linguistics.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, volume 33.
Baichuan Li, Junyi Yao, and Zihao Zheng. 2026. Remember, verify, or ask? evaluating memory decisions at reuse time. Preprint, arXiv:2608.19564.
Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. Evaluating very long-term conversational memory of LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13851–13870, Bangkok, Thailand. Association for Computational Linguistics.
Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems (NeurIPS), volume 35, pages 17359–17372.
Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau. 2023. Mass-editing memory in a transformer. In The Eleventh International Conference on Learning Representations (ICLR).
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2023. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560.
Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST).
Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef. 2025. Zep: A temporal knowledge graph architecture for agent memory. arXiv preprint arXiv:2501.13956.
Md Nayem Uddin, Kumar Shubham, Eduardo Blanco, Chitta Baral, and Gengyu Wang. 2026. From recall to forgetting: Benchmarking long-term memory for personalized agents. arXiv preprint arXiv:2604.20006.
Di Wu, Zixiang Ji, Asmi Kawatkar, Bryan Kwan, Jia-Chen Gu, Nanyun Peng, and Kai-Wei Chang. 2026. LongMemEval-V2: Evaluating long-term agent memory toward experienced colleagues. arXiv preprint arXiv:2605.12493.
Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2025. LongMemEval: Benchmarking chat assistants on long-term interactive memory. In The Thirteenth International Conference on Learning Representations (ICLR).
Siheng Xiong, Oguzhan Gungordu, James C. Kerce, and Faramarz Fekri. 2026a. Adaptive information control for search-augmented LLM reasoning. Preprint, arXiv:2602.01672.
Siheng Xiong, Ali Payani, Oguzhan Gungordu, and Faramarz Fekri. 2026b. DIVE: Unlocking self-improvement in frozen language models through diversity-driven skill evolution. Preprint, arXiv:2608.12486.
Siheng Xiong, Ali Payani, Yuan Yang, and Faramarz Fekri. 2025. Deliberate reasoning in language models as structure-aware planning with an accurate world model. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 31900–31931. Association for Computational Linguistics.
Buqiang Xu, Yijun Chen, Jizhan Fang, Ruobin Zhong, Yunzhi Yao, Yuqi Zhu, Lun Du, and Shumin Deng. 2026. StructMem: Structured memory for long-horizon behavior in LLMs. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 122–146. Association for Computational Linguistics.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Jun-tao Tan, and Yongfeng Zhang. 2025. A-MEM: Agentic memory for LLM agents. arXiv preprint arXiv:2502.12110.
Junyi Yao, Baichuan Li, Zihao Zheng, and Jiayu Long. 2026a. Toward workflow-aware benchmarking for healthcare NLP agents. Preprint, arXiv:2609.00296.
Junyi Yao, Zihao Zheng, and Baichuan Li. 2026b. Beyond helpfulness: A teaching-over-solving diagnostic for measuring educational impact in LLM tutors. In 5th Workshop on NLP for Positive Impact.
Xinyan Yu, Sewon Min, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. CREPE: Open-domain question answering with false presuppositions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10457–10480, Toronto, Canada. Association for Computational Linguistics.
Zihao Zheng, Baichuan Li, Junyi Yao, and Jiayu Long. 2026. Reliable financial named entity recognition under domain shift. Preprint, arXiv:2608.19558.
Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. 2024. MemoryBank: Enhancing large language models with long-term memory. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19724–19731.
Zexuan Zhong, Zhengxuan Wu, Christopher Manning, Christopher Potts, and Danqi Chen. 2023. MQuAKE: Assessing knowledge editing in language models via multi-hop questions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 15686–15702, Singapore. Association for Computational Linguistics.
Appendix Contents
A Additional Experimental Results 12 A.1 Direct State Revision ..... 12 A.2 Dependency Recovery ..... 13 A.3 Cascade Revision and Computational Cost ..... 13 A.4 Generic Long-Term Memory ..... 13 A.5 Full Diagnostic Ablations ..... 14 A.6 Implementation and Reproducibility ..... 14 A.7 Impact-Set and Closure Metrics ..... 15
B Prompt Templates 15 B.1 State Extraction ..... 15 B.2 Direct Revision ..... 16 B.3 Dependency Candidate Discovery ..... 16 B.4 Dependency Direction and Type ..... 16 B.5 Counterfactual Dependency Verification ..... 16 B.6 Alternative Support Detection ..... 17 B.7 Premise Checking and Action Gating ..... 17 B.8 Answer and Action Generation ..... 17
C Benchmark Construction Details 18 C.1 Benchmark Statistics ..... 18 C.2 Stratum Specification ..... 18 C.3 Annotation Protocol ..... 18 C.4 Hard Negatives ..... 19
D Case Studies 19 D.1 Study Case ..... 19
A Additional Experimental Results
This section retains the complete baseline comparisons and diagnostic breakdowns. All experiments use DeepSeek-v4-Flash and evaluate full benchmarks; the StateChangeBench comparisons and ablations cover all 50 cases. Evaluation coverage and metric scope are distinct: main-table All F1 aggregates only the 40 depth 1–3+ cases.
A.1 Direct State Revision
| Method | SCB Update Acc. ↑ | SCB Stale Detection ↑ | STALE State Resolution ↑ | Ref. Tokens / Case ↓ | Ref. Latency / Case ↓ |
|---|---|---|---|---|---|
| Vector RAG | 22.4 | 38.1 | 15.0 | 3.5K | 45.0 |
| Time-decay RAG | 26.5 | 36.8 | 20.6 | 3.6K | 46.0 |
| Summary Memory | 70.0 | 68.4 | 20.9 | 8.8K | 100.0 |
| Mem0 | 74.3 | 72.7 | 10.3 | 34.4K | 166.1 |
| Zep / Graphiti | 76.8 | 74.0 | 6.5 | 40.6K | 220.0 |
| A-MEM | 78.1 | 76.6 | 10.8 | 2.6K | 38.0 |
| CUPMem | 82.7 | 80.3 | 72.1 | 90.6K | 340.6 |
| Full Context | 80.2 | 78.5 | 55.7 | 6.0K | 59.0 |
| StateGraph | 84.9 | 86.5 | 75.4 | 12.5K | 92.0 |
Table 4: Direct state revision performance on StateChangeBench and STALE. Higher is better for accuracy metrics; lower is better for reference costs. Costs are reproduced from Table 6 as a common StateChangeBench reference, not separate measurements for each task-specific metric.
A.2 Dependency Recovery
Table 5 evaluates dependency edges, whereas Impact-F1 (Table 6) evaluates downstream invalidations. Candidate recall, type recall and Edge F1 are computed against the gold dependency edges of all 50 cases; Impact-F1 is computed against the gold propagated-invalidation targets of the 40 depth 1–3+ cases. An edge error changes Impact-F1 only when it changes a state's predicted status, so the two need not move together.
| Method | Cand. Rec. ↑ | Type Rec. ↑ | Verif. F1 ↑ | Edge F1 ↑ |
|---|---|---|---|---|
| StateGraph | 62.5 | 47.0 | 55.5 | 61.7 |
Table 5: Dependency recovery on the full 50-case StateChangeBench. Higher is better for all metrics.
A.3 Cascade Revision and Computational Cost
| Method | D1 F1 ↑ | D2 F1 ↑ | D3+ F1 ↑ | All F1 ↑ | Over-Inv. ↓ | Under-Inv. ↓ | CVR ↓ | Tokens / Latency ↓ |
|---|---|---|---|---|---|---|---|---|
| Vector RAG | 20.8 | 10.6 | 5.4 | 13.1 | 31.4 | 73.5 | 78.2 | 3.5K / 45.0s |
| Time-decay RAG | 24.6 | 13.4 | 7.2 | 16.1 | 28.7 | 69.8 | 74.5 | 3.6K / 46.0s |
| Summary Memory | 61.8 | 43.7 | 27.9 | 46.5 | 19.8 | 48.4 | 56.1 | 8.8K / 100.0s |
| Mem0 | 65.1 | 47.2 | 30.8 | 49.8 | 17.2 | 44.1 | 51.8 | 34.4K / 166.1s |
| Zep / Graphiti | 67.4 | 50.3 | 34.6 | 52.8 | 15.6 | 40.8 | 46.3 | 40.6K / 220.0s |
| A-MEM | 68.9 | 51.6 | 35.7 | 54.1 | 14.9 | 39.2 | 44.6 | 2.6K / 38.0s |
| CUPMem | 75.8 | 62.9 | 49.1 | 64.3 | 10.6 | 29.6 | 35.1 | 90.6K / 340.6s |
| Full Context | 72.5 | 57.8 | 42.6 | 59.5 | 12.1 | 33.8 | 38.9 | 6.0K / 59.0s |
| Mem0 + Cascade | 73.4 | 62.1 | 51.0 | 63.6 | 11.2 | 27.0 | 26.5 | 41.0K / 190.0s |
| CUPMem + Cascade | 79.2 | 70.4 | 61.7 | 71.5 | 7.9 | 18.4 | 17.8 | 104.0K / 385.0s |
| StateGraph | 82.7 | 79.3 | 75.1 | 79.5 | 5.2 | 10.8 | 7.6 | 12.5K / 92.0s |
Table 6: Main results on StateChangeBench. All F1 is the 15/15/10 case-count-weighted mean over D1/D2/D3+ (40 cases), excluding depth 0. Higher is better for Impact-F1; lower is better for over-/under-invalidation, CVR, and computational cost.
A.4 Generic Long-Term Memory
| Method | LongMemEval ↑ | LME-V2 ↑ | MemoryAgentBench ↑ | Memora ↑ | STALE ↑ | LoCoMo ↑ |
|---|---|---|---|---|---|---|
| Mem0 | 51.3 | 14.1 | 19.0 | 23.9 | 6.2 | 56.7 |
| Zep / Graphiti | 50.8 | 19.5 | 22.9 | 24.1 | 4.0 | 55.3 |
| A-MEM | 39.5 | 11.7 | 43.1 | 28.6 | 3.1 | 38.4 |
| CUPMem | 47.3 | 15.2 | 28.1 | 25.5 | 51.7 | 50.8 |
| StateGraph | 53.9 | 22.7 | 36.6 | 31.8 | 52.0 | 58.0 |
Table 7: State Answer Accuracy (%) across six public long-term memory benchmarks. Higher is better.
A.5 Full Diagnostic Ablations
| Memory revision | |||||||
|---|---|---|---|---|---|---|---|
| Configuration | D1 F1 ↑ | D2 F1 ↑ | D3+ F1 ↑ | All F1 ↑ | Over-Inv. ↓ | Under-Inv. ↓ | CVR ↓ |
| Full StateGraph w/o Counterfactual Verification w/o Alternative Support w/o Conservative Revision w/o Cascade Propagation LLM-only Revision | 82.7 | 79.3 | 75.1 | 79.5 | 5.2 | 10.8 | 7.6 |
| 75.6 | 64.3 | 54.0 | 65.9 | 19.0 | 13.0 | 23.0 | |
| 77.1 | 66.5 | 57.2 | 68.2 | 21.0 | 10.0 | 19.0 | |
| 74.3 | 60.5 | 49.0 | 62.8 | 25.0 | 9.5 | 28.0 | |
| 71.2 | 38.4 | 17.9 | 45.6 | 7.0 | 58.0 | 51.0 | |
| 64.2 | 43.1 | 25.7 | 46.7 | 29.0 | 42.0 | 41.0 | |
| Computational cost | ||
|---|---|---|
| Configuration | Tokens ↓ | Latency ↓ |
| Full StateGraph w/o Counterfactual Verification w/o Alternative Support w/o Conservative Revision w/o Cascade Propagation LLM-only Revision | 12.5K | 92.0s |
| 10.0K | 76.0s | |
| 11.7K | 87.0s | |
| 12.4K | 91.0s | |
| 8.6K | 64.0s | |
| 7.5K | 60.0s | |
Table 8: Ablation results for StateGraph on the full 50-case StateChangeBench using DeepSeek-v4-Flash. Higher is better for F1; lower is better for error rates and computational cost.
A.6 Implementation and Reproducibility
Propagation. Cascade traversal has no fixed numerical depth bound. It terminates when its queue is exhausted, deduplicating source/root/effect lineages and skipping cycles back to directly invalidated seeds. Only new status effects trigger further traversal; weak dependencies prompt revalidation without extending the cascade. Depth in Algorithm 1 records traversal distance rather than imposing a cutoff. Retrieval graph depth 2, beam width 4 and relational maximum hops 3 are separate retrieval settings.
Candidate limits. The modular discovery request permits at most 64 unordered endpoint pairs. Structural candidates are then added and unordered pairs deduplicated before separate direction/type classification. The 64-pair limit applies to each model response, not to the combined pool after structural supplementation.
Generation. All experiments use DeepSeek-v4-Flash with thinking disabled. Maximum output tokens are 8,192 for fact proposal; 2,048 each for semantic validation, direct revision and cross-observation dependency proposal; 4,096 for dependency verification; and 512 for shared answer generation. These are request ceilings, not observed completion lengths. Each logical request permits up to three transport attempts, with SDK retries and structured-output repair attempts set to zero.
Answer-time evidence. Retrieval selects up to ten states, prioritizing query-field coverage and provenance anchors, then expanding dependency neighbors breadth-first. Serialized evidence spans are limited to 480 characters each. The final answer-context helper preserves input order, admits at most ten items and 64,000 characters, truncates the first over-budget item and stops. The configuration also declares 16,000 tokens; the helper enforces item and character limits rather than a tokenizer-based hard token cap. These limits apply only to answer-time context. Tokens / Case sums recorded usage across all case-level LLM calls, including proposal, validation, revision, dependency reasoning and answer generation.
A.7 Impact-Set and Closure Metrics
Impact-F1 evaluates downstream state invalidation against explicit gold propagated-invalidation targets, excluding directly revised roots. Uncertainty, downweighting, scoped overrides and action decisions are assessed separately. For case in run , let and denote the predicted and gold downstream invalidation sets. Within each depth stratum , counts are pooled across cases and runs:
Precision and recall are and when their denominators are positive. Stratum-level Impact-F1 is
Empty predicted and gold sets contribute zero counts. A stratum with no predicted or gold targets is reported as not applicable. In both main and ablation tables, All F1 weights the depth-1, depth-2 and depth-3+ scores by 15, 15 and 10 cases, respectively. Depth-0 cases remain part of the full benchmark evaluation but are excluded from All F1.
Over-invalidation is the proportion of gold-preserved states incorrectly invalidated. Under-invalidation is the proportion of gold downstream invalidation targets that remain unvalidated. Each rate pools its numerator and denominator across evaluated cases and runs.
CVR uses a shared reference set of strict DEPENDS-ON state pairs covered by Definition 1. For each case and run, activated pairs are
A violation occurs when the dependent remains CURRENT. Aggregate CVR is
Cases without activated pairs contribute to neither count; CVR is not applicable when the aggregate denominator is zero. Reference pairs are shared across systems, while activation depends on each system's resulting state and support judgments. CVR measures conditional closure; over-invalidation separately measures unnecessary invalidation.
B Prompt Templates
The templates below specify module instructions, runtime inputs and output contracts.
B.1 State Extraction
| 01 | State Extraction |
|---|
| SYSTEMExtract atomic source assertions with exact evidence; no invented facts/actions/revisions.Preserve entity/value, scope, provenance and event roles. Copy explicit derivation/action inputs; separate reported_content/claimant.CURRENT by default; HISTORICAL/UNCERTAIN require evidence. Negation preserves positive content; absolute dates require a year; speakers require attribution.INPUT: case_id, observation_id, observation_text; optional speaker_spans, normalization_feedback. |
OUTPUT: states[] with entity/attribute/value, scope/event_frame/evidence and: node_type: FACT|CONDITION|ROLE ASSERTION|DERIVED_STATE|ACTION|ACTION_PRECONDITION. claim_mode: DIRECT|REPORTED|ASSUMPTION|INTENT|ADVICE. polarity: AFFIRMED|NEGATED|UNKNOWN; time: NONE|TEXT|ABSOLUTE. PROPERTY_IDENTITY/REPORTED_PROPOSITION provide source-grounded projections.
B.2 Direct Revision
02 | Direct State Revision
SYSTEM Match canonical slots/functional keys; revise direct assertions only. Separate scopes coexist. Replacement: UPDATE/MARK_HISTORICAL; same-scope denial/broken guarantee: EXPLICIT_CONFLICT/MARK_STALE. Preserve outside TEMPORARY_EXCEPTION scope. INPUT: existing_states, incoming_states, new_observation_text. OUTPUT: decisions[] with incoming_state_id/existing_state_ids, relation/transition, scope_text/evidence_span, reason (<=12 words), confidence; one decision per incoming ID. relation: NEW_FACT|CONSISTENT|DUPLICATE|UPDATE|EXPLICIT_CONFLICT|IMPLICIT_INVALIDATION|TEMPORARY_EXCEPTION|UNCERTAIN. transition: KEEP_CURRENT|KEEP BOTH|MARK_HISTORICAL|MARK_STALE|SCOPED_OVERRIDE|MARK Uncertain|RECOMPUTE. No benchmark labels/answers.
B.3 Dependency Candidate Discovery
03 | Candidate Discovery
SYSTEM Propose unordered support/derivation/precondition pairs; no direction/type/strength or topic-only links. Supplied IDs and pair limit only; reason <=8 words; no gold labels. INPUT: {"states": [...]} OUTPUT: {"pairs": [{"state_id_a": "<ID>","state_id_b": "<ID>","reason": "<reason>"}]}
B.4 Dependency Direction and Type
04 | Direction and Relation Type
SYSTEM Store prerequisite -> dependent. DEPENDS_ON: support; DERIVED_FROM: named input; AFFECTS_ACTION: pending-action prerequisite. Respect types/claims and participation IDs (COMMITMENT supplies; ASSIGNMENT requires). Hold other assertions fixed; test both directions. Neither: NONE; both: ambiguous. No topical/transitive links or usefulness-only invalidation. INPUT: nodes {A,B}, source_semantic_links, candidate_provenance. OUTPUT: prerequisite/dependent A|B|NONE, relation DEPENDS_ON|DERIVED_FROM|AFFECTS_ACTION|NONE, counterfactual booleans, confidence, <=2 A/B references, reason.
B.5 Counterfactual Dependency Verification
05 | Counterfactual Verification
SYSTEM Remove P as CURRENT warrant; hold records/other assertions fixed. Test D validity/eligibility. Independent support only; no circular/downstream warrants or invented requirements. STRICT-dependency: grounded bridge + FAILS; WEAK-dependency: contributory bridge + HOLDS/UNDETERMINED; NO-dependency: no bridge. FAILS=lost warrant; HOLDS=independent support; UNDETERMINED=reassess. INPUT: tested_claims, validity_contract, condition_bridge, proposed_relation, verification_epoch, source_evidence, remaining_evidence/support_context, intervention. OUTPUT: strength, outcome, P/D/0 references (positive decisions cite P/D), reason <=120 characters; honor STRICT restrictions.
INFLUENCE: influence_present, component VALIDITY|TIMING|PURPOSE|METHOD|VALUE|NONE, references/reason.
B.6 Alternative Support Detection
06 | Independent Alternative Support
SYSTEM Find CURRENT independent evidence fully supporting target_claim in the same scope after failed-path removal; alternative derivations are allowed. Exclude self, failed-path/dependent and historical evidence. Repetition/missing edges do not prove independence. INPUT: target_claim, dependent, failed roots/path, blocked IDs, eligible_sources, excluded_sources. OUTPUT: support_ids, independence_established, fully Supported, reason <=120 characters. Unsupported: false/[]; no invented evidence.
B.7 Premise Checking and Action Gating
07 | Premise Checking and Action Gating
INTENT From query wording choose CURRENT_QUERY|HISTORICAL_QUERY|ACTION_REQUEST; future use of old plans is not historical. INPUT: query. OUTPUT: intent/reason.
REFERENCES Select supplied requested_ids (asked about), premise_ids (presupposed CURRENT), action_ids (requested actions); respect intent without guessing. INPUT: query, intent, typed/scoped nodes with aliases/evidence. OUTPUT: requested_ids, premise_ids, action_ids, reason <100 characters. Code checks dependency/status/scope/action eligibility; no gate prompt.
B.8 Answer and Action Generation
08 | Premise-Aware Answer and Action Generation
SYSTEM Use CURRENT evidence within applicability_scopes; historical evidence only for historical queries. Correct stale premises; obey original_action_execution_allowed; no blocked execution/invented resources. CURRENT inputs and verified_recomputation_results govern values/units. Sufficient inputs: COMPUTATION; otherwise REASSESSMENT_REQUIRED/null. Reassess downweighted claims; missing confirmation is not unavailability. INPUT: query, runtime_gate, verified_recomputation_results, evidence_aliases. OUTPUT: answer, action_decision NO_ACTION|EXECUTE|REVISE_PLAN|BLOCK|CLARIFY, CURRENT used_evidence_refs, <=5 replanned_actions; respect runtime restrictions. REVISE_PLAN proposes grounded alternatives; BLOCK only blocks; CLARIFY requests inputs. No execution. Recomputation: COMPUTABLE|INSUFFICIENT_INPUT, expression/input_refs/reason; restricted decimal arithmetic.
Shared benchmark answer generation.
09 | Shared Answer Generation
SYSTEM Return the requested fact/value from context only, without explanation; state insufficiency when unsupported. USER Context: {retrieved_context}
Question: {question}
Implementation sources. The modular sources are run_state_extraction.py, revision_v3.py, dependency_candidates_v3.py, relation_typing_v3.py, counterfactual_verification_v3.py, alternative_support_v3.py, premise_gate_v3.py and recomputation_v3.py. The shared answer configuration is shared_answer_generation.yaml.
C Benchmark Construction Details
C.1 Benchmark Statistics
| Stratum | Cases | Share | Mean cascade size |
|---|---|---|---|
| Hard negatives | 17 | 34% | 1.882 |
| Depth 0 | 10 | 20% | 0.000 |
| Depth 1 | 15 | 30% | 1.000 |
| Depth 2 | 15 | 30% | 2.000 |
| Depth 3+ | 10 | 20% | 3.000 |
| Implicit dependency | 7 | 14% | 1.857 |
| Weak dependency | 10 | 20% | 1.900 |
| Alternative support | 4 | 8% | 1.750 |
| Temporary exception | 6 | 12% | 1.500 |
| Historical state | 2 | 4% | 2.500 |
| Action consequence | 36 | 72% | 1.694 |
| Status | 0.7915 | ||
| Depth | 1.0000 | ||
| Dependency-type | 0.5583 |
Table 9: Statistics of the StateChangeBench benchmark.
C.2 Stratum Specification
Case authors work from the following specification and are not shown the method. Each case must be solvable from the history alone.
-
Depth 0 — the new observation directly contradicts exactly one state; nothing downstream depends on it.
-
Depth 1 — exactly one state depends on the contradicted state, and nothing in the history contradicts that dependent state.
-
Depth 2, 3+ — as above, chained. Every intermediate state must be individually plausible in isolation.
-
Implicit dependency — the dependency is never stated linguistically and must be inferred from task structure.
-
Weak dependency — the antecedent raised the dependent state’s plausibility without establishing it; the gold status is UNCERTAIN, not STALE.
-
Alternative support — a second, independent line of evidence licenses the dependent state; gold status is CURRENT.
-
Temporary exception — the change narrows a scope rather than voiding it; the general state survives, the scoped instance does not.
-
Historical state — the superseded state remains correct as history and must stay retrievable.
-
Action consequence — a pending action depends on the affected state; the gold action label is not proceed.
C.3 Annotation Protocol
Every gold-invalidated state carries its depth, the dependency path that reaches it and a STRICT/WEAK label; surviving reachable states carry their preservation conditions. Human annotators label state status, cascade depth and dependency type. Cohen’s is reported separately for these dimensions on a double-annotated subset; the size of this subset was not recorded.
C.4 Hard Negatives
Hard negatives comprise 17 of 50 cases (34%). Table 9 reports case counts and shares across the benchmark strata.
D Case Studies
D.1 Study Case
Evaluation setting. This case study reports a StateGraph run using DeepSeek-v4-Flash on StateChangeBench case SCB_006, with the results compared against its gold annotations.
Case SCB_006 is a D3+ example with structural depth three. Its history records that order #4471 was addressed to 12 Elm Street, a courier label was printed from that address, a Thursday estimate was based on the label route, and an arrival email was queued for Lena. A handwritten gift note is recorded separately. The new observation says the parcel should not go to Elm Street and requests 88 Oak Avenue instead. The query asks to tell Lena that the parcel will arrive Thursday at the old address.
StateGraph first aligned the new address assertion with the existing address slot. Given the source's explicit correction, direct revision marked the old address stale while retaining the replacement as current. The gold graph specifies three strict links: address to label (DEPENDS_ON), label to estimate (DERIVED_FROM), and estimate to queued email (AFFECTS_ACTION). Relation typing and counterfactual verification accepted these source-grounded links. Propagation assessed each downstream state for independent current support and marked the label, estimate, and queued email stale at depths one through three, matching the gold targets. The unrelated gift note remained current.
At query time, premise-aware gating rejected the old address as current evidence and blocked the original action referencing the stale chain, requiring replanning. The benchmark identifiers are retained below; the implementation distinguishes state nodes from pending actions when applying AFFECTS_ACTION.
Table 10: StateGraph revision results using DeepSeek-v4-Flash on SCB_006, compared with the gold annotations.
| Item | Before correction | After correction: observed result |
|---|---|---|
| 12 Elm Street; CURRENT | STALE direct root; (88 Oak Avenue) is the replacement | |
| Gold: STRICT DEPENDS_ON | Verified; invalidated at depth 1 | |
| Courier label from Elm Street; CURRENT | STALE | |
| Gold: STRICT DERIVED_FROM | Verified; invalidated at depth 2 | |
| Thursday estimate from label route; CURRENT | STALE | |
| Gold: STRICT AFFECTS_ACTION | Verified action dependency; invalidated the queued email at depth 3 | |
| Arrival email queued; CURRENT | STALE; original send gated for replanning | |
| Gift note included; CURRENT | CURRENT; unrelated to the failed address path |
Gold annotations: gold_direct_invalidated_states=[S1], gold_propagated_invalidated_states=[S2,S3,S4], gold_keep_states=[S5], and gold_action=REVISE_PLAN. Gold annotations specify the required outcomes; StateGraph selected and assessed independent support at runtime.
Code basis: stategraph/state/canonical_state.py (CanonicalState); stategraph/state/streaming_v3.py (revise, discover, supports, ingest); stategraph/state/revision_v3.py (normalize_revision_output); stategraph/state/relation_typing_v3.py (_valid_type, normalize_relation_decision); stategraph/state/counterfactual_verification_v3.py (verification_request, normalize_verification); stategraph/state/alternative_support_v3.py (support_request, normalize_support); stategraph/state/cascade_propagation_v3.py (propagate); stategraph/state/premise_gate_v3.py (gate). Gold source: StateChangeBench annotations (50 cases), SHA-256 77d9c6c90e01a5bc5c1838d64cf523bd828c9a88c6f13711586409b976f60725.