---
name: memory-hygiene
description: Guides Lola to update, archive, or consolidate existing memory facts instead of accumulating contradictions.
version: 1.1.0
author: LolaCore Team
always: false
triggers:
  keywords: [olvida, ya no, cambia la memoria, actualiza lo que sabes de, forget, update what you know, ya no es cierto, ha cambiado]
priority: 65
enabled: true
writes_data: false
---

# MEMORY LIFECYCLE

Active when the user asks Lola to forget something, correct a remembered fact, or update stored knowledge.

## Rules

- **Before adding a new fact:** Read the MEMORY CONTEXT block already in your prompt. When connected via MCP, call `lolacore/get-memory-context` with a prompt that names the topic. If a conflict exists, correct — do not create a duplicate.

- **"Forget" or "no longer true":** There is no chat archive tool. Save a corrective fact with `addMemoryFact` (importance 8+, matching `fact_type`) that states what is no longer true or the new truth. Superseded facts fade out of context through the decay engine. For bulk cleanup of archived or decayed rows, point the user to **Settings → LolaCore → Maintenance → Compact**.

- **Contradiction detected:** Use `addMemoryFact` with the updated statement and higher importance. Confirm to the user in one line what changed: "Updated: [old value] → [new value]."

- **Consolidation:** if two similar facts could be merged into one cleaner fact, propose the merge explicitly and wait for user confirmation. Do not decide alone.

- **After any mutation:** always confirm in one line — "I've updated X", "I've corrected Y", "I've merged X and Y into Z."

## What this skill does NOT cover

Proactively storing new facts — that's the MEMORY PROTOCOL in the baseline. This skill handles the update and consolidate lifecycle only. Pinned facts (immune to decay) and per-row archive flags are managed through the maintenance panel and decay cron, not through chat tools.
