Repository navigation
An insight that add-insight bridges has three copies: the insights row in the plugin's memstack.db, the lesson in the skill-loader's procedural_memory, and that lesson's memory_fts row, which memory_search reads. Nothing corrected or deleted them together, so a correction left the old text searchable. This release gives them one correction path, owned by the loader.
Correction commands
correct-insight <json>anddelete-insight <id> [--force]delegate to the loader'sinsight_sync, which rewrites or removes the insight, its lesson and the lesson's search entry in one transaction across both database files. A lesson another insight shares is forked on correct and kept on delete. A lesson that no longer holds the insight's current text is refused unlessforceis passed. An insight with no stored link is resolved by the loader when exactly one lesson matches its type and bridged body.insights.lesson_idlinks an insight to its bridged lesson.add-insightwrites it on every bridge, and an older store gains the column on first open.link-lessons [--apply] [--since TS]backfills the link for insights bridged before the column existed. Dry run unless--apply.
Requires memstack-skill-loader 4.21.4 or newer
All three commands delegate to insight_sync, which first ships in loader 4.21.4. Update with pip install --upgrade memstack-skill-loader.
On an older or missing loader the commands refuse instead of half-correcting: they exit 1 with a message saying the installed loader does not support safe insight correction and to update memstack-skill-loader to 4.21.4 or newer, and nothing is changed, not even the insight row. The check reads the loader's version, not only whether insight_sync imports. MEMSTACK_DB_PATH set is refused the same way, with a message naming that cause.
Existing stores: link old pairs by hand
Insights saved before this release have no lesson_id. Correct and delete handle them one at a time as above. To link them all at once, run memstack-db.py link-lessons from the plugin, which is a dry run, and then memstack-db.py link-lessons --apply. This is a one-time manual step. Neither the plugin nor the loader runs it automatically.
Receiving this release
Run /plugin marketplace update cwinvestments-memstack, then /plugin update memstack@cwinvestments-memstack, then restart Claude Code.
Plugin-load gate PASS, 87 of 87 SKILL.md registered. Full changelog: CHANGELOG.md.