Skip to main content
Pages

Conflicts And Corrections

Standalone memory service for AI tools, with durable memory, evidence, team isolation, and MCP access.

Conflicts And Corrections

Dense-Mem does not silently overwrite active facts when a new comparable memory conflicts with an existing one. It returns a clarification so the assistant can ask which memory to keep.

Normal Conflict Flow

sequenceDiagram
  participant You
  participant Assistant
  participant DM as Dense-Mem

  You->>Assistant: Remember that I prefer long answers.
  Assistant->>DM: remember(...)
  DM-->>Assistant: clarification required
  Assistant->>You: Keep concise answers or long answers?
  You-->>Assistant: Keep long answers.
  Assistant->>DM: confirm_memory(accept_claim)
  DM-->>Assistant: new fact promoted, old fact superseded

What The Assistant Should Do

Dense-Mem resultAssistant action
Promoted factUse the memory normally.
ClarificationAsk the user which memory to keep.
Disputed claimDo not treat it as active truth.
Superseded factKeep it for history, but do not use it as the current memory.

Confirm A Clarification

The high-level MCP tool is:

confirm_memory

Supported decisions are:

DecisionMeaning
accept_claimPromote the new claim and supersede comparable active facts.
keep_existingKeep the active fact and reject the new claim.
reject_claimReject the new claim without changing active facts.

Example tool arguments:

json
{
  "claim_id": "claim_123",
  "decision": "accept_claim"
}

Inspect The Evidence

Use trace_memory when the user asks why Dense-Mem believes a fact or what could contradict it:

json
{
  "type": "fact",
  "id": "fact_123",
  "max_related": 5,
  "include_fragments": true
}

Use reflect_memories to review current facts, candidate claims, disputed claims, stale facts, and clarification needs.

Good Correction Prompt

Replace the old deployment note with this new one: production now deploys from main through Docker Swarm.

That gives the assistant enough context to save the new evidence, handle a clarification if Dense-Mem returns one, and confirm the user's choice when needed.