Files
museion/docs/adr/0008-writing-tools-in-app-swift-mcp-server.md
T
AlexKucera 18f0ca6444 docs: synthesize best-of-both from the two grill sessions
Merge the decisions of both design-grill commits into one coherent
PRD/CONTEXT/ADR set. Session agreements (main 4616dd8, pi 87a6016)
reconciled per the merge grill session:

- G5 content layout: Museion Home root (pi) + flat posts/<post id>/
  post.md shape with lazy creation and first-save slug (main);
  explicit Rename moves the folder; Import copies (ADR-0004)
- G6 writing tools: in-app Swift MCP server museion-tools (main,
  ADR-0008) with the minimal surface query_learnings +
  submit_fix_cards, Museion-driven passes, native stats (pi)
- G7 learnings: <home>/learnings/<type>/, one file per learning
  (main), engine owns nothing, fresh start (pi) (ADR-0005)
- G8 decay: 10-pass output clock (pi) with per-learning
  resurface_after frontmatter override (main)
- G9 trust: pi's enumerated defaults incl. never-do list
- fix-card transport stays typed + quote-anchored (ADR-0006);
  state ownership / engine swap pinned (ADR-0007)

ADRs renumbered 0004-0008 (both sessions had claimed 0004/0005);
audit-trail G-entries rewritten as merged records G5-G11;
CONTEXT.md glossary unioned (26 terms) with Project/Post Type
dropped in favor of Home/Content Type; MEMORY.md import struck
(verified: nothing to import); stale 'project' wording removed
from M1 and S8.2.
2026-08-27 14:42:38 +02:00

798 B

0008 — Writing tools are an in-app Swift MCP server

Museion's writing tools (query_learnings, submit_fix_cards) ship inside the app binary, exposed as a stdio MCP server (museion-tools) and registered into the museion profile at provisioning (hermes mcp add museion-tools --command …). One signed artifact, native file access, and the fix-card tool exists from M0. Draft stats are computed natively in Swift at capture (not an agent tool) so the unaided-first-draft guarantee is enforced in code; research stays engine-native. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (cards would need prose parsing — reversing later rewrites the card path). Model/provider stays user-managed in the profile's own config — Museion never touches it.