fix: isolate Sinapsis registry from skill-router (v4.6.1)#20
Merged
Conversation
Sinapsis used ~/.claude/skills/_projects.json as its canonical project registry, but that filename is also owned by the bundled skill-router skill (and external launchers) with a different schema. The session-learner upsert (added in v4.3.3) would append Sinapsis hash-entries into the launcher's registry on every Stop event, mixing two schemas in one file. Sinapsis now owns ~/.claude/skills/_sinapsis-projects.json; _projects.json is left entirely to skill-router. The learner repopulates the new registry automatically on Stop (no migration needed), and _eod-gather.sh reads it with the legacy homunculus/projects.json fallback unchanged. - Rename writer (_session-learner.sh), readers (_eod-gather.sh, _generate-dashboard.py, commands), template (core/_sinapsis-projects.json) and installers to the dedicated filename. skill-router keeps _projects.json. - New tests/test-registry-isolation.sh; test-install-upgrade + test-eod-gather updated. Full suite green (10 suites). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Registry filename collision fix (v4.6.1)
Sinapsis used
~/.claude/skills/_projects.jsonas its canonical project registry, but that filename is also owned by the bundled skill-router skill (and external launchers) with a different schema (id/category/path/...vsid/root/remote/...). On a machine where a launcher owns_projects.json, the session-learner upsert (v4.3.3) appended Sinapsis hash-entries into the launcher's registry on every Stop event — two schemas colliding in one file.Fix
Sinapsis now owns a dedicated
~/.claude/skills/_sinapsis-projects.json;_projects.jsonis left entirely to skill-router._session-learner.sh), readers (_eod-gather.sh,_generate-dashboard.py,/projects,/instinct-status,/evolve,/backup,/dashboard-sinapsis), template (core/_sinapsis-projects.json) and installers all use the dedicated name.skill-router/SKILL.mdkeeps_projects.json.homunculus/projects.jsonfallback.Tests
tests/test-registry-isolation.sh(4 tests).test-install-upgrade+test-eod-gatherupdated to the new filename.🤖 Generated with Claude Code