# MemoryRecord

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/memory/types.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/memory/types.ts#L18)

Memory Persistence Types

Extends the existing SessionMemory extraction system with persistence,
lifecycle management, and cross-session recall.

Storage: JSON index + individual markdown files (Claude Code pattern).
Zero dependencies — uses Node.js fs only.

## Properties

| Property | Type |
|---|---|
| `id` | `string` |
| `projectId` | `string` |
| `category` | `'pattern' | 'pitfall' | 'environment' | 'optimization' | 'decision' | 'preference'` |
| `title` | `string` |
| `content` | `string` |
| `confidence` | `'high' | 'medium' | 'low'` |
| `createdAt` | `string` |
| `lastAccessedAt` | `string` |
| `accessCount` | `number` |
| `updatedAt` | `string` |
| `tags` | `string[]` |
| `relatedFiles` | `string[]` |
| `expiresAt` | `string` |
| `supersededBy` | `string` |
