-
Notifications
You must be signed in to change notification settings - Fork 31
09 Memory Schema
Varietyz edited this page Apr 2, 2026
·
1 revision
Every memory file (except governance files) requires YAML frontmatter conforming to this schema.
See also: MG Grammar
| Field | Type | Description |
|---|---|---|
name |
string | Kebab-case identifier. Unique across all memory files. |
description |
string | One-line description for relevance matching. Max 200 chars. |
type |
enum |
user | feedback | project | reference
|
| Field | Type | Description |
|---|---|---|
domain |
string[] | Work domains. Values defined in grammar/registries/domains.md. |
keywords |
string[] | Searchable terms. 3-10 keywords. |
owner |
enum | Values defined in grammar/registries/owners.md. |
| Field | Type | Description |
|---|---|---|
created |
date | ISO date when first created. |
last-verified |
date | ISO date when last confirmed accurate. |
version |
integer | Increments on meaningful content update. |
staleness-days |
integer | Days after last-verified before flagging stale. -1 = never stale. |
| Field | Type | Description |
|---|---|---|
max-lines |
integer | Content line budget. Compiler warns when exceeded. |
| Field | Type | Description |
|---|---|---|
depends-on |
string[] | Memory names (not filenames) this file references. Compiler checks they exist. |
supersedes |
string | Memory name this file replaced. Compiler flags if superseded file still exists. |
| Type | Stores | When to Save | Default Staleness |
|---|---|---|---|
user |
Role, goals, preferences | When you learn about the user | 90 days |
feedback |
Corrections and confirmations | When the user corrects an approach | Never (-1) |
project |
Decisions, deadlines, context | When you learn project state | 14 days |
reference |
External system pointers | When you learn about external resources | 30 days |
| Type | Structure |
|---|---|
user |
Free-form |
feedback |
Rule + Why: + How to apply: |
project |
Fact + Why: + How to apply: |
reference |
Pointer + context |
Pattern: {type}_{topic}.md
Examples: feedback_testing.md, project_migration.md, reference_dashboard.md
These do not require schema frontmatter:
MEMORY.md, README.md, CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, LICENSE, CODEOWNERS
---
name: example-project-state
description: Active work on feed migration. Tracks decisions, progress, blockers.
type: project
domain: [catalog, infrastructure]
keywords: [migration, feeds, sync, legacy]
owner: shared
created: 2026-03-29
last-verified: 2026-03-29
version: 3
staleness-days: 14
max-lines: 150
depends-on: [project-roadmap, feedback-rules]
supersedes:
---Disciplined AI Software Development Β© 2025 by Jay Baleine
Licensed under CC BY-SA 4.0 Β· banes-lab.com
Navigation
π Home
Quick Reference
- π Glossary
- π PAG Keywords
- π PAG Grammar
- π§© PAG Guide
- π MG Grammar
- π Memory Schema
- ποΈ Architectural Principles
- βοΈ Terminology Rules
- π Algorithm Classes
Getting Started
- π Reading Path
- β FAQ
Links