arXiv:2611.02912cs.CLNov 2026

Manuscript Offprint

arXiv:2611.02912

A State Change Is Local, Its Consequences Are Not: Dependency-Aware State Revision for Long-Term Agent Memory

Yiqi Wang, Tongyuan Zhao, Jiaqi Zhang, Yiqun Duan, Zhangkai Wu, Mingkai Zheng, Taotao Cai

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 s1s_1: the user is available Friday afternoon, and s2s_2: a 3pm review is feasible, with pending action a1a_1: schedule the review. The user then mentions a Friday-afternoon flight, which invalidates s1s_1 without directly contradicting s2s_2, leaving s2s_2 unsupported but still accepted, so item-level revision can let a1a_1 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

Figure 1: A state change is local, but its consequences are not. The new observation contradicts only s1s_1. Left: a system that revises only the contradicted memory marks s1s_1 stale but retains s2s_2, permitting the pending action a1a_1 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.

  1. We identify how local state changes invalidate downstream beliefs, plans and actions through latent dependencies without directly contradicting them.

  2. 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.

  3. 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.

  1. We evaluate StateGraph against eight memory baselines and two ported-mechanism variants, with ablations isolating verification, alternative support, conservative revision and propagation (§6).