salluru.dev
operational

All systems active

Labs / Memory & World-State
Building

worldoracle

Catch the stale belief before the agent acts on it.

Real-time contradiction detector for NPC world-state — split soft narrative from hard predicates.

At a Glance
2-layer
memory
predicate
ground truth
<300ms
veto
non-destructive
repair
The Problem

An agent running for days accumulates thousands of episodic memories whose beliefs diverge from authoritative state. This isn't hallucination — it's belief-state divergence between the memory store and the engine, and no runtime detects or repairs it automatically.

Key Insight

Memory needs two layers: a soft narrative layer (embedding-retrieved episodes, preserved for personality) and a hard factual layer (structured, engine-queryable predicates). A contradiction checker gates retrieval on the hard layer — flagging stale facts before reasoning, without deleting narratively important memories.

How It Works

Two-layer memory

Splits soft narrative recall from a hard, queryable predicate store the engine owns as ground truth.

Live fact channel

Exposes current world state as structured predicates the agent can check against.

Contradiction gate

Flags beliefs that contradict ground truth before they reach the reasoning step.

Non-destructive repair

Marks staleness without erasing memories that carry story or personality.

MemoryReliabilityGame AI