docs: fold mentor-feel brainstorm results into PRD and glossary

Record the 2026-08-28 brainstorming session output and Sudowrite/Muse
research, and ripple their decisions through the spec: correct the
"never composes" boundary in CONTEXT.md (real rule: no one-button
publish of mentor prose), add S2.8 micro-drills, S3.4 native deslop
lint, and G13 (mentor feel, personas, demonstrator doctrine, model
pin) to the PRD.
This commit is contained in:
AlexKucera committed 2026-08-28 12:31:21 +02:00
1 parent b9f7d11aba
commit da16ffc05a
4 files changed
+219 -4

No files matched your search

+6 -3
View File
@@ -15,7 +15,7 @@
- v1 = the Mentor Loop + library-light; long-form structure, multi-mind, Paper-grade polish deferred to v2+
- **Engine (G1, resolved):** Museion is the shell; Hermes (Python, NousResearch, MIT) is the engine, driven over **ACP** — spawned as a child process `hermes acp -p museion` (stdio JSON-RPC). **User-installed Hermes** — no app-managed install, no bundled Python. First run gates on `hermes acp --check`.
- **Profile isolation (G3, this session):** Museion always runs Hermes under the dedicated `museion` profile (`~/.hermes/profiles/museion/` — isolated config, memory, skills, credentials, chat history). Coding learnings and writing learnings never mix. Not configurable in v1.
- **Provisioning (G3a):** first run creates the `museion` profile if missing, then seeds the writing skills bundled in the app (Serif stack) into `~/.hermes/profiles/museion/skills/`. Seeding is **additive only** — a bundled skill absent from the profile is copied; an existing one is never overwritten, because the mentor's self-improving skills live there.
- **Provisioning (G3a):** first run creates the `museion` profile if missing, then seeds the writing skills bundled in the app (Serif stack, container persona files, demonstrator doctrine, distilled craft canon, drill packs) into `~/.hermes/profiles/museion/skills/`. Seeding is **additive only** — a bundled skill absent from the profile is copied; an existing one is never overwritten, because the mentor's self-improving skills live there.
- **Profile backup (G4):** Museion snapshots `~/.hermes/profiles/museion/` to `~/Library/Application Support/Museion/Backups/` — timestamped, at most once per day on launch, keeping the last 7. Snapshot is a complete copy (credentials included) so restore is one Finder copy-back; backups stay user-local, never in the project or git.
- **Content layout (G5, merged):** one Museion Home; a post is a folder `posts/<post id>/` holding `post.md`, `research/`, `assets/` — created lazily on first write. Further writing types (`essays/`, `stories/`) get the same shape when they arrive; v1 ships `posts/` only. Post id = slug of the draft's first line, computed at first save; explicit Rename moves the folder (the file is always `post.md`); external markdown edits as-is, Import (copy, never move) makes it a Post. ADR-0004.
- **Writing tools (G6, merged; ADR-0008 + ADR-0006):** the Museion binary doubles as the stdio MCP server `museion-tools`, registered into the profile at provisioning — any MCP-capable engine registers it as a client (engine-swap seam — Hermes today, Pi the identified fallback, ADR-0007). Tool surface: `query_learnings`, `submit_fix_cards` — the fix-card tool's argument schema is the fix-card schema; anchors are quote-based (exact substring + occurrence + context), so edits between issue and accept degrade to a loud no-match, never a wrong-span patch. Research stays engine-native; draft stats are computed natively in Swift at capture time — not an agent tool. Pass prompts are Museion-sent minimal stubs (pass name, piece path, tool reminders) — all methodology lives in the profile's skills. The Serif methodology (SKILL.md files, agentskills.io-standard) stays the mentor's operating system. Fallbacks if ACP ever falls short: Hermes gateway JSON-RPC (every feature), HTTP+SSE API server.
@@ -42,7 +42,7 @@ Why now: LLMs hold book-length context, agentic tooling matured, and local model
An IDE for writing — the manuscript is the codebase. Three first-class citizens under one native roof: **the text** (long-form structure, à la Scrivener/Ulysses — minimal in v1), **the library** (sources and notes — library-light in v1, so research lands somewhere tangible), and **the minds** (AI agents as residents that see the whole project, edit, critique — and *mentor*: a fierce editor that makes the writer better, not redundant. The Mouseion housed scholars, not scribes).
v1 delivers this as the Mentor Loop. The workflow is not hypothetical — it already runs daily: Alex writes and edits posts with his Hermes agent on the `serif-writing` skill stack (three-pillar style DNA — Sanderson/Brown/King —, 24 anti-patterns, banned-vocab tiers, Editor's Knife line fixes, two-pass rule, learning capture), complemented by `ref/fiction-craft` (developmental level: misbelief, introspection, protagonist agency, varied emotional beats) for when fiction arrives. Museion's v1 job is to **formalize this validated workflow into an app**, not to invent the mentor.
v1 delivers this as the Mentor Loop. The workflow is not hypothetical — it already runs daily: Alex writes and edits posts with his Hermes agent on the `serif-writing` skill stack (three-pillar style DNA — Sanderson/Brown/King —, 24 anti-patterns, banned-vocab tiers, Editor's Knife line fixes, two-pass rule, learning capture), complemented by `ref/fiction-craft` (developmental level: misbelief, introspection, protagonist agency, varied emotional beats) for when fiction arrives. The stack grows per the 2026-08-28 mentor-feel session (session doc under `docs/brainstorming-output/`): two container personas, a master-study demonstrator doctrine, distilled craft canon filling the developmental shelves, drill packs. Museion's v1 job is to **formalize this validated workflow into an app**, not to invent the mentor.
## v1 scope lock
@@ -56,7 +56,7 @@ v1 delivers this as the Mentor Loop. The workflow is not hypothetical — it alr
|---|---|---|
| M0 | **Bridge spike** (the slice test on real rails) | SwiftUI app spawns `hermes acp -p museion`, opens a session, sends a prompt, renders the streamed reply in a debug pane. A fix-card-shaped message round-trips. First run provisions the profile (create if missing + seed bundled skills) and takes the first snapshot. Records the engine version in `~/Library/Application Support/Museion/state.json` (surfaced in the gate and About). |
| M1 | **Editor surface** | The Museion Home opens with its posts listed; posts edit in calm focus mode, autosave to disk — nothing but plain files. |
| M2 | **Edit passes & fix cards** | Pass 1/Pass 2 runs on the current draft through the bridge; fix cards render; applying a card writes the file under the trust model. |
| M2 | **Edit passes & fix cards** | Pass 1/Pass 2 runs on the current draft through the bridge; fix cards render; applying a card writes the file under the trust model; the native deslop lint (S3.4) pre-seeds style cards — banned-vocab tiers and em-dash density, computed in Swift, no engine round-trip. |
| M3 | **Critique memory** — the differentiator | Promote/dismiss/decay works on real posts; every pass consults memory. *This is the milestone that justifies the app.* |
| M4 | **Measurable improvement** | Stats tracked on unaided first drafts; trend view across drafts. |
| M5 | **Research & library-light** | Mentor researches mid-pass; findings land as keep/reject candidate source-notes; kept notes feed later passes. |
@@ -80,12 +80,14 @@ M0–M3 is the ~3-month differentiator core; M4–M6 are sheddable in that order
- **S2.5 — Trust model.** As the writer, the mentor acts only within trust levels: auto-act / inform-after / ask-before / never-do. *AC:* trust level maps to UI (dimmed inline edits vs blocking asks); never-do actions never auto-apply. Defaults, not configurable in v1: research fetch = auto-act; candidate source-note = inform-after; apply any fix, promote, keep note, publish = ask-before; delete files, touch anything outside Home and profile, shell, git = never-do.
- **S2.6 — The engine is backed up.** As the writer, the mentor's accumulated state (memory, skills, history) survives profile corruption or a bad update. *AC:* on launch, if the last snapshot is older than a day, Museion copies `~/.hermes/profiles/museion/` to a timestamped snapshot under `~/Library/Application Support/Museion/Backups/`, keeping the last 7 (G4); complete copy, credentials included; restore is manual copy-back in v1; snapshots never land in the project or git.
- **S2.7 — Draft from session.** As the writer, a freeform session can birth a Post. *AC:* "New Post from Session" creates the piece folder, writes the draft, stamps `origin: ai` (immutable — never stats-eligible); brainstorming is a session started with a brainstorm prompt — no separate machinery; session↔Post association stays by name/convention.
- **S2.8 — Drill offers at the motivation moment.** As the writer, when a pass exposes a weakness, the mentor may offer a micro-drill targeting exactly that weakness. *AC:* drills are session flavor (prompt-pack) — no machinery beyond S2.3; ≤2 minutes, offered right after the pass finding that motivates it; never homework, queues, or streaks; a declined drill vanishes; drills never edit the draft.
### Structured edit passes → fix cards (M2)
- **S3.1 — Run a pass.** As the writer, I run Pass 1 (paragraph level and up — the skill stack's compose pass) or Pass 2 (line level — its hunt pass) on the current draft as a first-class document state. *AC:* running a pass never destroys text; changes diff against the original — a pre-pass snapshot lands in the post's `passes/` (latest per pass type kept); Pass State advances when the pass completes, not when its cards resolve; passes run in any order — order is the skill stack's to nag about, never the app's to enforce. A pass completes when the engine's turn ends — stream complete, tool calls settled.
- **S3.2 — Read fix cards.** As the writer, each finding arrives as a card: problem → diagnostic question → fix. *AC:* cards anchor to text spans; applying a card writes the file; the card schema is the critique-memory schema.
- **S3.3 — Keep my hand on the wheel.** As the writer, I accept or skip each card; ask-before fixes block until answered. *AC:* no batch-apply-all in v1.
- **S3.4 — Native deslop lint.** As the writer, deterministic style findings arrive as fix cards without an engine round-trip. *AC:* banned-vocab tiers and em-dash density computed in Swift at pass invocation, after First-Draft stats capture (S5.1); findings use the fix-card schema (ADR-0006) and render like any card; same trust model (ask-before apply). Evidence: prompting tops out ~80% style compliance — the last 20% is deterministic-checker territory (three 2026 studies; session doc, model research digest).
### Persistent critique memory — the load-bearing feature (M3)
@@ -161,6 +163,7 @@ M0–M3 is the ~3-month differentiator core; M4–M6 are sheddable in that order
- **G10 — Origin wall & session drafting (pi session).** "New Post from Session" stamps immutable `origin: ai`; only writer-origin First Drafts feed stats; brainstorm = session flavor; sessions engine-owned with resume/compact.
- **G11 — Publish & model (main session).** Micropub token in Keychain, entered once, no OAuth in v1; model/provider user-managed in the profile config.
- **G12 — Illustration gate → collapsed (grill session 3).** User decision: the author judges illustration style himself; the mentor never assesses images. M6 deleted, milestones renumbered; illustrations are plain image refs into `assets/`, and the publish floor lives in S6.2 — no photo ships without alt text. The `ref/` style guides stay author-side generation references, outside app scope.
- **G13 — Mentor feel & the skills ceiling (brainstorm session, 2026-08-28).** Decisions, evidenced in `docs/brainstorming-output/brainstorming-session-2026-08-28-0923.md`: (1) feel = trust that the mentor guards Alex's voice against AI-default register; two container personas — Pass = Editor-in-Chief/Knife (Chief 40/Knife 30), Session = Coach/Knife (Coach 40/Knife 30), warm-but-firm by blend arithmetic; learnings consulted silently, never nagged. (2) The persona exceeds the library: the stack covers ~1/3 of the craft territory and every empty shelf is additive (rhetoric, structure-for-posts, reader-psych, humor, better-words doctrine). Fill by distilling books into skills first; RAG only if distillation underdelivers. (3) The demonstrator role is in-bounds — master-study doctrine (example paragraphs in a named master's style, passed through the mentor's own deslop gauntlet); CONTEXT.md's "never composes" corrected to the real boundary: no one-button publish of mentor prose. (4) Micro-drills in v1 (S2.8) — ride the motivation moment; design for the lazy writer. (5) Native deslop lint in v1 (S3.4) — full style compliance needs a deterministic checker + repair loop, not prompts; style constraints sit at prompt-end (recency bias). (6) Model stays `zai/glm-5.3` — research-validated (EQ Longform 81.8, slop 7.09, Claude-Fable-nearest register); audition actors, not authors; optional later audition: Claude Fable 5 for the demonstrator role.
## Stress-test verdict № 1 (2026-08-26 — carried from MISSION.md)