Migrate metadata out of the sm_ namespace (agent_scope et al.) - #97
Draft
Dhravya wants to merge 2 commits into
Draft
Migrate metadata out of the sm_ namespace (agent_scope et al.)#97Dhravya wants to merge 2 commits into
Dhravya wants to merge 2 commits into
Conversation
Captures stamp searchable agent_scope instead of reserved sm_scope; canonical-container profile/search reads filter on it. Ports #92 onto the CLI-free architecture. RELEASE GATE: do not ship until the backend sm_scope→agent_scope backfill (supermemoryai/mono#2895) is deployed and complete — filtered reads return nothing until then. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…pace sm_project_id→agent_project_id, sm_capture_mode→agent_capture_mode, sm_source→agent_source. The capture test now asserts no metadata key starts with sm_. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Dhravya
marked this pull request as draft
August 19, 2026 03:27
Member
Author
|
Do not merge — dependency inventory from auditing both local repos. The sm_ keys are a cross-product contract, not plugin-internal:* supermemory-mono reads:
supermemory (console/MCP/extension):
Merge order for the real fix:
|
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
Ports #92 onto the CLI-free architecture and finishes the rule behind it: nothing the plugin writes may use the
sm_prefix — that's Supermemory's internal namespace.agent_scope(was reservedsm_scope),agent_project_id,agent_capture_mode,agent_source.agent_scopemetadata; legacy containers stay unfiltered for compatibility.sm_.⛔ Release gate
Do not merge/release until supermemoryai/mono#2895 (the sm_scope→agent_scope backfill) is deployed and complete. Until then, filtered canonical reads return nothing — a silent recall outage. Note for the backfill: this PR also renames
sm_project_id/sm_capture_mode/sm_source; onlyagent_scopeis read-critical, but the backfill should cover all four for consistency.Supersedes #92, which targeted the pre-refactor file layout.
Test plan
node --test test/unit.mjs— 23 passing; capture asserts the agent_* keys and the sm_-free invariant, recall and session-start assert the filter shape on stubbed /v4/profile requests.🤖 Generated with Claude Code