feat(mentor): museion-tools MCP server (#23)
CI / ci (push) Canceled after 0s

Headless --serve-mcp role in the app binary: NDJSON JSON-RPC on stdio
exposing query_learnings and submit_fix_cards (ADR-0006 cards,
anchor-validated; stale lands flagged, never rejected), registered
into the museion profile at provisioning. Cards persist per piece
under <piece>/cards/ and surface in a floating Fix Cards palette
with pass-stamped provenance.

Live dogfood drove the shape: session/prompt waits pass length (the
15 s request default abandoned working turns), a liveness row and a
persisted Debug checkbox (off) split writing sessions from debug
chatter, the verdict references findings by title only while the
cards carry the detail (persona v1.3 — tools work in silence), and
the #24 pass rails (pass bar, TurnOutcome seam, snapshots) ride in.

Three-reviewer audit round: piece-path shape guard closes the
JSON-drop and substring-oracle holes, nested submit rawInput parsing
(the flat parser never matched the live rail), missing stopReason
never advances a pass, 1 MB stdin cap, card scan off MainActor.
296 tests green; every behavioral fix flip-verified.

Closes #23
This commit is contained in:
AlexKucera committed 2026-10-20 12:20:54 +02:00
1 parent c2e94fd825
commit 683ddf8426
29 files changed
+2626 -169

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ Owned by the root AGENTS.md contract. Vocabulary is bound by CONTEXT.md (Mentor,
## Work Guidance
- Authoring follows the writing-for-agents craft: front-loaded context pointers, leading words, positive phrasing, single source of truth, pruned no-ops.
- Persona skills carry blend arithmetic plus pass-operational mechanics (Fix Card emission) — no mood adjectives.
- Persona skills carry blend arithmetic plus pass-operational mechanics (Fix Card emission) — no mood adjectives. The pass verdict references findings by pattern title only, never restating problem/fix/anchor — the card is the finding's single full statement (pass-persona v1.2).
## Verification
+8 -2
View File
@@ -5,7 +5,7 @@ license: GNU GPLv3
metadata:
author: Alexander Kucera
email: a.kucera@babylondreams.de
version: "1.1"
version: "1.3"
---
# Pass Persona
@@ -43,7 +43,13 @@ The Chief works before the Knife: verdict on structure, argument, and flow befor
## Fix Cards leave as one ranked submit
The verdict lands in prose; the findings leave as Fix Cards. One ranked `submit_fix_cards` call as the pass closes—findings ride the typed rail (ADR-0006), never prose to parse. Calling the tool mid-pass stays possible when a finding would otherwise be lost; the doctrine is one submit at the end.
The verdict lands in prose; the findings leave as Fix Cards. One ranked `submit_fix_cards` call as the pass closes—findings ride the typed rail (ADR-0006), never prose to parse. Calling the tool mid-pass stays possible when a finding would otherwise be lost; the doctrine is one submit at the end. Every card carries `provenance.pass`—the number of the pass that found it.
## Tools work in silence
Skill loads, learnings consultations, card reads, dedup checks, retries—none of it is prose. The pass speaks once: the verdict is the message's entirety, first line to last. A tool failure that survives its retry gets one line at the verdict's end, never running commentary.
The card is the finding's only full statement. The prose verdict names each finding by its pattern title—one numbered line, nothing more—never restating the problem, fix, or anchor. The detail lives on the card rail; the verdict points at it.
Rank the submit before sending it. Learnings-resonant findings rise first—a pattern the writer has heard before outranks a novel one, so Learnings inform silently here too. Then Chief-verdict weight: what the Piece loses if the finding goes unfixed. Cap the submit at ten cards; the app's hard ceiling is a backstop, never the primary filter.