Repository navigation
feat: opt-in versioned memory preset (M18) - #12
Merged
Merged
Conversation
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.
Summary
define_schemawith onlypreset="memory"(MCP, REST, service) adopts v1 of an optional memory preset:Decision,Insight,Task,Question, each with STRINGidkey andtitle,body,status,scope.allow_similarcreates beside a near-duplicate._grag_meta(preset.memory.version). Adoption refuses a newer recorded version. Non-additive migration steps run once when crossing their version and must be idempotent, because export does not carry_grag_meta.DROP_FTS_INDEXonly runs in auto-transaction mode.grag memory adopt [--allow-similar] [--json]andgrag init --memory-preset. The client refuses owners without the newmemory_presethealth capability before sending anything.Surface cost
define_schemaadvertised schema: 1,490 → 1,658 B (+168 B), from thepresetparam, optional table lists and one docstring sentence. Instructions are unchanged. The discovery budget test still passes.Test plan
tests/test_presets.py: fresh adoption, rerun, FTS coverage across reopen (mutation-checked), conflicts re-reported, downgrade refusal, migration crossing, validation, MCP, CLI, init, old-owner refusal🤖 Generated with Claude Code