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.
This commit is contained in:
AlexKucera committed 2026-08-27 14:42:38 +02:00
1 parent e466870303
commit 18f0ca6444
12 files changed
+57 -43

No files matched your search

+24 -9
View File
@@ -7,26 +7,33 @@ The Agentic Writing Environment: a native macOS app where the writer, the text,
### Content
**Museion Home**:
The single root folder holding all Museion-owned content and learnings. One home per writer.
The single root folder holding all Museion-owned content and learnings (`~/Museion` by default; repoint-only — Museion never moves content). One home per writer.
_Avoid_: workspace, vault, project
**Piece**:
A unit of writing of one Content Type; structurally a folder in the home (`content/<type>/<id>/`) containing the markdown file and per-piece Assets.
A unit of writing of one Content Type; structurally a folder in the Home holding a markdown file, its Research Notes, and its Assets.
_Avoid_: document, file, manuscript
**Post**:
A short-form Piece intended for blog publishing. The only Content Type in v1.
A short-form Piece intended for blog publishing; structurally a folder `posts/<post id>/` holding `post.md`, its `research/`, and its `assets/`. The only Content Type in v1.
_Avoid_: article, entry, draft
**Post ID**:
The post folder's name — the Post's durable identity: the slug of the first line, set at first save. Explicit Rename moves the folder; the file is always `post.md`.
**Content Type**:
The kind of Piece (Post today; Essay, Story, Book later). Determines the folder under `content/` and the partition of Learnings.
The kind of Piece (Post today; Essay, Story, Book later). Determines the folder at the Home's root and the partition of Learnings.
_Avoid_: category, kind
**Assets**:
The per-Piece folder (`<id>/assets/`) for illustrations and other media belonging to that Piece alone.
**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
**Import**:
Bringing external markdown into the home as a Piece. External files are editable as-is; becoming a Post requires it.
Bringing external markdown into the Home as a Piece. External files are editable as-is; becoming a Post requires it.
_Avoid_: convert, migrate
**Origin**:
@@ -43,6 +50,10 @@ _Avoid_: assistant, copilot, chatbot
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 `museion` profile the Engine 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
@@ -56,15 +67,15 @@ The maturity of a Piece, recorded in its frontmatter: First Draft, Pass-1 Done,
_Avoid_: status, draft state
**Fix Card**:
One finding from a pass: pattern, problem, diagnostic question, fix, anchor, provenance, status. Anchored to a text span; applying it edits the file.
One finding from a pass: pattern, problem, diagnostic question, fix, anchor, provenance, status. Anchored to a text span by quote; travels as a typed tool call, never prose to parse. Applying it edits the file.
_Avoid_: suggestion, comment, annotation
**Learnings**:
The per-writer, per-content-type store of promoted critique patterns (`learnings/<type>/` in the home). Plain markdown, owned by Museion, consulted on every pass.
The per-writer, per-content-type store of promoted critique patterns (`learnings/<type>/` in the Home). Plain markdown, one file per Learning, 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.
One promoted pattern in Learnings: a Fix Card's fields plus the provenance of its promotion, with decay state in frontmatter.
_Avoid_: rule, note
**Skip**:
@@ -84,9 +95,13 @@ 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.
The policy governing when dismissed Learnings may resurface: an output clock counted in passes, doubling on re-dismiss, overridable per Learning.
_Avoid_: expiry, timeout
**Unaided First Draft**:
A draft whose stats may measure the writer: writer-origin, Pass State still First Draft, captured at first Pass-1 invocation before the mentor sees the text.
_Avoid_: raw draft
### Trust
**Trust Level**:
+19 -20
View File
@@ -11,21 +11,19 @@
- 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. Content is folder-shaped (ADR-0004): `content/<type>/<id>/<id>.md` + `assets/` per piece — still plain files, so Obsidian gravity weakens but holds.
- Plain markdown files on disk — no bespoke store. Content is folder-shaped under one Museion Home (ADR-0004): `posts/<post id>/post.md` + `research/` + `assets/` — 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.
- **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.
- **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.
- **Project layout (G5):** the opened folder is the project; 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.
- **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.
- **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. 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.
- **Critique memory home (ADR-0005):** writer learnings live in the Home's `learnings/` (no dot — hand-editable, git-diffable), scoped per content 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. Fresh start in v1 — verified: the hand-maintained MEMORY.md carries agent-tooling notes, no writing learnings to import.
- **Model/provider:** user-managed by editing the `museion` profile's config (currently `zai/glm-5.3`); Museion never touches it.
- **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):** `<home>/learnings/<type>/` — per-writer, per-content-type, plain markdown, Museion-owned. Fresh start in v1; nothing to import.
## Problem
@@ -57,7 +55,7 @@ v1 delivers this as the Mentor Loop. The workflow is not hypothetical — it alr
| # | 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. 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. |
| 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. |
| 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. |
@@ -71,7 +69,7 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order
### Editor surface (M1)
- **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 (`<postid>/<postid>.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.1 — Open the Home.** As the writer, I open the Museion Home and see my Posts listed. *AC:* the list mirrors `posts/`; post folders are created lazily on first write and named from the first line's slug at first save; new/rename/delete round-trip to the file system — explicit Rename moves the folder (the file is always `post.md`); 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)
@@ -79,7 +77,7 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order
- **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 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.4 — Writing tools, Museion-hosted.** As the mentor, I have purpose-built tools. *AC:* the Museion binary serves them over stdio MCP (`museion-tools`), registered into the `museion` profile at provisioning (ADR-0008); surface = `query_learnings` + `submit_fix_cards`, typed and quote-anchored (ADR-0006); callable mid-pass; outputs land in Museion's UI; passes are Museion-driven over ACP; 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.
@@ -93,9 +91,9 @@ 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:* 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 `<home>/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).
- **S4.2 — Dismiss with decay.** As the writer, dismissed patterns fade instead of haunting me. *AC:* a dismissed learning resurfaces after 10 subsequent passes of that content type (output-clock, not calendar); each re-dismiss doubles the interval (10→20→40…); per-learning `resurface_after` frontmatter overrides the base.
- **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 Home's `learnings/posts/` (ADR-0005) — one file per learning, 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 (verified: the hand-maintained MEMORY.md carries agent-tooling notes, no writing learnings).
### Measurable improvement (M4)
@@ -114,7 +112,7 @@ M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order
### Research & library-light (M5)
- **S8.1 — Research mid-pass.** As the mentor, I can fact-check claims and pull sources mid-edit (web search with citations + page fetch/extraction — Hermes-side tools). *AC:* findings arrive as candidate source-notes with provenance.
- **S8.2 — Keep or reject.** As the writer, I curate: nothing auto-saves. *AC:* candidates wait as candidates until kept; kept notes are plain markdown in the project library; rejected ones vanish — noise never feeds the mentor.
- **S8.2 — Keep or reject.** As the writer, I curate: nothing auto-saves. *AC:* candidates wait as candidates until kept; kept notes are plain markdown in the post's `research/` folder; rejected ones vanish — noise never feeds the mentor.
- **S8.3 — The library feeds the loop.** As the writer, kept notes are consulted as context on every pass. *AC:* the manuscript-is-the-codebase promise holds at v1 depth.
## Differentiation
@@ -148,7 +146,7 @@ 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. **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.
8. **Engine upstream death or drift** — Hermes could stall or turn unfavorable. *Mitigation:* ADR-0007 — 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)
@@ -159,12 +157,13 @@ 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 (main grill session).** `posts/<post id>/` 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/<type>/<id>/<id>.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).** `<home>/learnings/<type>/` — 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).
- **G5 — Content layout → one Home, lazy post folders (merged from both grill sessions).** Museion Home (`~/Museion` default, Settings-editable, repoint-only — pi session) with the main session's shape: `posts/<post id>/` holding `post.md`, `research/`, `assets/`, created lazily on first write; post id = slug of the first line at first save; explicit Rename moves the folder; external markdown edits as-is, Import (copy) makes it a Post. New content types copy the shape. ADR-0004.
- **G6 — Writing tools → in-app Swift MCP server, minimal surface (merged).** Host from the main session (ADR-0008): the binary doubles as `museion-tools`, registered at provisioning; surface from the pi session: `query_learnings` + `submit_fix_cards` only, typed and quote-anchored (ADR-0006); passes Museion-driven over ACP; stats native in Swift at capture; research engine-native. Model/provider user-managed in the profile config.
- **G7 — Learnings → the Home, per content type (merged).** `<home>/learnings/<type>/`, one markdown file per learning with decay state in frontmatter (main session) — per-writer, portable, Museion-owned, fresh start with no legacy import (pi session; verified nothing to import). The engine owns nothing. ADR-0005.
- **G8 — Decay → output clock (merged).** Resurface after 10 passes of that content type (pi session), doubling per re-dismiss; per-learning `resurface_after` frontmatter override (main session).
- **G9 — Trust defaults (pi session).** Research fetch = auto-act; candidate source-note = inform-after; apply/promote/keep-note/publish = ask-before; delete files, anything outside Home+profile, shell, git = never-do. Not configurable in v1.
- **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.
## Stress-test verdict № 1 (2026-08-26 — carried from MISSION.md)
+1 -1
View File
@@ -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`, 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).
- ADRs live in `docs/adr/`, sequentially numbered `NNNNN-slug.md` (currently `0001`–`0008`: stack, license, forge/CI, content layout, learnings home, fix-card transport, state ownership, tools host).
- 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
@@ -1,3 +0,0 @@
# Critique memory lives in the project, not the Hermes profile
Museion keeps two memory systems deliberately separate. The mentor's own automated memory lives inside the `museion` Hermes profile, is owned by Hermes, and is never read or written by Museion. The writer's deliberate learnings are plain markdown in the project's `learnings/` folder — git-diffable, portable with the body of work, importable from the hand-maintained MEMORY.md. The profile holds *how* to critique (skills, config); the project holds *what* was learned. Consequence: G4 profile snapshots do not back up learnings — git does; moving machines takes both.
@@ -0,0 +1,3 @@
# 0004 — Content is folder-shaped under one Museion Home
Content lives as per-post folders (`posts/<post id>/post.md` + `research/` + `assets/`, created lazily on first write) 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 post id is the slug of the first line, set at first save; explicit Rename moves the folder (the file is always `post.md`). 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.
-3
View File
@@ -1,3 +0,0 @@
# 0004 — Content is folder-shaped under one Museion Home
Content lives as per-piece folders (`content/<type>/<id>/<id>.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.
@@ -1,3 +0,0 @@
# Fix cards travel as structured MCP tool calls
Mentor findings reach the app as typed tool calls from a Hermes-side MCP writing tool — the fix-card schema is the tool's argument schema — rendered from ACP tool-call events, never parsed out of streamed prose. One schema serves the card UI, the apply-write, and learning promotion; M0's round-trip test exercises exactly this rail. Rejected: prose parsing (fragile, untyped) and file-watching spools (cards are conversation events, not artifacts).
@@ -0,0 +1,3 @@
# 0005 — Writer learnings live in the Home, not the engine profile
Museion keeps two memory systems deliberately separate. The mentor's own automated memory lives inside the `museion` Hermes profile, is owned by the engine, and is never read or written by Museion. The writer's deliberate learnings are plain markdown in the Home's `learnings/<content type>/` — one file per learning with decay state in frontmatter — hand-editable, git-diffable, and portable with the body of work. The profile holds *how* to critique (skills, config); the Home holds *what* was learned. Fresh start in v1: the pre-Museion MEMORY.md carries only agent-tooling notes, so there is nothing to import. Consequence: G4 profile snapshots do not back up learnings — the Home is the writer's to back up.
@@ -0,0 +1,3 @@
# 0006 — Fix cards travel as typed MCP tool calls
Mentor findings reach the app as typed tool calls — the fix-card schema is the tool's argument schema — rendered from ACP tool-call events, never parsed out of streamed prose. 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. One schema serves the card UI, the apply-write, and learning promotion; M0's round-trip test exercises exactly this rail. Rejected: prose parsing (fragile, untyped) and file-watching spools (cards are conversation events, not artifacts).
@@ -1,3 +0,0 @@
# Writing tools are an in-app Swift MCP server
Museion's writing tools (fix-card submit, edit-pass runner, critique-memory query/promote, draft stats) ship inside the app binary, exposed as a stdio MCP server and registered into the `museion` profile at provisioning (`hermes mcp add museion-tools --command …`). One signed artifact, native file access, stats logic shared with the M4 UI, and the fix-card tool exists from M0. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (Q: 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.
@@ -1,3 +1,3 @@
# 0005 — Museion owns all state; the engine is a swappable critic
# 0007 — 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.
@@ -0,0 +1,3 @@
# 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.