Repository navigation
feat(skills): make /retrospective use the knowledge store this home is configured with - #42
Merged
Merged
Conversation
added 4 commits
September 26, 2026 16:06
…s configured with The retrospective hard-coded PP Brain and its search_knowledge/add_knowledge tools, so on a home whose org-wide store is the RAG it always marked the layer unreachable and saved nothing there. Extract the config/knowledge-store reader from fm-brief.sh into bin/fm-knowledge-store-lib.sh, the one owner shared by fm-brief.sh and a new read-only bin/fm-knowledge-store.sh that prints name, backend and search instructions. An optional line 3 names the backend (rag or pp-brain); without it the backend is derived from the MCP server line 2 names. The retrospective now resolves the org store from it and takes its recall and write verbs from reference.md per backend; approval gates are unchanged.
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.
Why
The same firstmate repo runs on machines with different org-wide knowledge stores: one has the RAG (
rag_qdrant_server), another PP Brain./retrospectivehard-coded PP Brain and itssearch_knowledge/add_knowledgetools, so on a RAG machine it always marked the org layer unreachable and saved nothing there.Since the knowledge-store name is already a per-home setting (
config/knowledge-store, used bybin/fm-brief.sh), the skill should detect the environment from that setting and use the right backend.What
bin/fm-knowledge-store-lib.shis now the single reader ofconfig/knowledge-store;bin/fm-brief.shsources it (generated briefs are byte-identical).bin/fm-knowledge-store.sh readprintsname=,backend=,search=for skills.ragorpp-brain); without it the backend is derived from the MCP server line 2 names, and any other store resolves toother(recall only, writes left pending)./retrospectiveresolves its org store first and takes recall/write verbs per backend fromreference.md: RAG usesquery_rag_hybridandingest_document(withdocument_typeinguida|policy|info|ticket), PP Brain keepssearch_knowledge/add_knowledge.docs/configuration.md"Knowledge store naming", README, and theAGENTS.mdlayout line.Tests
tests/fm-knowledge-store.test.sh: absent default, PP Brain derivation, explicit line-3 override,other, and refusals of empty, name-only, and bad-backend files.tests/fm-brief.test.shpasses unchanged, confirming brief output did not move.