﻿# LangGraph InMemoryStore stops plain searches at the requested page boundary

Check page equivalence and late best matches separately in InMemoryStore; checkpoint 4.3.2 accelerates eligible listings without making ranked search a prefix scan.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-langgraph-memory-search-page-boundary/
Language: en

The November 14 checkpoint 4.3.2 release stops eligible InMemoryStore searches after enough items have been collected for the requested page. Filtered and embedded-query searches retain broader evaluation. The distinction matters for agent memory listings: cheap pagination and correct ranked retrieval require different acceptance fixtures.

## A listing needs only its requested slice

Create a namespace with deterministic insertion order and read it both as one full listing and as several pages. Compare concatenated page identities with the corresponding full slice. Include nested and look-alike namespaces. This checks the intended output contract directly: stopping early is useful only if the same items appear at each offset, without skipped entries or unintended namespace matches. Keep the store unchanged during this equivalence check. Concurrent insertion introduces a separate consistency question and can alter page contents even when the early stopping algorithm is correct.

## Deep offsets still require preceding work

A small limit at the start of a namespace differs from a small limit near its end. Measure both, keeping item count and value size fixed. The optimization does not establish constant-time access for arbitrary offsets. A listing interface that repeatedly requests deep pages should retain its actual navigation pattern in the benchmark rather than extrapolating the first-page result to the entire browsing session.

## The best vector match can be last

For ranked retrieval, place the known best match after many poor candidates. Query with a small limit and assert that the late match wins. This adversarial fixture protects against applying listing-style early termination to a search that must compare scores. Use a deterministic embedder in the first test so ranking expectations are exact; evaluate a real embedding model separately for application relevance.

## Keep filtered and edge cases visible

Include filtered searches, zero-sized pages and the offsets accepted by the application. Compare output and error behavior before timing them. The implementation preserves broader scanning where early exit would change semantics. A useful adoption report therefore separates plain listing performance from filtered and semantic retrieval. It identifies the memory access pattern actually accelerated and avoids promising the same improvement for every operation exposed by the store.

## Sources

- [LangGraph checkpoint%3D%3D4.3.2 release notes](https://github.com/langchain-ai/langgraph/releases/tag/checkpoint%3D%3D4.3.2)
- [LangGraph implementation and review #9633](https://github.com/langchain-ai/langgraph/pull/9633)

## Related reading

- [Flyte 2 traces: a successful helper checkpoint is different from a failed external attempt](/journal/fg2-flyte-two-trace-success-checkpoint-replay-boundary/)
- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
