Docs-only (code identical to the fix commit 89cd377, where the
697/697 suite ran): devlog carries the site-class enumeration with
disproofs, the decisions table, and the gates; CHANGELOG gains the
user-facing acp backpressure entry.
54 KiB
Changelog
All notable changes to this project will be documented in this file. The format is based on Common Changelog and this project adheres to Semantic Versioning.
[Unreleased]
Fixed
-
acp: Engine backpressure can no longer defeat request deadlines, Stop, or teardown (finding
museion/acp-backpressure-defeats-timeout-and-shutdown, argus cycle-4) — a hung engine that stops reading stdin fills the 64 KB pipe, and the ACP client's synchronous send blocked its ONE serial queue, the same queue carrying request-id allocation, pending registration, the timeout deadline, and close()'s bookkeeping barrier: the deadline never fired (a 0.1 s timeout on a 2 MB prompt stayed pending forever), a follow-up request hung at registration, Stop queued behind the stuck write, and close() synced behind it before SIGTERM was ever reachable — on MainActor (restart/quit) that was an app-wide unbounded hang. Stdin writes (and the stdin handle's own close, which a blocked write may still own) now ride a dedicated serial writer queue, leaving the state queue I/O-free: deadlines fire, Stop is accepted, bookkeeping answers, and close() runs SIGTERM → grace → SIGKILL → reap without queueing behind the writer. Wire order preserved (every send funnels through the one serial writer); healthy-engine contract untouched. +4 real-process smokes over two new zsh-fake modes (neverReadexecs /bin/sleep — the probe's inert non-reading child, never a real profile;serverPingpins -32601 reply delivery): 3 RED-first at base on exactly the three mechanisms, healthy-contract pin green at base. Suite 697 (unticketed fix, brief-27) -
search: Library search results no longer go stale after library writes (finding
museion/library-search-stale-after-mutation, the #144/#157 mounted gap) — the search snapshot's only task identity was the trimmed query, so nothing re-ran the sweep when the library moved underneath it: archiving or trashing a piece from a result row's own context menu left it sitting in the non-archived results after the rescan, and new, renamed, or externally edited pieces never entered or left the results until the query changed or the pane remounted. The #179 write rail's rescan now bumps a content revision whenever a scan sees the library change — a Post-list change OR any re-read post.md, so a body-only edit (which parses to an equal Post and is invisible to #143's equality-gated assignment) counts — and the mounted sweep keys on query + Home + that revision, rendering a landed snapshot only while it stays fresh for the current key (stale rows drop to the recompute spinner; panes never regroup — the assignment skip is untouched). +5 tests (pure key/gate pin; controller-level archive, trash, and same-query body-edit pins over the real rescan rail, red-first; an unchanged-rescan guard). Suite 686 -
session: a deferred nil scope drains as an explicit clear (PR #184, finding class #176) —
pendingScopePieceTitle: String?let "a scope request is pending" and "which piece it targets" ride the same optionality, so a nil-target request (the writer leaves the piece mid-stream or mid-replay: New Post, unsaved draft, external guest, nothing open) deferred correctly but at drain time read as "no pending request" and returned without touchingactiveEntry— the old piece's conversation stayed live under a nothing-open context, at all four drain sites. Pending-ness now ridesPendingScope(.none|.scope(String?)): a nil target is an explicit clear everywhere it drains. Finish-audit fanout (3 reviewers): deadEquatablecut, the same-turnpendingRestartceiling documented at the drain (the scope is lost in respawn's.startingwindow — consume-at-apply is the upgrade path), and the titled-apply half pinned for the first time over a newhangOnPromptLoadrig mode (prompt parks, load answers; flip-verified). Suite 654 (PR #184)
Changed
-
cold-turkey: Live word accounting leaves the per-keystroke path (unticketed opt pass, argus 2026-11-09, digest finding cold-turkey-full-tokenization) — the editor's
onTextChangefeed droveWritingGoalRun.updatethroughDraftStats.wordsfor every goal type, andwordsbuilt the complete lowercased token array (split(whereSeparator:)+map(lowercased)) just to return its count: O(document) allocation and lowercasing per keystroke on the main actor, linear in document size (argus probe: ~0.32/3.07/16.64 ms per update at 1k/10k/50k words) — while minutes goals never read the count (verdict, progress, readout, and the completion note all ride the clock). A minutes run now does no word work on feed at all (its accounting freezes at the arm-time baseline — dead state either way), andwordsis a count-only Character pass over maximal isLetter/isNumber runs: the token array is never built, semantics byte-identical (split with omitted empty subsequences yields exactly the maximal runs; pinned against the old split expression over a mixed-script/emoji/punctuation/number corpus). Arm-time baselines still count once per arm through the same rail, now allocation-free; words-goal net accounting unchanged (exactly one rail trip per update, pinned). +3 tests — RED-first minutes zero-trips pin through an injectable word-rail seam onupdate(per-call counting; a global counter would race the hosted suite's parallel DraftStats calls), the words one-trip skip boundary, and the corpus equivalence proof. Suite 684 (unticketed opt pass) -
home: Fresh installs default to iCloud (#171, resolution of #170/map #167 — plain build slice for #145) — with no stored Home override, launch resolves once and PINS the winner so the Home never silently moves: a legacy
~/Documents/Museiondirectory wins (existing Homes migrate manually, never silently; a stray plain file is not a Home and falls through), else<CloudDocs>/Museionwhen iCloud Drive is present (dynamically resolved unprefixedLibrary/Mobile Documents/com~apple~CloudDocspath, plain FileManager probing — no ubiquity entitlements per ADR-0009), else the silent Documents fallback. No dialog, no rail pill — Settings just shows the resolved path. Repoint-only stands (ADR-0004), zero mover code. The probe/defaults seam is injectable and default constructions under hosted tests neither probe nor pin — the runner app's real iCloud state and defaults are never touched. +9 tests incl. the flip-verified CloudDocs spelling pin and the non-destructive hosted no-write guard. Suite 628 (issue #171) -
cold-turkey: The writing lock (#162, wayfinder map #158 — Build S2; wires #161's goal engine + #160's contract into the app) — Cold Turkey is live: armed from a quiet dot in focus mode's bottom-right corner (hover-labeled) or View ▸ Start Cold Turkey…, the arm-bar carries a chip that blends into the focus ground (ground color, faintest hairline, no shadow — the bare seat let document text show through) with minutes|words selector, ± steppers AND a directly typeable value (parsed and clamped at every read; what you type is what arms — 1…1000 words / 1…60 min, defaults 250/5); Start enters the macOS app-kiosk per the #159 factsheet (7-option presentation combo + fullscreen, the window restored on completion) and the readout follows — numerals + 2px hairline, terracotta inside the last 20%, on the same blending chip. While the block holds: ⌥⌘F/reading/new-buffer paths refused (the open Piece stays the counted one), library + mentor hover zones suppressed (editor-only), ⌘W/⌃⌘F/⌘N swallowed by a key-code-matched monitor (charactersIgnoringModifiers is layout- and Caps-Lock-blind while AppKit menus match the physical key — the audit-caught hole; no .closeItem placement exists and SwiftUI owns the window delegate), and ⌘Q asks once (#163's ruling): "Walk away from the block?" — Walk Away quits cleanly, Keep Writing holds. Typing is never interrupted by the unlock: lock ⇒ focus freezes the view branch under the editor, chrome mounts as overlays only, and the fullscreen round trip preserves the first responder. Completion returns quietly to focus with a fading mono note ("● 250 words · 14:02"). Nothing persists — the block dies with the session. Glossary term landed; +19 tests incl. flip-verified refusal-key, parse-fallback, and canArm-mirror pins; finish-audit fanout (3 reviewers) landed the key-match fix, a ticker-race test seam, chip dedup, and window-capture-on-exit. Suite 620 (issue #162)
-
cold-turkey: Pure goal engine (#161, wayfinder map #158 — Build S1 of the Cold Turkey writing lock) —
WritingGoal(words(Int)|minutes(Int), one goal per block, fixed at arm) +WritingGoalRun, the armed block:update(text:)takes whole-document text andnetNewWordsfalls out of the delta (deleting costs — net, not gross; a 2000-word paste counts), andnowis injected into every call, so the countdown cannot pause by construction. The minutes deadline is arm+minutes (inclusive boundary),isMetis live truth, unlatched (deleting below target un-mets; the lock completes on the first true tick),progress(now:)is the clamped 0…1 fraction the readout hairline rides, and word counting goes through the new internalDraftStats.words(in:)— net-words and first-draft stats share one tokenizer and can never drift ("writer's" is two words, headings are body text, frontmatter never reaches the editor body). Finish-audit fanout (3 reviewers): theInt()conversion trap insecondsRemainingfixed at the seam (isFinite guard +Double(Int.max).nextDowncap — the naiveDouble(Int.max)cap is itself off-by-one at 2^63 and still traps; flip-verified pin), two unpinnable> 0guards inprogressdeleted (degenerate zero targets already fall out to 1 through the Double math),baselineWordsnarrowed tolet; the S2 throttle note landed on #162 (never feed the word count per keystroke). Suite 602 (issue #161) -
mentor: Editorial pane chrome (#156, wayfinder map #153 — the #154 contract's build slice 2; the map closes here) — MentorPaneView's chrome now speaks the same two-color editorial voice the transcript gained in #155. The header drops the icon and "Mentor Session" headline for a serif-15/600 "Mentor", and the ready state becomes the semantic green dot (
DesignTokens.readyGreen— the palette's single sanctioned exception) + lowercase monoready; the base engine version moves to the tooltip (the rare gate/handshake drift note stays visible in orange). The segmented Pass 1 | Pass 2 | Chat picker is gone — the pass bar always carries and owns a compact text-tab selector (mono-10 uppercase tracked, 2pt accent underline on the active tab) above aPASS N · STATEstatus line, the cost line, and the actions as the contract'sMonoButton(accent solid Run/Restart, surface+border Blind Read, accent-outline Cancel — danger is terracotta, no second hue). The fix-cards row is the ruled plain mono link (no card, no hairline of its own), and the crash / missing-engine / starting states render as quiet state-cards (terracotta tri, serif head, sans-muted body, mini-spinner mono interim). Finish-audit pass: security clean; the orphaned pass-surface MARK, the stalehermes <base>doc comment, and a phantom-border comment are fixed; two advisories parked in the devlog (pass-selector state resets on a phase dip — filed as swift-wiki gotcha #28; solid-button contrast ≈ 3.85:1, inherited from #155, to fix pane-wide if flagged). Suite 592 (issue #156) -
mentor: Editorial chat voice on the shared transcript (#155, wayfinder map #153 — the #154 contract's build slice 1) — the Mentor and Sessions panes' shared conversation surface now speaks the two-color editorial voice. The model's speaker prefixes map onto three render voices (
speaker(of:), pinned): "Mentor:" turns render as full-width serif 15/1.6 prose (markdown parsed at flush, verbatim while streaming — the Vivarium #97 pattern), "You:" turns as right-aligned terracotta-wash capsules (radius 12/12/2/12, capped at 85% of the live column width), and everything else (refusals, pass kick-off labels, Blind Read reveals) as the quiet mono status box on the fg-wash card. ThinkingBlock port: mono-11 toggle over serif-13 muted on the recessed card, open with a spinner while live, collapsed when flushed; research-note cards inherit the wash family. The composer restyles per contract — surface-fill input, ONE accent Send flipping to a terracotta-outlined Stop (plain Return sends, Shift+Return breaks the line — the composer previously sent the draft on Return with no way to type a newline at all), a floating thinMaterial liveness chip above the composer while streaming, and the Debug toggle seated at its trailing edge (the header checkbox is gone; the header keeps title + engine status + session chip). Finish-audit (3 reviewers) hardened it: interpreted markdown opens http(s) ONLY — anopenURLgate at the sink (engine prose echoes imported content, so a lying label-over-scheme link can never reach a registered handler; pinned via the purelinkVerdictseam), Caps Lock no longer turns Shift+Return into a send (pinned), and the two plain-Button toggles speak their state to VoiceOver. Suite 584, flip-verified pins (issue #155) -
launch: Gateless launch (#151, wayfinder map #148) — every launch opened a blocking EngineGate sheet over a placeholder logo, ran
hermes acp --checkbehind it, and only handed over the workspace on pass + Start Writing; a provisioning failure then raised a second modal sheet (ProvisioningFailureCard). Now the workspace IS the first frame: the posts scan starts immediately, the engine check runs async beside it (AppGateState.startLaunchCheckfromContentView.task— the gate era's exact auto-fire chain moved verbatim: provisioning ×3 then the daily backup on pass, once per app-launch, first window only, no-op under hosted tests), and engine state never interrupts — a 44×44 rail pill above Archive (pulsing accent dot while checking, warning glyph on an accent wash when failed, nothing at all once healthy — the slot collapses and the rail spacing closes) plus mono-10 mentor-pane header states ("checking the engine…" / "engine missing" / "setup failed" /hermes <base>once ready — the BASE version, not the gate's derived string; session chip renders only once ready). Failure auto-expands an anchored floating card at the rail's bottom-left (340pt, accent border — floats, never blocks): engine-missing carries #40's install steps with the gateless correction ("Passes and Sessions need it — the editor keeps working"), Copy, Installation guide, Re-check (disabled-while-checking, "Checking…"), and Technical details (stderr + probed path); provisioning failure rides the same card (failing profile named, Retry inline — a successful retry dismisses it). Panes spawn the engine the moment the check lands (.task(id: binaryPath)on the nil→value arrival).state.jsonsemantics unchanged (About still reads it). The gate sheet, placeholder screen,EngineGateView, andProvisioningFailureCardare deleted; #38's no-silent-degradation AC survives, carried by the pill. New pins inGatelessLaunchTests(hosted-test no-op, chain armed, pill + mentor-header visibility mappings);EngineGateTestsuntouched and green. Finish-audit pass: the Sessions pane gains the same honest missing-engine notice (never an eternal "Starting…" spinner), focus mode recesses the fail card with the rail (deep work uninterrupted; exiting focus restores it), and the deaddeferFailure(#48's Not-Now) is deleted with its test. Suite 582 (issues #148–#151)
Added
-
settings: Nous Portal as a fourth provider (#175) — Settings offers
nous(hermes' own slug) on every surface and the Provider Keys page: endpointhttps://inference-api.nousresearch.com/v1, envNOUS_API_KEY, the 5-level OpenAI-compatible effort ladder, and switch flagshipanthropic/claude-sonnet-5(live-probed: the portal's docs-listed Hermes-4 ids 404 — the inference API serves the OpenRouter catalog, 385 vendor-prefixed ids, so the switch keeps the app's sonnet posture billed through Nous). Test Connection speaks plain OpenAI chat-completions (Bearer,/chat/completions+/models, the 512 cap — no z.ai thinking knobs) and an unkeyed test falls back to the shared Portal session's agent_key from~/.hermes/auth.json— the engine's own credential, since hermes' nous runtime is OAuth-only and a portal API key and subscription bill the same account credits. The implicit session key only ever rides the official https endpoint: a hand-edited endpoint with an empty key refuses pre-network (paste-a-key), and no key + no login nameshermes auth add nous. Pass readiness rides the same fallback (a logged-in Portal machine reads .ready with no key — Run Pass no longer demands a key the feature says isn't needed; finish-audit HIGH). A pasted key still lands in all three profiles'.envas future-proofing — a later hermes release honoringNOUS_API_KEYfor inference lights up with zero Museion changes. +8 tests (dialect, bare-envelope 404/401 decode, session-key fallback, custom-endpoint refusal, keyless readiness) with a flip-verified pair (both guards deleted → exactly the two new pins fail). Suite 635 (issue #175) -
mentor: The VOICE payload (#58, wayfinder map #56) — Sandeep Swadia's VOICE framework distilled into the bundled skill set: new skill
owned-insight(Owned + Insightful bound as one — fingerprints with the Cornell homogenization evidence, pseudo-profundity, the so-what test, the belief-difference frame; drill example; QRC), the retelling-test card in reader-psychology (child-simple restatement — the Pass plays the source's independent reader), the earn-the-next-line card in prose-craft's new Engagement section (diagnoses absent tension, never manufactures it — the source's craft ceiling), and the interview-me-first stance in session-persona (the verbatim four untouched).owned-insightjoins the #133 allocation on all three surfaces (P1 10 · P2 9 · Chat 11), rides seed-manifest, fires as FC-11 in the sample Pass, and lands as PRD G14. Verified stays with S8's research rail; the five pitfalls dissolve into existing coverage. Suite 574 (issues #56–#58)
Changed
- library: Incremental rescan (#143, OPT-F3) — every save/watcher cycle re-read and re-parsed EVERY post.md in the library (O(library bytes) per autosave echo, forever while writing) and replaced the posts array unconditionally, regrouping/re-rendering every observing pane even when nothing changed.
Post.scannow takes an optional parse memo (PostScanCache, keyed on path+mtime+size — the readdir walk stays the truth, only changed files are read and re-parsed; the stamp is captured BEFORE the read so a mid-scan rewrite can never be pinned as fresh — an overlapping-rescan race the review caught, pinned), and the rescan skips the posts assignment when the scan equals the current list, so panes stop re-rendering on the app's own autosave echoes. Deliberately skipped (measured cold):folder(of:)caching (stat-only walk) and refreshCards throttling (O(open piece), card surfacing depends on it). Suite 573 (issue #143)
Added
-
library: Search across titles and bodies (#144, FEAT-004) — the library column gains a plain-text search field under the Posts header: a debounced (250 ms) title+body filter over the non-archived pieces, body scan off MainActor through
PostStore.readBody(frontmatter never searched), flat results with title matches first (Finder order preserved), match count, and the full context menu on result rows. Clearing returns the project sections. Suite 574 (issue #144) -
editor: Drop an image into the prose (#141) — dragging an image file onto a saved post's prose editor COPIES it (never moves) into the piece's
assets/under a parser-clean slugged name (collision-2via the shared uniqueFile helper) and insertsat the drop point withaltselected for immediate type-over; one edit step = one undo. The type gate is exactly the publish rail's set (#34'sMicropub.mimeType— PNG/JPEG/GIF/WebP/SVG: nothing entersassets/that can't ship), a Finder folder or a dropped SYMLINK refuses (copyItemwould land the link itself and the publish rail would refuse the whole send), and drafts/outline/guest surfaces refuse loudly with a transient strip. Routing rides the window-level SwiftUI drop destination — field-verified to starve every deeper drag destination (nested SwiftUI targets never fire, AppKit NSDraggingDestination never fires) — pure-markdown sets keep the open-as-guest behavior, mixed md+image sets refuse loudly instead of silently dropping the images. The drop-point mapping inverts the one geometry source that answers under SwiftUI hosting (firstRect, bottom-up screen coords): a viewport-banded sample→bracket→binary-search over it — non-contiguous layout returns garbage rects for off-screen characters, so only in-band rects are trusted — then a whitespace-gap slide so a landing never splices inside a word or an existing ref; the solve is a pure function pinned by windowless tests, and the typewriter inset re-syncs after the edit so scrolling never freezes. Eleven tests incl. a flip-verified finish-audit cycle; suite 557 (issue #141) -
publish: Illustrations travel with it (PRD S6.2, G12) — a piece's
assets/ink-sketch images now publish: Send as Draft first uploads every referenced image to Micro.blog's media endpoint (discovered per send viaGET ?q=config, one multipartfilePOST per FILE — duplicate refs share an upload — decoding Location/body-url behind the trust gate), then eachref REWRITES IN PLACE with its uploaded URL in the wire content, so the image renders exactly where the writer placed it and the alt rides the markdown (live dogfood killed the first shape: a Micropubphotoproperty renders wherever the theme decides — the bottom — losing position; no property ships at all now). The piece on disk never changes. The floor (G12): a photo without alt text never ships — the send refuses naming the illustration BEFORE anything touches the wire, and a parsed body ref is the only way an image ships. Pre-flight gates every payload: the endpoint's exact formats only (PNG/JPEG/GIF/WebP/SVG — nothing entersassets/that can't ship), path containment resolved through symlinks (a planted link never uploads outside-file bytes under the writer's token), all-or-nothing uploads. A URL carrying markdown-active characters rides the angle form— a plain-paren destination would close at the first)and smuggle a live link into the published post (the frontmatter trust gate doesn't cover markdown's grammar). The mentor is consulted for nothing — style judgment stays with the author. Seventeen tests incl. a flip-verified audit cycle; suite 546 (issue #34) -
publish: Micropub draft → publish to Micro.blog (PRD S6.1, G2/G11) — a Publish button in the editor toolbar opens the two-step ask: Send as Draft (JSON Micropub
h=entrycreate — name = the piece's Title, markdown content verbatim,post-status: draft; the piece's frontmattercategory:is accepted but never travels), review via the Micro.blog preview link, then Publish (theaction=updatepost-status flip against the piece's rememberedmicropub_url— persisted in frontmatter so a draft survives a reopen; Send Again re-drafts after edits). The Micro.blog app token lives in the Keychain (login keychain, entered once in the sheet, re-offered only on an auth failure — rotation replaces). Every draft URL passes a format gate at both the decode and the scan read-back: the URL is trust-boundary data landing in frontmatter, and a newline----rider would close the block and reparse as attacker markdown in the writer's piece; the preview URL is display-only, never the publish target. Frontmatter-only stamps keep the body and foreign keys byte-identical (issue #33) -
stats: Trend view — the writer's arc (PRD S5.2) — a Trends pane (rail destination after Learnings, measurement beside memory): one line chart per style metric (burstiness, type-token ratio, sentence variation, trigram repetition) across unaided-first-draft CAPTURES over time, each card carrying an honest first→last read (
improving/steady/slippingat ±0.01, direction inverted for trigram repetition — the one ↓-better metric; one capture shows its value with no verdict) plus the per-metric ↑/↓-better hint and a one-line plain-language gloss of the term beneath each chart (grain + better-direction, pinned distinct). Points are capture moments, never draft grades — the pane answers "am I getting better," not "is this draft good." The edited-text leak is closed by construction:Post.scanreads the fivestats_*frontmatter keys intofirstDraftStatsonly when every key parses to a finite double AND the piece carries the capture gate's immutable pair (origin writer, type post) — so ai-origin pieces, outlines, edited-before-first-pass drafts, and imported or hand-edited frontmatter (non-finite values, stamped ai pieces) carry nothing to show, while a migrated writer piece keeps its real arc. The pane rides PostsModel's watched scan (no scan of its own, refreshes with the library); fixed y-domains keep single captures visible (sentence variation scales to its peak); the empty state names how the data arrives (issue #32) -
mentor: Blind Read — writer-triggered advisory A/B judgment (#122, decision #120) — a purposeful "Blind Read" button beside Run Pass in the pass bar judges the current document against the Pass-start snapshot (the newest
passes/pass-N.mdon disk): both versions travel INLINE in one prompt under neutral A/B position labels with randomized order (origin words never appear — the judge can't know which is the rewrite), a fresh one-shot engine on the samemuseionchat profile renders its pick + one-line reason into the transient transcript, and the A/B↔origin reveal lands only AFTER the verdict so it can never leak; cancelled, refused, and spawn-failed turns reveal nothing. Advisory-only per #120: nothing advances, no cards, no Learnings, the roster never grows — the verdict dies with the transcript and the writer stays judge of record. Honest refusals: no snapshot yet ("run a Pass first"), an unchanged document ("No edits since…"), or a busy rail (passes and reads refuse each other; one Cancel ends either). The pass engine's spawn/session/teardown block became one sharedrunOneShotrail (failure rows speak the run's own name), the fake ACP gained a prompt-log observable, and the GLOSSARY "Blind Read" term landed. Finish-audit (3 reviewers) fixed the refusal-reveal gate (a refusal still ends.ended— gate on the stopReason; flip-verified), the hardcoded "Pass failed" copy, and pinned the Cancel/exclusivity rail. Suite 500 (issue #122) -
mentor: Native deslop lint at pass invocation (PRD S3.4) — running a pass now computes the deslop skill's deterministic findings (banned-vocab tiers + em-dash density) natively in Swift at the invocation — after first-draft stats capture, before the engine turn, no engine round-trip — and each finding lands as a real fix card (emitter
lint) under<piece>/cards/, rendered by the existing Fix Cards palette with ask-before Apply on mechanical mapping cards (mapped phrases likeutilize→usecarry the replacement; unmapped ones land demonstration for judgment). One card per phrase over its tier allowance, case-insensitive whole-word matching (delvednever firesdelve), anchor = the first match with case preserved, em-dash density card first when over budget, tiers ranked by first match. The tier data ships asResources/deslop-lint.jsonmirroring the deslop doctrine verbatim (key/landscape/highlight/bareunderscoredeliberately omitted as POS-ambiguous — add via<home>/deslop-lint.json, which wins whenever it exists and decodes); emit dedups against OPEN cards before submit so re-runs make progress (closed cards never block) and the engine never re-cards a live lint finding. A failed lint never blocks the pass (the stats-capture posture). Suite 487 (issue #6) -
mentor: Prompt-end constraint ordering verified + pinned (#1) — the PRD's cross-cutting rule audited on the app's REAL wire: an ACP probe (initialize → session/new → session/prompt against the provisioned museion-pass1) plus the engine's own state.db read-back show constraint bodies never ride the system prompt — they enter as
skill_viewresults, so "assembly order" is the mentor's tool-call order, and the baseline already loaded deslop AFTER the piece but by model choice. Both personas (pass 1.5 / session 1.2) gain the verbatim-shared "Draft first, rules last" pin converting observed-once into instructed-always;PersonaLoadOrderTestsguards presence + parity over the bundled payload; the verified layout, thehermes -ztrap (one-shot swaps the skills directive — a-zprobe loads ZERO skills and assembles a different prompt), and the additive-only propagation cost (content edits need a hand-copy to master/profile copies; byte-match then migrates) live indocs/research/prompt-layout-factsheet.mdwith the probe script in-repo. Suite 479 + 1 load-flake cleared in isolation (issue #1) -
mentor: Profiles S4 — per-surface engine lifecycle + model-switch UX (#137) — passes run on their OWN one-shot engines (
hermes acp -p museion-passNspawned per pass run, torn down at the verdict — a model switch costs nothing, the next spawn reads fresh config) streaming into transient unrostered transcripts (#129: one Sessions surface over the chat engine); the Chat engine stays resident and a Chat model change in Settings restarts it in place, deferred to turn end while a reply streams; Run Pass names the missing provider key and disables with an Open Settings link until the key lands (pane re-entry re-checks). Finish-audit (3 reviewers) fixed a post-await activation steal that could flip the surface mid-pass and lose the Cancel (oneclaimActivegate), plus a PRE-EXISTINGrescanbug where a stale scan snapshot "vanished" a just-opened piece and killed its session with unflushed edits. Suite 477 (issue #137) -
settings: Profiles S3 — the real write path + Test Connection (#136) — every Settings change now persists: model/effort writes ride the engine's own CLI (
hermes -p <profile> config set/unsetmodel.provider/default/reasoning_effort/base_url, wire-verified) and provider keys upsertVAR=valueinto ALL THREE profiles'.env(0600, foreign lines preserved, line-broken values refused at the sink — an env-file injection guard); hydration reads model blocks and keys back at pane open, so a restart neither blanks the UI nor refuses Test Connection, and a custom z.ai base_url survives instead of being clobbered to a family default. Per-target writes coalesce AND chain past the debounce guard — the last edit is always the last write to land. Test Connection is a two-step probe (GET /modelsthen a minimal streaming chat) with honest decode per the factsheet: z.ai 1113 → wrong key type, 401s → auth failed with request id, finish=length → starved, empty 200 → request failed. Live-probed wire corrections:Content-Type: application/jsonon every request (URLSession defaults to form-urlencoded — z.ai answers 200 with an error envelope), OpenAI speaks the Responses API (/responses,input+max_output_tokens, flagshipgpt-6.1-sol), probe token cap 512 (64 starved reasoning models into "no content"). Suite 468; three-reviewer finish-audit fixed a write-ordering race, an.envlost-update race, a mid-hydrate stomp, and cut ~30 lines of dead flexibility (issue #136) -
settings: Profiles S2 — Settings page as sidebar + detail (#130 prototype variant C verdict) — destinations Content (the unchanged Home control) · Pass 1 · Pass 2 · Chat (annotated "· Sessions") · Provider Keys. Each surface page edits its model block over an in-memory model: provider menu, model combobox sourcing Hermes' own registry cache with first-class free text (the seed
claude-sonnet-5-5reads as custom (not in registry) — the default state), per-provider reasoning-effort menu led by "unset · provider default", variant B's current-model headline, and Restore Defaults back to the #132 seed; the Provider Keys page carries endpoint, the z.ai key-type toggle swapping the endpoint family (/api/paas/v4↔/api/coding/paas/v4, custom endpoints survive), and masked keys with reveal. Persistence is S3's — every change routes through an injectableSettingsWritingseam whose contract (debounce, secrets never via argv, redacted error text) is frozen now; write failures surface in an orange strip. Dropdown picks commit throughcomboBoxSelectionDidChangereading the selection index — the notification fires beforestringValueupdates (log-observed dogfood fix). Suite 432 (issue #135) -
profiles: Profiles S1 — surface registry + provisioning ×3 (PRD #134, ADR-0014) — one gate pass now provisions ALL THREE Hermes profiles:
museionis adopted in place (never re-created or reconfigured — its model stays the user's),museion-pass1/museion-pass2are created fresh with the #132 defaults (claude-sonnet-5-5on anthropic, reasoning effort unset, 24k output budget as a guardrail) written via the engine's ownhermes -p <profile> config setrail — wire-verified, marker-gated so a re-pass is a no-op and Settings changes survive, and a failed provision names the profile on the #48 card. Writing skills move to ONE master copy at~/Library/Application Support/Museion/skills/symlinked into each profile per the #133 allocation (Pass 1: 9 · Pass 2: 8 · Chat: 10 — the persona pair never co-occurs); today's copy-era dirs migrate to symlinks only on byte-match, diverged dirs stay copies, user skills untouched. Daily backup widens to one stamp carrying all three profiles — any live engine skips the whole stamp; restore docs name the three folders (issue #134) -
stats: First-draft stats capture (PRD S5.1) — running Pass 1 or Pass 2 on an unaided draft (writer-origin, First Draft Pass State, post type) computes four style metrics natively in Swift at the invocation — before the mentor sees anything — and stamps
stats_capturedplus fourstats_*values into the piece's frontmatter, so the coming trend view is a scan ofposts/; a cancelled pass keeps its capture, re-runs while still First Draft overwrite (latest draft wins), and the frontmatter write paths (pass completion, editor save) now update their keys in place instead of rebuilding the block — captured stats and foreign YAML survive (issue #31) -
sessions: New Post from Session & drill offers (PRD S2.7/S2.8) — a freeform Session births a Post: "New Post" in the Sessions pane opens an ask-before sheet prefilled with the session's last mentor reply (editable, G9), and ONE confirm materializes the piece under
projects/posts/stampedorigin: ai— immutable frontmatter, never stats-eligible — and opens it in Posts; a failed write keeps the sheet up with the reason inline and the draft intact. "New Brainstorm" is a session started with an opener prompt (session flavor, no new machinery). The freeform composer (input + liveness + Stop) moved into the sharedSessionTranscriptView, so both session surfaces are conversations; session-born pieces and the resume rail are pinned (issue #30). Resume now speaks the REAL adapter wire: 0.21.5 answerssession/loadwith_meta.hermes.sessionProvenance.acpSessionIdand no top-levelsessionId— resume accepts both shapes (live-probed; every prior real-engine resume misread as "unknown") (issue #30) -
mentor: Research & library-light (PRD S8, G9) — the mentor researches mid-pass and its findings arrive as candidate source-notes with provenance inside their Session: a third museion-tools tool
submit_research_notesis the typed rail (decode-validate only, replies{"received": N}, writes NOTHING — the session is the holding area), candidates ride the transcript as full cards parsed by payload shape (thenotesarray routes before the fix-card parse; titles are display text), and resume re-materializes them for free from the engine's replay (engine-owned cargo, ADR-0007 — dispositions reset honestly). The writer curates in place: Keep opens the ask-before sheet and ONE confirm lands one plain markdown note with provenance (source/keptfrontmatter) into the piece'sresearch/— anchored through the onefolder(of:)id lookup, a symlinkedresearch/refuses, collision -2; Reject vanishes, recording nothing. The pass prompt names the rail and forbids the engine writing candidates itself; kept notes fliphasResearch, so every later pass consults the library (issue #29) -
sessions: Session lifecycle UI (PRD S2.3, ADR-0007) — the mentor bridge hosts multiple engine-owned sessions on one child: per-session transcripts keyed by wire sessionId behind the same-named proxies (every existing caller compiles unchanged), a names-only roster at
~/Library/Application Support/Museion/sessions.json(0600; id/name/pieceTitle/date — the words stay engine-owned), and the standard affordances over the wire:session/new,session/load(the engine replays the full history before responding — user turns included),session/fork, compact as the/compressslash prompt,session/cancelas the Stop rail. The Sessions pane replaces its placeholder: roster list (piece-associated by name when Posts has an open piece), row-click resume, Fork · Compact, live streaming with Stop; every pass auto-creates its rostered session ("Pass N · <title>") and streams into it; the transcript renderer is shared with the mentor pane. Resume refusals are honest and entry-attributed (an engine-unknown session never fabricates history), concurrent replays refuse instead of interleaving, restart replays from the engine, and the notification hops ride the main queue so the adapter's replay-before-response contract is guaranteed. Finish-audit (three reviewers) surfaced the concurrent-resume race, the dead restart branch, the runPass guard window, the 15 s session/load default, and the missing createSession backstop — all fixed and pinned (issue #28) -
mentor: Dismiss & decay for Learnings (PRD S4.2, G8) — dismissed patterns fade instead of haunting: a Dismiss button on every visible Learning in the Learnings pane stamps decay state into the Learning's own frontmatter (
dismissed,dismiss_count,dismissed_at_pass— every other line preserved verbatim; hand-editable, git-diffable, survives restarts) and hides it from every pass:query_learningsserves only visible learnings. Resurfacing is an output clock, not a calendar — a dismissed Learning returns after 10 subsequent completed passes of its content type (a per-type counter under<home>/learnings/pass-counts.json, ticked by every completed pass, re-runs included), each re-dismiss doubles the interval (10 → 20 → 40…), and a per-Learningresurface_afterfrontmatter key overrides the base 10. Dismissed rows dim with a "resurfaces in N passes" countdown and no button until they return; hand-edited decay state reads leniently — garbage means visible, absurd numbers clamp, a hand-edit can never crash the pane or the rail (issue #27) -
mentor: Promote & consult Learnings (PRD S4.1/S4.3/S4.4, ADR-0005) — only the writer's explicit confirmation promotes a Fix Card into a Learning: one confirm = one entry, never a repetition counter (the store refuses a second promote of a stamped card). The promote ask on every card row (open or closed — the Learning outlives the card) matches the design contract's dialog (pattern/problem/provenance preview, Cancel/Promote); confirming writes ONE plain markdown file
<home>/learnings/<type>s/YYYYMMDD-<pattern-slug>.mdcarrying the card's teaching fields — pattern, problem, diagnostic question, the demonstration example (demonstration lanes only) — plus promotion provenance (flat frontmatter + readable body,from_cardtraceability, collision -2; the instance-bound anchor and mechanical replacement stay on the card — the Learning teaches the symptom/fix, never re-quotes the originating text) and stamps the cardpromoted_at(pre-#26 cards decode nil); every pass consults exactly these files throughquery_learnings, so recurring weaknesses surface as fix cards; the Learnings pane replaces its placeholder — list-only, grouped by content type, newest first, lenient to hand-edits; learnings are hand-editable, git-diffable, per-writer portable files in the Home (dismiss/decay landed in #27) (issue #26) -
mentor: Fix Card apply/skip & trust UI (PRD S3.2/S3.3/S2.5) — Fix Cards are actionable: mechanical cards offer Apply behind a blocking ask-before sheet showing the exact edit (anchored quote → replacement, occurrence + context; an empty fix cuts the span) — the only path to a write, one card at a time, no apply-all; the edit lands through the editing session (pending edits flush first, the editor re-seeds, the card closes applied), Skip and Done close the card in place recording nothing, demonstration cards close Done/Skip only (ADR-0006); cards arrive ranked (store-stamped order,
#Nin the meta, open cards first) and capped at ten per submit — the app keeps the ranked head and the wire reply says what dropped; a stale anchor — the Post changed after the card was issued — alerts with no text selected or changed and flags the card (issue #25) -
mentor: museion-tools MCP server + Fix Cards (#23, #24 rails) — the app binary grows a headless
--serve-mcprole speaking NDJSON JSON-RPC on stdio, exposingquery_learnings(the piece's visible learnings) andsubmit_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 · emittermeta when the engine stampsprovenance.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_cardscall 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⋯ Nsummary 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
typeflips 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: outlinepiece 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: outlinepiece; 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,
· Ncounts, 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.mdwith finished work folding intoarchive/<name>/(ADR-0012): the library scans both roots, New Piece and Import land in the selected project (else the defaultposts), slugs stay globally unique across projects and archive so an archived name is never reused, and every piece carriestype: postfrontmatter (absent or unknown types read as post; the file stayspost.mdfor 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.jsonsidecar 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.mdstamped 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/-3collision suffixes, Explicit Rename retitles the# Titleline and moves the folder (file stayspost.md), and Delete moves the folder to the Trash; a recursive FSEvents watcher keeps the list mirroringposts/(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 +
psscan), 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.mdbeside 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
museionHermes profile (hermes profile create --no-alias --no-skills) and additively seeds the bundled writing skills viaseed-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 astate.jsonrecord 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)
Changed
- editor: Typing beside an open fold no longer rebuilds the whole document (#142) — with a fold live, every keystroke used to re-scan the buffer, rebuild the full attributed string (invalidating TextKit layout document-wide → O(n²) typing on folded documents), and rasterize a chrome image the SIZE OF THE DOCUMENT (~35M pixels on a tall doc) to paint a handful of chevrons. Single-line edits now re-key folds in place (pure delta math: shifts, marker-line deaths, scope re-hides) with no rescan and no storage swap; structural edits, multi-line pastes, and wholesale restyles keep the full pass, and a font-probe fallback self-heals any restyle that wipes the hidden styling. Chevrons/⋯N render as one tiny cached layer per list parent instead of the document-sized bitmap, and an edit below every parent skips the chrome rebuild outright. Finish-audit hardening: the single-line gate is
isNewline(a literal"\n"/"\r"compare passes CRLF — one grapheme equal to neither), and structural indent/outdent always takes the full pass (a childless unterminated block's ⇧⇥ is a single-line edit that would keep a dead fold's scope hidden). Fifteen fold/rekey tests incl. a flip-verified audit cycle; suite 570 (issue #142)
Fixed
- mentor: live passes no longer read as crashes —
session/promptwaits 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 missingstopReasonnever 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/newnow sends the newly requiredmcpServerslist (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.g735e426recorded vs0.21.5reported) no longer fabricates a mismatch on every launch; real drift still fires.