Repository navigation
fix(memory): Use kind for memory classification - #664
Merged
Merged
Conversation
Consolidate the memory plugin on a single kind field for extraction, storage, tools, CLI output, and specs. Keep the physical SQL type column for compatibility while mapping legacy values before narrowing the check constraint. Require kind at the store boundary, derive storage target from kind, and keep bounded retry-cache compatibility for pre-kind extraction state. Refs #658 Co-Authored-By: GPT-5 Codex <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keep completed-session extraction cache entries on the current kind-bearing shape instead of replaying target-only legacy state. This preserves kind-aware passive idempotency for current writes and treats pre-kind cached state as expired compatibility debt rather than carrying a second retry key format. Refs #658 Co-Authored-By: GPT-5 Codex <[email protected]>
dcramer
force-pushed
the
codex/memory-kind-contract
branch
from
June 28, 2026 21:51
7c1df31 to
73d01b3
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 73d01b3. Configure here.
Keep the memory plugin host wiring component test aligned with the finalized kind contract. Seed direct store writes with canonical kinds and mock the plugin model port so the explicit write path returns a valid reviewed memory. Co-Authored-By: GPT-5 Codex <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Memory records now use
kindas the single classifier across extraction,storage, tools, CLI output, and specs. The physical SQL column remains
typefor compatibility, but the Drizzle/code surface is
kindwithpreference,procedure, andknowledge.The migration maps legacy rows before narrowing the check constraint:
taskbecomesprocedure, while the old non-preference categories collapse toknowledge. Store callers must provide a kind, storage target is derived fromthat kind, and the completed-session retry cache only tolerates bounded
pre-kind state.
The memory specs and plugin database policy now match this contract, including
the rule that generated schema/data migration artifacts should be verified
directly instead of adding feature-level migration tests for each migration.
Refs #658