diff --git a/AGENTS.md b/AGENTS.md
index fbda26c..eb69574 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -130,7 +130,7 @@ Single-context: `GLOSSARY.md` + `docs/adr/` at the repo root. See `docs/agents/d
# GitNexus — Code Intelligence
-This project is indexed by GitNexus as **museion** (6023 symbols, 25503 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
+This project is indexed by GitNexus as **museion** (6075 symbols, 25600 relationships, 300 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
> Index stale? Run `node .gitnexus/run.cjs analyze` from the project root — it auto-selects an available runner. No `.gitnexus/run.cjs` yet? `npx gitnexus analyze` (npm 11 crash → `npm i -g gitnexus`; #1939).
@@ -200,14 +200,14 @@ Session logs live in `docs/devlog/` (one per completed task/issue/milestone). Fu
| Date | Log |
|------|-----|
-| 2026-11-03 | [20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md](20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md) |
-| 2026-11-03 | [20261103-issue58-voice-payload-landed_log.md](20261103-issue58-voice-payload-landed_log.md) |
-| 2026-11-03 | [20261103-issue147-app-target-lint-clean-five-error-spots_log.md](20261103-issue147-app-target-lint-clean-five-error-spots_log.md) |
-| 2026-11-03 | [20261103-issue146-postsmodel-split-under-lint-ceilings_log.md](20261103-issue146-postsmodel-split-under-lint-ceilings_log.md) |
-| 2026-11-03 | [20261103-issue144-library-search-across-titles-and-bodies_log.md](20261103-issue144-library-search-across-titles-and-bodies_log.md) |
-| 2026-11-03 | [20261103-issue143-scan-parse-cache-incremental-rescan_log.md](20261103-issue143-scan-parse-cache-incremental-rescan_log.md) |
-| 2026-11-03 | [20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md](20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md) |
-| 2026-11-02 | [20261102-issue141-image-drop-illustration-ingest_log.md](20261102-issue141-image-drop-illustration-ingest_log.md) |
-| 2026-11-01 | [20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md](20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md) |
-| 2026-10-31 | [20261031-issue33-m6-micropub-draft-publish-s6-1_log.md](20261031-issue33-m6-micropub-draft-publish-s6-1_log.md) |
+| 2026-11-04 | [20261104-issue155-shared-conversation-surface-editorial-voice_log.md](docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md) |
+| 2026-11-03 | [20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md](docs/devlog/20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md) |
+| 2026-11-03 | [20261103-issue58-voice-payload-landed_log.md](docs/devlog/20261103-issue58-voice-payload-landed_log.md) |
+| 2026-11-03 | [20261103-issue147-app-target-lint-clean-five-error-spots_log.md](docs/devlog/20261103-issue147-app-target-lint-clean-five-error-spots_log.md) |
+| 2026-11-03 | [20261103-issue146-postsmodel-split-under-lint-ceilings_log.md](docs/devlog/20261103-issue146-postsmodel-split-under-lint-ceilings_log.md) |
+| 2026-11-03 | [20261103-issue144-library-search-across-titles-and-bodies_log.md](docs/devlog/20261103-issue144-library-search-across-titles-and-bodies_log.md) |
+| 2026-11-03 | [20261103-issue143-scan-parse-cache-incremental-rescan_log.md](docs/devlog/20261103-issue143-scan-parse-cache-incremental-rescan_log.md) |
+| 2026-11-03 | [20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md](docs/devlog/20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md) |
+| 2026-11-02 | [20261102-issue141-image-drop-illustration-ingest_log.md](docs/devlog/20261102-issue141-image-drop-illustration-ingest_log.md) |
+| 2026-11-01 | [20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md](docs/devlog/20261101-issue34-m6-illustrations-travel-inline-s6-2_log.md) |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 586b282..924fbb4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file. The format
### Changed
+- **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 — an `openURL` gate at the sink (engine prose echoes imported content, so a lying label-over-scheme link can never reach a registered handler; pinned via the pure `linkVerdict` seam), 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 --check` behind 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.startLaunchCheck` from `ContentView.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 ` 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.json` semantics unchanged (About still reads it). The gate sheet, placeholder screen, `EngineGateView`, and `ProvisioningFailureCard` are deleted; #38's no-silent-degradation AC survives, carried by the pill. New pins in `GatelessLaunchTests` (hosted-test no-op, chain armed, pill + mentor-header visibility mappings); `EngineGateTests` untouched 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 dead `deferFailure` (#48's Not-Now) is deleted with its test. Suite 582 (issues #148–#151)
### Added
diff --git a/Museion/AGENTS.md b/Museion/AGENTS.md
index ab0badb..cb71974 100644
--- a/Museion/AGENTS.md
+++ b/Museion/AGENTS.md
@@ -21,7 +21,7 @@ Owned by the root AGENTS.md contract. The `.xcodeproj` uses **filesystem-synchro
## Workspace shell (M1, #17 + #18 / S1.1)
- `DesignTokens.swift` — palette/geometry from the design contract (`ref/Web-Prototype/museion-workspace.html` `:root` + grid): background/surface/foreground/muted/border/accent colors, radius 10, column widths (rail 56, library 232, mentor 356; the export's editor min 420 lands with #19's editor column), serif/mono font designs. **#89 (2026-10-09):** two-color world, calibrated live — `background` #FAF9F3 (chrome + focus ground), `surface` #FFFEFB (one page color for edit AND read); deliberate departure from the export palette, values live-calibrated not contract-fixed. Light-only — one palette.
-- `WorkspaceView.swift` — the first-frame main surface (#151: gateless — rendered unconditionally by ContentView; the engine check runs async beside it): nav rail (Posts/Sessions/Learnings/Trends + the #151 engine-status pill + Settings at bottom) + active pane. `RailButton` per the export (44×44, muted icon, hover wash, surface card + 2px edge bar when current). **#32 (S5.2):** the rail's fourth destination — Trends (`chart.xyaxis.line`, after Learnings — measurement beside memory) → `TrendsPaneView` (own file). **#28 (S2.3):** Sessions is real — `SessionsPaneView` (own file) over the engine-owned session model: `PaneHeader("Sessions")` carries the New Session control (**#30: always a Menu** — "New Session" / "New Session on \
" when Posts has an open piece / "New Brainstorm" → `beginBrainstormSession`; the plain-button branch died with the second action; association stays by name/convention, `pieceTitle` on the roster entry; disabled on `!canStartSession`), two-column body — roster list at `libraryWidth` (rows in `LibraryPostRow`'s exact 2px-strip language: serif-13 name + mono-11 meta `pieceTitle · yyyy-MM-dd HH:mm`; row click = `resumeSession`, the engine replays the transcript, an engine-unknown id lands the model's honest refusal row and the entry stays) | transcript via the shared `SessionTranscriptView` (home passed through — #29 research candidates curate in either pane; **#30: the shared surface carries the freeform composer + liveness + Stop too — the pane is a conversation, not a read-only transcript**; the pane-local liveness row died with the move). Detail column: idle/starting → "Starting the mentor engine…" progress; crashed → a plain "Restart it in the Mentor pane" pointer (never a second restart flow); ready → actions row (active session name serif + engine version mono, **#30: New Post · Fork · Compact** bordered mono-11 — Fork · Compact disabled on `!canStartSession`, New Post never engine-gated (it reads in-memory transcript rows; a crashed engine must not strand the draft); New Post stages the pane-local ask — `sessionDraft` @State seeded from `draftCandidateText()`, the private `NewPostFromSessionSheet` prefills the editable candidate (origin: ai stated in-UI, Create disabled on blank), Create → `PostsModel.newPostFromSession`, dismissal is the cancel; a FAILED write keeps the sheet up with the reason inline (ApplyAskSheet posture — the edited draft is never destroyed); empty transcript = empty prefill, the sheet still works) + transcript. The pane's `.task` runs the same idempotent `openSession()` (XCTest-guarded) and seeds `model.binaryPath` from the gate when nil, so the pane can be the first to spawn the engine. Empty state names how sessions arrive (a pass, or New Session). The transcript renderer + freeform input rail live in `SessionTranscriptView` (own file) — MentorPaneView's transcript views moved there verbatim (#24's `defaultScrollAnchor(.bottom)` preserved); `isWritingRow` moved with it and MentorPaneView delegates; **#30: the composer (input 1…4 lines + send + liveness + Stop) moved there too — one conversation surface, two panes** (the Mentor pane keeps the crash card + debug toggle). **#26:** Learnings is real — `LearningsPaneView` (own file), a list-only pane (Archive posture) over `/learnings/`: `LearningsIndex` (nonisolated) scans type dirs → groups (dir name lowercased, library section-head voice) → entries newest-first (`YYYYMMDD-` filename prefix desc, undated last), pattern/problem/promoted read leniently via `Post.frontmatter` (missing pattern → filename minus date+ext), scan detached off MainActor from `.task(id: home)` with a `Task.isCancelled` gate on the hop back (a slow old Home's scan must not overwrite the new one's), no watcher (ponytail: re-scans on pane re-entry); audit: file reads are unbounded and follow file symlinks — same ceiling as Post.scan, ponytail-noted. **#27 (S4.2):** `Entry` gains `resurfacesIn` (nil = visible, positive = passes until resurface; `currentPass` init param — nil/absent = an unclocked foreign dir, never a verdict: its clock can't advance, a countdown would lie, mirroring the store's dismiss refusal; #27 review) and `scan` reads `LearningDecay.passCounts(home:)` once, feeding each CLOCKED group its dir's clock (foreign dirs nil); rows DISMISS — visible entries in clocked dirs carry a mono-11 Dismiss button (Unarchive voice, no confirm sheet — dismissal is low-stakes and self-healing; foreign unclocked dirs offer none), dismissed rows dim to 0.45 (closed-card voice) with "dismissed · resurfaces in N passes" leading the meta; the scan is refactored into a private `rescan(_:)` reused after a dismiss (detached task; errors land in a mono-11 orange `lastError` strip under the header, cleared on the next successful rescan; assignments gate on `scannedHome` — a dismiss Task holds the OLD home beyond `.task` cancellation and must not overwrite a repointed Home's groups). Posts renders the full grid; **column collapse mirrors the export's media queries** (library hides < 1100 px, mentor hides < 920 px budget) as macOS pane collapse — never a fixed four-column minWidth that clips. `PaneHeader` = 52pt serif-15 title row + border. **#22:** window-level `.dropDestination(for: URL.self)` (markdown only via `PostStore.isMarkdown`, first match — same guest slot as ⌘O), the `OriginAskSheet` (ONE ask per import batch — "Who wrote this?", writer default / ai, immutability line; Cancel drops the batch), and pane auto-switch to Posts when a guest buffer opens or an import's post opens. **#108:** rail gains the Archive destination (archivebox icon, above Settings — the #104 verdict: a destination, not a library disclosure); `ArchivePaneView` = list-only pane over archived pieces grouped by project (same section-head voice as the library + mono-11 Unarchive button per project → `PostsModel.unarchiveProject`), rows reuse `LibraryPostRow` with Move Back to `` + Rename…, row-click selects + hops to Posts (`onOpenPiece` closure — the pane can't reach the rail selection); empty state names how things arrive. The New Project ask presents here too (`newProjectAskBinding`, the OriginAsk pattern). **#111 (S7):** the third ask — `OutlineGuardSheet` (`outlineGuardBinding`, same pattern) for the mixed-content outline guard: Open in Prose (default) · Open as Outline · Cancel (= binding dismissal → `cancelOutlineGuard`, Esc included). **#114 (S4):** the fourth ask — `ConvertSheet` (`convertAskBinding`) for Convert to Post: Verbatim Bullets (default — lossless) · Headings · Cancel (= `cancelConversion`); a ladder-drops-prose warning when `lossy`; the Archive pane's row menu also carries Convert to Post… on outline pieces (archived stays archived — only type + body flip).
+- `WorkspaceView.swift` — the first-frame main surface (#151: gateless — rendered unconditionally by ContentView; the engine check runs async beside it): nav rail (Posts/Sessions/Learnings/Trends + the #151 engine-status pill + Settings at bottom) + active pane. `RailButton` per the export (44×44, muted icon, hover wash, surface card + 2px edge bar when current). **#32 (S5.2):** the rail's fourth destination — Trends (`chart.xyaxis.line`, after Learnings — measurement beside memory) → `TrendsPaneView` (own file). **#28 (S2.3):** Sessions is real — `SessionsPaneView` (own file) over the engine-owned session model: `PaneHeader("Sessions")` carries the New Session control (**#30: always a Menu** — "New Session" / "New Session on \" when Posts has an open piece / "New Brainstorm" → `beginBrainstormSession`; the plain-button branch died with the second action; association stays by name/convention, `pieceTitle` on the roster entry; disabled on `!canStartSession`), two-column body — roster list at `libraryWidth` (rows in `LibraryPostRow`'s exact 2px-strip language: serif-13 name + mono-11 meta `pieceTitle · yyyy-MM-dd HH:mm`; row click = `resumeSession`, the engine replays the transcript, an engine-unknown id lands the model's honest refusal row and the entry stays) | transcript via the shared `SessionTranscriptView` (home passed through — #29 research candidates curate in either pane; **#30: the shared surface carries the freeform composer + liveness + Stop too — the pane is a conversation, not a read-only transcript**; the pane-local liveness row died with the move). Detail column: idle/starting → "Starting the mentor engine…" progress; crashed → a plain "Restart it in the Mentor pane" pointer (never a second restart flow); ready → actions row (active session name serif + engine version mono, **#30: New Post · Fork · Compact** bordered mono-11 — Fork · Compact disabled on `!canStartSession`, New Post never engine-gated (it reads in-memory transcript rows; a crashed engine must not strand the draft); New Post stages the pane-local ask — `sessionDraft` @State seeded from `draftCandidateText()`, the private `NewPostFromSessionSheet` prefills the editable candidate (origin: ai stated in-UI, Create disabled on blank), Create → `PostsModel.newPostFromSession`, dismissal is the cancel; a FAILED write keeps the sheet up with the reason inline (ApplyAskSheet posture — the edited draft is never destroyed); empty transcript = empty prefill, the sheet still works) + transcript. The pane's `.task` runs the same idempotent `openSession()` (XCTest-guarded) and seeds `model.binaryPath` from the gate when nil, so the pane can be the first to spawn the engine. Empty state names how sessions arrive (a pass, or New Session). The transcript renderer + freeform input rail live in `SessionTranscriptView` (own file) — MentorPaneView's transcript views moved there verbatim (#24's `defaultScrollAnchor(.bottom)` preserved); `isWritingRow` moved with it and MentorPaneView delegates; **#30: the composer (input 1…4 lines + send + liveness + Stop) moved there too — one conversation surface, two panes** (the Mentor pane keeps the crash card). **#155 (map #153, contract `ref/prototypes/wf154-mentor-pane-prototype.html`):** the surface wears the editorial chat voice — `speaker(of:)` (static, test-pinned) maps the model's `"Mentor: "`/`"You: "` prefixes onto agent serif-15/1.6 prose (markdown at flush, verbatim while streaming — Vivarium #97; **interpreted markdown opens http(s) ONLY — `linkVerdict` gates the surface's `openURL` environment, every other scheme discards: engine prose echoes imported content, #34 gate-at-sink doctrine**) / right-aligned terracotta-wash-14% capsule (radius 12/12/2/12, 85% of live column width — `onGeometryChange`, both panes' columns) / mono-11 status box on the fg-wash-6% card (refusals, pass kick-off labels, reveals — the system voice); ThinkingBlock port (mono-11 toggle, serif-13 muted on the wash card, open while live, collapsed when flushed, per-instance expansion state); research-note cards inherit the wash family; the composer restyles per contract — surface-fill input, ONE accent Send flipping to terracotta-outlined Stop (default-action shortcut rides Send only), floating `.thinMaterial` liveness chip above the composer (streaming only, hit-through), plain Return sends / Shift+Return breaks the line (Vivarium owner-report fix; `send()` gained the empty-trim guard), and the debug toggle seats at the composer's trailing edge via `debugBinding: Binding?` (nil = no toggle). **#26:** Learnings is real — `LearningsPaneView` (own file), a list-only pane (Archive posture) over `/learnings/`: `LearningsIndex` (nonisolated) scans type dirs → groups (dir name lowercased, library section-head voice) → entries newest-first (`YYYYMMDD-` filename prefix desc, undated last), pattern/problem/promoted read leniently via `Post.frontmatter` (missing pattern → filename minus date+ext), scan detached off MainActor from `.task(id: home)` with a `Task.isCancelled` gate on the hop back (a slow old Home's scan must not overwrite the new one's), no watcher (ponytail: re-scans on pane re-entry); audit: file reads are unbounded and follow file symlinks — same ceiling as Post.scan, ponytail-noted. **#27 (S4.2):** `Entry` gains `resurfacesIn` (nil = visible, positive = passes until resurface; `currentPass` init param — nil/absent = an unclocked foreign dir, never a verdict: its clock can't advance, a countdown would lie, mirroring the store's dismiss refusal; #27 review) and `scan` reads `LearningDecay.passCounts(home:)` once, feeding each CLOCKED group its dir's clock (foreign dirs nil); rows DISMISS — visible entries in clocked dirs carry a mono-11 Dismiss button (Unarchive voice, no confirm sheet — dismissal is low-stakes and self-healing; foreign unclocked dirs offer none), dismissed rows dim to 0.45 (closed-card voice) with "dismissed · resurfaces in N passes" leading the meta; the scan is refactored into a private `rescan(_:)` reused after a dismiss (detached task; errors land in a mono-11 orange `lastError` strip under the header, cleared on the next successful rescan; assignments gate on `scannedHome` — a dismiss Task holds the OLD home beyond `.task` cancellation and must not overwrite a repointed Home's groups). Posts renders the full grid; **column collapse mirrors the export's media queries** (library hides < 1100 px, mentor hides < 920 px budget) as macOS pane collapse — never a fixed four-column minWidth that clips. `PaneHeader` = 52pt serif-15 title row + border. **#22:** window-level `.dropDestination(for: URL.self)` (markdown only via `PostStore.isMarkdown`, first match — same guest slot as ⌘O), the `OriginAskSheet` (ONE ask per import batch — "Who wrote this?", writer default / ai, immutability line; Cancel drops the batch), and pane auto-switch to Posts when a guest buffer opens or an import's post opens. **#108:** rail gains the Archive destination (archivebox icon, above Settings — the #104 verdict: a destination, not a library disclosure); `ArchivePaneView` = list-only pane over archived pieces grouped by project (same section-head voice as the library + mono-11 Unarchive button per project → `PostsModel.unarchiveProject`), rows reuse `LibraryPostRow` with Move Back to `` + Rename…, row-click selects + hops to Posts (`onOpenPiece` closure — the pane can't reach the rail selection); empty state names how things arrive. The New Project ask presents here too (`newProjectAskBinding`, the OriginAsk pattern). **#111 (S7):** the third ask — `OutlineGuardSheet` (`outlineGuardBinding`, same pattern) for the mixed-content outline guard: Open in Prose (default) · Open as Outline · Cancel (= binding dismissal → `cancelOutlineGuard`, Esc included). **#114 (S4):** the fourth ask — `ConvertSheet` (`convertAskBinding`) for Convert to Post: Verbatim Bullets (default — lossless) · Headings · Cancel (= `cancelConversion`); a ladder-drops-prose warning when `lossy`; the Archive pane's row menu also carries Convert to Post… on outline pieces (archived stays archived — only type + body flip).
- `PostsPaneView.swift` — Posts destination: library column (Pass State groups in mono-11 uppercase labels, post rows with title + passState/origin meta), empty state, editor column (`PostEditorView`), mentor column (`MentorPaneView`, fixed 356). Selecting a post opens an editing session; `PaneHeader` carries the New Post button (export `.pane-head .icon-btn`). **#92:** the editor column renders the external guest (`model.externalSession`) ahead of the post session — one guest at a time, mentor column stays. **#108 (variant B, `ref/prototypes/wf104-library-ui-prototype.html`):** `PostsLibraryColumn` regroups — serif-15 semibold project section heads (lowercased in display — #108 live verdict; small caps rejected as a UI treatment for project names) + mono-11 `· N` count, Pass-State groups inside (10px mono, 0.8 opacity, leading-22 indent), collapse restored per the prototype's toggle (click the head — chevron rotates; per-view state, not persisted); `LibraryPostRow` (extracted, internal — Archive reuses it): always-2px leading strip (accent when selected — no layout shift; `UnevenRoundedRectangle` 0/8/8/0 per `.vB .post-row`), ✳ suffix on outline pieces (row-level help — a Text span isn't individually hoverable); row menu = Rename… · Convert to Post… (outline pieces only, #114 — stages the ask) · Move to Project… (`MoveToProjectSheet`, radio list of non-archived projects, Move disabled when unchanged) · Move to Archive · Move to Trash; `RenamePostSheet` internal for the Archive pane's reuse. **#144:** the library search — a plain-text field under the Posts header (debounced 250 ms, title+body filter over non-archived pieces; body scan runs off-main through `PostStore.readBody`, so frontmatter is never searched), flat results with title matches first (Finder order preserved in both halves, count line above, same `LibraryPostRow`); state is view-local (`query`/`matches`, nil = sections render), so both render sites (unfocused layout + focus-mode reveal) get the field; clearing returns the project sections. **#33 (S6.1):** the editor column's session branch passes `publish:` to PostEditorView (a mono-11 Publish toolbar button, nil = hidden — drafts/guests/previews carry none); the pane hosts the `MicropubPublishSheet` (`.sheet(isPresented:)` beside `.task(id: home)`).
- `PostLibrary.swift` — `Post` (nonisolated: id/title/passState/origin + #107 type/project/isArchived + #32 `firstDraftStats: FirstDraftStats?`; `ContentType` post|outline) + `Post.scan(home:) -> [Post]`: **#107/ADR-0012 two-level scan** — enumerates `projects///post.md` AND `archive///post.md` (archive → isArchived), same skip guards at both levels (no post.md = lazy folder, loose files, hidden dirs, symlinked dirs), `type` read leniently (absent/unknown → post), title-sorted; Title = first non-empty line after frontmatter (`untitled` on blank, marker-only, or unterminated-frontmatter bodies); `pass_state`/`origin` frontmatter keys read leniently (First Draft/writer defaults, quoted YAML values unquoted, leading blank line before `---` tolerated). Scan runs off-main (bind/rescan in PostsModel). **#32 (S5.2):** scan also reads the five `stats_*` keys into `firstDraftStats` — `Post.FirstDraftStats` (captured Date parsed from the `yyyy-MM-dd'T'HH:mm:ss` stamp, per-access POSIX formatter — the repo's no-static convention; + `DraftStats`), nil unless EVERY key parses to a FINITE Double (`Double("nan")`/`"inf"` parse — a non-finite peak would trap the chart's y-domain; finish-audit #32). The read-back re-gates on the capture gate's immutable pair (origin writer, type post — NOT pass_state, which legitimately advances): app-internal edit paths never grow the keys, and `stats_*` arriving by import (external YAML rides verbatim) on an ai or outline piece still never renders — a migrated writer piece keeps its real arc. **#143 (OPT-F3):** `scan(home:cache:)` takes an optional `PostScanCache` (path+mtime+size-keyed parse memo — an unchanged post.md is never re-read, a moved piece re-parses at its new path, project/isArchived re-derive from the walk; nil default = the old read-everything behavior, so every other caller is unchanged). The stamp is taken BEFORE the read and keys the store — a mid-scan rewrite can never be pinned as fresh (a late overlapping store keys its own pre-read stamp; the next scan mismatches and re-reads). **#33 (S6.1):** `Post` gains `micropubURL: String?` (frontmatter `micropub_url`, read leniently but gated on `Micropub.trustworthyURL` — imported frontmatter rides verbatim, so a hostile value scans nil and never pre-arms the publish sheet; defaulted so every hand-constructed `Post(id:…)` site keeps compiling).
- `PostStore.swift` — #18 write side (nonisolated), **#107/ADR-0012 re-root**: the shared slug function (#60: lowercase, diacritic-fold, strip punctuation, whitespace→hyphens, keep CJK, 80-char cap, `untitled` fallback), `availableSlug(for:home:)` collision suffixes `-2`/`-3`… over the GLOBAL slug space (all entries under `projects/*/` AND `archive/*/` — an archived slug is never reused, restore can't collide; all comparisons through private `folded(_:)` = NFC + lowercase — the canonical compare key: APFS is case-insensitive and normalization-insensitive, and NFC-vs-NFD names (Hangul jamo, Finder-made folders) are one folder to the FS; Swift `==`/Set hashing already fold canonical equivalence, so `folded` is the explicit, tested contract with the lowercase load-bearing; `createProject`'s duplicate check uses the same fold), `folder(of:home:)` = the one id→folder resolver (projects/ before archive/, project names sorted — every write path derives its target from the id alone; nothing threads (project, id)), `writeNew(body:project:type:home:)` (lazy folder under `projects//` — default `posts`, the selected project flows in from PostsModel; #109: `type` param default `.post`, stamped first in the block — New Outline passes `.outline`; the returned Post carries it; #30: `origin` param default `.writer` — New Post from Session passes `.ai` so a session-born piece stamps immutable `origin: ai`), `overwrite` (resolves via `folder(of:)`, preserves existing type/pass_state/origin, normalizes bare posts on save; **#31 finish-audit: the three owned keys update IN PLACE on blocked files — the old stamped() round-trip erased the captured stats and foreign frontmatter on every editor save; the body always swaps to the caller's**), `rename` = retitle + move WITHIN the same parent dir (piece stays in its project, stays archived if archived; file stays `post.md`; a title slugging to the current id only retitles), `trash` (resolves via `folder(of:)` + `FileManager.trashItem` — recoverable), `readBody` (frontmatter stripped for editing). **#114 (S4):** `convert(id:headingsLadder:home:)` — the one-time in-place Convert to Post: `type` flips to post, body transforms once (verbatim = unchanged; ladder = `OutlineTree.headingsLadderBody`), id/folder never move, vanished piece throws. One-way in v1. `overwrite` + `convert` share `existingStamp(id:home:)` (folder resolve + read + preserved pass_state/origin/type derivation — one source of truth). **#22:** `openableTypes`/`isMarkdown` (.md/.markdown only, local file URLs — a dragged web link is not a document; shared `markdownExtensions` list), `importFile(at:origin:project:home:)` (copy never move; lands in the selected project else default; BOM stripped + CRLF→LF normalized at the boundary — in Swift a CRLF pair is one grapheme and every `\n` split sees one line, so the corpus machinery needs LF; external YAML keys kept verbatim with `type`/`pass_state`/`origin` set-overwritten via `mergedFrontmatter` — `type: post` wins even over an external `type: outline`; absent keys inserted before the closing `---`; empty block → fresh stamp shape; id = title slug at import, #60 collision machinery; private `materialize` is the one lazy-folder path `writeNew` shares). **#108:** `move(_:to:home:)` (projects→projects folder move; refuses archived pieces **via the resolved disk path** — never the scan snapshot's `isArchived` flag — and derives the current project from the same path, so a Finder-side move between scan and click can't misfile; validates the name via `validatedProject`, same-project confirm = no-op not an error, destination-exists = disk anomaly that throws — never clobbers), `archive(_:home:)`/`restore(_:home:)` (folder moves into/out of `archive//`, project disk-derived the same way), `unarchiveProject(_:home:)` (moves every child of `archive//` into `projects//` — one path covers fresh and merge; the source is removed only when the loop emptied it — dot-entries skipped by the move are not destroyed with the folder; duplicate-id collisions throw honestly), `createProject(named:home:)` (empty/slash/dot-prefix/`:`/control-char names + case-insensitive duplicates throw; lazily materializes `projects//`), private `relocate` behind them — post.md bytes are never rewritten by any of these; ops return Void (the rescan re-derives posts from disk). **#24 (S3.1):** a same-file `extension PostStore` carries the pass write side — `snapshotPass(id:kind:body:home:)` (pre-pass body verbatim to `/passes/pass-.md`; fixed filename per pass type, so a re-run overwrites and the latest per type survives; body only, no frontmatter — the writer's diff anchor against post.md) and `advancePassState(id:kind:home:)` (monotonic: the new state is the higher of the file's pass_state and the pass's doneState via private `higherState` — passes run in any order, never regress; **#31 (S5.1): the state update is an IN-PLACE key stamp (`stampingFrontmatter` — bare blockless posts still normalize through `stamped`), replacing the old existingStamp→stamped block rewrite that silently erased the invocation-time stats and foreign frontmatter keys; vanished piece throws)**. **#27 (S4.2):** `advancePassState` also ticks the decay clock — `try? LearningDecay.recordPass(home:type:)` after the stamped write (every completed pass counts, re-runs included; `try?` because a failed bump must never fail a completed pass, and a lagging clock only delays resurfacing — safe direction). **#29 (S8.2):** a same-file extension carries the research write side — `writeResearchNote(piecePath:title:url:quote:note:home:)`, the keep write (the writer's explicit act — the ONLY path to `research/`; the tool rail writes nothing): the piece resolves through the ONE `folder(of:)` id lookup (folder or post.md path form; a garbage path fails the lookup honestly — the write anchors to THIS Home), a symlinked `research/` refuses before any write (promote's posture), file `-.md` via FixCardStore's now-internal `uniqueFile` (collision `-2`/`-3`), flat single-line frontmatter (`source`/`kept` — title/url flattened so a hostile newline can't break the shape; note/quote stay verbatim as content), empty note/quote sections omitted, atomic write, returns the landed file name. **#31 (S5.1):** a same-file extension carries the first-draft stats capture — `captureFirstDraftStats(id:body:home:) -> Bool` (@discardableResult, `try?`-free: any read/write failure returns false, a failed capture must never fail the pass — decay-clock posture): eligibility is the FILE's own frontmatter via the lenient defaults (origin writer, Pass State First Draft, type post — a bare legacy post qualifies), metrics come from `DraftStats.compute(body:)` and five flat `stats_*` keys (`stats_captured` = `yyyy-MM-dd'T'HH:mm:ss` lexically sortable; four metrics `%.3f`) stamp IN PLACE through `stampingFrontmatter` (widened internal — the third caller), so a re-invocation while still First Draft overwrites (latest draft wins) and the trend view (S5.2) is a plain scan of `Post.frontmatter`. **#33 (S6.1):** `stampMicropubURL(id:url:home:)` — in-place `micropub_url` stamp through `stampingFrontmatter` (frontmatter-only: body + foreign keys byte-identical, so the open session's readBody echo check never fires); vanished piece throws. **#141:** same-file extension — the illustration ingest write side: `ingestImage(from:pieceFolder:)` copies (never moves) a dropped image into the piece's `assets/` and returns the ref destination; type gate = #34's `Micropub.mimeType` set (PNG/JPEG/GIF/WebP/SVG — nothing enters assets/ that can't ship, `IngestError.notPublishable`), a Finder folder with an image extension refuses (`isFolder`), a symlinked/file-shaped `assets/` refuses (`hostileAssets` — never write through it, the rail would refuse the send anyway); base name through the shared `slug` (parser-clean: the #34 regex never matches space-bearing destinations, so ref and file agree at ingest), collisions suffix `-2`/`-3` within `assets/`; `illustrationRef(_:)` is the one `` builder the drop surface and tests share.
@@ -80,7 +80,7 @@ Owned by the root AGENTS.md contract. The `.xcodeproj` uses **filesystem-synchro
- `MentorSessionModel.swift` — `MentorSessionModel` (@MainActor @Observable): engine state machine (idle/starting/ready/crashed; `isStreaming` Bool; **#28: `.ready` carries NO sessionId — session ids live in the roster**). Lazy lifecycle: spawns on first `openSession()` (skipped under hosted tests via `XCTestConfigurationFilePath`; **#28: openSession = spawn + ensure ONE session — the default freeform "Mentor" on first launch, the newest roster entry on relaunch, RESUMED (session/load replays its history — the review fix; a fresh transcript over an engine that knows the session would prompt/fork/compact against unloaded state)**), handshake `initialize` → advisory version compare vs state.json (`recordedVersionProvider` injectable; **compares base versions** — the gate records the derived version (`acp --version` → `0.21.5+2177.g735e426`) while the handshake answers the base (`agentInfo.version` → `0.21.5`), so raw string equality fabricates drift on every dev install; `baseVersion(of:)` strips `+`-build metadata; one os_log line + both versions in the pane, never blocks). **#28: the handshake is initialize ONLY — sessions are created separately (`newSession`/`ensureDefaultSession`), the bridge is session-agnostic.** `sendPrompt` (#24 seam: `@discardableResult`, returns `TurnOutcome` — `.ended(stopReason:)` for any completion stopReason incl. `refusal`, `.cancelled` for `cancelled`, `.failed` on a thrown transport error or the not-ready/streaming guard refusal; the model appends NO extra row on cancel — the orchestrator owns pass wording) streams `agent_message_chunk` into a buffer flushed on turn end; **thought lane (#24 dogfood fix): `agent_thought_chunk` streams into its own `streamingThought` buffer** — a pass's thinking runs to hundreds of lines and conflating it with the critique made one giant blob; it flushes to a collapsed `.thought` row FIRST (it preceded the message), and `restart()` clears both buffers; an optional `label:` renders verbatim as the user row INSTEAD of the raw prompt (pass wire stubs never hit the transcript); **#23 dogfood fix: `sendPrompt` sends session/prompt with `promptTimeout` (nonisolated, 1800 s), NOT the client's 15 s request default** — the prompt response arrives when the TURN ends, minutes into a pass; the default abandoned live turns ("connection lost" while the engine kept working, Stop vanished with `isStreaming`; test-pinned `promptTimeout >= 600`); tool calls with fix-card-shaped `rawInput` (pattern+problem minimum) render as `FixCard` (ADR-0006 fields; **audit: the parser takes the nested `submit_fix_cards` argument shape first — `{piece_path, cards:[…]}`, snake_case, anchor as `{quote,occurrence}` object — the LIVE rail; the flat #14-era shape stays as fallback; the old flat-only parser never matched the real tool**); every other update type a collapsible raw-JSON row. **Audit hardening: a prompt response missing `stopReason` maps to `.failed` (a turn without stopReason never advances a pass), and `sendPrompt` guards the client instead of force-unwrapping.** Cancel = `session/cancel` notification, Stop button. Crash keeps transcript + last prompt; Restart re-spawns. `clientRef` mirror exists solely so nonisolated deinit can close the child.
**#28 (S2.3) session lifecycle:** the model hosts MULTIPLE engine-owned sessions on the ONE bridge. Transcripts are per-session structs keyed by wire sessionId; `rows`/`streamingText`/`streamingThought` are same-named computed proxies over the ACTIVE session (every existing caller compiles unchanged). `SessionEntry` (nonisolated, Codable: `sessionId`/`name`/`pieceTitle`/`createdAt`) + `SessionRoster` (nonisolated; JSON array at `~/Library/Application Support/Museion/sessions.json`, `rosterDirectory` injectable — `init(binaryPath:rosterDirectory:)`; an injected-nil dir under hosted tests redirects to a unique temp dir so suites never touch the real roster; EngineGate's silent-fail write posture). **The roster persists NAMES ONLY — id/name/pieceTitle/createdAt (the "name/convention" of PRD S2.7); transcripts are engine-owned (ADR-0007: swap the engine, transcripts stay behind), replayed on demand.** API: `newSession(name:pieceTitle:)` (wire session/new, rostered newest-first, activated), `resumeSession(_)` (wire session/load — the adapter replays full history as `session/update` BEFORE responding; user turns arrive as `user_message_chunk` and RENDER on replay, live-turn echoes stay ignored; **#30 dogfood: the REAL 0.21.5 load response carries NO top-level `sessionId` — the id rides `_meta.hermes.sessionProvenance.acpSessionId`, so extraction accepts both shapes and empty-everywhere alone means the engine doesn't know it → `false` + an honest row, entry stays rostered — never a fabricated empty session; the top-level-only read made every real-engine resume fail as "unknown"**), `forkActiveSession()` (wire session/fork → " (fork)", pieceTitle carried, fresh transcript; the adapter's empty-string sessionId = refusal), `compactActiveSession()` (the `/compress` slash prompt over the existing sendPrompt rail, label "Compact…" — the raw command never renders; refused while streaming), `beginBrainstormSession(pieceTitle:)` (#30: the brainstorm flavor — a "Brainstorm" rostered session whose first turn is `brainstormPrompt`, the normal prompt rail, no new machinery; pinned: roster head + labeled opener + raw prompt absent + reply streams into ITS transcript), `draftCandidateText()` / `draftCandidateText(in:)` (#30: the New-Post-from-Session candidate — the LAST "Mentor: " text row, prefix stripped; user/thought/card/research/raw rows never prefill, blank bodies skipped, and the refusal/connection-shaped rows sharing the display prefix are excluded — ponytail-marked until SessionRow carries speaker identity), `canStartSession` (ready && !isStreaming — the pane's enable-flag), `transcriptRows(of:)` (internal — read any transcript without activating). Notification routing files updates under the PARAMS' sessionId (multi-session safe), not the active one; notification→MainActor hops ride `DispatchQueue.main.async`, NOT `Task { @MainActor }` — the unstructured-Task hops starved behind parallel test work (replay updates landed seconds late or never) and only the main queue gives FIFO ordering with the continuation resume, making the adapter's replay-before-response contract guaranteed rather than probabilistic. **#29 (S8.1–S8.3) research candidates:** `ResearchCandidate` (nonisolated: piecePath/title/url/quote/note + `Disposition` pending|kept(fileName)|rejected) rides `SessionRow.Content.researchNote` — `appendToolCall` routes on PAYLOAD SHAPE (a top-level `notes` array) BEFORE the fix-card parse — titles are display text, never a routing key, and a research payload with stray pattern/problem keys must not vanish into a card row — then parses via `ResearchCandidate.batch` (one candidate PER note; missing piece_path/empty notes/note missing title-url or whitespace-only title/url — the wire's trim rule, both boundaries agree — → [] → the raw row owns it, all-or-nothing per batch), so candidates live in the transcript = engine-owned cargo: resume replays the tool calls and re-materializes them (dispositions reset — honest, they were never persisted). `setResearchDisposition(rowID:_:)` flips the ACTIVE session's row in place (unknown id = no-op). `isWritingRow` keeps `.researchNote` visible in the writing voice.
**#137 (S4, ADR-0014) per-surface engine lifecycle:** passes run on their OWN one-shot engines — `runPass(kind:stub:pieceTitle:)` spawns `ACPEngineClient(binaryPath:, profile: ProfileSurface(passKind:))` (museion-passN), streams the verdict into a TRANSIENT unrostered transcript under `passTranscriptKey` ("pass", the active entry lives only for the run — #129: passes are never rostered; `handleNotification` maps the pass wire sid onto the key), and tears the engine down at the verdict (`teardownPassEngine`; onCrash deliberately nil — a pass-engine crash lands the honest failure row, never the crash card; KNOWN EDGE, accepted v1: a chat-engine crash mid-pass flips the pane while the pass completes underneath). **#122: the spawn/session/new/teardown block is ONE private rail — `runOneShot(profile:name:prompt:pieceTitle:)` — shared by `runPass` and `runBlindRead(prompt:pieceTitle:reveal:)` (the Blind Read rides the CHAT profile `museion`: context-free = a fresh session, not a different judge — decision #120; the reveal row appends only on `.ended` with stopReason ≠ "refusal" — a refusal still ends .ended, and a 2×-document prompt makes length refusals realistic — after the turn-end flush, so the mapping can never leak to the judge). `name` ("Pass 1"/"Blind Read") composes the label; the rail's failure rows speak `\(label) failed` so a Blind Read spawn failure never reads "Pass failed".** The turn pipeline is ONE `turnCore(client:wireSid:key:prompt:label:)` shared by sendPrompt and the pass run (label row, session/prompt, stopReason mapping, buffer flush); `sendPrompt` refuses the pass surface with a visible row (read-only transcript). Restart posture: `restart()` (crash button) and `requestRestart()` (model-change, Settings fires it) share `respawn()` — teardown, fresh spawn, resume the PRE-restart active rostered session (not blindly the newest); `requestRestart` defers to turn end while `isStreaming` (`pendingRestart`, fired from both turn-end defers — a reply is never cut mid-stream) and ignores .idle/.starting (a future spawn reads fresh config). `stopStreaming` routes `session/cancel` to the PASS engine while a pass runs. Internal test observables: `passEngineChildPid`, `isPassEngineRunning`. **Run Pass readiness (#137 acceptance 3, slice B):** `PassReadiness` (ready | missingKey(providerLabel) | unknown) per kind, stored in the class body (`passReadiness`; `passReadinessWriter` = injectable read seam, nil → ad-hoc `HermesSettingsWriter` over the gate's binary, no binaryPath → stays empty); `refreshPassReadiness()` reads both pass profiles' providers in ONE task group, then each DISTINCT provider's key — an unreadable surface maps `.unknown` (never block on our own read failure). `PostsModel.runPass` guards `.missingKey` BEFORE the open-piece guard: `lastError` names the provider and nothing touches disk, not even the pre-pass snapshot.
-- `MentorPaneView.swift` — the debug pane (post #28 no longer the only session surface — Sessions pane shares the transcript renderer): header (**#151: mono-10 engine states beside the title — checking… / engine missing / setup failed / `hermes ` once ready, gate's phase machine the source, session chip only once ready, status text wins layout priority; the running version + orange drift note render inside the ready state** — **#28: the version shows `activeEntry`'s id alongside, `.ready` no longer carries it**; trailing mini **Debug** checkbox — `@AppStorage("mentorDebugRows")`, off by default: the writing-session transcript filters to prose + card events via `isWritingRow` (static, test-pinned); raw session/tool rows, collapsed thinking, and live thinking render only when checked — the model keeps every row either way, so the toggle flips with history intact), transcript — **#28: rendered by the shared `SessionTranscriptView(model:showsDebugRows:)` (own file); MentorPaneView passes the debug binding** (text rows, fix-card tool calls as one-line `FixCardEventRow`s — pattern title only, the detail lives in the palette; RawUpdateRow disclosure; **#24 dogfood fix:** `defaultScrollAnchor(.bottom)` — programmatic `scrollTo` raced the growing lazy rows and mislanded at the TOP; `.thought` rows render collapsed (`ThoughtRow`, the engine's thinking — kept out of the critique text), live thinking shows muted + `lineLimit(3)`), freeform input 1…4 lines + send + Stop while streaming (**#23 dogfood fix:** a liveness row above the input — indeterminate `ProgressView` + "Mentor is working — Stop to interrupt." caption while `isStreaming`; minutes of silent tool work read as dead without it), crash card (Restart, last prompt, stderr tail behind Technical details; input + crash card live in a file-scope `private extension MentorPaneView` — type_body_length posture). **#24 (S3.1):** below the header a segmented **Pass 1 | Pass 2 | Chat** picker (the design contract's `.mentor-tabs`) — pass modes carry the pass bar (`PassBarView`, private): what the pass critiques + `PassContext.estimateTokens` cost line ("· ~N tokens") or "Open a post to run a pass.", the open piece's Pass State chip (library's post-meta voice), and the actions — Cancel (bordered, only while `posts.runningPass` streams or (#122) `posts.runningBlindRead` — one Cancel rail ends either run) ↔ **#122: Blind Read** (bordered, beside Run — disabled with the reason in help: no open post, `!posts.openPieceHasSnapshot` ("run a Pass first"), or the engine can't take the turn; one click fires `posts.blindRead`; help otherwise names it advisory-only, records nothing) ↔ Run Pass N (borderedProminent; disabled with no open piece, engine not ready, mid-turn, or (#137) the pass profile's provider is unkeyed — a mono-11 `Missing key —` line under the state row carries a borderless accent **Open Settings** button (`onOpenSettings`, threaded MentorPaneView→PostsPaneView→WorkspaceView's `selection = .settings`, ArchivePaneView closure precedent), the disabled Run's help names the reason, and `.unknown` never disables (the spawn's honest failure owns that path). Chat hides the bar; transcript + input stay shared (the pass's streamed critique renders in the same transcript). The header's session chip hides while the transient pass transcript (`passTranscriptKey`) owns the active surface, and the pane's `.task(id: binaryPath)` runs `refreshPassReadiness()` before the hosted-test guard — #151: keyed on the nil→value arrival so the engine spawns the moment the gateless check lands (a nil binary never calls openSession); re-fires re-run it, so a key added in Settings re-enables Run Pass. `gate: AppGateState?` (#151 header states) + `posts: PostsModel?` + `home: URL?` params (nil = previews); PostsPaneView's mentor column passes all three. **#23 follow-up (dogfood):** card detail lives in the **Fix Cards palette** — a floating `Window` scene (id `fix-cards`, `FixCardsPalette` in `FixCardsWindow.swift`, `defaultSize` 340×540) beside About, opened via `openWindow` from a mono "Fix Cards · N" row below the pass bar (shown only when cards exist). The palette shows the open piece's title + `posts.openPieceCards` — **#25 (S3.2/S3.3): the card WORK surface, open cards first (scan order preserved: newest pass first, rank ascending), closed cards dimmed at 0.45 with their status in the meta and no actions**; row actions per lane: mechanical + valid → Apply + Skip, demonstration → Done + Skip (never Apply, ADR-0006), stale anchor → Skip only; Apply = ask-before, a BLOCKING sheet showing the exact edit (anchored quote → replacement, "(cut)" when the fix is empty) with Apply/Cancel — .stale swaps the sheet to the stale alert (no retry), .refused shows the reason inline; no apply-all, no batch, the sheet is the only path from Apply to a write (S3.3); meta carries `#rank`, "apply · ask-before" on appliable mechanical cards, and the footer line "apply = ask-before · one card at a time" (S2.5 trust visibility — nothing auto-applies, so never-do needs no control); stale anchors orange + "· stale anchor"; card meta leads with "pass N" when `provenance.pass` is stamped and re-contextualizes via `@Observable` as the open piece changes (**audit: the card scan runs detached off MainActor — typing re-triggers rescan; PostsModel.`title(of:)` + EditorSession.`passPieceURL`/`hasResearch` are the shared facts runPass, the pass bar, and the palette ride — three hand-copies deduped**); painted `DesignTokens.background` — app chrome warm, matching the rail, not document white. The transcript's live tool-call rendering is `FixCardEventRow` — the pattern title alone, one line; the verdict prose carries no card detail (pass-persona v1.2: the card is the finding's only full statement). **#26 (S4.1):** every card row gains Promote (bordered, small) between the primary action and Skip on open cards, alone on closed unpromoted cards — it outlives the card because the Learning is the durable artifact (the design contract's promote-resolved buttons); a promoted card shows `· promoted` in the meta and never re-offers. The ask is `PromoteAskSheet` (own file, OutlineRowTextView extraction precedent): the contract's #promoteDialog — "Promote to Learnings?", the consulted-on-future-Passes body line (type pluralized, "pieces" fallback), learning preview (pattern/problem/provenance via `title(of:)`), Cancel/Promote; ONE confirm → `promoteCard`, refusal inline orange with buttons kept (ApplyAskSheet posture). **#29 (S8.3):** the transcript renders `.researchNote` as full candidate cards (NOT one-line events — a handful of notes curates in place, no palette): serif-13 title, mono-11 muted url, selectable note, muted-italic quote; pending offers Keep + Reject (mono-11 bordered; hidden when the pane's `home` is nil — previews), kept/rejected dim 0.45 (closed-card voice) with meta `kept · research/` / `rejected`; the Mentor pane passes its `home`, the Sessions pane gains `home: URL?` (WorkspaceView hands `gate.museionHome`). Keep = ask-before (G9): `ResearchKeepSheet` (own file, PromoteAskSheet posture — "Keep this research note?", the nothing-saves-until-you-keep line, note preview, Cancel/Keep; ONE confirm → `PostStore.writeResearchNote` → disposition flips, refusal inline orange with buttons kept). Reject = no confirm (Dismiss-button voice — vanishes, nothing recorded). The sheet state lives in SessionTranscriptView (`pendingKeep`, `.sheet(item:)` over the transcript — never inside a lazy row).
+- `MentorPaneView.swift` — the debug pane (post #28 no longer the only session surface — Sessions pane shares the transcript renderer): header (**#151: mono-10 engine states beside the title — checking… / engine missing / setup failed / `hermes ` once ready, gate's phase machine the source, session chip only once ready, status text wins layout priority; the running version + orange drift note render inside the ready state** — **#28: the version shows `activeEntry`'s id alongside, `.ready` no longer carries it**; **#155: the Debug toggle moved to the shared composer's trailing edge** (`debugBinding` — mono-10 lowercase text toggle; the header keeps title + engine status + session chip) — `@AppStorage("mentorDebugRows")`, off by default: the writing-session transcript filters to prose + card events via `isWritingRow` (static, test-pinned); raw session/tool rows, collapsed thinking, and live thinking render only when checked — the model keeps every row either way, so the toggle flips with history intact), transcript — **#28: rendered by the shared `SessionTranscriptView(model:showsDebugRows:)` (own file); MentorPaneView passes the debug binding** (text rows, fix-card tool calls as one-line `FixCardEventRow`s — pattern title only, the detail lives in the palette; RawUpdateRow disclosure; **#24 dogfood fix:** `defaultScrollAnchor(.bottom)` — programmatic `scrollTo` raced the growing lazy rows and mislanded at the TOP; `.thought` rows render as collapsed `ThinkingBlock`s (the engine's thinking — kept out of the critique text; live thinking mounts the block open, spinner toggle, #155)), composer — **#155: restyled per contract inside the shared surface** (the pane's own freeform-input/liveness row died with the #30 move; liveness is the floating chip, Stop is the Send slot), crash card (Restart, last prompt, stderr tail behind Technical details; input + crash card live in a file-scope `private extension MentorPaneView` — type_body_length posture). **#24 (S3.1):** below the header a segmented **Pass 1 | Pass 2 | Chat** picker (the design contract's `.mentor-tabs`) — pass modes carry the pass bar (`PassBarView`, private): what the pass critiques + `PassContext.estimateTokens` cost line ("· ~N tokens") or "Open a post to run a pass.", the open piece's Pass State chip (library's post-meta voice), and the actions — Cancel (bordered, only while `posts.runningPass` streams or (#122) `posts.runningBlindRead` — one Cancel rail ends either run) ↔ **#122: Blind Read** (bordered, beside Run — disabled with the reason in help: no open post, `!posts.openPieceHasSnapshot` ("run a Pass first"), or the engine can't take the turn; one click fires `posts.blindRead`; help otherwise names it advisory-only, records nothing) ↔ Run Pass N (borderedProminent; disabled with no open piece, engine not ready, mid-turn, or (#137) the pass profile's provider is unkeyed — a mono-11 `Missing key —` line under the state row carries a borderless accent **Open Settings** button (`onOpenSettings`, threaded MentorPaneView→PostsPaneView→WorkspaceView's `selection = .settings`, ArchivePaneView closure precedent), the disabled Run's help names the reason, and `.unknown` never disables (the spawn's honest failure owns that path). Chat hides the bar; transcript + input stay shared (the pass's streamed critique renders in the same transcript). The header's session chip hides while the transient pass transcript (`passTranscriptKey`) owns the active surface, and the pane's `.task(id: binaryPath)` runs `refreshPassReadiness()` before the hosted-test guard — #151: keyed on the nil→value arrival so the engine spawns the moment the gateless check lands (a nil binary never calls openSession); re-fires re-run it, so a key added in Settings re-enables Run Pass. `gate: AppGateState?` (#151 header states) + `posts: PostsModel?` + `home: URL?` params (nil = previews); PostsPaneView's mentor column passes all three. **#23 follow-up (dogfood):** card detail lives in the **Fix Cards palette** — a floating `Window` scene (id `fix-cards`, `FixCardsPalette` in `FixCardsWindow.swift`, `defaultSize` 340×540) beside About, opened via `openWindow` from a mono "Fix Cards · N" row below the pass bar (shown only when cards exist). The palette shows the open piece's title + `posts.openPieceCards` — **#25 (S3.2/S3.3): the card WORK surface, open cards first (scan order preserved: newest pass first, rank ascending), closed cards dimmed at 0.45 with their status in the meta and no actions**; row actions per lane: mechanical + valid → Apply + Skip, demonstration → Done + Skip (never Apply, ADR-0006), stale anchor → Skip only; Apply = ask-before, a BLOCKING sheet showing the exact edit (anchored quote → replacement, "(cut)" when the fix is empty) with Apply/Cancel — .stale swaps the sheet to the stale alert (no retry), .refused shows the reason inline; no apply-all, no batch, the sheet is the only path from Apply to a write (S3.3); meta carries `#rank`, "apply · ask-before" on appliable mechanical cards, and the footer line "apply = ask-before · one card at a time" (S2.5 trust visibility — nothing auto-applies, so never-do needs no control); stale anchors orange + "· stale anchor"; card meta leads with "pass N" when `provenance.pass` is stamped and re-contextualizes via `@Observable` as the open piece changes (**audit: the card scan runs detached off MainActor — typing re-triggers rescan; PostsModel.`title(of:)` + EditorSession.`passPieceURL`/`hasResearch` are the shared facts runPass, the pass bar, and the palette ride — three hand-copies deduped**); painted `DesignTokens.background` — app chrome warm, matching the rail, not document white. The transcript's live tool-call rendering is `FixCardEventRow` — the pattern title alone, one line; the verdict prose carries no card detail (pass-persona v1.2: the card is the finding's only full statement). **#26 (S4.1):** every card row gains Promote (bordered, small) between the primary action and Skip on open cards, alone on closed unpromoted cards — it outlives the card because the Learning is the durable artifact (the design contract's promote-resolved buttons); a promoted card shows `· promoted` in the meta and never re-offers. The ask is `PromoteAskSheet` (own file, OutlineRowTextView extraction precedent): the contract's #promoteDialog — "Promote to Learnings?", the consulted-on-future-Passes body line (type pluralized, "pieces" fallback), learning preview (pattern/problem/provenance via `title(of:)`), Cancel/Promote; ONE confirm → `promoteCard`, refusal inline orange with buttons kept (ApplyAskSheet posture). **#29 (S8.3):** the transcript renders `.researchNote` as full candidate cards (NOT one-line events — a handful of notes curates in place, no palette): serif-13 title, mono-11 muted url, selectable note, muted-italic quote; pending offers Keep + Reject (mono-11 bordered; hidden when the pane's `home` is nil — previews), kept/rejected dim 0.45 (closed-card voice) with meta `kept · research/` / `rejected`; the Mentor pane passes its `home`, the Sessions pane gains `home: URL?` (WorkspaceView hands `gate.museionHome`). Keep = ask-before (G9): `ResearchKeepSheet` (own file, PromoteAskSheet posture — "Keep this research note?", the nothing-saves-until-you-keep line, note preview, Cancel/Keep; ONE confirm → `PostStore.writeResearchNote` → disposition flips, refusal inline orange with buttons kept). Reject = no confirm (Dismiss-button voice — vanishes, nothing recorded). The sheet state lives in SessionTranscriptView (`pendingKeep`, `.sheet(item:)` over the transcript — never inside a lazy row).
- Wiring: `AppGateState.mentor` is the app-scoped model ( #151: PostsPaneView's mentor column passes `gate.gateModel.currentBinaryPath` as `binaryPath`; the pane re-seeds `mentor.binaryPath` on the nil→value arrival — no re-probe); quit teardown on `NSApplication.willTerminateNotification` → `mentor.shutdown()` (idempotent; scenePhase `.inactive` would fire on plain focus loss).
- Tests: `MuseionTests/ACPClientTests.swift` — fake ACP server (zsh speaking real NDJSON over the real Process path; mode file + base64 card payload beside the binary, self-locating per ProfileProvisionerTests convention). Covers handshake version, streamed updates + fix-card parse (model over the real client+fake path), advisory drift note, crash → onCrash exactly once, cancel fire-and-forget, teardown kills hung child.
diff --git a/Museion/MentorPaneView.swift b/Museion/MentorPaneView.swift
index 3615083..510848d 100644
--- a/Museion/MentorPaneView.swift
+++ b/Museion/MentorPaneView.swift
@@ -108,7 +108,8 @@ struct MentorPaneView: View {
// #28: the transcript rendering is shared — the Sessions pane
// reads the same surface in the writing voice. #30: the
// freeform input + liveness ride the shared surface too.
- SessionTranscriptView(model: model, showsDebugRows: debugRows, home: home)
+ // #155: the debug toggle's seat is the composer's edge.
+ SessionTranscriptView(model: model, showsDebugRows: debugRows, debugBinding: $debugRows, home: home)
case let .crashed(lastPrompt):
crashCard(lastPrompt: lastPrompt)
}
@@ -162,11 +163,6 @@ struct MentorPaneView: View {
.foregroundStyle(.tertiary)
.textSelection(.enabled)
}
- Toggle("Debug", isOn: $debugRows)
- .toggleStyle(.checkbox)
- .controlSize(.mini)
- .foregroundStyle(.tertiary)
- .help("Show session updates, tool calls, and engine thinking.")
}
.padding(.horizontal, 12)
// #90: pane heads align at the export's 52px — same height as the
diff --git a/Museion/SessionTranscriptView.swift b/Museion/SessionTranscriptView.swift
index 21737e0..546beda 100644
--- a/Museion/SessionTranscriptView.swift
+++ b/Museion/SessionTranscriptView.swift
@@ -7,20 +7,34 @@
// Mentor pane passes its debug toggle; the Sessions pane reads the writing
// voice.
//
+// #155 (map #153): the editorial chat voice — the Vivarium treatment
+// remapped onto the two-color palette per the locked contract
+// (ref/prototypes/wf154-mentor-pane-prototype.html). Speaker-act rows
+// render as speech (right-aligned terracotta capsule / full-width serif
+// prose, markdown parsed at flush, verbatim while streaming — the Vivarium
+// #97 pattern); every other text row is the system's quiet mono voice on
+// the fg-wash 6% card. Composer: surface input, accent Send flipping to a
+// terracotta-outlined Stop, floating liveness chip (streaming only), the
+// debug toggle at the trailing edge.
+//
import SwiftUI
/// The shared session surface — the ACTIVE session's rows + streaming
-/// buffers + the freeform input rail (#28, extracted from MentorPaneView so
+/// buffers + the freeform composer (#28, extracted from MentorPaneView so
/// the Sessions pane reads the same surface; **#30: the composer moved here
/// too — a session is a conversation, and every session surface offers
/// one**). Writing voice: pass `showsDebugRows: false` (the debug toggle
-/// stays the Mentor pane's).
+/// stays the Mentor pane's — hand its binding in to seat it at the
+/// composer's trailing edge, settled map #153 #5).
struct SessionTranscriptView: View {
let model: MentorSessionModel
/// Raw session/tool rows, collapsed thinking, and live thinking render
/// only when on — the model keeps every row either way.
var showsDebugRows = false
+ /// #155 (settled #5): the Debug toggle's seat is the composer's trailing
+ /// edge. Nil (the Sessions pane, previews) renders no toggle.
+ var debugBinding: Binding?
/// #29 (S8.3): the Home a kept research note lands in — nil (previews)
/// hides the candidate card's Keep/Reject buttons.
var home: URL?
@@ -30,6 +44,11 @@ struct SessionTranscriptView: View {
@State private var pendingKeep: PendingKeep?
/// The freeform draft (#30: shared input rail).
@State private var draft = ""
+ /// #155: the pane's live width — the user capsule caps at 85% of the
+ /// CONTENT column (width − 2×16 transcript pads). Seeded to the mentor
+ /// column so the first frame is right there; the Sessions pane's wider
+ /// column corrects it on the first geometry pass.
+ @State private var paneWidth: CGFloat = 356
private struct PendingKeep: Identifiable {
let rowID: UUID
@@ -39,12 +58,30 @@ struct SessionTranscriptView: View {
}
}
+ /// The user capsule's cap — 85% of the visible column (contract ruling).
+ private var capsuleCap: CGFloat {
+ max(0, (paneWidth - 32) * 0.85)
+ }
+
var body: some View {
VStack(spacing: 0) {
transcript
Divider()
inputBar
}
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ .onGeometryChange(for: CGFloat.self) { $0.size.width } action: { paneWidth = $0 }
+ // Security audit (#155): the prose/thinking markdown is this
+ // surface's first INTERPRETED render of engine-sourced text, and
+ // engine replies echo imported content — Text renders parsed links
+ // tappable by default. Gate at the sink (#34 doctrine): http(s)
+ // opens system-side, every other scheme dies.
+ .environment(\.openURL, OpenURLAction { url in
+ switch Self.linkVerdict(for: url) {
+ case .open: .systemAction(url)
+ case .discard: .discarded
+ }
+ })
.sheet(item: $pendingKeep) { pending in
if let home {
ResearchKeepSheet(model: model, rowID: pending.rowID, candidate: pending.candidate, home: home)
@@ -52,27 +89,42 @@ struct SessionTranscriptView: View {
}
}
+ /// The link-open gate for interpreted markdown: http(s) opens; every
+ /// other scheme (file:, mailto:, custom app schemes) discards —
+ /// engine-sourced prose must never open arbitrary handlers. Returns a
+ /// pure verdict (`OpenURLAction.Result` is a struct, not an enum —
+ /// unpinnable by pattern). Static, nonisolated — test-pinned.
+ nonisolated static func linkVerdict(for url: URL) -> LinkVerdict {
+ if let scheme = url.scheme?.lowercased(), scheme == "http" || scheme == "https" {
+ return .open
+ }
+ return .discard
+ }
+
+ nonisolated enum LinkVerdict {
+ case open
+ case discard
+ }
+
private var transcript: some View {
ScrollView {
- LazyVStack(alignment: .leading, spacing: 10) {
+ // Contract turn rhythm: 18px between turns; pads 18/16/12.
+ LazyVStack(alignment: .leading, spacing: 18) {
ForEach(model.rows.filter { showsDebugRows || Self.isWritingRow($0) }) { row in
rowView(row)
}
if showsDebugRows, !model.streamingThought.isEmpty {
- // Live thinking: quiet, capped — it's transient (the full
- // text lands in a collapsed row when the turn ends).
- Text(model.streamingThought)
- .font(.system(size: 11, design: DesignTokens.mono))
- .foregroundStyle(DesignTokens.muted)
- .lineLimit(3)
- .textSelection(.enabled)
- .frame(maxWidth: .infinity, alignment: .leading)
+ // Live thinking: open while it runs (spinner toggle),
+ // collapsed into a `thought` row at flush.
+ ThinkingBlock(content: Text(verbatim: model.streamingThought), initiallyExpanded: true, live: true)
}
if !model.streamingText.isEmpty {
- textRow("Mentor: \(model.streamingText)")
+ // Verbatim while streaming (#97) — markdown parses at
+ // flush, when the row lands.
+ agentProse(Text(verbatim: model.streamingText))
}
}
- .padding(12)
+ .padding(EdgeInsets(top: 18, leading: 16, bottom: 12, trailing: 16))
.frame(maxWidth: .infinity, alignment: .leading)
}
// #24 fix: programmatic scrollTo raced the growing lazy rows and
@@ -80,55 +132,6 @@ struct SessionTranscriptView: View {
.defaultScrollAnchor(.bottom)
}
- /// The freeform composer + liveness — the Mentor pane's #23 rail,
- /// shared with the Sessions pane (#30).
- private var inputBar: some View {
- VStack(alignment: .leading, spacing: 8) {
- // Liveness: a pass legitimately runs minutes of silent tool work
- // (skill loads, learnings) — without this the pane reads as dead
- // (dogfood #23: "hard to tell if it is still thinking").
- if model.isStreaming {
- HStack(spacing: 8) {
- ProgressView()
- .controlSize(.small)
- Text("Mentor is working — Stop to interrupt.")
- .font(.caption)
- .foregroundStyle(.secondary)
- }
- }
- HStack(spacing: 8) {
- TextField("Ask the mentor…", text: $draft, axis: .vertical)
- .textFieldStyle(.plain)
- .lineLimit(1 ... 4)
- .onSubmit { send() }
- Button {
- send()
- } label: {
- Image(systemName: "arrow.up.circle.fill")
- .font(.title2)
- }
- .buttonStyle(.plain)
- .disabled(draft.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty || model.isStreaming)
- if model.isStreaming {
- Button {
- model.stopStreaming()
- } label: {
- Text("Stop")
- }
- .controlSize(.regular)
- }
- }
- }
- .padding(12)
- .disabled(model.phase.isReady == false)
- }
-
- private func send() {
- let text = draft
- draft = ""
- Task { await model.sendPrompt(text) }
- }
-
/// The writing-session filter: prose + card events stay; raw rows and
/// thinking are debug-only. Static, nonisolated — pure, testable from
/// any context.
@@ -139,13 +142,65 @@ struct SessionTranscriptView: View {
}
}
+ /// #155: the editorial-voice classifier — the model's text rows carry
+ /// speaker prefixes ("Mentor: ", "You: "); the render seam maps them
+ /// onto the contract's three voices. Everything else (refusals, pass
+ /// kick-off labels, reveals) is the system's mono voice. Static,
+ /// nonisolated — pure, testable from any context.
+ nonisolated static func speaker(of text: String) -> Speaker {
+ if text.hasPrefix("Mentor: ") {
+ return .agent
+ }
+ if text.hasPrefix("You: ") {
+ return .user
+ }
+ return .system
+ }
+
+ /// The three contract voices for a text row.
+ nonisolated enum Speaker {
+ case agent
+ case user
+ case system
+ }
+
+ /// The composer's Return split: plain Return sends, Shift+Return breaks
+ /// the line, every other chord passes through to native handling. Caps
+ /// Lock is masked — an exact `==` turned Shift+Return under Caps Lock
+ /// into a send. Static, nonisolated — pure, test-pinned.
+ nonisolated static func returnIntent(for modifiers: EventModifiers) -> ReturnIntent {
+ let mods = modifiers.subtracting(.capsLock)
+ if mods.isEmpty {
+ return .send
+ }
+ if mods == .shift {
+ return .lineBreak
+ }
+ return .passthrough
+ }
+
+ nonisolated enum ReturnIntent {
+ case send
+ case lineBreak
+ case passthrough
+ }
+
@ViewBuilder
private func rowView(_ row: SessionRow) -> some View {
switch row.content {
case let .text(text):
- textRow(text)
+ switch Self.speaker(of: text) {
+ case .agent:
+ agentProse(markdownText(String(text.dropFirst("Mentor: ".count))))
+ case .user:
+ userCapsule(String(text.dropFirst("You: ".count)))
+ case .system:
+ statusBox(text)
+ }
case let .thought(text):
- ThoughtRow(text: text)
+ // #24 dogfood fix: collapsed — a pass's thought stream runs to
+ // hundreds of lines and is not the critique.
+ ThinkingBlock(content: markdownText(text))
case let .fixCard(card):
// #23 follow-up: detail lives in the palette window — the
// transcript keeps a one-line event, not the card.
@@ -162,12 +217,82 @@ struct SessionTranscriptView: View {
}
}
- private func textRow(_ text: String) -> some View {
- Text(text)
+ /// Agent turns: full-width serif 15/1.6, no bubble (#81 treatment,
+ /// two-color voice). Flushed rows arrive markdown-parsed (rowView), the
+ /// live stream verbatim (#97).
+ private func agentProse(_ content: Text) -> some View {
+ content
+ .font(.system(size: 15, design: DesignTokens.serif))
+ .foregroundStyle(DesignTokens.foreground)
+ .lineSpacing(9) // CSS 1.6
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
}
+ /// User turns: the right-aligned capsule — terracotta wash 14% fill,
+ /// fg ink, sans 13/1.5, pads 16/12, radius 12/12/2/12 (the 2pt tail
+ /// bottom-trailing), capped at 85% of the visible column.
+ private func userCapsule(_ text: String) -> some View {
+ Text(text)
+ .font(.system(size: 13))
+ .foregroundStyle(DesignTokens.foreground)
+ .lineSpacing(6.5) // CSS 1.5
+ .textSelection(.enabled)
+ .padding(.horizontal, 16)
+ .padding(.vertical, 12)
+ .background(
+ UnevenRoundedRectangle(
+ topLeadingRadius: 12,
+ bottomLeadingRadius: 12,
+ bottomTrailingRadius: 2,
+ topTrailingRadius: 12,
+ ).fill(DesignTokens.accent.opacity(0.14)),
+ )
+ .fixedSize(horizontal: false, vertical: true)
+ // Trailing INSIDE the cap too: the cap frame is greedy, so a
+ // leading alignment parked short bubbles mid-column (Vivarium
+ // owner report 2026-11-02).
+ .frame(maxWidth: capsuleCap, alignment: .trailing)
+ .frame(maxWidth: .infinity, alignment: .trailing)
+ }
+
+ /// The quiet system voice: mono 11/1.5 muted on the fg-wash card —
+ /// refusals, pass kick-off labels, reveals. Fit-content width.
+ private func statusBox(_ text: String) -> some View {
+ Text(text)
+ .font(.system(size: 11, design: DesignTokens.mono))
+ .foregroundStyle(DesignTokens.muted)
+ .lineSpacing(5.5) // CSS 1.5
+ .textSelection(.enabled)
+ .padding(.horizontal, 12)
+ .padding(.vertical, 10)
+ .background(washCard)
+ }
+
+ /// The card-fill ruling (owner, 2026-11-03): thinking cards, status
+ /// boxes, and research-note cards sit on fg-wash 6% — borderless,
+ /// radius 10.
+ private var washCard: some View {
+ RoundedRectangle(cornerRadius: DesignTokens.radius)
+ .fill(DesignTokens.foreground.opacity(0.06))
+ }
+
+ /// Inline markdown keeping line breaks; verbatim if parsing throws —
+ /// the Vivarium pattern applied to the mentor's replies.
+ /// ponytail: flushed rows re-parse per publish on later turns (ForEach
+ /// row closures re-run with the body) — bounded by prior transcript
+ /// size; a per-row Text cache is the upgrade if long sessions ever
+ /// measure slow.
+ private func markdownText(_ markdown: String) -> Text {
+ if let attributed = try? AttributedString(
+ markdown: markdown,
+ options: .init(interpretedSyntax: .inlineOnlyPreservingWhitespace),
+ ) {
+ return Text(attributed)
+ }
+ return Text(verbatim: markdown)
+ }
+
/// The tool-call EVENT, not the card: the pattern title alone. The
/// card's full statement lives in the Fix Cards palette window.
private struct FixCardEventRow: View {
@@ -182,9 +307,11 @@ struct SessionTranscriptView: View {
}
/// #29 (S8.3): one candidate research-note card — serif title, mono
- /// muted url, selectable note, muted-italic quote. Pending offers Keep
- /// (ask-before) + Reject (no confirm — vanishes, nothing recorded);
- /// kept/rejected dim 0.45 (closed-card voice) with their meta line.
+ /// muted url, selectable note, muted-italic quote, on the wash card
+ /// (#155 — the folded derivation: research cards inherit the card
+ /// family). Pending offers Keep (ask-before) + Reject (no confirm —
+ /// vanishes, nothing recorded); kept/rejected dim 0.45 (closed-card
+ /// voice) with their meta line.
private struct ResearchNoteRow: View {
let candidate: ResearchCandidate
let actions: Bool
@@ -197,6 +324,9 @@ struct SessionTranscriptView: View {
dispositionView
}
.frame(maxWidth: .infinity, alignment: .leading)
+ .padding(.horizontal, 14)
+ .padding(.vertical, 12)
+ .background(washCard)
.opacity(dimmed)
}
@@ -229,6 +359,11 @@ struct SessionTranscriptView: View {
candidate.disposition == .pending ? 1 : 0.45
}
+ private var washCard: some View {
+ RoundedRectangle(cornerRadius: DesignTokens.radius)
+ .fill(DesignTokens.foreground.opacity(0.06))
+ }
+
private func meta(_ text: String) -> some View {
Text(text)
.font(.system(size: 11, design: DesignTokens.mono))
@@ -236,23 +371,63 @@ struct SessionTranscriptView: View {
}
}
- /// #24 fix: the engine's thinking, collapsed — a pass's thought stream
- /// runs to hundreds of lines and is not the critique.
- private struct ThoughtRow: View {
- let text: String
+ /// #155: the ThinkingBlock port — mono-11 toggle over serif-13 muted
+ /// content on the recessed wash card (contract: thinking = mono 11
+ /// toggle + serif 13 muted on the card). Owns its expansion state: the
+ /// LIVE stream mounts open (`initiallyExpanded: true`), flushed rows
+ /// mount collapsed (Vivarium audit: a pane-level binding carried a
+ /// collapse from turn 1 into turn 2's live block).
+ private struct ThinkingBlock: View {
+ /// Pre-rendered content (markdown at flush, verbatim live — #97);
+ /// the block itself never re-parses.
+ let content: Text
+ /// The live stream renders the spinner toggle and no chevron.
+ var live = false
+ @State private var expanded: Bool
+
+ init(content: Text, initiallyExpanded: Bool = false, live: Bool = false) {
+ self.content = content
+ self.live = live
+ _expanded = State(initialValue: initiallyExpanded)
+ }
var body: some View {
- DisclosureGroup {
- Text(text)
- .font(.system(size: 10, design: .monospaced))
- .foregroundStyle(.secondary)
- .textSelection(.enabled)
- } label: {
- Text("thinking")
- .font(.system(size: 11, design: .monospaced))
+ VStack(alignment: .leading, spacing: 0) {
+ Button {
+ withAnimation { expanded.toggle() }
+ } label: {
+ HStack(spacing: 6) {
+ if live {
+ ProgressView().controlSize(.mini)
+ } else {
+ Image(systemName: expanded ? "chevron.down" : "chevron.right")
+ }
+ Text("Thinking…")
+ }
+ .font(.system(size: 11, design: DesignTokens.mono))
.foregroundStyle(DesignTokens.muted)
+ }
+ .buttonStyle(.plain)
+ // Audit #155: a plain Button carries no switch semantics —
+ // speak the state the color/opacity encodes.
+ .accessibilityLabel("Thinking")
+ .accessibilityValue(expanded ? "expanded" : "collapsed")
+ if expanded {
+ content
+ .font(.system(size: 13, design: DesignTokens.serif))
+ .foregroundStyle(DesignTokens.muted)
+ .lineSpacing(7.8) // CSS 1.6
+ .textSelection(.enabled)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .padding(.horizontal, 14)
+ .padding(.vertical, 12)
+ .background(
+ RoundedRectangle(cornerRadius: DesignTokens.radius)
+ .fill(DesignTokens.foreground.opacity(0.06)),
+ )
+ .padding(.top, 8)
+ }
}
- .frame(maxWidth: .infinity, alignment: .leading)
}
}
@@ -275,6 +450,154 @@ struct SessionTranscriptView: View {
}
}
+// MARK: Composer (#155 contract restyle; file-scope extension —
+
+// type_body_length posture, MentorPaneView precedent)
+
+private extension SessionTranscriptView {
+ /// The composer: surface-fill input (radius 10, border), the ONE action
+ /// button — accent Send idle, terracotta-outlined Stop mid-stream — and
+ /// the debug toggle at the trailing edge. The liveness chip floats
+ /// ABOVE the composer while streaming (contract ruling: the composer
+ /// row stays flat).
+ private var inputBar: some View {
+ VStack(alignment: .leading, spacing: 8) {
+ HStack(alignment: .bottom, spacing: 8) {
+ TextField("Ask the mentor…", text: $draft, axis: .vertical)
+ .textFieldStyle(.plain)
+ .font(.system(size: 13))
+ .lineLimit(1 ... 4)
+ .padding(.horizontal, 10)
+ .padding(.vertical, 8)
+ .frame(minHeight: 36)
+ .background(RoundedRectangle(cornerRadius: DesignTokens.radius).fill(DesignTokens.surface))
+ .overlay(
+ RoundedRectangle(cornerRadius: DesignTokens.radius)
+ .strokeBorder(DesignTokens.border, lineWidth: 1),
+ )
+ .onSubmit { send() } // ⌅/fallback submit — send() no-ops on the double fire
+ .onKeyPress(phases: .down) { press in
+ guard press.key == .return else { return .ignored }
+ // Plain Return sends, Shift+Return breaks the line,
+ // every other chord keeps its native newline (⌥↩ above
+ // all). macOS routes Return — ANY modifiers — to the
+ // field's submit action otherwise (Vivarium owner
+ // report 2026-10-26). Caps Lock is masked inside
+ // returnIntent — an exact `==` sent the draft under it.
+ // ponytail: the newline appends at the END, not the
+ // caret — caret-aware insertion needs NSTextView
+ // access; revisit if mid-draft edits ever matter.
+ switch Self.returnIntent(for: press.modifiers) {
+ case .send:
+ send()
+ return .handled
+ case .lineBreak:
+ draft += "\n"
+ return .handled
+ case .passthrough:
+ return .ignored
+ }
+ }
+ sendButton
+ }
+ if let debugBinding {
+ debugToggle(debugBinding)
+ }
+ }
+ .padding(.horizontal, 14)
+ .padding(.top, 12)
+ .padding(.bottom, 10)
+ .overlay(alignment: .top) {
+ // #23 dogfood: a pass legitimately runs minutes of silent tool
+ // work — without the chip the pane reads as dead. Contract
+ // ruling: floating, streaming-only, hit-through.
+ if model.isStreaming {
+ livenessChip
+ .offset(y: -40)
+ }
+ }
+ .disabled(model.phase.isReady == false)
+ }
+
+ /// ONE action button (Vivarium): Send idle / Stop mid-stream. The
+ /// default-action shortcut rides the Send state ONLY — Stop must never
+ /// catch a plain Return.
+ private var sendButton: some View {
+ Button {
+ if model.isStreaming {
+ model.stopStreaming()
+ } else {
+ send()
+ }
+ } label: {
+ Text(model.isStreaming ? "Stop" : "Send")
+ .font(.system(size: 11, design: DesignTokens.mono))
+ .foregroundStyle(model.isStreaming ? DesignTokens.accent : DesignTokens.surface)
+ .padding(.horizontal, 14)
+ .frame(minHeight: 30)
+ .background(
+ RoundedRectangle(cornerRadius: 6)
+ .fill(model.isStreaming ? Color.clear : DesignTokens.accent),
+ )
+ .overlay(
+ RoundedRectangle(cornerRadius: 6)
+ .strokeBorder(model.isStreaming ? DesignTokens.accent : Color.clear, lineWidth: 1),
+ )
+ }
+ .buttonStyle(.plain)
+ .disabled(!model.isStreaming && draft.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
+ .keyboardShortcut(model.isStreaming ? nil : .defaultAction)
+ .help(
+ model.isStreaming
+ ? "Cancel the running turn — the engine ends it with a cancelled stop."
+ : "Send to the mentor.",
+ )
+ }
+
+ /// The liveness chip — a hint, not a control (Stop lives in the Send
+ /// slot). thinMaterial is the contract's translucent-surface+blur
+ /// approximation (#154 deviation note).
+ private var livenessChip: some View {
+ HStack(spacing: 8) {
+ ProgressView().controlSize(.small)
+ Text("Mentor is working — Stop to interrupt.")
+ .font(.caption)
+ .foregroundStyle(.secondary)
+ }
+ .padding(.horizontal, 12)
+ .padding(.vertical, 5)
+ .background(.thinMaterial, in: Capsule())
+ .allowsHitTesting(false)
+ }
+
+ /// Settled #5: the Debug toggle's new seat — mono-10 lowercase text
+ /// toggle at the composer's trailing edge (muted off, accent on).
+ private func debugToggle(_ binding: Binding) -> some View {
+ Button {
+ binding.wrappedValue.toggle()
+ } label: {
+ Text("debug")
+ .font(.system(size: 10, design: DesignTokens.mono))
+ .foregroundStyle(binding.wrappedValue ? DesignTokens.accent : DesignTokens.muted)
+ .opacity(binding.wrappedValue ? 1 : 0.65)
+ }
+ .buttonStyle(.plain)
+ .frame(maxWidth: .infinity, alignment: .trailing)
+ .help("Show session updates, tool calls, and engine thinking.")
+ // Audit #155: the checkbox this replaced announced switch state —
+ // a plain Button must say it itself.
+ .accessibilityLabel("Debug rows")
+ .accessibilityValue(binding.wrappedValue ? "on" : "off")
+ }
+
+ private func send() {
+ let text = draft.trimmingCharacters(in: .whitespacesAndNewlines)
+ guard !text.isEmpty, !model.isStreaming else { return }
+ draft = ""
+ Task { await model.sendPrompt(text) }
+ }
+}
+
/// #29 audit: the candidate's content block — title/url/note/quote — shared
/// by the transcript row and the keep sheet's preview, so a restyle edits
/// one place. File scope: ResearchKeepSheet reuses it.
diff --git a/MuseionTests/ACPClientTests.swift b/MuseionTests/ACPClientTests.swift
index a2ff5e3..0703998 100644
--- a/MuseionTests/ACPClientTests.swift
+++ b/MuseionTests/ACPClientTests.swift
@@ -16,6 +16,7 @@
// files build rigs on it) + the client/model suites that pin its contract.
import Foundation
+import SwiftUI
@testable import Museion
import Testing
@@ -430,6 +431,44 @@ struct ACPClientTests {
#expect(!SessionTranscriptView.isWritingRow(SessionRow(content: .raw(kind: "tool_call_update", json: "{}"))))
}
+ /// #155 (map #153): the editorial-voice classifier — the model's speaker
+ /// prefixes map onto the contract's three voices (agent prose / user
+ /// capsule / system status box); everything else is the system's mono
+ /// voice (refusals, pass kick-off labels, reveals).
+ @Test func `speaker classifier maps prefixes onto the contract voices`() {
+ #expect(SessionTranscriptView.speaker(of: "Mentor: The opening earns its place.") == .agent)
+ #expect(SessionTranscriptView.speaker(of: "Mentor: (refused the prompt)") == .agent)
+ #expect(SessionTranscriptView.speaker(of: "You: What would you cut first?") == .user)
+ #expect(SessionTranscriptView.speaker(of: "Pass 1 · The piece") == .system)
+ #expect(SessionTranscriptView.speaker(of: "Session refused — the mentor is mid-turn.") == .system)
+ #expect(SessionTranscriptView.speaker(of: "A = Pass 1 start snapshot · B = current document") == .system)
+ }
+
+ /// #155 audit (security): the link-open gate — interpreted markdown
+ /// opens http(s) only; every other scheme (file:, mailto:, custom app
+ /// schemes) is discarded. Engine prose echoes imported content, so a
+ /// lying `[label](scheme:…)` link must never reach a handler.
+ @Test func `linkVerdict discards non-http schemes from interpreted markdown`() throws {
+ #expect(try SessionTranscriptView.linkVerdict(for: #require(URL(string: "https://mentor.dev/critique"))) == .open)
+ #expect(try SessionTranscriptView.linkVerdict(for: #require(URL(string: "http://mentor.dev/critique"))) == .open)
+ // Scheme matching is case-insensitive on the wire.
+ #expect(try SessionTranscriptView.linkVerdict(for: #require(URL(string: "HTTPS://MENTOR.DEV/x"))) == .open)
+ for scheme in ["file:///etc/passwd", "mailto:x@y.dev", "notesapp://open", "javascript:alert(1)"] {
+ #expect(try SessionTranscriptView.linkVerdict(for: #require(URL(string: scheme))) == .discard, "\(scheme) should be discarded")
+ }
+ }
+
+ /// #155 audit: the Return split — Caps Lock must not turn Shift+Return
+ /// into a send (an exact `==` did).
+ @Test func `returnIntent masks caps lock and splits plain vs shift return`() {
+ #expect(SessionTranscriptView.returnIntent(for: []) == .send)
+ #expect(SessionTranscriptView.returnIntent(for: .shift) == .lineBreak)
+ #expect(SessionTranscriptView.returnIntent(for: [.shift, .capsLock]) == .lineBreak)
+ #expect(SessionTranscriptView.returnIntent(for: .capsLock) == .send)
+ #expect(SessionTranscriptView.returnIntent(for: .option) == .passthrough)
+ #expect(SessionTranscriptView.returnIntent(for: [.command]) == .passthrough)
+ }
+
@MainActor
@Test func `refusal maps to ended refusal and still renders the refusal row`() async {
let fake = makeFakeACP(at: acpTempDir("outcome-refusal"), mode: "refuseOnPrompt")
diff --git a/docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md b/docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md
new file mode 100644
index 0000000..727fc38
--- /dev/null
+++ b/docs/devlog/20261104-issue155-shared-conversation-surface-editorial-voice_log.md
@@ -0,0 +1,80 @@
+# Restyle the shared conversation surface (SessionTranscriptView)
+
+> **Date:** 2026-11-04
+> **Type:** issue
+> **Reference:** [#155](https://git.babylondreams.de/AlexKucera/museion/issues/155) (map [#153](https://git.babylondreams.de/AlexKucera/museion/issues/153))
+
+## Goal
+
+Build slice 1 of the mentor-pane editorial-voice map: port the locked contract (`ref/prototypes/wf154-mentor-pane-prototype.html`, ruled in #154) into the shared `SessionTranscriptView` — the Vivarium chat treatment remapped onto the two-color palette. The Sessions pane inherits the same surface.
+
+## What Was Done
+
+- **Three-voice classifier** (`SessionTranscriptView.speaker(of:)`, static nonisolated, test-pinned): the model's speaker prefixes map onto the contract voices — `"Mentor: "` → agent prose, `"You: "` → user capsule, everything else (refusals, pass kick-off labels, reveals) → the system status box.
+- **Agent prose**: full-width serif 15/1.6 (`lineSpacing(9)`), markdown parsed at flush (`markdownText`, Vivarium `inlineOnlyPreservingWhitespace` + verbatim fallback), `Text(verbatim:)` while streaming — the #97 pattern.
+- **User capsule**: right-aligned, terracotta wash 14% (`accent.opacity(0.14)`), sans 13/1.5, pads 16/12, `UnevenRoundedRectangle` 12/12/2/12 (2pt tail bottom-trailing), capped at 85% of the live content column (`GeometryReader` + `onGeometryChange` → `paneWidth`; seeded 356 so the mentor pane's first frame is right, the Sessions pane's wider column corrects on the first pass).
+- **Status box**: mono 11/1.5 muted on the fg-wash 6% card (ruling: card fill = `foreground.opacity(0.06)`, borderless, radius 10).
+- **ThinkingBlock port**: mono-11 toggle (chevron idle, spinner live) over serif-13 muted on the wash card; owns expansion state — live mounts open, flushed mounts collapsed. Replaces `ThoughtRow` and the capped 3-line live-thinking rendering.
+- **Research-note cards** inherit the wash card family (folded derivation from #154).
+- **Composer restyle**: surface-fill input (radius 10, border, min-height 36), ONE action button — accent Send idle, terracotta-outlined Stop mid-stream (`keyboardShortcut(.defaultAction)` rides Send only), floating `.thinMaterial` liveness chip above the composer (streaming only, hit-through), mono-10 lowercase `debug` text toggle at the trailing edge via a new `debugBinding: Binding?` (nil = no toggle — the Sessions pane).
+- **Return-key split** (`onKeyPress`): plain Return sends, Shift+Return breaks the line — ported from the Vivarium owner-report fix (2026-10-26); the current composer had the same latent bug (Return sent the draft with no way to type a newline). `send()` gained the empty-trim guard the double-fire needs.
+- **MentorPaneView**: header Debug checkbox deleted (settled #5 — the toggle's seat is the composer's edge); passes `$debugRows` as `debugBinding`.
+- Test: `speaker classifier maps prefixes onto the contract voices` in `ACPClientTests.swift`, beside the `isWritingRow` pins.
+
+### Audit pass (finish-audit fanout: ponytail + security + general)
+
+- **Link-open gate (security MEDIUM)**: the restyle is the app's first *interpreted* render of engine-sourced text, and `Text` renders parsed markdown links tappable by default — engine prose echoes imported content, so a lying `[label](scheme:…)` link could reach any registered handler. Fixed at the sink (#34 doctrine): `linkVerdict(for:)` (pure enum — `OpenURLAction.Result` is a struct and unpinnable by pattern) drives the surface's `openURL` environment — http(s) rides the system action (case-insensitive scheme), everything else discards. Pinned (`linkVerdict discards non-http schemes…`).
+- **Caps-Lock Return split (general LOW)**: exact `modifiers == .shift` turned Shift+Return under Caps Lock into a send. Fixed via `returnIntent(for:)` (masks `.capsLock`; send / lineBreak / passthrough), pinned (`returnIntent masks caps lock…`).
+- **A11y (general MEDIUM)**: the debug toggle and ThinkingBlock lost their Toggle/DisclosureGroup semantics when they became plain Buttons — added `accessibilityLabel`/`accessibilityValue` pairs (unpinned delta: no component-render harness in this repo).
+- **GeometryReader wrapper deleted (ponytail + general, converged)**: `.onGeometryChange` attaches to the VStack directly; the greedy proxy-discarding wrapper added nothing.
+- **3-line tombstone comment in MentorPaneView deleted (ponytail)**; `markdownText` gained the re-parse ceiling `ponytail:` note (per-row Text cache is the upgrade path).
+- Declined: cutting `.onSubmit` (it is the ⌅/⌘↩ submit path; the empty-trim guard makes the double-fire a no-op — kept with a comment). Deferred: `Speaker` identity on `SessionRow` (model churn, pre-existing prefix posture).
+
+## Decisions & Rationale
+
+| Decision | Rationale |
+|----------|-----------|
+| Classifier over row-type changes | The model already stamps speaker prefixes (`"Mentor: "`, `"You: "`); the render seam maps them, Vivarium convention. Zero model churn, `isWritingRow` and its pins untouched. |
+| `debugBinding: Binding?` (defaulted nil) | Keeps `@AppStorage("mentorDebugRows")` ownership in MentorPaneView; both existing call sites compile unchanged. |
+| GeometryReader width over a static cap | Vivarium shipped static 624 for its fixed 810pt column; Museion's shared surface also renders in the Sessions pane's flexible column, so the 85% cap must follow live width. |
+| Live thinking stays debug-gated | The settled treatment rules styling, not visibility; `isWritingRow`'s filter is pinned behavior. One-line change later if the owner wants thinking in the writing voice. |
+| Two tolerated lint warnings (file 573 lines, type body 271) | Warning tier is the repo's tolerated band (app target carries 92; ProfileProvisioner 659); errors at 1000/350 are the gate. Composer already sits in a file-scope extension (type-body posture). |
+
+## Gotchas & Fixes
+
+| Problem | Root Cause | Fix |
+|---------|------------|-----|
+| Build error ×2: `_ShapeStyle` not `RoundedRectangle` | `.fill()` returns a View; the `washCard` helpers declared the shape return type | Return `some View` |
+| Typo `.foregroughStylePlaceholder` | write_file slip | Patched to `.foregroundStyle(DesignTokens.foreground)` |
+
+## Files Changed
+
+| File | Change Summary |
+|------|---------------|
+| `Museion/SessionTranscriptView.swift` | Full contract restyle: three voices, ThinkingBlock, capsule, composer, liveness chip, debug toggle seat |
+| `Museion/MentorPaneView.swift` | Header Debug checkbox removed; `$debugRows` passed as `debugBinding` |
+| `MuseionTests/ACPClientTests.swift` | Speaker-classifier pin (6 cases) |
+
+## Verification
+
+- `xcodebuild … build` → **BUILD SUCCEEDED**
+- `xcodebuild … -only-testing:MuseionTests test` → xcresult: **584 total, 584 passed, 0 failed** (audit pass added the `linkVerdict` + `returnIntent` pins to the earlier 582); each new pin confirmed executed + Passed in the xcresult (count, not banner).
+- Flip cycle: both guards disabled in one edit → exactly the two new pins failed (2/584); restored, hash-verified byte-identical to the green source.
+- swiftformat on changed files, swiftlint: no errors (warnings in the repo's tolerated band).
+
+## Gotchas & Fixes (audit pass)
+
+| Problem | Root Cause | Fix |
+|---------|------------|-----|
+| Pin compile error ×2 runs: `~= requires 'OpenURLAction.Result' conform to 'Equatable'` | `OpenURLAction.Result` is a **struct with static factories, not an enum** — `guard case .systemAction =` parsed as an expression pattern | Pure `LinkVerdict` enum seam; the Result mapping lives at the `openURL` environment site |
+| Pin compile error: `static property 'shift' is not available due to missing import of defining module 'SwiftUI'` | `EventModifiers` statics inside `#expect` macro expansions under MemberImportVisibility | `import SwiftUI` in the test file |
+
+## Open Items & Next Steps
+
+- [ ] [#156](https://git.babylondreams.de/AlexKucera/museion/issues/156) — build slice 2: MentorPaneView chrome (header serif + ready dot + session chip, pass-bar selector, fix-cards plain row, crash/missing-engine/starting states in the editorial voice).
+- [ ] Code is uncommitted on `main` (working tree) — commit needs explicit authorization.
+- [ ] Optional dogfood check: launch and eyeball both render sites (Mentor column + Sessions detail column).
+
+---
+
+*Log written by write-log skill*
diff --git a/docs/devlog/INDEX.md b/docs/devlog/INDEX.md
index 18082eb..474d96b 100644
--- a/docs/devlog/INDEX.md
+++ b/docs/devlog/INDEX.md
@@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa
| Date | Type | File | Summary |
|------|------|------|---------|
+| 2026-11-04 | issue | [20261104-issue155-shared-conversation-surface-editorial-voice_log.md](20261104-issue155-shared-conversation-surface-editorial-voice_log.md) | #155: shared transcript restyle — three voices (capsule/serif prose/status box), ThinkingBlock port, composer + floating liveness chip, debug toggle moved to composer edge |
| 2026-11-03 | issue | [20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md](20261103-issue151-gateless-launch-async-engine-check-rail-pill-auto-fire_log.md) | Gateless launch: workspace is the first frame, async check, rail pill + fail card, auto-fired provisioning/backup. |
| 2026-11-03 | issue | [20261103-issue58-voice-payload-landed_log.md](20261103-issue58-voice-payload-landed_log.md) | #58: Swadia VOICE payload — new owned-insight skill, retelling/next-line cards, interview-first stance, allocation row P1 10 · P2 9 · Chat 11 |
| 2026-11-03 | issue | [20261103-issue147-app-target-lint-clean-five-error-spots_log.md](20261103-issue147-app-target-lint-clean-five-error-spots_log.md) | #147: last five lint error spots — sidecar to extension, renames, guard wraps, PostStoreTests split; two flaky-test root causes fixed |