MemoryWriteReceipt
Confirmation receipt after an agent writes a fact to memory: claim, layer, and timestamp.
Preview
User prefers TypeScript over JavaScript for all new projects.
- Why
- Mentioned explicitly by the user — high-signal preference worth keeping across sessions.
- Where
- User layer
Variants
Irreversible write
Organisation billing plan upgraded to Pro — confirmed via Stripe webhook.
- Why
- Billing event is authoritative and permanent; stored at org scope for all agents.
- Where
- Organization layer
Agent-private layer
Scratch note: user seems to be iterating on the timeline component — watch for layout questions.
- Why
- Internal working note — not exposed to the user directly.
- Where
- Agent-private layer
Props
| Prop | Type | Description |
|---|---|---|
| fact* | string | The fact that was written to memory. |
| reason* | string | Why the agent stored this fact — shown to the user as a transparency signal. |
| layer* | MemoryLayer | Which memory layer the fact landed in. |
| timestamp* | string | When the write occurred. |
| reversible* | boolean | Whether this write can be undone. Controls the footer label and undo button. |
| onUndo | () => void | Called when the user clicks "Undo". Only rendered when reversible is true. |
| className | string | Additional CSS classes for the section root. |
* required.
Usage
import { MemoryWriteReceipt } from "@/components/memory/memory-write-receipt";
<MemoryWriteReceipt
fact="User prefers TypeScript over JavaScript."
reason="Mentioned explicitly — high-signal preference worth keeping."
layer="user"
timestamp="2 Jun 2026 · 14:32"
reversible
onUndo={() => undoWrite()}
/>