Fix Cards become actionable. Mechanical cards offer Apply behind a
blocking ask-before sheet showing the exact edit (anchored quote ->
replacement, occurrence + context; empty fix cuts); the sheet is the
only path to a write, one card at a time, no apply-all. The edit
lands through the editing session (pending edits flush first, the
editor re-seeds via adoptText, the card closes applied); Skip and
Done close the card in place, recording nothing; demonstration
cards close Done/Skip only (ADR-0006). Cards arrive ranked
(store-stamped, scan-ordered, open-first palette) and capped at ten
per submit — the app keeps the ranked head and the wire reply
discloses the drop. Stale anchors re-validate at apply: no text
selected or changed, the card flags itself. Includes the
finish-audit round (11 fixes, 2 flip-verified pins); 316 tests
green.
Closes#25
The pass rails landed in 683ddf8 left guards #1-3 and the pass bar's
Cancel rail without direct coverage. Three new tests over the fake ACP
path: a second runPass while one streams refuses "already running" and
cancelPass ends the held turn (state stays First Draft), a pass
mid-mentor-reply refuses before the snapshot lands, and a pass against
a never-opened engine refuses "isn't ready". Every guard in
PostsModel.runPass now has a flip-verified pin (299 tests green).
Finish-audit fanout over the delta: the three whole-tree enumerator
walks became fileExists one-liners at the deterministic path (same
discrimination, suite convention); two Info findings deferred with
landing spots in the session log.
Closes#24
Headless --serve-mcp role in the app binary: NDJSON JSON-RPC on stdio
exposing query_learnings and submit_fix_cards (ADR-0006 cards,
anchor-validated; stale lands flagged, never rejected), registered
into the museion profile at provisioning. Cards persist per piece
under <piece>/cards/ and surface in a floating Fix Cards palette
with pass-stamped provenance.
Live dogfood drove the shape: session/prompt waits pass length (the
15 s request default abandoned working turns), a liveness row and a
persisted Debug checkbox (off) split writing sessions from debug
chatter, the verdict references findings by title only while the
cards carry the detail (persona v1.3 — tools work in silence), and
the #24 pass rails (pass bar, TurnOutcome seam, snapshots) ride in.
Three-reviewer audit round: piece-path shape guard closes the
JSON-drop and substring-oracle holes, nested submit rawInput parsing
(the flat parser never matched the live rail), missing stopReason
never advances a pass, 1 MB stdin cap, card scan off MainActor.
296 tests green; every behavioral fix flip-verified.
Closes#23
Land the #118/#119/#121 post-map decisions into the mentor's
files: every Fix Card declares a lane (mechanical | demonstration)
and an emitter (lint | engine); the pass persona emits one ranked
submit_fix_cards call at pass end, capped at ten and deduped
against live lint findings; the Knife floor ignores writer praise;
deslop's tables close the actually/unfortunately gap and map
utilize/utilization to use; the sample pass gains the mechanical
exemplar FC-10.
Closes#123
Markdown lists in the prose editor become structural: Tab/⇧Tab
indent/outdent the item under the caret (wrapped lines ride along,
caret follows), ⌥↑/⌥↓ move the item with its subtree among siblings.
Every structural edit is one range replacement — a single undo step
over the plain mode-B store (ADR-0010 stands).
List parents fold visually: a gutter chevron collapses children to
near-zero height with a rust ▸ and a "⋯ N" summary after the parent's
line. Folding is view state — the buffer never changes (ADR-0013's
posture carried to prose).
Field findings baked in: SwiftUI-hosted TextKit2 never calls
NSTextView.draw(_:) and every NSTextLayoutManager fragment query
returns empty, so the chrome renders offscreen into a layer-contents
image and geometry comes from firstRect(forCharacterRange:) (screen →
window → view). Includes the finish-audit round: sibling block-for-
block ⌥-move swap (was stealing the sibling's subtree), blank-line
indent dirt, fold-key dedupe, hidden-parent chevron filtering,
plain-click-only hit zone, no-parents raster skip.
Closes#115
[Generated by AI]
In-place outline→post conversion on the piece: id, folder, Pass
State, origin kept, type frontmatter flips to post, body transforms
once. The ask picks the transform — Verbatim Bullets (default,
lossless) or Headings ladder (roots ##, stepping to the ###### floor,
deeper stays bullets), with a warning when the ladder would drop
paragraph lines between bullets.
The open session flushes first, then reopens routed to prose via
proseOverridePostID (lastDraftWasOutline's machinery reversed).
An outline that went lossy on disk behind an unwarned ask aborts
the convert; an unanswered #67 conflict aborts every flush-first
op (shared flushOrAbort seam); rescan no longer hands a same-id
reopened session its predecessor's stale disk text; a held #111
guard ask dies with the outline it pointed at.
Audit round (finish-audit, three reviewers) included: 13 new pins,
206 tests green, pin discrimination verified. Record:
docs/devlog/20261016-issue114-convert-to-post_log.md
Pointer drag of a block run into any sibling seam or onto a block to
nest as its child (wf113 variant A: fat-gap 30/40/30 bands, seam
line at the future bullet column); the block selection rides the
drag, the moved run becomes the selection, and Esc cancels mid-gesture.
Double-click any bullet zooms to its children with breadcrumbs back
out. New OutlineTree extract/insertRun splice subtrees id-preserving;
the live row's NSTextView moved to OutlineRowTextView.
Audit round: the gesture is self-contained from arm time (strong
window + callback captures — a mid-drag scroll that drops the origin
row cannot strand drag state), a second arming cancels a stuck
predecessor, rowFrames prefers the grip frame, hitTestDrop is y-up
only, and the rails read DropGeometry. Pinned in OutlineDragTests
(monitors fire on sendEvent with a real window number).
[Generated by AI]
Format-only pass over spikes, the gate prototype, and three app
files (brace style, wrapping — no semantic change), plus the 4-line
pbxproj alignment finishing the Xcode 27 settings pass (test-target
deployment target parity with 8e70f69).
[Generated by AI]
Bump LastUpgradeCheck and deployment target to 27.0, enable dead code
stripping and string catalog symbol generation, and set display name
and App Store category in Info.plist keys.
Opening a type: outline piece whose body parses with dropped prose
(paragraph lines between bullets) now asks before the outliner mounts:
Open in Prose (default, nothing drops), Open as Outline (explicit
consent to save normalization), or Cancel. The detector shares the
parser's item definition, the ask presents over an empty editor so
nothing can normalize on save before the choice, and the prose answer
rides a routing override that dies with the next open.
Audit round pinned the lifecycle: reselect of the open piece is a
no-op (an armed debounce must never flush mid-ask), and a draft or
guest staged during the ask displaces it without being destroyed.
Closes#111
[Generated by AI]
Dedicated block surface (ADR-0013, #105 variant B): OutlineTree
parses/serializes plain nested-bullet markdown leniently and
normalizes on save; the outliner promotes one NSTextView over the
focused row with LogSeq-style keys (Tab/⇧Tab, ⌥↑/⌥↓ subtree move,
↑/↓ hop, ⇧↑/⇧↓ block selection, ⌘↑/⌥↓ fold, Enter split), folds
session-scoped by runtime node UUID. New Outline ⇧⌘N stages a
type: outline draft through the existing autosave/conflict
machinery; reading renders the serialized markdown unchanged.
Outline rows use the body face at its natural line box — the prose
CSS-1.8 lineHeightMultiple grew the focused row and detached the
bullet (test-pinned). Finish-audit fixes included: paste-multiline
sanitizing at setText, dead Enter disjunct, dead Row.path.
Closes#109
Variant B per the #104 prototype verdict: the library column groups
pieces by project (serif lowercase heads, collapse toggle, Pass-State
groups inside, 2px edge-bar selection shared with the new Archive
pane via LibraryPostRow). Move to Project / Archive / Move Back /
whole-project Unarchive are folder moves — post.md bytes untouched,
never clobbering, ids globally unique. File ▸ New Post ⌘N and New
Project… ⌥⌘N (CommandGroup, never CommandMenu per #84).
Every folder move flushes pending edits first and aborts when the
write failed — nothing moves without its text. Project membership and
the archived-refusal derive from freshly resolved disk paths, never
the scan snapshot. Slug and project-name comparisons fold through one
canonical key (NFC + lowercase). Two reviewer fanouts this session;
their findings are all fixed or visibly parked.
144/144 tests green (run twice), swiftformat/swiftlint clean.
Closes#108
Wraps the Release xcodebuild invocation and ditto-based bundle copy so
local self-deploy is one command; supports CLEAN=1 for pristine rebuilds
and pins the destination to suppress multi-destination warnings.
Pieces re-root from posts/<id>/ to projects/<name>/<id>/ with an
archive/ twin root (ADR-0012): scan walks both levels, New Piece and
Import land in the selected project else the default posts, the slug
namespace is global across projects and archive (an archived slug is
never reused), and every piece carries type: post frontmatter —
stamped by New/Import, read leniently (absent or unknown reads as
post), the file stays post.md for every content type. Write paths
resolve the folder from the id alone (folder(of:)); sessions and
sidecars never thread (project, id).
Finish-audit hardening: duplicate ids on disk (Finder copy) dedupe in
scan to the same first-match folder(of:) writes to; folder(of:) skips
hidden/symlinked projects like scan does.
Dev posts moved by hand to projects/posts/ — no migration machinery,
the app never reads the old posts/ root (#103). Full suite green
(128 unit + UI), swiftlint clean on changed files.
Closes#107
CONTEXT.md: Project, Outline, Archive adopted; Content Type rewritten
as frontmatter attribute; Post ID global across projects.
ADR-0012 (amends 0004), ADR-0013 (specializes 0010).
Wayfinder map #97 — spec assembly ticket #106.
Three-variant prototype for the #105 wayfinder ticket (map #97):
how the keyboard-first outliner should feel. Verdict recorded on the
ticket: dedicated block view (variant B) with LogSeq semantics —
block-granular selection, text-only undo, fold as view state, one
promoted NSTextView over the focused row. Variant A kept as the
fold-as-text-edit anti-example; variant C as the painted-chrome
runner-up that lost on visual fidelity.
Also merges prototype/wf104-library-ui (fast-forward) so both
prototypes ride main.
Co-Authored-By: Claude <noreply@anthropic.com>
Throwaway UI prototype for wayfinder ticket #104. Three variants, ?variant=
param, real dev corpus, Museion #89 tokens. Verdict: B (serif project
sections + rust edge-bar) + nav-rail Archive destination; New Project and
move-piece-between-projects pulled INTO v1 scope by live verdict.
External .md/.markdown opens and edits as-is in a single guest slot
(File > Open... Cmd+O, drag-onto-window): SessionTarget extends
EditorSession to write in place verbatim, no cursor sidecar, the #67
conflict alert reused for foreign files. Import... (Shift+Cmd+O)
copies multi-select files in as Posts behind ONE Origin ask
(writer default, immutable); external frontmatter keys ride verbatim
with pass_state/origin set; slug/collision machinery shared with
writeNew.
Audit fixes folded in: BOM stripped + CRLF normalized at the trust
boundary (a CRLF pair is one Swift grapheme — \n splits saw one
line); unreadable files refuse to open (loadFailed — a failed read
never becomes a write); dropped web links and severed symlinks
guarded; ~24 lines of reviewer-flagged dead weight removed.
7 new tests; full unit + UI suite green; swiftlint clean.
Map #22 stays open pending the live calibration pass (#88 posture).
Calibrated live with Alexander: background #FAF9F3 (cream chrome, also
the focus ground), surface #FFFEFB (one page color for edit AND read —
kills the three-way jump white/gray/blueish), rust #C96442 caret,
reading highlights in cream washes at whisper strength, hardcoded
NSColor.white sites removed. Departure from the export contract is
deliberate and recorded in DesignTokens.
The bottom clamp parked the scroll and no-oped every keystroke when
typing at the document end — the natural writing position. Padding the
text container by half the viewport (typewriter breathing room) lets the
clamp center the last lines. Calibration ruling: typewriter centering
and breathing room are editor-wide, not focus-gated.
⇧⌘F collides with a system-wide shortcut on Alexander's machine —
the charting probe only checked NSUserKeyEquivalents and in-app
collisions, not global hotkeys. ⌃F is free.
Captures the Neo-learnings placeholder concept (inline flag, panel,
research-pass resolver) as a future idea, blocked on anchors (#25) and
the M5 research pass; markdown `[[TODO:]]` covers it until then.
CommandMenu("View") created a second View menu beside the system
one. CommandGroup(after: .toolbar) puts Toggle Reading Mode into
the system View menu; ⌘R and the .toggleReadingMode notification
are unchanged. Hosted test pins exactly one View-titled menu.
Closes#84
The dot claimed "Saved" for open posts even with unflushed keystrokes;
only draft mode told the truth. SaveState now mirrors cleanliness:
Changed while text differs from the last flush, Saved when clean. The
Saving… state is deleted — the synchronous write never lasts a render
pass. Save failed stays sticky until a write actually succeeds, and
Keep Local no longer adopts local text as flushed when the post
vanished mid-alert (that path silently killed ⌘S with "Saved" showing).
Closes#83
[Generated by AI]
Neo triage input: continuous spell checking off by default, on when
asked — markdown on disk already carries the spelling; squiggles are
a presentation choice, per-launch with no persistence.
Edit ▸ Check Spelling While Typing binds AppGateState.spellChecking
and applies it to the live NSTextView in makeNSView/updateNSView.
Commands views take gate as a plain property — @Environment lookups
trap at launch there (crash-verified).
Verified in-app: toggle -> live view flag true -> squiggles render.
(The initial "does nothing" report was a machine-level kill switch:
NSAllowContinuousSpellChecking=0 in the global defaults domain, since
deleted; no app code change was needed for that part.)
Closes#77 follow-up.
- HIGH: fence delimiter edits now restyle the whole document (delimiter
count fingerprint in the coordinator; count moved = full re-attribute,
caret preserved) — typing/deleting a ``` flipped every line until
the match before
- derived fonts + measureWidth cached as nonisolated(unsafe) static let
(were NSFontManager.convert per line per pass)
- h2/h3/h4 line height calibrated from their own face's metrics
- 7+ hashes fall to body (CommonMark cap); tab-indented heading marker
dims the hash, not the tab
- intraword _ spans unclaim on reject so the fallback char-dim takes them
- shrink: fenceState reuses contentLines+classify (isDelim deleted),
marker regexes as literals (helper + 2 lint disables deleted),
charBefore/After via NSString, dead colors + forwarders deleted
- vacuous retrofit test replaced with a real one + fenceDelimCount test
- editor text centers at reading.css --measure 66ch (zero-advance × 66
+ 2×24pt padding), scroll view still fills the column
- headings get paragraphSpacingBefore 75 / after 30 (CSS 90/30 minus
the visible blank separator's ~15pt)
Click-to-edit and open-with-cursor-restore both scrolled a freshly
mounted NSTextView synchronously. TextKit lays out asynchronously, so
scrollRangeToVisible clamped to the laid-out height - on long posts
that is near the top, which read as "click always lands at top".
Born with the #71 toggle, masked in devlogs by short verification
posts where top equals the clicked paragraph; reproduced offscreen
against a 3000-para doc (scroll y=69076 for a y=70000 target), one
runloop hop lands dead-on.
Both scroll sites (hint branch + cursor restore) now defer scroll and
first-responder to the next runloop tick. 93 tests green.
[Generated by AI]
Address critique #2 findings in reading.css: replace the hover-expand
image sliver with a resting framed thumbnail and visible captions (P0),
honor align attributes on table cells instead of forcing left (P1), and
surface href + edit cue on link hover so plain-click-into-edit has a
visual contract (P1).
Also records both critique rulings under .impeccable/critique/ and
notes the single-size 1024px App icon convention in Museion/AGENTS.md.