diff --git a/CONTEXT.md b/CONTEXT.md index e637ce3..e84d53b 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -1,61 +1,98 @@ # Museion -The Agentic Writing Environment: a native macOS shell where a writer's project, a resident AI mentor, and the writer's own critique memory work together. This glossary is the shared language of the app, the mentor, and the docs. +The Agentic Writing Environment: a native macOS app where the writer, the text, and a resident AI mentor work on long-form content under one roof. This glossary pins the language of that domain. ## Language -### The workspace +### Content -**Project**: -The folder a writer opens in Museion; the whole body of work. Plain files on disk, no proprietary store. -_Avoid_: vault, workspace, library (for the project itself) +**Museion Home**: +The single root folder holding all Museion-owned content and learnings. One home per writer. +_Avoid_: workspace, vault, project -**Post Type**: -A kind of work, giving the project's top-level folders — `posts/` first; `essays/`, `stories/` later, same shape. -_Avoid_: category, document class +**Piece**: +A unit of writing of one Content Type; structurally a folder in the home (`content///`) containing the markdown file and per-piece Assets. +_Avoid_: document, file, manuscript **Post**: -One piece of writing: a folder (`posts//`) holding `post.md`, its `research/`, and its `assets/`. -_Avoid_: document, note, file (the file is `post.md`) +A short-form Piece intended for blog publishing. The only Content Type in v1. +_Avoid_: article, entry, draft -**Post ID**: -The post folder's name — the post's durable identity. - -**Research Note**: -A kept source-finding with provenance, living in its post's `research/`. Candidates wait until kept; rejected ones vanish. -_Avoid_: source card, clip +**Content Type**: +The kind of Piece (Post today; Essay, Story, Book later). Determines the folder under `content/` and the partition of Learnings. +_Avoid_: category, kind **Assets**: -The per-post illustration files, checked against the style guides before the post may publish. +The per-Piece folder (`/assets/`) for illustrations and other media belonging to that Piece alone. -**Learning**: -A writer's recurring weakness, deliberately promoted from an accepted fix card. On-purpose writer memory — distinct from the mentor's own automated memory, which Museion never touches. Lives in the project's `learnings/`, scoped per writing type (`learnings/posts/`, later `learnings/stories/`, …). -_Avoid_: critique entry, memory (ambiguous with the mentor's), MEMORY.md (the pre-Museion ancestor) +**Import**: +Bringing external markdown into the home as a Piece. External files are editable as-is; becoming a Post requires it. +_Avoid_: convert, migrate -### The loop +**Origin**: +The authorship record of a Post: writer or ai. Immutable; only writer-origin First Drafts are ever stats-eligible. +_Avoid_: source, mode + +### The Mentor Loop **Mentor**: -The resident AI agent — a fierce editor and teacher, not a ghostwriter. A Hermes agent under the Museion profile; the writer never manages its process. -_Avoid_: assistant, copilot, bot +The resident agent: fierce critic in Passes, collaborator in Sessions (drafting, brainstorming). The only mind in v1. +_Avoid_: assistant, copilot, chatbot **Engine**: -Hermes Agent, user-installed. Museion is the shell; Hermes is the mind. +The external agent process hosting the Mentor (Hermes over ACP in v1). Swappable by design; never owns Museion state. +_Avoid_: backend, model -**Museion Profile**: -The isolated Hermes profile (`museion`) the mentor always runs under: its config, skills, credentials, automated memory. Holds *how* to critique, never *what* was learned. -_Avoid_: the mentor's memory (conflates profile with learnings) +**Session**: +A conversation with the Mentor — freeform by default, sometimes the container of a Pass. Carries the standard affordances: new, resume, compact, fork. May float free of any Piece or associate with one. +_Avoid_: chat, thread **Pass**: -A structured mentor run over a draft: Pass 1 (compose) or Pass 2 (line-level hunt). -_Avoid_: review, edit (too generic) +A structured critique run over a Piece. Pass 1 critiques at paragraph level and up (structure, argument, flow); Pass 2 at sentence level and below (line edits). The mentor reads and critiques; it never composes. +_Avoid_: review, run, check + +**Pass State**: +The maturity of a Piece, recorded in its frontmatter: First Draft, Pass-1 Done, Pass-2 Done. Explicit, never inferred. +_Avoid_: status, draft state **Fix Card**: -One critique finding — problem, diagnostic question, fix — anchored to a text span. The unit of mentor output, writer acceptance, and learning promotion; travels as a structured tool call, never as prose to parse. +One finding from a pass: pattern, problem, diagnostic question, fix, anchor, provenance, status. Anchored to a text span; applying it edits the file. _Avoid_: suggestion, comment, annotation -**Unaided First Draft**: -A draft's state before any mentor output has touched it — the only text whose stats measure the writer. -_Avoid_: raw draft +**Learnings**: +The per-writer, per-content-type store of promoted critique patterns (`learnings//` in the home). Plain markdown, owned by Museion, consulted on every pass. +_Avoid_: critique memory, memory (unqualified), .learnings + +**Learning**: +One promoted pattern in Learnings: a Fix Card's fields plus the provenance of its promotion. +_Avoid_: rule, note + +**Skip**: +Closing a Fix Card as "not this instance." Records nothing. +_Avoid_: reject, dismiss + +**Apply**: +Accepting a Fix Card so its edit lands in the file. +_Avoid_: accept, fix (verb) + +**Promote**: +The writer's explicit confirmation that a pattern enters Learnings. Never automatic, never a repetition counter. +_Avoid_: save, remember + +**Dismiss**: +Marking a Learning as unwelcome. It fades per Decay and may resurface later. +_Avoid_: delete, skip + +**Decay**: +The policy governing when dismissed Learnings may resurface. +_Avoid_: expiry, timeout + +### Trust **Trust Level**: -How the mentor may act: auto-act, inform-after, ask-before, never-do — set per action type. +One of four permissions for mentor actions: Auto-act, Inform-after, Ask-before, Never-do. +_Avoid_: permission mode + +**Provenance**: +The origin record carried by a Fix Card or Learning (piece, date, engine). +_Avoid_: metadata diff --git a/PRD.md b/PRD.md index 78d4c3d..0f3e0e9 100644 --- a/PRD.md +++ b/PRD.md @@ -11,7 +11,7 @@ - Native SwiftUI macOS app, macOS 26.5+, Swift 6 (ADR-0001) - GPL-3.0-or-later (ADR-0002) - Forge: Gitea at git.babylondreams.de (ADR-0003) -- Plain markdown files on disk — no bespoke store (Obsidian gravity wins otherwise) +- Plain markdown files on disk — no bespoke store. Content is folder-shaped (ADR-0004): `content///.md` + `assets/` per piece — still plain files, so Obsidian gravity weakens but holds. - 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. @@ -21,9 +21,11 @@ - **Writing tools host (G6, ADR-0006):** the Museion binary doubles as the stdio MCP server `museion-tools`, registered into the profile at provisioning. Fix cards travel as its typed tool calls (ADR-0005) — the 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. - **Critique memory home (ADR-0004):** writer learnings live in the project's `learnings/` (no dot — hand-editable, git-diffable), scoped per writing type (`learnings/posts/`, …), one markdown file per learning with decay state in frontmatter. The mentor's own automated memory stays in the profile; Museion never reads or writes it. - **Model/provider:** user-managed by editing the `museion` profile's config (currently `zai/glm-5.3`); Museion never touches it. -- **Writing tools register Hermes-side as MCP tools** (ACP carries the editor↔agent channel; MCP carries the agent's tools): edit-pass runner, critique-memory query/promote, draft stats, research. 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. +- **Writing tools, Museion-hosted (ADR-0005):** Museion runs an MCP server; any MCP-capable engine registers it as a client (engine-swap seam — Hermes today, Pi the identified fallback). Tool surface: `query_learnings`, `submit_fix_cards`; research stays engine-native; draft stats are computed natively in Swift. 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. - **Publish (G2, resolved):** Micro.blog via Micropub. Media endpoint accepts PNG (also JPEG, GIF, WebP, SVG, JXL — verified) — ink-sketch illustrations upload as-is. - **Build order:** loop-first — bridge spike (M0) before editor polish; the differentiator (critique memory) lands in M3, not last. +- **Museion Home:** `~/Museion` by default, editable in Settings; repoint-only — Museion never moves content. +- **Learnings live in the Home (G6):** `/learnings//` — per-writer, per-content-type, plain markdown, Museion-owned. Fresh start in v1; nothing to import. ## Problem @@ -48,13 +50,13 @@ v1 delivers this as the Mentor Loop. The workflow is not hypothetical — it alr **In scope:** the eight features below, sequenced M0–M7 (loop-first). -**Non-goals (deferred to v2+ or never):** long-form structure tools (binder/compile), multi-mind agents, vault depth (backlinks, graph), native Swift agent loop, app-managed Hermes install/venv, publish targets beyond Micro.blog, platforms beyond macOS, App Store distribution (GPL-3 landmine — struck). +**Non-goals (deferred to v2+ or never):** long-form structure tools (binder/compile), multi-mind agents, vault depth (backlinks, graph), native Swift agent loop, app-managed Hermes install/venv, publish targets beyond Micro.blog, platforms beyond macOS, App Store distribution (GPL-3 landmine — struck), session↔Post link machinery, engine-swap transcript migration, AI-draft wizards/templates. **Milestones:** | # | Milestone | Ships when | |---|---|---| -| 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. | +| 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** | A folder of markdown posts opens, edits in calm focus mode, autosaves 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. | | M3 | **Critique memory** — the differentiator | Promote/dismiss/decay works on real posts; every pass consults memory. *This is the milestone that justifies the app.* | @@ -69,17 +71,18 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order ### Editor surface (M1) -- **S1.1 — Open a project.** As the writer, I open a folder and see my posts and drafts listed, so the folder is the project. *AC:* the list mirrors disk (`posts//post.md`; folders created lazily on first write); new/rename/delete round-trip to the file system; a new post's folder is named from its first line's slug at first save. +- **S1.1 — Open the Home.** As the writer, I open the Museion Home and see my Posts listed. *AC:* the list mirrors `content/posts/`; new/rename/delete round-trip to piece folders (`/.md`); postid = title slug, frozen at creation, explicit Rename moves folder+file; external markdown opens and edits as-is; Import (copy, never move) makes it a Post. - **S1.2 — Write in calm.** As the writer, I edit in a distraction-free focus mode, so the tool disappears. *AC:* centered focus mode; autosave to disk; no proprietary store — every state survives closing the app. ### Mentor agent over the bridge (M0, M2) - **S2.1 — First-run engine gate & provisioning.** As the writer, Museion tells me on first run whether Hermes is ready (`hermes acp --check`) and how to install it if not; it then provisions its engine. *AC:* explicit pass/fail, no silent failure; the `museion` profile is created if missing; bundled writing skills are seeded additively — missing ones copied, existing ones never overwritten (G3a). - **S2.2 — The resident mind.** As the writer, the mentor runs as a resident I don't manage. *AC:* app spawns `hermes acp -p museion` (stdio JSON-RPC child); memory/skills/credentials load from `~/.hermes/profiles/museion/`; app quit tears down the child; child crash surfaces a restart prompt, never data loss. -- **S2.3 — Session lifecycle.** As the writer, each work session is a conversation I control. *AC:* new/cancel/fork per session; cancel mid-pass stops the agent; streamed output renders live. -- **S2.4 — Writing tools, Hermes-side.** As the mentor, I have purpose-built tools: edit-pass runner, critique-memory query/promote, draft stats, research. *AC:* served by the Museion binary itself over stdio MCP (`museion-tools`), registered into the `museion` profile at provisioning (ADR-0006); callable mid-pass; outputs land in Museion's UI. -- **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: file mutation outside card apply = ask-before; card apply = per-card accept; publish = ask-before; everything else = inform-after. No settings UI in v1. +- **S2.3 — Session lifecycle.** As the writer, each session is a conversation with the standard affordances. *AC:* new/cancel/fork/resume/compact; every pass auto-creates its session; freeform sessions always allowed, free-floating or Piece-associated; sessions are engine-owned — Museion only UIs them (swap the engine, transcripts stay behind); cancel mid-pass stops the agent; streamed output renders live. +- **S2.4 — Writing tools, Museion-hosted.** As the mentor, I have purpose-built tools. *AC:* Museion hosts the MCP server (ADR-0005); surface = `query_learnings` + `submit_fix_cards`; callable mid-pass; outputs land in Museion's UI; research stays engine-native; draft stats are computed natively in Swift at capture time — not an agent tool. +- **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. ### Structured edit passes → fix cards (M2) @@ -90,13 +93,13 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order ### Persistent critique memory — the load-bearing feature (M3) - **S4.1 — Promote by confirmation.** As the writer, only my explicit confirmation promotes a fix card into persistent critique memory — never a raw repetition counter. *AC:* one confirm = one entry, carrying the fix-card fields plus provenance. -- **S4.2 — Dismiss with decay.** As the writer, dismissed patterns fade instead of haunting me. *AC:* a dismissed learning resurfaces after 3 posts of its writing type; each further dismissal doubles the interval (3 → 6 → 12 …); per-learning `resurface_after` frontmatter overrides. -- **S4.3 — The mentor remembers.** As the writer, every future pass consults my critique memory, so recurring weaknesses surface as fix cards. *AC:* stored as plain markdown in the project's `learnings//` (ADR-0004) — one file per learning, human-readable and git-diffable. -- **S4.4 — Mine alone.** As the writer, my memory is per-writer and portable. *AC:* lives in the project as plain files; importable from today's hand-maintained MEMORY.md. +- **S4.2 — Dismiss with decay.** As the writer, dismissed patterns fade instead of haunting me. *AC:* dismissed entries resurface after 10 subsequent passes of that content type (output-clock, not calendar); each re-dismiss doubles the interval (10→20→40…); one config knob (the base number). +- **S4.3 — The mentor remembers.** As the writer, every future pass consults my critique memory, so recurring weaknesses surface as fix cards. *AC:* stored as plain markdown in `/learnings/posts/`, human-readable, diffable and exportable. +- **S4.4 — Mine alone.** As the writer, my memory is per-writer and portable. *AC:* lives in the Museion Home as plain files; fresh start in v1 — no legacy import (today's `serif` profile on the Pi carries no learnings). ### Measurable improvement (M4) -- **S5.1 — Measure the writer, not the text.** As the writer, stats (burstiness, type-token ratio, sentence-length variation, trigram repetition) are computed on **unaided first drafts only**. *AC:* edited text never feeds the trend; first-draft detection is explicit (pass state), not inferred. +- **S5.1 — Measure the writer, not the text.** As the writer, stats (burstiness, type-token ratio, sentence-length variation, trigram repetition) are computed on **unaided first drafts only**. *AC:* edited text never feeds the trend; first-draft detection is explicit (pass state), not inferred; capture fires at first Pass-1 invocation, before the engine sees anything; only `origin: writer` First Drafts qualify — `origin` (writer|ai) is immutable frontmatter; captured stats live in the `museion:` frontmatter block, so the trend view is a scan of `content/posts/`. - **S5.2 — See the arc.** As the writer, I see per-metric trends across drafts over time. *AC:* the view answers "am I getting better," not "is this draft good." ### Illustration pass (M6) @@ -145,7 +148,8 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order 5. **UX smothering fierceness** — friction is the product; polish that hides the critique kills it. *Mitigation:* critique stays visible and sharp in the UI (S3.2/S4 cards are first-class, never toasts). 6. **Stats validity** — measuring edited output proves the edits, not the writer. *Mitigation:* unaided-first-drafts-only is a hard rule (S5.1), not a setting. 7. **Profile leakage** — coding learnings contaminating the writing mentor. *Mitigation:* solved by design (G3) — `-p museion` always, not configurable in v1. -8. **Carried, personal-v1-moot:** macOS-only · n=1 design risk · category evangelism · Obsidian's gravity (the switch reason, if published, is mentor + memory, not "native and elegant"). +8. **Engine upstream death or drift** — Hermes could stall or turn unfavorable. *Mitigation:* ADR-0005 — Museion owns all durable state, tools run in a Museion-hosted MCP server, and sessions (the only engine-owned state) are expendable; Pi is the identified fallback. +9. **Carried, personal-v1-moot:** macOS-only · n=1 design risk · category evangelism · Obsidian's gravity (the switch reason, if published, is mentor + memory, not "native and elegant"). ## Decisions (audit trail) @@ -155,9 +159,12 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order - **G3a — Provisioning + skill seeding (this session).** User decision: Museion creates the `museion` profile if missing and copies its bundled writing skills (Serif stack, shipped as app resources) into the profile. Seeding is additive-only so it never clobbers the mentor's self-improved skills — a later Museion version adds new skills, never overwrites old ones. - **G4 — Profile backup (this session).** User decision: Museion keeps timestamped snapshots of the whole `museion` profile — the mentor's memory and improved skills are irreplaceable state, not reinstallable. Defaults: daily on launch, last 7 kept, complete copy including credentials (same-machine threat model), restore manual in v1. - **Build order → loop-first (this session).** M0 bridge spike before editor polish; differentiator (M3) before conveniences (M5–M7). -- **G5 — Project layout → lazy post-folder convention (this session).** `posts//` holding `post.md`, `research/`, `assets/`, created on first write; new writing types copy the shape. Post id = slug of the first line at first save. -- **G6 — Writing tools → in-app Swift MCP server (this session, ADR-0006).** One artifact serves the tools and the UI; fix cards travel as typed tool calls (ADR-0005) with quote-based anchors. Trust defaults fixed (S2.5); model/provider user-managed in the profile config. -- **G7 — Learnings scope → global per writing type (this session).** `learnings/posts/` etc., one file per learning; decay = resurface after 3 posts, doubling per dismissal, per-learning override. Micropub token → Keychain, no OAuth in v1. +- **G5 — Project layout → lazy post-folder convention (main grill session).** `posts//` holding `post.md`, `research/`, `assets/`, created on first write; new writing types copy the shape. Post id = slug of the first line at first save. +- **G6 — Writing tools → in-app Swift MCP server (main grill session, ADR-0006).** One artifact serves the tools and the UI; fix cards travel as typed tool calls (ADR-0005) with quote-based anchors. Trust defaults fixed (S2.5); model/provider user-managed in the profile config. +- **G7 — Learnings scope → global per writing type (main grill session).** `learnings/posts/` etc., one file per learning; decay = resurface after 3 posts, doubling per dismissal, per-learning override. Micropub token → Keychain, no OAuth in v1. +- **G5 — Museion Home + folder-shaped content (pi grill session).** One Home (`~/Museion` default, Settings-editable, repoint-only); pieces are folders `content///.md` + `assets/`; external markdown edits as-is, Import (copy) makes it a Post. Supersedes S1.1's folder-is-project. ADR-0004. +- **G6 — Learnings in the Home; the engine owns nothing (pi grill session).** `/learnings//` — per-writer, per-content-type, plain markdown, fresh start. ADR-0005. +- **G7 — Origin wall, session drafting, decay clock (pi grill session).** "New Post from Session" stamps immutable `origin: ai`; only writer-origin First Drafts feed stats; brainstorm = session flavor; decay is output-clock (10 passes, doubling on re-dismiss). ## Stress-test verdict № 1 (2026-08-26 — carried from MISSION.md) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 888708b..f21fb86 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -10,7 +10,7 @@ Owned by the root AGENTS.md contract. ## Local Contracts -- ADRs live in `docs/adr/`, sequentially numbered `NNNNN-slug.md` (currently `0001`–`0006`: stack, license, forge/CI, critique-memory home, fix-card transport, writing-tools host). +- ADRs live in `docs/adr/`, sequentially numbered `NNNNN-slug.md` (currently `0001`–`0006`, with colliding numbers from the two grill sessions pending synthesis: stack, license, forge/CI, content & memory layout, fix-card transport, tools host, Museion-owned state). - ADR format follows the domain-modeling skill's `ADR-FORMAT.md`: short title + 1–3 sentences; optional Considered Options / Consequences only when they earn their place. ## Work Guidance diff --git a/docs/adr/0004-folder-shaped-content.md b/docs/adr/0004-folder-shaped-content.md new file mode 100644 index 0000000..95384c0 --- /dev/null +++ b/docs/adr/0004-folder-shaped-content.md @@ -0,0 +1,3 @@ +# 0004 — Content is folder-shaped under one Museion Home + +Content lives as per-piece folders (`content///.md` + `assets/`) under a single Museion Home (`~/Museion` by default, editable in Settings; repoint-only — Museion never moves content), not as loose files in an opened project folder. The Scrivener-shaped unit buys colocated assets and a growth path to long-form types at the cost of a post no longer being one file; external markdown is edited as-is, and Import (copy, never move) makes it a Post. diff --git a/docs/adr/0005-museion-owns-state-engine-swappable.md b/docs/adr/0005-museion-owns-state-engine-swappable.md new file mode 100644 index 0000000..76cc6b6 --- /dev/null +++ b/docs/adr/0005-museion-owns-state-engine-swappable.md @@ -0,0 +1,3 @@ +# 0005 — Museion owns all state; the engine is a swappable critic + +All durable state — content, Learnings, Pass State — lives in the Museion Home or app containers, never in engine-owned directories. Writing tools run in a Museion-hosted MCP server that any MCP-capable engine registers as a client (Hermes over ACP today; Pi is the identified fallback). Sessions are engine-owned by design — an engine swap leaves transcripts behind, never Learnings.