A piece's `summary:` frontmatter line now travels to Micro.blog beside `category:`. A first send carries the summary when it is not empty; a re-send replaces the post's summary only when the piece has the line (opt-in by key; an empty value clears it; no line leaves the blog's). The same rule as categories, so a piece that never gained the line cannot blank a summary set on Micro.blog itself. The publish sheet gains a Summary field and an AI summary button. The button drafts a first-person teaser from the open piece on a fresh one-shot engine on the chat profile (the Blind Read's rail — the resident session is never touched); the reply fills the field for the writer to edit, and nothing is written until the send stamps the line. The sheet is modal, so while its own turn runs the button is the Stop; a Pass or Blind Read that owns the rail disables the button with the reason on hover and refuses from behind it. The summary is read off the RAW frontmatter line, never through the lenient decode — which trims every edge quote — and the read walks the block the way the lenient reader does. A `split`-based read finds no block in a mixed-ending file while the lenient reader still sees the key, and the empty value it answers would have been sent over a live post's summary. Reviewed twice (two-axis during the build, three-reviewer finish-audit after): the mixed-ending read, an unfenced body line claiming the key, the uncancellable modal turn, and the wrapper rule eating a teaser's edge quotes were found and fixed before this commit. Every guard was watched fail on its own pin. Rail 814/814; SwiftFormat and SwiftLint clean. Docs: AGENTS.md bullets and learnings, the GLOSSARY term, CHANGELOG [Unreleased], PRD S6.1, and the devlog. Closes #208
179 lines
11 KiB
Markdown
179 lines
11 KiB
Markdown
# Museion
|
|
|
|
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
|
|
|
|
### Content
|
|
|
|
**Museion Home**:
|
|
The single root folder holding all Museion-owned content, learnings, and archive (fresh installs pin `<CloudDocs>/Museion` when iCloud Drive is present, else `~/Documents/Museion`; an existing legacy `~/Documents/Museion` always wins — Homes migrate manually; repoint-only — Museion never moves content). One home per writer.
|
|
_Avoid_: workspace, vault; calling the whole library "a project"
|
|
|
|
**Project**:
|
|
A named container of Pieces under the Home (`projects/<name>/`); the unit of grouping in the Library and of archiving. New Pieces land in the selected Project, else the default Project `posts`.
|
|
_Avoid_: collection, binder, folder
|
|
|
|
**Piece**:
|
|
A unit of writing of one Content Type; structurally a folder inside its Project holding a markdown file (`post.md`), its Research Notes, and its Assets.
|
|
_Avoid_: document, file, manuscript
|
|
|
|
**Post**:
|
|
A short-form Piece intended for blog publishing; the default Content Type.
|
|
_Avoid_: article, entry, draft
|
|
|
|
**Post ID**:
|
|
The piece folder's name — the Piece's durable identity: the slug of the Title, set at first save, unique across all Projects. A blank draft becomes `untitled`; a collision appends `-2`, `-3`… Explicit Rename moves the folder; the file is always `post.md`.
|
|
_Avoid_: slug (unqualified)
|
|
|
|
**Title**:
|
|
The Post's first non-empty line — conventionally an `#` heading, never stripped from the body. Publishes as the entry's name; slugs into the Post ID.
|
|
_Avoid_: heading, subject
|
|
|
|
**Content Type**:
|
|
The kind of Piece (Post, Outline today; Essay, Story, Book later), carried as the `type` frontmatter attribute (`type: post` | `type: outline`); determines the partition of Learnings.
|
|
_Avoid_: category, kind
|
|
|
|
**Outline**:
|
|
A Piece of the outline Content Type: one markdown file of plain nested bullets — indentation is nesting, node text is ordinary inline markdown. `[[post-id]]` renders as inert text in v1.
|
|
_Avoid_: mind map, tree doc
|
|
|
|
**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 in their Session until kept; rejected ones vanish.
|
|
_Avoid_: source card, clip
|
|
|
|
**Import**:
|
|
Bringing external markdown into the Home as a Piece. Asks the Origin once (writer by default), then stamps it immutable. External files are editable as-is; becoming a Post requires it.
|
|
_Avoid_: convert, migrate
|
|
|
|
**Origin**:
|
|
The authorship record of a Piece: writer or ai. Immutable; only writer-origin First Drafts are ever stats-eligible.
|
|
_Avoid_: source, mode
|
|
|
|
**Archive**:
|
|
Where finished Projects (and, individually, Pieces) fold away: `archive/<name>/` mirrors the Project shape, Finder-visible, reversible. Archived content is out of the active library but still openable and editable.
|
|
_Avoid_: trash, cold storage
|
|
|
|
**Reading Mode**:
|
|
The rendered presentation of a Piece's text: view-and-select, never editing. Toggled explicitly; clicking the text drops into editing at that spot. Distinct from a Pass, which critiques rather than presents.
|
|
_Avoid_: preview, read mode
|
|
|
|
**Cold Turkey**:
|
|
A self-imposed writing lock nested inside Focus: armed from a quiet corner dot (or View ▸ Start Cold Turkey…), enforced by the macOS app-kiosk (fullscreen, no ⌘Tab/⌘Q/⌘W), editor-only, one goal — net new words or minutes. Completion returns quietly to Focus; the block dies with the session, nothing persists. Internal Swift state: `writingLock`.
|
|
_Avoid_: blocker, sprint, pomodoro, focus timer
|
|
|
|
### The Mentor Loop
|
|
|
|
**Mentor**:
|
|
The resident agent: fierce critic in Passes, collaborator in Sessions (drafting, brainstorming). The only mind in v1.
|
|
_Avoid_: assistant, copilot, chatbot
|
|
|
|
**Engine**:
|
|
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 an Engine runs under — v1: `museion` (Chat and Sessions), `museion-pass1`, `museion-pass2`. Its config, skills, credentials, automated memory. Holds *how* to critique, never *what* was learned.
|
|
_Avoid_: the mentor's memory (conflates profile with Learnings)
|
|
|
|
**LLM Surface**:
|
|
A configurable lane of Mentor work with its own model settings: Pass 1, Pass 2, and Chat — Sessions rides Chat's. One surface maps to exactly one Museion Profile; the engine choice itself is not per-surface.
|
|
_Avoid_: engine selector, model slot
|
|
|
|
**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 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 critiques and may demonstrate (example paragraphs, drafts, corrections), but a final Piece never ships without the writer's hand — no one-button publish of mentor prose. The skill stack's own names — its compose and hunt passes — are its vocabulary, kept out of the app's.
|
|
_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. Advances when the Pass completes — the engine's turn ends — not when its Fix Cards are resolved; passes run in any order.
|
|
_Avoid_: status, draft state
|
|
|
|
**Blind Read**:
|
|
A writer-triggered, whole-document judgment: the current Piece against its Pass-start snapshot, compared by a fresh session of the Museion profile that never saw the editing history. The two versions go in unlabeled and in randomized order; the verdict — a pick and one line why — is display-only. Records nothing; the writer stays judge of record.
|
|
_Avoid_: A/B test, vote, score
|
|
|
|
**Fix Card**:
|
|
One finding from a pass: pattern, problem, diagnostic question, fix, anchor, lane, emitter, provenance, status. Anchored to a text span by quote; travels as a typed tool call, never prose to parse. The lane is declared, never inferred — mechanical (the whole fix is a pure function of the anchor plus fixed tables: cut, move, mapping, case) or demonstration (any generation).
|
|
_Avoid_: suggestion, comment, annotation
|
|
|
|
**Emitter**:
|
|
The typed origin field on a Fix Card — `lint` or `engine` — declaring what found it. Drives dedup (the engine never re-cards a live lint finding) and UI filtering; provenance keeps skill attribution.
|
|
_Avoid_: source, author
|
|
|
|
**Learnings**:
|
|
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: the card's teaching fields (pattern, problem, diagnostic question, the demonstration example when the lane is one) plus the provenance of its promotion, with decay state in frontmatter. The instance-bound evidence — the anchor quote, a mechanical replacement — stays on the card; the Learning teaches the symptom and the fix, it never re-quotes the text it came from. One file per Learning, named `YYYYMMDD-<pattern-slug>.md`.
|
|
_Avoid_: rule, note
|
|
|
|
**Skip**:
|
|
Closing a Fix Card as "not this instance." Records nothing.
|
|
_Avoid_: reject, dismiss
|
|
|
|
**Apply**:
|
|
Accepting a mechanical Fix Card so its edit lands in the file. Demonstration cards never offer it — they close Done or Skip.
|
|
_Avoid_: accept, fix (verb)
|
|
|
|
**Jump**:
|
|
Selecting a Fix Card's anchor span in the piece's editor — the span the card points at, revealed and selected, the editor made key. A view act: records nothing, writes nothing. A stale anchor offers none.
|
|
_Avoid_: go to, scroll to, reveal
|
|
|
|
**Done**:
|
|
Closing a Fix Card because the writer rewrote the span — the demonstration lane's terminal, beside Apply and Skip. Records nothing.
|
|
_Avoid_: applied, complete
|
|
|
|
**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: 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 the first Pass invocation of any kind, before the mentor sees the text. Sessions never disqualify a draft — only passes do.
|
|
_Avoid_: raw draft
|
|
|
|
### Trust
|
|
|
|
**Trust Level**:
|
|
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
|
|
|
|
## Discovered Terms
|
|
|
|
<!-- distill-learnings: discovered-terms -->
|
|
|
|
### Publish Record
|
|
What a Piece remembers about Micro.blog in its frontmatter: `micropub_url` (the post it was sent to) and, once Publish succeeded from here, `micropub_published` (the stamp, local time). Museion bookkeeping — written only by the app or the writer's own hand; Import drops both keys. A remembered URL without the stamp is a draft on Micro.blog.
|
|
_Avoid_: publish state (it is a record on disk, never a live query), status (that is Pass State)
|
|
|
|
### Upload Memo
|
|
The per-Piece sidecar `.museion-uploads.json` mapping an illustration's bytes (`sha256`) to the URL Micro.blog returned, so an unchanged image uploads once. Finder-invisible, dies with the Piece folder, never trusted from outside — a symlinked memo or an untrustworthy entry is no memory.
|
|
_Avoid_: upload cache (it is Piece-local bookkeeping, not a shared cache)
|
|
|
|
### Category
|
|
A Micro.blog classification carried as the Piece's one-line `category:` frontmatter list (`category: [Tech, Notes]`; a bare scalar is one category, `[]` is explicitly none). Travels with every send; a name Micro.blog does not know is created there at the send. Import keeps it — the writer's classification, unlike the Publish Record keys — and a re-send replaces the post's categories only when the line exists.
|
|
_Avoid_: type (that is Content Type), tag
|
|
|
|
### Summary
|
|
A Micro.blog post summary carried as the Piece's one-line `summary:` frontmatter scalar — a first-person teaser that entices the reader to read the full piece, typed by the writer or drafted by the AI summary button (a one-shot chat-profile engine; the reply fills the field, the writer edits). One line by construction (line breaks become spaces); a value with a quote at either edge renders quoted so the lenient read never trims it. Travels like Category: a create carries it when non-empty, a re-send replaces it only when the line exists, an empty value clears the post's. Import keeps it — the writer's words, unlike the Publish Record keys.
|
|
_Avoid_: excerpt (the body is never cut), description, teaser (the field is the summary wherever it came from)
|