Skip to content

feat(skills): make /retrospective use the knowledge store this home is configured with - #42

Merged
alandomio merged 4 commits into
mainfrom
fm/retrospective-rag-backend
Sep 26, 2026
Merged

alandomio merged 4 commits into
mainfrom
fm/retrospective-rag-backend

Conversation

@alandomio

@alandomio alandomio commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Why

The same firstmate repo runs on machines with different org-wide knowledge stores: one has the RAG (rag_qdrant_server), another PP Brain.
/retrospective hard-coded PP Brain and its search_knowledge / add_knowledge tools, 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 by bin/fm-brief.sh), the skill should detect the environment from that setting and use the right backend.

What

  • bin/fm-knowledge-store-lib.sh is now the single reader of config/knowledge-store; bin/fm-brief.sh sources it (generated briefs are byte-identical).
  • New read-only bin/fm-knowledge-store.sh read prints name=, backend=, search= for skills.
  • Optional line 3 names the backend (rag or pp-brain); without it the backend is derived from the MCP server line 2 names, and any other store resolves to other (recall only, writes left pending).
  • An absent file resolves to the RAG, matching the setting's historical default; a malformed file, including an unknown line-3 key, is refused as before.
  • /retrospective resolves its org store first and takes recall/write verbs per backend from reference.md: RAG uses query_rag_hybrid and ingest_document (with document_type in guida|policy|info|ticket), PP Brain keeps search_knowledge / add_knowledge.
  • Approval gates are unchanged: every org-store write still needs approval.
  • Docs: docs/configuration.md "Knowledge store naming", README, and the AGENTS.md layout line.

Tests

  • New 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.sh passes unchanged, confirming brief output did not move.

Alan Domio 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.
@alandomio
alandomio merged commit c4cfea3 into main Sep 26, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant