check_self_narration
Detect whether candidate memory is assistant self-narration versus a fact about the user/world. Returns flags and markers so you can gate or rewrite the write, preventing memory pollution.
Instructions
WRITE-TIME self-narration guard (read-only, no LLM): does this candidate memory read as the ASSISTANT narrating its own reasoning/state ("as an AI...", "I think...", "I remember that...") instead of a fact about the user/world? LLM memory-writers routinely store their own hedges and self-talk as if they were user facts, silently polluting the store. Returns {'self_narration': bool, 'markers': [...]} so you can gate or rewrite the write before remember(). Flags, never blocks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |