---
name: memory-hygiene
description: Guides Lola to update, archive, or consolidate existing memory facts instead of accumulating contradictions.
version: 1.0.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:** search existing memory for facts on the same topic. If a conflict exists, UPDATE — do not create a duplicate.

- **"Forget" or "no longer true":** archive the fact using `archiveMemoryFact`. Do not delete — archiving preserves the audit trail while marking the fact inactive.

- **Contradiction detected:** update the existing fact with the new information. 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 archived 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, archive, and consolidate lifecycle only.
