Add /ask to wiki-operator (grounded Q&A over the vault)#26
Merged
Conversation
Closes the retrieval gap: wiki-operator's own SKILL.md description has promised "what do I know about Y" as a trigger phrase since it was written, with no command behind it. /ask fulfills that promise. - search_notes + read_note (Knowledge/, Sources/ first; Journal/ only as a flagged last resort) + optional one-hop list_links expansion - every claim carries an inline [[citation]]; draft/low-confidence sources are labeled as such, never presented with false authority - never blends vault content with general knowledge silently — an unanswerable question is stated plainly, logged, and only answered from general knowledge if the user opts in - unanswered queries append to the new Maps/_ask_log.md (assets/ask-log.md template), which wiki-governor's Phase 4 now reads explicitly instead of the previously vague "failed /ask queries" reference knowledge-os/architecture.md: documents the single-writer discipline between _ask_log.md (operator writes, governor reads) and _gaps.md (governor writes) — the same one-owner-per-artifact pattern already used for MCP writes (backup-before-overwrite, atomic rename). README: /ask added to wiki-operator's command list; wiki system prose corrected to include wiki-governor (missed in the prior PR). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013H1oBwjtpzDLGreGTTjoP7
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.
Implements
/ask— the last identified gap in the wiki lifecycle (Retrieve). No new MCP capability needed; this closes a behavioral gap, not a plumbing one.Why this one, after
rename_noteand ingestion got retractedwiki-operator's ownSKILL.mddescription has listed"what do I know about Y"as a trigger phrase since it was written — with no command behind it. That's a documented promise with no algorithm, which is a real, evidenced gap (unlike the other two, which turned out to already be covered by existing primitives + judgment).What
/askdoessearch_notes+read_note, scoped toKnowledge/andSources/first (the vetted material);Journal/Daily/only as a flagged last resort, explicitly marked as unprocessedlist_linksexpansion to pull in tightly connected notes[[citation]];draft/low-confidencesources are labeled as such, never presented with false authorityThe new artifact —
Maps/_ask_log.mdUnanswered queries are appended here (template:
assets/ask-log.md). This makeswiki-governor's Phase 4 gap-queue input real for the first time — previously it referenced "failed/askqueries" vaguely, since/askdidn't exist. Governor's Phase 4 now cites the file explicitly.Single-writer discipline, documented in
knowledge-os/architecture.md:/askappends only,wiki-governorreads only — the same one-owner-per-artifact pattern already used for MCP writes (backup-before-overwrite, atomic rename).Also fixed while in these files
wiki-governorwas missing (an oversight from the prior PR). Corrected.Files
skills/wiki-operator/SKILL.md—/askcommand, updated description/trigger list, vault-structure diagram, output disciplineskills/wiki-operator/assets/ask-log.md— new templateskills/wiki-governor/SKILL.md— Phase 4 now cites_ask_log.mdexplicitlyknowledge-os/architecture.md— new "Governance artifacts" section documenting the single-writer patternREADME.md— command list + wiki-system prose fixDocs-only change (no runnable code), so nothing new for CI to execute.
🤖 Generated with Claude Code
Generated by Claude Code