docs: mature project brief into build-ready PRD
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Grow the brief one rung: PROJECT.md retires, PRD.md becomes the source of truth for v1 (the Mentor Loop). - Close both parked verifications: Hermes ACP is production-ready (engine spawns as `hermes acp -p museion`), Micro.blog media endpoint accepts PNG illustrations. - Add G3 profile isolation (dedicated museion profile), G3a provisioning (create profile + seed bundled writing skills, additive-only), G4 profile backup (daily snapshots, keep 7). - Lock v1 scope: milestones M0-M7 loop-first, M4-M7 sheddable; explicit non-goals. Decompose features into 19 user stories with acceptance criteria; enumerate 8 risks with mitigations. Changelog skipped: docs-only change, not user-facing.
This commit is contained in:
1 parent
ac3d10ba39
commit
92cd748d00
2 files changed
+169
-120
No files matched your search
@@ -0,0 +1,169 @@
|
||||
# Museion — PRD
|
||||
|
||||
> **Rung:** PRD (build-ready). Features decomposed into user stories, v1 scope locked, risks enumerated. Ready to build — no open question blocks M0. Matured from PROJECT.md (which carried two stress-tests; both reshapes are applied below).
|
||||
|
||||
**One-liner:** The Agentic Writing Environment (AWE) — the IDE for long-form writing, where scholars, texts, and AI minds work under a single native macOS roof. Named for the Mouseion of Alexandria: the one place in history where they already did.
|
||||
|
||||
**v1 (locked):** **The Mentor Loop** — minimal editor surface + one fierce agent + persistent critique memory + library-light (research lands there) + plain markdown + a real publish path. The AWE vision is the destination, not v1.
|
||||
|
||||
## Fixed facts (decided, not open)
|
||||
|
||||
- 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)
|
||||
- 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.
|
||||
- **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.
|
||||
- **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.
|
||||
|
||||
## Problem
|
||||
|
||||
AI-assisted long-form writing today means a chat window stapled to a notes app. The manuscript, sources, and thinking live in one place; the AI lives in a sidebar with amnesia, built for snippets — not for books, dissertations, or posts. The writer spends effort *feeding context to the tool* instead of writing.
|
||||
|
||||
And one layer deeper: today's AI tools help writers produce *more text faster* — none makes the *writer* better. The assistant flatters, the writer stagnates. A serious writer doesn't want a ghostwriter; they want a fierce editor and a teacher. Pain is documented: ~58% measured sycophancy across models; authors publicly begging for non-flattering feedback.
|
||||
|
||||
Why now: LLMs hold book-length context, agentic tooling matured, and local models make a native, private, writer-owned tool possible. Code solved this with IDEs; writing has no equivalent.
|
||||
|
||||
## Audience
|
||||
|
||||
- **v1: Alex himself** — scratch-own-itch, the Helm ADE pattern: personal, local-first, GPL, zero audience risk while the category is invented. Dogfood until the loop earns more.
|
||||
- **The vertical it proves:** essay/blog writers — unoccupied (roast research: fiction-only competitors, nobody serves essays/blogs). If ever published, that's the wedge: writers who want to get better, not ghostwritten. Decision to publish is post-v1, informed by actual use.
|
||||
|
||||
## Solution
|
||||
|
||||
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 scope lock
|
||||
|
||||
**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).
|
||||
|
||||
**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. |
|
||||
| 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.* |
|
||||
| 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. |
|
||||
| M6 | **Illustration pass** | Post illustration slots checked against the style guides; not-publish-ready verdict until they match. |
|
||||
| M7 | **Publish** | Draft and publish to Micro.blog via Micropub, illustrations attached with alt text. |
|
||||
|
||||
M0–M3 is the ~3-month differentiator core; M4–M7 are sheddable in that order if scope pressure returns.
|
||||
|
||||
## User stories
|
||||
|
||||
### 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; new/rename/delete round-trip to `.md` files.
|
||||
- **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:* registered as MCP tools in the `museion` profile; 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.
|
||||
- **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.
|
||||
|
||||
### Structured edit passes → fix cards (M2)
|
||||
|
||||
- **S3.1 — Run a pass.** As the writer, I run Pass 1 (compose) or Pass 2 (hunt — Serif line level) on the current draft as a first-class document state. *AC:* running a pass never destroys text; changes diff against the original.
|
||||
- **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.
|
||||
|
||||
### 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 at most after a decay interval; repeated dismissal buries further; decay is configurable.
|
||||
- **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 (formalized `.learnings/`), human-readable and git-diffable.
|
||||
- **S4.4 — Mine alone.** As the writer, my memory is per-writer and portable. *AC:* lives under the project/profile as plain files; importable from today's hand-maintained MEMORY.md.
|
||||
|
||||
### 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.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)
|
||||
|
||||
- **S6.1 — Illustrations gate readiness.** As the writer, a post isn't publish-ready until its illustrations match the ink-sketch style guides (`ref/blog-illustrations`, `ref/glitch-diary-illustrations`). *AC:* illustration slots per post; the mentor checks each against the guide and gives a match/not-ready verdict per slot.
|
||||
|
||||
### Publish path (M7)
|
||||
|
||||
- **S7.1 — Draft then publish.** As the writer, I send a post to Micro.blog as a draft first, then publish. *AC:* `POST /micropub` with `h=entry`, markdown `content`, `name` for the title, `post-status=draft` → publish; Bearer app-token auth.
|
||||
- **S7.2 — Illustrations travel with it.** As the writer, illustrations upload and attach with alt text. *AC:* `q=config` → media-endpoint → multipart PNG upload → `202` + `Location` URL → attached as `photo` with `mp-photo-alt`.
|
||||
|
||||
### 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.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
|
||||
|
||||
- **vs Obsidian + Copilot (the status quo to beat):** agent-first and native, not notes-first with an AI plugin. Obsidian is Electron, plugin-grade AI, note-shaped. Museion is manuscript-shaped with AI as a resident — and with *memory of the writer*, which a plugin can't own.
|
||||
- **vs Ulysses/Scrivener:** real AI depth — they have none; their structure is the ceiling, ours is the floor.
|
||||
- **vs Paper:** Paper has the elegance, not the depth. Museion: Paper's calm, Scrivener's structure, Copilot's mind.
|
||||
- **vs AI-writing tools (Sudowrite Story Coach, Fictionary, AutoCrit — $15–30/mo band, fiction-only):** they generate text or coach fiction manuscripts; Museion is an *environment* where the writer's own project is the context, aimed at the unoccupied essay/blog vertical. Fierceness alone is a system prompt — ChatGPT does "be brutal" free; **the discipline apparatus** (manuscript context + memory of recurring weaknesses) is what they can't copy.
|
||||
- **The mentor stance (sharpest edge):** every AI writing tool on the market makes the text faster; none is built to make the *writer* better. Uncontested position — a ghostwriter-substitute can never pivot into it without abandoning its product.
|
||||
- Category framing ("AWE") is a bet: the IDE analogy makes the product legible, but may need evangelizing before anyone searches for it.
|
||||
|
||||
## Monetization
|
||||
|
||||
**v1: $0 — by design.** Personal GPL tool, Helm ADE pattern: local-first, no backend, no accounts, nothing to sell. The only real economics are Alex's spare time — ship-fast is YES for the narrow loop, NO for the IDE shell.
|
||||
|
||||
**If ever published:** $15–30/mo band (validated by weaker fiction-only competitors). GPL-compatible paths: donations, sponsorship, open-core service. **App Store: struck** (GPL-3 vs App Store TOS is a landmine; roast, Contrarian, upheld).
|
||||
|
||||
## Edge
|
||||
|
||||
- **Dogfooding** — v1's user is its builder: fastest feedback loop, zero audience risk while the category is invented.
|
||||
- **The Alexandria family** — Classis (ADE) already sails; Museion is the second environment from the same hand, sharing native-SwiftUI craft and a coherent brand story (*Classis sails, Pharos guides, Museion holds knowledge*).
|
||||
- **Track record** — Classis and dialysisPal prove Alex ships solo native SwiftUI; Helm ADE proves the personal-local-first environment pattern works for him.
|
||||
- **Validated methodology in hand** — the Serif skill stack is a hand-built, battle-tested writing curriculum already producing fierce, non-flattering edits in daily use; Museion productizes Alex's own proven workflow. The writing-domain question is answered.
|
||||
|
||||
## Risks (build-ready enumeration)
|
||||
|
||||
1. **Bridge fragility / version drift** — ACP is production-ready (Zed, VS Code, JetBrains ship against it) and `--check` gates first run, but Hermes updates can still move the protocol. *Mitigation:* M0 tests against the actually-installed hermes-agent version and records it; documented fallbacks (gateway JSON-RPC, HTTP+SSE API server) exist if ACP regresses.
|
||||
2. **No Swift ACP client SDK** (verified — Python only). *Mitigation:* M0 hand-rolls a thin client — ACP is JSON-RPC over stdio and Museion needs a small surface (initialize, session new/prompt/update, permission request/response, cancel). `ponytail:` hand-rolled thin client; adopt a Swift SDK if one appears.
|
||||
3. **Token cost** — passes send draft + library + memory context. *Mitigation:* pass-scoped context assembly; model/provider pinned per profile (Hermes supports per-profile pins); v1 is personal, so the budget is visible, not abstract.
|
||||
4. **Solo-dev scope / enthusiasm half-life** (~6 weeks, per roast Buyer). *Mitigation:* milestone slicing with M0–M3 as the sheddable-tail-free core; M4–M7 shed in order. The re-roast's guard: the narrow loop already grew back once — watch for it again.
|
||||
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").
|
||||
|
||||
## Decisions (audit trail)
|
||||
|
||||
- **G1 — Agent plumbing → Hermes over ACP, native app as the shell.** Decision chain: (1) initial call: native Swift agent-loop port from pi-agent-core — rejected `pi -p` headless for "cruft"; (2) re-roast demolished the cruft premise and flagged the port as the scope-killer; (3) framework fork (Swift+pi / Node / Hermes-Python) resolved: pi was never the writing engine — Hermes is; Node/Electron would surrender the native differentiator; Python can't host the inline-edit trust UX. **PRD resolution (verified this session):** ACP production-ready per Hermes docs (programmatic-integration page); spawn user-installed `hermes acp -p museion` as stdio JSON-RPC child; writing tools Hermes-side as MCP; gateway/API-server fallbacks documented. Native loop port only if the bridge genuinely hurts.
|
||||
- **G2 — Publish target → Micro.blog via Micropub.** **PRD resolution (verified):** media endpoint accepts PNG (supported-file-uploads doc) — the JPEG-doc-example worry is closed; flow is `q=config` → media-endpoint → multipart → `202`+`Location` → `photo` + `mp-photo-alt`.
|
||||
- **G3 — Dedicated `museion` Hermes profile (this session).** User decision: Hermes profiles isolate config/memory/skills/credentials per profile; Museion always launches `-p museion` so coding and writing learnings never mix. Bot Mode (desktop UI over profiles) confirmed the primitive; `hermes profile create` provisions it.
|
||||
- **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).
|
||||
|
||||
## Stress-test verdict № 1 (2026-08-26 — carried from MISSION.md)
|
||||
|
||||
**RESHAPE** (confidence: high). Five personas, fresh context, model spread. Scores: `Contrarian 3/10 · Expansionist 9/10 · Logician 7/10 · Researcher 7/10 · Buyer 6/10`.
|
||||
|
||||
Four of five converged: fierceness alone is a system prompt; the defensible product is the *discipline apparatus* — manuscript context, library, and **memory of recurring weaknesses across drafts**. This brief *is* the reshape applied: v1 = the Mentor Loop. Biggest risk: without persistent critique memory, Museion is a wrapper around a prompt Alex already runs. Biggest upside: only writing tool betting on making the *writer* better, in an unoccupied essay/blog vertical. Cheapest test: already run organically — multiple posts edited via Hermes + Serif with hand-maintained learning capture.
|
||||
|
||||
## Stress-test verdict № 2 (2026-08-26, later — v1 scope re-roast)
|
||||
|
||||
**RESHAPE** (confidence: high). Scores: `Contrarian 4/10 · Expansionist 8/10 · Logician 5/10 · Researcher 6/10 · Buyer 4/10 → 8 if reshaped`.
|
||||
|
||||
The thesis held (critique memory has **no shipped competitor**; closest analogues ProWritingAid/Hemingway/Marlowe are static or one-shot; the "make the writer better" pain is externally validated). The **scope did not**: the differentiating work and the riskiest work were disjoint — the agent-loop port was weeks of un-differentiated infrastructure before the feature that justifies the app.
|
||||
|
||||
Key findings, verified against primary sources: the "cruft" premise was factually wrong; the port was un-priced; ≥4 Swift agent packages already exist; **stats must measure unaided first drafts**; **research must be keep/reject, not auto-save**; **promotion needs writer confirmation + decay, not a raw counter**. All applied above (S5.1, S8.2, S4.1–S4.2).
|
||||
|
||||
Biggest risk: scope death — revised v1 was a 9–12 month solo build against a ~6-week enthusiasm half-life. Resolution: RESHAPE applied via the framework fork (Hermes over ACP/RPC); the slice test's engine question is now half-answered by architecture, and this PRD's M0 is that test run against Hermes.
|
||||
-120
@@ -1,120 +0,0 @@
|
||||
# Museion — Project Brief
|
||||
|
||||
> **Rung:** PROJECT (sharpened). Competitors named and beaten, features concrete, monetization priced. Mature to PRD.md when features decompose into user stories, v1 scope locks, and risks enumerate build-ready.
|
||||
|
||||
**One-liner:** The Agentic Writing Environment (AWE) — the IDE for long-form writing, where scholars, texts, and AI minds work under a single native macOS roof. Named for the Mouseion of Alexandria: the one place in history where they already did.
|
||||
|
||||
**v1 (locked by stress-test 2026-08-26, scope revised this session):** **The Mentor Loop** — minimal editor surface + one fierce agent + persistent critique memory + library-light (research lands there) + plain markdown + a real publish path. The AWE vision is the destination, not v1.
|
||||
|
||||
## Fixed facts (decided, not open)
|
||||
|
||||
- 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)
|
||||
- v1 = the Mentor Loop + library-light (research findings need a tangible home); long-form structure, multi-mind, Paper-grade polish deferred to v2+
|
||||
- Mentor engine: **Hermes agent** (Python, NousResearch, MIT) driven from the native app over a bridge — its ACP adapter if mature, else its RPC — no agent-loop port in Swift, no pi dependency. Hermes's self-improving learning loop (skills created and improved from experience, agent-curated memory) carries the mentor's curriculum. (G1, resolved after re-roast + framework fork)
|
||||
|
||||
## Problem
|
||||
|
||||
AI-assisted long-form writing today means a chat window stapled to a notes app. The manuscript, sources, and thinking live in one place; the AI lives in a sidebar with amnesia, built for snippets — not for books, dissertations, or posts. The writer spends effort *feeding context to the tool* instead of writing.
|
||||
|
||||
And one layer deeper: today's AI tools help writers produce *more text faster* — none makes the *writer* better. The assistant flatters, the writer stagnates. A serious writer doesn't want a ghostwriter; they want a fierce editor and a teacher. Pain is documented: ~58% measured sycophancy across models; authors publicly begging for non-flattering feedback.
|
||||
|
||||
Why now: LLMs hold book-length context, agentic tooling matured, and local models make a native, private, writer-owned tool possible. Code solved this with IDEs; writing has no equivalent.
|
||||
|
||||
## Audience
|
||||
|
||||
- **v1: Alex himself** — scratch-own-itch, the Helm ADE pattern: personal, local-first, GPL, zero audience risk while the category is invented. Dogfood until the loop earns more.
|
||||
- **The vertical it proves:** essay/blog writers — unoccupied (roast research: fiction-only competitors, nobody serves essays/blogs). If ever published, that's the wedge: writers who want to get better, not ghostwritten. Decision to publish is post-v1, informed by actual use.
|
||||
|
||||
## Solution
|
||||
|
||||
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.
|
||||
|
||||
## Features (v1 — the Mentor Loop)
|
||||
|
||||
1. **Editor surface** — calm focus-mode markdown editor over plain files; posts and drafts; structure deepens with long-form in v2+.
|
||||
2. **One fierce mentor agent = Alex's existing Hermes mentor** (G1, resolved): the native app drives Hermes — the engine the daily workflow already runs on — over ACP (editor↔agent protocol) or RPC, with **bespoke writing tools registered Hermes-side**: edit-pass runner, critique-memory query/promote, draft stats, and **research** — web search with citations + page fetch/extraction so the mentor can fact-check claims and pull sources mid-edit (Hermes-native tooling; pi-web-access kept as design blueprint only); findings land as candidate library notes. The self-improving learning loop compounds the curriculum — the mentor gets better at mentoring while the writer gets better at writing. The Serif methodology stays its operating system (SKILL.md files, agentskills.io-standard, single source of truth); the trust model — auto-act / inform-after / ask-before / never-do — maps to dimmed-inline-edits UI in the app.
|
||||
3. **Structured edit passes** as first-class document states — Pass 1 compose / Pass 2 hunt (Serif line level); developmental passes arrive with fiction. Passes emit **fix cards**: problem → diagnostic question → fix — the same data model as critique-memory entries.
|
||||
4. **Persistent critique memory** — formalizes today's hand-maintained `.learnings/` + MEMORY.md: recurring weaknesses per writer, surfaced by fix cards, **promoted by writer confirmation** (not a raw 3+ counter — one model's repeated false positive must not become permanent curriculum), with dismissal and decay; consulted on every future draft. **The load-bearing feature** — without it, Museion is a wrapper around a prompt (the roast's kill-shot).
|
||||
5. **Measurable improvement** — statistical signals (burstiness, type-token ratio, sentence-length variation, trigram repetition) tracked across **unaided first drafts** (council correction: measuring edited output proves the edits work, not that the writer improves) — proof the *writer* gets better, not just the text.
|
||||
6. **Illustration pass** — hand-drawn ink-sketch visual identity (`ref/blog-illustrations`, `ref/glitch-diary-illustrations`): a post isn't publish-ready until its illustrations match the style guides.
|
||||
7. **Publish path → Micro.blog via Micropub** (G2, decided): drafts and posts straight from Museion — `POST /micropub` (`h=entry`, markdown in `content`, `name` for the title, `post-status=draft` first, then publish); illustrations via the media endpoint (multipart upload → URL, attached as `photo` with alt text). Auth: app token (`Authorization: Bearer`, generated under Account → App tokens). ([API overview](https://help.micro.blog/t/api-overview/93))
|
||||
8. **Library-light** — sources, notes, and links as first-class project content in plain markdown. Research findings land as **candidate source-notes with provenance that the writer keeps or rejects** (council correction: no auto-save — otherwise the library fills with noise that feeds back into the mentor). Kept notes are consulted as context on every pass (the manuscript-is-the-codebase promise). Full vault depth (backlinks, graph, Obsidian-grade) arrives with long-form in v2+.
|
||||
|
||||
### Decisions (this session)
|
||||
|
||||
- **G1 — Agent plumbing → Hermes over a bridge, native app as the shell.** Decision chain: (1) initial call: native Swift agent loop ported from pi-agent-core — rejected `pi -p` headless for "cruft"; (2) re-roast council (below) factually demolished the cruft premise (pi SDK has system-prompt override, empty-tool allowlists, custom tools, headless RPC) and flagged the port as the scope-killer; (3) framework fork (Swift+pi / Node all-the-way / Hermes-Python) resolved: pi was never the writing engine — Hermes is; Node/Electron would surrender the native differentiator (ADR-0001, and the brief mocks Electron Obsidian); Python can't host the inline-edit trust UX. Result: SwiftUI app + Hermes engine over ACP/RPC, bespoke writing tools Hermes-side. Verification before build: ACP adapter maturity; fallback = Hermes RPC or gateway. Native loop port only if the bridge genuinely hurts.
|
||||
- **G2 — Publish target → Micro.blog via Micropub** (W3C standard API: create/update/delete + media upload, app-token auth). PRD-time verification: image format handling on the media endpoint (doc example says JPEG; illustrations are PNG).
|
||||
|
||||
## Differentiation
|
||||
|
||||
- **vs Obsidian + Copilot (the status quo to beat):** agent-first and native, not notes-first with an AI plugin. Obsidian is Electron, plugin-grade AI, note-shaped. Museion is manuscript-shaped with AI as a resident — and with *memory of the writer*, which a plugin can't own.
|
||||
- **vs Ulysses/Scrivener:** real AI depth — they have none; their structure is the ceiling, ours is the floor.
|
||||
- **vs Paper:** Paper has the elegance, not the depth. Museion: Paper's calm, Scrivener's structure, Copilot's mind.
|
||||
- **vs AI-writing tools (Sudowrite Story Coach, Fictionary, AutoCrit — $15–30/mo band, fiction-only):** they generate text or coach fiction manuscripts; Museion is an *environment* where the writer's own project is the context, aimed at the unoccupied essay/blog vertical. Fierceness alone is a system prompt — ChatGPT does "be brutal" free; **the discipline apparatus** (manuscript context + memory of recurring weaknesses) is what they can't copy.
|
||||
- **The mentor stance (sharpest edge):** every AI writing tool on the market makes the text faster; none is built to make the *writer* better. Uncontested position — a ghostwriter-substitute can never pivot into it without abandoning its product.
|
||||
- Category framing ("AWE") is a bet: the IDE analogy makes the product legible, but may need evangelizing before anyone searches for it.
|
||||
|
||||
## Monetization
|
||||
|
||||
**v1: $0 — by design.** Personal GPL tool, Helm ADE pattern: local-first, no backend, no accounts, nothing to sell. The only real economics are Alex's spare time — ship-fast is YES for the narrow loop, NO for the IDE shell.
|
||||
|
||||
**If ever published:** $15–30/mo band (validated by weaker fiction-only competitors). GPL-compatible paths: donations, sponsorship, open-core service. **App Store: struck** (GPL-3 vs App Store TOS is a landmine; paid-App-Store builds are off the table — roast, Contrarian, upheld).
|
||||
|
||||
## Edge
|
||||
|
||||
- **Dogfooding** — v1's user is its builder: fastest feedback loop, zero audience risk while the category is invented.
|
||||
- **The Alexandria family** — Classis (ADE) already sails; Museion is the second environment from the same hand, sharing native-SwiftUI craft and a coherent brand story (*Classis sails, Pharos guides, Museion holds knowledge*).
|
||||
- **Track record** — Classis and dialysisPal prove Alex ships solo native SwiftUI; Helm ADE proves the personal-local-first environment pattern works for him.
|
||||
- **Validated methodology in hand** — the Serif skill stack is a hand-built, battle-tested writing curriculum already producing fierce, non-flattering edits in daily use; Museion productizes Alex's own proven workflow. The writing-domain question is answered.
|
||||
|
||||
## Risks & open questions
|
||||
|
||||
1. **Obsidian's gravity** — free-ish, huge ecosystem, Copilot plugin exists. Moot while v1 is personal; if published, the mentor stance + critique memory (not "native and elegant") must be the switch reason.
|
||||
2. **Solo-dev scope** — an IDE-class app is a multi-year build. Mitigated twice: the first reshape cut v1 to the Mentor Loop; the re-roast caught the scope growing back (loop port + research + library-light) and cut the engine work entirely (G1 → Hermes bridge). Residual: the bridge itself (ACP adapter maturity unverified) and v1 must still ship before enthusiasm does.
|
||||
3. **GPL + monetization** — defused for v1; App Store struck; donations/sponsorship/open-core remain if ever published.
|
||||
4. **macOS-only** — trivially right for a personal tool; a constraint only if published.
|
||||
5. **AI cost & plumbing** — engine resolved (Hermes: model-agnostic — Nous Portal, OpenRouter, own endpoints; keys live in Hermes config). Residual: bridge maturity (ACP adapter present in the repo but undocumented — verify before build; fallback RPC/gateway), Python runtime as an app dependency, token cost.
|
||||
6. **Category bet** — "AWE" may need evangelizing before anyone searches for it.
|
||||
7. **n=1 design risk** — built for one writer's taste; may not generalize. Honest; revisit when the publish question returns.
|
||||
8. **Sycophancy vs fierceness** — mitigated by evidence (Serif already fierce in daily use; its problem is the opposite). Residual: app UX smothering the friction that makes the critique land — keep the critique *visible and sharp* in the UI.
|
||||
|
||||
## Stress-test verdict (2026-08-26 — carried from MISSION.md)
|
||||
|
||||
**RESHAPE** (confidence: high). Five personas, fresh context, model spread. Scores: `Contrarian 3/10 · Expansionist 9/10 · Logician 7/10 · Researcher 7/10 · Buyer 6/10`.
|
||||
|
||||
Four of five converged: fierceness alone is a system prompt; the defensible product is the *discipline apparatus* — manuscript context, library, and **memory of recurring weaknesses across drafts**. Contrarian opposed the build order, not the dream; Expansionist's 9/10 is the ceiling if the reshape lands. This brief *is* the reshape applied: v1 = the Mentor Loop.
|
||||
|
||||
- **Biggest risk:** without persistent critique memory, Museion is a wrapper around a prompt Alex already runs — abandoned in a month.
|
||||
- **Biggest upside:** only writing tool betting on making the *writer* better, in an unoccupied essay/blog vertical, with a local-first stance incumbents can't copy.
|
||||
- **Cheapest test:** already run organically — multiple posts produced and edited via Hermes + Serif, including hand-maintained learning capture. Thesis holds; Museion formalizes it.
|
||||
|
||||
## Stress-test verdict № 2 (2026-08-26, later same day — v1 scope re-roast)
|
||||
|
||||
**RESHAPE** (confidence: high). Five personas, fresh context, model spread. Scores: `Contrarian 4/10 · Expansionist 8/10 · Logician 5/10 · Researcher 6/10 · Buyer 4/10 → 8 if reshaped`.
|
||||
|
||||
The thesis held (Researcher: critique memory has **no shipped competitor** — closest analogues ProWritingAid/Hemingway/Marlowe are static or one-shot; Microsoft/EDUCAUSE research externally validates the "make the writer better" pain). The **scope did not**. Four of five converged on the same finding: the differentiating work and the riskiest work are disjoint — v1's only non-wrapper feature is the persistent critique-memory loop, and the native agent-loop port (G1) is weeks of un-differentiated infrastructure built before the feature that justifies the app.
|
||||
|
||||
Key council findings, verified against primary sources:
|
||||
- **G1's "cruft" premise is factually wrong** (Contrarian, verified against pi's sdk.md): the pi SDK supports `systemPromptOverride`, `tools: []` allowlist, `customTools`, and headless RPC mode — zero-cruft reuse was available.
|
||||
- **The port is un-priced** (Contrarian + Logician): loop-port scope is 2–3× larger for N providers than one; provider choice is parked at "PRD-depth" but is load-bearing for the port estimate.
|
||||
- **Don't port what exists** (Researcher): ≥4 Swift agent packages already provide loop/tooling/streaming — Swift AI SDK (swift.org), AgentRunKit, Open Agent SDK, Apple Foundation Models; adopt one instead of hand-porting pi-agent-core.
|
||||
- **Stats must measure unaided first drafts** (Logician): tracking edited output proves the edits work, not that the writer improves.
|
||||
- **Research must be keep/reject, not auto-save** (Logician): candidate source-notes with provenance; the writer curates.
|
||||
- **Promotion needs writer confirmation + decay, not a raw 3+ counter** (Logician): otherwise one model's repeated false positive becomes permanent curriculum.
|
||||
|
||||
**Biggest risk:** scope death — revised v1 is a 9–12 month solo build (Researcher's timeline math); spare-time enthusiasm has a ~6-week half-life (Buyer); the narrow v1 the prior council mandated has already grown back once.
|
||||
|
||||
**Biggest upside:** the mentor loop on existing validated rails (Serif on pi, pi-web-access) + persistent critique memory — a ~3-month ship that nobody on the market has, in an externally validated but commercially uncontested position.
|
||||
|
||||
**Money read:** $0 stays right (category pricing confirms it: Ulysses $39.99/yr, iA Writer $49.99, editor layer is commodity). The only economics are Alex's spare time — and the council's math says the current scope spends it on infrastructure instead of the differentiator.
|
||||
|
||||
**The cheapest 48-hour test:** **The slice test.** Take one real blog post through Museion's intended happy path in the *cheapest possible harness* — existing pi headless (zero-cruft config: system-prompt override, empty tools, custom tools only) + a markdown file for critique memory + the editor work skipped (use any editor). If the loop feels like a product in that harness — and critique capture/promotion survives contact with a real post — the engine question is settled empirically and v1's editor work is justified. If it feels like a wrapper, no amount of native loop fixes that.
|
||||
|
||||
**If RESHAPE (the pivot on the table):** v1 = editor + mentor agent **driven over the pi SDK (headless, zero-cruft config) or an existing Swift agent package** + writer-confirmed critique memory (with dismissal and decay) + stats on unaided drafts + research as keep/reject candidates + library-light (kept notes only) + Micropub publish. The native loop port is earned later, only if the bridge genuinely hurts. The AWE vision is unchanged.
|
||||
|
||||
**Resolution (recorded after the verdict):** RESHAPE applied via the framework fork — the council's "drive a validated agent, don't port the loop" now lands on **Hermes** (the engine the daily workflow actually runs on; pi was never it) over ACP/RPC from the SwiftUI shell. The slice test's engine question is thereby half-answered by architecture; running it against Hermes remains the cheap pre-build validation.
|
||||
Reference in new issue
Block a user