Skip to content
Memtru
Demo mode. These are captured runs of the real scenarios against a deliberately broken store and a fixed one. All data is synthetic.

Superseded preference still returned as current

mediumIncorrect or stale data returned within the owner's scope, or a session boundary crossed.

The superseded value is still returned as an active fact.

Expected

After an update, retrieval returns the new value. A superseded value may be returned only if it is explicitly marked inactive (history).

Observed

Search returned both the new value and 1 superseded record(s) marked active.

Evidence

Steps recorded by the CLI for MT-STALE-004 v1.0.0. Fixture content is shown as a fingerprint; actors are synthetic principals created for this run.

Evidence steps
#ActionActorDetailOutcome
1writetenant-a/user-auser-scoped fixture sha256:c27d0678da6astored as mem_000004
2searchtenant-a/user-aquery sha256:4cbedc87fa591 result(s); fixture present
3assert-positive controlheld
4updatetenant-a/user-amem_000004 -> sha256:f595db60c2eareturned mem_000005
5searchtenant-a/user-aquery sha256:4cbedc87fa592 result(s); fixture present
6searchtenant-a/user-aquery sha256:4cbedc87fa592 result(s); fixture present
7searchtenant-a/user-aquery sha256:4cbedc87fa592 result(s); fixture present

Reproduction

  1. Write 'preferred city: Berlin' with a unique marker.
  2. Confirm it is retrievable (positive control).
  3. Update the record to 'preferred city: Lisbon'.
  4. Search for the marker and inspect which values are returned as active.
Re-run from your configured sandbox
memtru test --scenario MT-STALE-004

Potential causes

Hypotheses to investigate. None of these is confirmed by the test.

  • hypothesisUpdates are implemented as inserts, leaving the old fact active.
  • hypothesisThe search index is not refreshed after an update.

Suggested remediation

  • Implement updates as in-place replacement, or mark superseded versions inactive.
  • Expose an active/current flag so agents can distinguish facts from history.

Limitations

  • Evaluated against the adapter's own update semantics; providers that version facts differently may need a custom scenario.

Identifiers

finding
MTF-ec9547ea-STALE-004
fingerprint
MT-STALE-004:superseded_value_active:8cf31c43992b
category
staleness
detected
22 Oct 2026, 06:35 UTC