CI / ci (push) Canceled after 0s
Headless --serve-mcp role in the app binary: NDJSON JSON-RPC on stdio exposing query_learnings and submit_fix_cards (ADR-0006 cards, anchor-validated; stale lands flagged, never rejected), registered into the museion profile at provisioning. Cards persist per piece under <piece>/cards/ and surface in a floating Fix Cards palette with pass-stamped provenance. Live dogfood drove the shape: session/prompt waits pass length (the 15 s request default abandoned working turns), a liveness row and a persisted Debug checkbox (off) split writing sessions from debug chatter, the verdict references findings by title only while the cards carry the detail (persona v1.3 — tools work in silence), and the #24 pass rails (pass bar, TurnOutcome seam, snapshots) ride in. Three-reviewer audit round: piece-path shape guard closes the JSON-drop and substring-oracle holes, nested submit rawInput parsing (the flat parser never matched the live rail), missing stopReason never advances a pass, 1 MB stdin cap, card scan off MainActor. 296 tests green; every behavioral fix flip-verified. Closes #23
50 lines
12 KiB
Markdown
50 lines
12 KiB
Markdown
# Changelog
|
||
|
||
All notable changes to this project will be documented in this file. The format is based on [Common Changelog](https://common-changelog.org) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||
|
||
## [Unreleased]
|
||
|
||
### Added
|
||
|
||
- **mentor:** museion-tools MCP server + Fix Cards (#23, #24 rails) — the app binary grows a headless `--serve-mcp` role speaking NDJSON JSON-RPC on stdio, exposing `query_learnings` (the piece's visible learnings) and `submit_fix_cards` (ADR-0006 cards, anchor-validated against post.md; stale anchors land flagged, never rejected) registered into the museion profile at provisioning; cards persist per-piece under `<piece>/cards/` and surface live in a floating Fix Cards palette (opened from the mentor pass bar, `pass N · lane · emitter` meta when the engine stamps `provenance.pass`); the transcript renders card tool calls as one-line events, the pass verdict references findings by title only (persona v1.3: tools work in silence, the card is the finding's only full statement), and a Debug checkbox (off by default) gates the session/tool chatter writers never wanted
|
||
|
||
- **skills:** fix-card lanes + card-emitting doctrine (#123, text landings of #118/#119/#121) — every Fix Card declares a lane (mechanical: the whole fix is table-computable and the only lane Apply executes; demonstration: one annotated example, closed Done/Skip) and an emitter (lint | engine; the engine never re-cards a live lint finding); the pass persona emits one ranked `submit_fix_cards` call at pass end, capped at ten, Learnings-resonant first; the Knife floor gains writer-praise immunity; deslop's tables gain the actually/unfortunately filler cuts and the utilize/utilization→use mapping; CONTEXT.md adds the Emitter and Done terms, ADR-0006 the lane/emitter fields, and the sample pass a mechanical-lane exemplar (FC-10)
|
||
|
||
- **prose:** list shortcuts (v1.2 S5) — when the caret sits on a markdown list line, Tab/⇧Tab indent/outdent the item (wrapped lines ride along, the caret follows), and ⌥↑/⌥↓ move the item with its subtree among siblings; every structural edit is one undo step over the plain text store. List parents fold visually: a gutter chevron collapses the children to a rust `▸` with a `⋯ N` summary after the parent's line — folding is view state and never edits the buffer (issue #115)
|
||
|
||
- **outline:** Convert to Post (v1.2 S4) — a Convert to Post… command on outline pieces (library row menu, Archive pane included): the piece keeps its name, project, and Pass State while `type` flips to post; at the ask the writer picks the body — Verbatim Bullets (default, keeps every line) or Headings (top-level blocks become section headings, deeper levels step down to the `######` floor, deeper still stays bullets; the ask warns when the ladder would drop paragraph lines between bullets); the open session flushes first and reopens in prose; an outline changed on disk behind the ask aborts the convert rather than dropping unconsented prose; one-way in v1 (issue #114)
|
||
|
||
- **outline:** drag-reorder + zoom-in (v1.2 S6) — pointer-drag a block run into any sibling seam or onto a block to nest as its child (the block selection rides the drag, a 30/40/30 fat-gap hit test resolves seams vs onto, and a dropped run on an invalid target leaves the document untouched); Esc cancels mid-drag, the moved run becomes the selection; double-click any bullet zooms to its children with breadcrumbs back out, and zoom keeps only fully-visible selections (issue #112)
|
||
|
||
- **outline:** mixed-content open guard (v1.2 S7) — opening a `type: outline` piece whose body has paragraph lines between bullets (the parse would drop them on the next save) now asks first: Open in Prose (default — everything visible, nothing drops), Open as Outline (explicit consent — saves normalize as before), or Cancel; the ask presents over an empty editor so nothing can edit before the choice, re-clicking the open piece never re-asks, and a draft or guest staged during the ask displaces it cleanly (issue #111)
|
||
|
||
- **outline:** outliner surface & outline type (v1.1 S3, ADR-0013 per #105 variant B) — File ▸ New Outline ⇧⌘N stages a `type: outline` piece; the outliner is a dedicated block surface: nested bullets with LogSeq-style keys (Tab/⇧Tab indent/outdent, ⌥↑/⌥↓ move subtree, ↑/↓ hop visible blocks, ⇧↑/⇧↓ block-select runs, ⌘↑/⌘↓ fold/unfold, Enter splits at the caret), one live caret row over inert rows, session-scoped folds, and the same debounced autosave / ⌘S / external-change alert as prose; hand-edited files parse leniently and normalize on save (issue #109)
|
||
|
||
- **library:** projects & archive UI (v1.1 S2, variant B per #104) — the library column groups pieces by project under serif lowercase section heads (collapse toggle, `· N` counts, Pass-State groups inside); Move to Project / Move to Archive / Move Back / whole-project Unarchive as folder moves (post.md bytes untouched, never clobbering, ids globally unique); an Archive rail destination lists archived pieces grouped by project with row-click back to Posts; File ▸ New Post ⌘N and New Project… ⌥⌘N; New Project opens a draft targeted at it, and every folder move flushes pending edits first — a failed write aborts the move with nothing relocated (issue #108)
|
||
|
||
- **library:** projects & archive storage substrate (v1.1 S1) — pieces live under `projects/<name>/<id>/post.md` with finished work folding into `archive/<name>/` (ADR-0012): the library scans both roots, New Piece and Import land in the selected project (else the default `posts`), slugs stay globally unique across projects and archive so an archived name is never reused, and every piece carries `type: post` frontmatter (absent or unknown types read as post; the file stays `post.md` for every type) (issue #107)
|
||
|
||
- **editor:** spellcheck posture (#77, Neo triage input) — Edit ▸ Check Spelling While Typing now toggles continuous spell checking in the editor; off by default (markdown on disk carries the spelling, squiggles on request), per-launch with no persistence
|
||
|
||
- **editor:** M1 editor core (PRD S1.2) — posts open into a native TextKit2 editing surface (ADR-0010 mode B): styled source with scaled headings, paragraph spacing, and dimmed markdown syntax lifted from the proven spike; ~1 s debounced autosave with flush on selection change, window close, and app quit (⌘S stays immediate); an honest save-state dot — Changed while edits pend, Saved when clean, accent on failure (#83); cursor position and scroll restored across restarts via a per-post `.museion-state.json` sidecar that dies with the folder on Trash; and an explicit "File on Disk changed — Reload / Keep Local" alert on external edits, never a silent clobber (issue #19)
|
||
- **workspace:** M1 Post lifecycle (PRD S1.1) — Posts are now writable end to end: New Post holds an in-memory draft (no folder until first save), ⌘S lazily materializes `posts/<slug>/post.md` stamped with flat frontmatter (`pass_state: First Draft`, `origin: writer`), the slug is the Title's (lowercased, diacritic-folded, CJK-keeping) form with case-insensitive `-2`/`-3` collision suffixes, Explicit Rename retitles the `# Title` line and moves the folder (file stays `post.md`), and Delete moves the folder to the Trash; a recursive FSEvents watcher keeps the list mirroring `posts/` (external Finder edits included), and a plain-TextEditor stub stands in for the S1.2 editor (issue #18)
|
||
- **workspace:** M1 Home & Posts list (PRD S1.1) — the post-gate main surface is now the workspace shell from the design contract: nav rail (Posts, Sessions, Learnings, Settings), a Posts pane that mirrors the Museion Home's `posts/` folder on disk (Pass State groups, origin meta, empty state, lazy folders skipped), a Settings pane where the Home can be repointed (repoint-only — Museion never moves content; NSOpenPanel picker, UserDefaults persistence, default `~/Documents/Museion`), and placeholder panes for Sessions/Learnings until their milestones; the M0 mentor pane becomes the workspace's fourth column (issue #17)
|
||
|
||
- **backup:** S2.6 daily profile backup — on launch, once per 24 h and only while the engine is idle (gateway.pid liveness + `ps` scan), Museion snapshots `~/.hermes/profiles/museion/` into a timestamped folder under `~/Library/Application Support/Museion/Backups/` (credentials included, logs/caches/locks excluded, last 7 kept); restore is manual Finder copy-back — Help → Open Backup Folder, `RESTORE.md` beside the snapshots (issue #50)
|
||
- **acp:** M0 ACP bridge (PRD S2.2) — the app spawns the Hermes engine (`hermes acp -p museion`) as a child process via a hand-rolled NDJSON JSON-RPC stdio client, opens a Session, streams mentor replies live in a debug pane, renders fix-card tool calls as structured cards, cancels turns via Stop, tears the child down on quit, and surfaces an in-pane restart prompt on engine crash — never data loss (issue #14)
|
||
- **provisioning:** S2.1 profile provisioning — idempotent per-gate pass creates the `museion` Hermes profile (`hermes profile create --no-alias --no-skills`) and additively seeds the bundled writing skills via `seed-manifest.txt`; existing skills are never overwritten (issue #47)
|
||
- **provisioning:** Failure alert & retry UX — provisioning failures show a separate phase-named alert (never re-raising the gate) with the error excerpt behind Technical details; Retry re-runs the whole pass, Not Now defers to the next launch's silent retry (issue #48)
|
||
- **gate:** Engine gate (launch gate, PRD S2.1) — discovers the user-installed Hermes engine via the documented six-path probe, health-checks it (`hermes acp --check`), and blocks app launch behind a sheet on every launch: checking/pass/fail cards with install instructions and re-check on fail, engine version in the pass card, About window, and a `state.json` record of every completed check (issue #42)
|
||
- Initial project scaffold: Xcode project (SwiftUI, macOS 26.5+, Swift 6), unit + UI smoke tests, GPL-3.0-or-later license, Gitea Actions CI (dormant until a macOS runner registers), DOX agent documentation tree, ADRs 0001–0003 (stack, license, forge).
|
||
- **skills:** Pass and Session container persona skills — mentor manner by blend arithmetic (constant Knife floor, silent Learnings, voice anchor)
|
||
- **skills:** Demonstrator doctrine skill — master-study demonstrations as named-master variants on the writer's own bounded span, annotated and desloped before display; the picked variant feeds Learnings (issue #3)
|
||
- **skills:** Micro-drill prompt-pack skill — two-minute single-shelf drill offers riding the Pass finding that motivates them; declined drills vanish, drill output never touches the draft (issue #8)
|
||
- **skills:** Craft canon distilled from the #4 shortlist — rhetoric (Heinrichs: argument and rhetoric, ten cards plus the fallacy index), reader-psychology (Williams: the reader-processing diagnosis sequence), prose-craft (Clark: fifteen generative tools across better-words, structure, humor, revision); a sample Pass demonstrates all three firing as fix cards (issue #7)
|
||
- **skills:** Titles-and-hooks craft skill distilled from web sources per the #4 research — the title surface (takeaway over label, bounded numbers, the worn tease, mode fit, person over committee voice) and the hook's curiosity gap (open it, foot it, honor the title–hook contract), every rule data-backed; the sample Pass gains a ninth fix card demonstrating the shelf (issue #11)
|
||
|
||
### Fixed
|
||
|
||
- **mentor:** live passes no longer read as crashes — `session/prompt` waits pass-length (1800 s, not the 15 s request default that abandoned working turns with a false "connection lost"), a liveness row shows the engine thinking, Stop stays for the whole turn, and a missing `stopReason` never advances a pass
|
||
- **workspace:** doubled View menu — "Toggle Reading Mode" (#68) sat in its own `CommandMenu("View")`, putting a second View menu in the menu bar beside the system one; it now joins the system View menu (`CommandGroup(after: .toolbar)`), ⌘R and behavior unchanged (issue #84)
|
||
- **acp:** mentor pane against adapter 0.21.5 — `session/new` now sends the newly required `mcpServers` list (empty: Museion ships none); its absence was rejected as invalid params and wrongly surfaced as "the mentor engine stopped" when the engine was fine. The advisory version-drift note now compares base versions, so build metadata (`0.21.5+2177.g735e426` recorded vs `0.21.5` reported) no longer fabricates a mismatch on every launch; real drift still fires.
|