Commit Graph
27 Commits
Author SHA1 Message Date
AlexKucera 683d697367 docs(devlog): #88 calibration gate — CALM ruling, typewriter fix, color world
CI / ci (push) Canceled after 0s
2026-10-09 20:27:09 +02:00
AlexKucera 695ad5e5f9 docs(devlog): #87 follow-up — shortcut saga, audit synthesis
⌥⌘F settled after ⇧⌘F (system-wide collision) and ⌃F (shadows
caret-forward). Audit fan-out fixes recorded; remount trade-off
flagged for the calibration gate. GitNexus counts refreshed.
2026-10-09 11:46:26 +02:00
AlexKucera b0ab800d3d feat(workspace): focus mode — recession, hover reveal, soft caret centering (#87)
Map #21 build child. Toggle via View menu / ⌘⇧F; panes and toolbar
recede, overlay hover reveal (left: rail+library, right: mentor),
soft caret centering while typing, loud save failure, ⌘S armed in
focus. Full suite green; calibration gate #88 judges calm.
2026-10-09 11:11:36 +02:00
AlexKucera c25e792479 docs(devlog): #84 view-menu session log
CI / ci (push) Canceled after 0s
2026-10-08 21:31:05 +02:00
AlexKucera 4e8865e660 docs(devlog): #83 save-indicator session log
CI / ci (push) Canceled after 0s
[Generated by AI]
2026-10-08 18:27:28 +02:00
AlexKucera 49fab56452 docs(devlog): #77 editing-parity session log
CI / ci (push) Canceled after 0s
2026-10-08 14:18:32 +02:00
AlexKucera eae86dd2ef docs(dox): #76 log in root window 2026-10-06 18:32:42 +02:00
AlexKucera 36858bcf1d docs(devlog): #71 session log 2026-10-05 15:52:40 +02:00
AlexKucera f2953ee07e feat(editor): land editor core — open, edit, autosave (S1.2)
CI / ci (push) Canceled after 0s
Posts open into the TextKit2 surface (ADR-0010 mode B) lifted from
the proven spike: styled source, scaled headings, dimmed syntax,
native undo/IME. One EditorSession per open post drives a ~1 s
debounced autosave (flush on selection change, window close, app
quit; ⌘S immediate), the Saved/Saving/Failed dot, and the per-post
.museion-state.json cursor sidecar that dies with the folder.
External edits raise an explicit Reload/Keep-Local alert — the
debounce never answers it for the writer, and drafts keep the
lazy-folder first-⌘S rule (#62).

Reviewer fanout fixes folded in: session teardown at every lifecycle
exit (rename flushes before the folder move; trash cancels the
debounce), draft ⌘S continues in place, conflict holds the debounce,
rescan's disk read off-main, ~35 lines of dead code out.

Closes #19
2026-10-05 10:56:33 +02:00
AlexKucera 530f852f75 feat(workspace): land Post lifecycle (S1.1)
CI / ci (push) Canceled after 0s
Posts become writable end to end per the #18 map decisions:
New Post holds an in-memory draft (folder appears only on first
save), first save stamps the flat frontmatter block the #17
reader already parses (pass_state First Draft, origin writer,
immutable after stamping), and the Post ID is the Title slug with
case-insensitive collision suffixes. Explicit Rename retitles the
# Title line and moves the folder (post.md stays); Delete goes to
Trash. A recursive FSEvents stream keeps the list mirroring
posts/ — external Finder edits included.

Editor is a deliberate TextEditor stub; #19's TextKit2 editor
replaces it in place while the lifecycle machinery below the view
survives the swap.

Two review rounds (standards/spec + finish-audit fanout) fixed:
watcher start-order bug, writeNew clobber race, overwrite
resurrecting vanished posts with reset origin, rename destroying
non-heading first lines, draft hijacking the editor, debounce
starvation under churn.

Tests: 75/75 (17 new). Closes #18.
2026-10-03 13:34:00 +02:00
AlexKucera e5490ed290 Merge m1-home-posts-list: M1 Home & Posts list (#17)
CI / ci (push) Canceled after 0s
Workspace shell from the design contract: nav rail, Posts pane mirroring
the Home's posts/ on disk, Settings repoint, finish-audit fixes (off-main
scan, parser edges, dead code out). 56/56 tests.

[Generated by AI]

# Conflicts:
#	AGENTS.md
#	docs/devlog/INDEX.md
2026-10-01 15:53:59 +02:00
AlexKucera 14fb2ebb40 Merge spike/editor-presentation: editor substrate verdict (ADR-0010)
Three throwaway editor spikes (CodeEdit fork / TextKit2 / SwiftUI
blocks) plus the pinned corpus and ADR-0010 recording the TextKit2
mode-B verdict. Spike code is historical reference — the real editor
(#19) builds fresh from the ADR.

[Generated by AI]

# Conflicts:
#	AGENTS.md
#	docs/devlog/INDEX.md
2026-10-01 15:53:30 +02:00
AlexKucera 2bd5169322 docs(adr): record verdict — native TextKit2 prose editor (ADR-0010)
Closes #55 on the map: TextKit2 mode B wins by the tie-breaker (calm >
effort > proven-elsewhere); variable heading sizes + paragraph spacing
required, reading toggle block-aware, anchor re-proof satisfied live.
CodeEdit exits Museion; Classis pin untouched. Paper-grade polish is
iterative practice, not a deferred phase. Spike artifacts stay on this
branch for reference.

[Generated by AI]
2026-10-01 15:52:17 +02:00
AlexKucera efc97d061c chore: refresh GitNexus index block, fix devlog index count
CI / ci (push) Canceled after 0s
GitNexus analyze updated its managed AGENTS.md block (1308 symbols,
2519 relationships, 39 flows) and index artifacts. Devlog INDEX row
corrected to the post-audit 56-test count.

[Generated by AI]
2026-10-01 13:50:18 +02:00
AlexKucera 804b5889f6 feat(workspace): add M1 Home & Posts list — nav rail, posts mirror, Home repoint (fixes #17)
The post-gate main surface is the workspace shell from the design
contract: nav rail (Posts/Sessions/Learnings/Settings), Posts pane
mirroring <home>/posts/ on disk (Pass State groups, origin meta,
empty state; lazy folders skipped), Settings pane with repoint-only
Home picking (NSOpenPanel + UserDefaults, default ~/Documents/Museion
per b3daac9), placeholder panes until #28/#26. Column collapse
mirrors the export's media queries so narrow windows never clip.
Mentor pane becomes the fourth column (#14 surface preserved).

[Generated by AI]
2026-10-01 13:14:55 +02:00
AlexKucera e5b7203906 feat(backup): add S2.6 daily profile backup (fixes #50)
One liveness-gated snapshot pass per launch, chained after provisioning:
gateway.pid pid-liveness + ps scan (skip while the engine runs), 24 h
age check, curated recursive copy (credentials and SQLite sidecars in;
logs/caches/locks out), atomic temp+rename install, keep last 7.
Restore stays manual copy-back in v1 — Help > Open Backup Folder and
a RESTORE.md written beside the snapshots.

[Generated by AI]
2026-09-30 11:24:58 +02:00
AlexKuceraandClaude f21d3a6844 feat(acp): add M0 ACP bridge — engine child + mentor pane (fixes #14)
CI / ci (push) Canceled after 0s
Spawn hermes acp -p museion over NDJSON JSON-RPC stdio via a
hand-rolled thin client (no Swift SDK exists). The mentor debug
pane streams replies, renders fix-card tool calls as structured
cards (ADR-0006), cancels via session/cancel, tears down on quit
(willTerminate), and surfaces a restart prompt on engine crash —
never data loss. Version verify against state.json is advisory.

Fake ACP server test double (zsh speaking real NDJSON) covers
handshake, streaming + fix-card, drift, crash latch, cancel,
teardown. 36/36 tests green; finish-audit fixes included (wired
binaryPath, focus-loss teardown bug, double onCrash latch).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-16 18:57:41 +02:00
AlexKuceraandCipher c0b2cb0b93 feat(provisioning): add S2.1 pass with failure alert & retry (fixes #47, #48)
CI / ci (push) Canceled after 0s
Idempotent per-gate pass: create the museion Hermes profile only when
missing (exit-1 "already exists" = success), then additively seed the
bundled writing skills from seed-manifest.txt — temp-copy+rename, present
skills never touched, orphaned temps swept, manifest entries validated
kebab-case at the trust boundary.

Failures surface a separate phase-named alert ("couldn't set up the
writing profile" / "couldn't copy the writing skills"), never re-raising
the gate: excerpt behind Technical details (stdout per #43, stderr
fallback), Retry re-runs the whole pass, Not Now defers to the next
launch's silent retry. The card presents only after the gate sheet's
dismissal completes and snapshots its failure so a successful Retry
doesn't blank it mid-animation.

Provisioning writes nothing to the profile config (no mcp_servers entry,
#44) and leaves state.json engine-gate-only. 30/30 tests green.

Co-Authored-By: Cipher <cipher@babylondreams.de>
2026-09-05 15:03:01 +02:00
AlexKucera 753da2135a feat(gate): add Engine gate launch check (S2.1)
CI / ci (push) Canceled after 0s
Block every app launch behind an Engine gate per wayfinder map #12:
discover the user-installed hermes binary via the documented six-path
probe (#36), health-check it with acp --check (stdin closed, 5 s
per-candidate timeout, exit-status branching), version via
acp --version, and record every completed check in Application
Support state.json (#39). The gate is a blocking sheet with
checking/pass/fail cards (#38/#40), app-scoped so only the first
window per launch auto-checks (#41); an About window mirrors the
state file read-only. Provisioning (#13) has a stub seam at
onEnginePass. 12 unit tests drive the real Process path with fake
hermes binaries; build, tests, swiftformat, swiftlint all green.

Closes #42

[Generated by AI]
2026-09-03 14:53:39 +02:00
AlexKucera 232ac9d722 build: add build-and-run launch script
Adapt helm's build-and-run.sh to Museion: build via xcodebuild and
launch the app in place from DerivedData, killing any instance running
from that exact bundle first. Drop helm-specific bits (dev/prod product
name split, dSYM noise filter, provisioning flag, arch pin) that do not
apply to this project. Listed in the root AGENTS.md command block.
2026-09-03 14:23:00 +02:00
AlexKucera ac1f9f100e feat(skills): add titles-and-hooks craft skill
CI / ci (push) Canceled after 0s
Distill the last empty craft-canon shelf from web data rather than
books, per the #4 research: BuzzSumo's 100M-headline study, the
PLOS ONE Upworthy A/B experiment, and Heath's curiosity-gap doctrine
as the hook generator. Eight diagnostic cards across the title
surface (takeaway, numbers, worn teases, mode, voice) and the hook
surface (gap, foothold, contract), each naming the finding it
stands on. Adjacent coverage respected: cold opens stay with
serif-writing, the piece-level key question with prose-craft #7.

Extend the sample Pass with FC-9 so the shelf demonstrably fires.

Closes #11
2026-08-28 17:57:36 +02:00
AlexKucera 7a54c6b803 feat(skills): add distilled craft canon skills
Distill the issue #4 shortlist top three into diagnostic skills that
fill the mentor's emptiest shelves, following the fiction-craft
pattern (symptom, why it fails, move, check):

- rhetoric (Heinrichs): argument and rhetoric, ten symptom-to-move
  cards plus the fallacy index
- reader-psychology (Williams): reader psychology and better-words
  doctrine as a nine-step diagnosis sequence, classic-style header
- prose-craft (Clark): fifteen generative tools across better-words,
  structure, humor, and revision; serif/deslop-covered tools dropped
  with the boundary documented

docs/sample-pass.md demonstrates all three firing as fix cards
(quote anchors per ADR-0006). Titles and hooks stays open: #11.

Closes #7
2026-08-28 17:33:13 +02:00
AlexKucera 934104c474 feat(skills): add micro-drill prompt-pack skill
Two-minute single-shelf drill offers riding the Pass finding that
motivates them; declined drills vanish and drill output never touches
the draft (issue #8). Also refreshes GitNexus index stats.
2026-08-28 15:42:35 +02:00
AlexKucera 05e2a01365 feat(skills): add Pass and Session personas
Add the two container persona skills to the bundled set: Pass
(Chief 40 / Knife 30 / Coach 10 / Leader 10 / Sparring 8 / Sensei 5)
and Session (Coach 40 / Knife 30 / Sensei 10 / Sparring 10 / Chief 5 /
Leader 0). Warm-but-firm comes from the blend arithmetic, never a mood
adjective; the Knife floor is constant in both containers; Learnings
inform silently; critique calibrates against the writer voice anchor,
with drift called out as "yours are better".

Adds the ref/writing skills child AGENTS.md (the bundled set is now a
durable boundary) and its root index row.

Closes #2.
2026-08-28 15:00:22 +02:00
AlexKucera b9f7d11aba Set up Matt Pocock Skills 2026-08-28 12:30:36 +02:00
AlexKucera 4616dd80df docs: fold design-grill decisions into PRD
Record the twelve build-time decisions from the grill session so
M0 starts with no open questions:

- PRD: project layout, tools host, learnings home/scope, trust
  defaults, decay numbers, post-id naming, token storage (G5-G7
  plus seven stories patched)
- CONTEXT.md: project glossary (17 terms)
- ADR-0004 critique memory lives in the project, not the profile
- ADR-0005 fix cards travel as typed MCP tool calls
- ADR-0006 writing tools ship as in-app Swift MCP server
2026-08-26 21:49:58 +02:00
AlexKucera 96babe7c52 feat: scaffold native SwiftUI app project
Establish the Agentic Writing Environment: an Xcode project
(filesystem-synchronized groups) with a minimal SwiftUI app shell
on macOS 26.5+, Swift 6, default MainActor isolation. Unit and UI
smoke tests pass via xcodebuild.

Repo tooling: SwiftFormat/SwiftLint configs, Gitea Actions CI
(dormant until a macOS runner registers), GPL-3.0-or-later
license, CITATION.cff, README, CHANGELOG, and a DOX AGENTS.md
tree with ADRs 0001-0003 (stack, license, forge).
2026-08-26 13:29:25 +02:00