Skip to content

Add the mdbase.memory contract and Memory starter type - #25

Merged
callumalpass merged 1 commit into
mainfrom
memory-contract
Nov 25, 2026
Merged

callumalpass merged 1 commit into
mainfrom
memory-contract

Conversation

@callumalpass

Copy link
Copy Markdown
Member

Adds mdbase.memory 1.0.0 and a pack with an editable Memory starter type, for AI assistants (Claude, ChatGPT, Codex via MCP) that share one set of memories in an mdbase collection. The upcoming Memory app installs this pack.

  • Contract: name (kebab-case, the identity), description (one line, ≤200), kind (user / feedback / project / reference), optional by (which assistant saved it). The body is the memory. It covers one memory per name, list-then-read recall, update-don't-duplicate, Why: / How to apply: lines, absolute dates, no secrets, and forgetting by deleting.
  • Starter types/memory/1.md: Memories/{name}.md via collection.path.fields, unique on name, display name is the description. The recall/save rules are in the type description and field descriptions, because assistants see those in describe_collection but not the type's body. That gap came up in hands-on tests with Claude.ai and ChatGPT.
  • Pack packs/mdbase.memory/1.0.0.pack.yaml: managed schema and contract, seed type at _types/memory.md.
  • Tests: scripts/memory-contract.test.mjs. The starter is also added to the type-key test. README section and generated dist/ included.

Run locally: node --test for the memory, daily-note and type-key tests (24 pass) and npm run build. The engine install tests run in CI only. I didn't build the runtime engine locally.

Memories that AI assistants share: one record per thing to remember, indexed
by a kebab-case name, a one-line description and a kind (user, feedback,
project, reference), with the memory in the Markdown body. The Memory starter
stores the name in the file name (Memories/<name>.md) and carries the rules
assistants need in its description and field descriptions.
@callumalpass
callumalpass merged commit 960c79d into main Nov 25, 2026
1 check passed
@callumalpass
callumalpass deleted the memory-contract branch November 25, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant