257 Commits
Author SHA1 Message Date
AlexKucera c959b67f14 chore(release): 0.1.2
Patch bump for a bug-fix cut (the release skill's rule):
MARKETING_VERSION 0.1.1 → 0.1.2 on every target and configuration,
CURRENT_PROJECT_VERSION unchanged. The changelog's former
[Unreleased] entry — the macOS 27.2 image-drop fix — moves under the
0.1.2 heading with a pointer to the notes. apex stays at 1.1.59:
GitHub's latest release is still the bundled version. Rail 729/729 on
this tree; SwiftFormat and SwiftLint clean.
v0.1.2
2026-12-03 16:44:07 +01:00
AlexKucera 653ca69d1f build(release): 0.1.2 release notes
Human-readable notes for 0.1.2 in the 0.1.1 shape: the image-drop
fix told for a reader who never saw the ticket (the macOS 27.2 drag
routing in one paragraph, what the editor does now, the two
deliberate refusals), known limits unchanged from 0.1.0, install
copy, suite 729 at the tag.
2026-12-03 16:43:53 +01:00
AlexKucera 1b0c23ae5b docs(release): clarify patch vs minor version bump in release skill 2026-12-03 16:41:39 +01:00
AlexKucera 46e87e678c fix(editor): editor owns file drops on macOS 27.2
Dropping an image file on the prose editor pasted the file path
instead of ingesting it (#141 follow-up, unticketed; dogfood on
macOS 27.2.1). #141 was field-verified on 27.0.1, where the
window-level SwiftUI dropDestination starved every deeper
destination; 27.2 routes a drag to the deepest destination, and a
live NSTextView registers itself for drag types, so its stock
performDragOperation pasted the path and the window destination
never fired — the same for a markdown file dropped on the editor.

The editor text views now share a FileDropTextView base that owns
the drops landing on them: URL-bearing drags route (never super) —
the prose editor through the one new AppGateState.routeFileDrop
(Cold Turkey guard, markdown → guest, anything else → ingestDrop),
which the window destination also uses for drops landing outside
the editor; the outline rows bounce; text-only drags keep the stock
drop; the pasteboard probe is memoized per changeCount. A web URL
refuses with the type strip, a vanished file refuses as missing.

+9 tests (a real NSDraggingInfo mock drives the overrides; the
router's guest/lock/ingest branches pinned), all flip-verified.
Finish-audit: three reviewers; the text-drag regression and the
outline rows' identical exposure fixed, two pre-existing ceilings
deferred in the devlog. Rail 729/729, swiftformat 0/153, swiftlint 0.
2026-12-03 16:36:47 +01:00
AlexKucera 64a7eaa37e docs: add buy me a coffee announcement to release runbook and readme
The release skill (0.2.0 → 0.3.0) now ends with a Buy Me a Coffee
announcement left as a draft, mirroring the Micro.blog draft: step 12
fixes the INPUT (`create`, `mode: "draft"`, `audience: "public"`) and
delegates the browser mechanics to the `buymeacoffee-post` skill, done
only when `RESULT.mode` is "draft" and `RESULT.editUrl` is a real edit
URL. Ego Browser logged in to BMC joins the prerequisites, and the
verification section checks both drafts. Neither announcement is ever
published by the agent; both wait in Alexander's queues.

The README gains a "Support Museion" section linking the Buy Me a Coffee
page, since the app suite is the author's only income.
2026-12-03 12:22:56 +01:00
AlexKucera d5a515091a docs(devlog): release 0.1.1 session log; release skill gains the Micro.blog draft step
Session log for the 0.1.1 cut: apex 1.1.59 refreshed first, bump + tag
4a056f9, rail 720/720 with the freshness proof, notarized DMG sha256
e7add45a…, the go (push + Gitea release id 28, token-authenticated
download byte-identical), and the Micro.blog announcement left as a
draft. The gotchas table carries the six post-go traps: silent
tea releases create, Gitea's tag_name, no PyYAML on the system python,
security add-generic-password needing </dev/null, and an account with
no default microblog.

Release skill 0.2.0: new step 11 posts the announcement to Micro.blog as
post-status: draft — token in the login keychain under its own service
(never the app's production micropub slot), mp-destination mandatory
because q=config shows three blogs and none is default, mp-channel
default, q=source read-back before reporting. Intro, Prerequisites,
Quick Reference, Pitfalls and Verification updated to match; root
AGENTS.md Child DOX Index row mentions the draft step.
2026-12-03 08:02:06 +01:00
AlexKucera 4a056f9c53 chore(release): 0.1.1
Bug-fix release. MARKETING_VERSION 0.1.0 → 0.1.1 on all six
target/configuration pairs (CURRENT_PROJECT_VERSION stays at 1);
CHANGELOG gains the [0.1.1] - 2026-12-03 heading over the external-watch
normalizer fix that sat under [Unreleased], a Changed entry for the
apex 1.1.59 refresh, a fresh empty [Unreleased] above, and a pointer to
docs/releases/0.1.1.md. Rail at this tree: 720/720.
v0.1.1
2026-12-03 07:47:43 +01:00
AlexKucera 570abb32c0 fix(reading): bump bundled apex to 1.1.59
The reading-mode renderer moves from 1.1.58 to the current upstream
release, packaged exactly as the 0.1.0 bundling (ADR-0011): the arm64
slice of the official universal release tarball, .sha256 verified against
the published checksum, the three CI/Homebrew rpaths stripped and
replaced by the single @executable_path/../Resources/libyaml.bundle,
Developer ID-signed with the hardened runtime. 1.1.59 still links
libyaml dynamically, so the vendored libyaml.bundle stays beside it;
--no-mixed-lists (ADR-0011's load-bearing flag) is still present. Proven
in a scratch Resources/ layout before the copy: --version reports
1.1.59 and a mixed bullet/ordered list renders as two lists.
2026-12-03 07:47:35 +01:00
AlexKucera bba4688dcb build(release): add the release skill and 0.1.1 release notes
.agents/skills/release/SKILL.md is the end-to-end runbook: refresh the
bundled apex renderer, bump, changelog heading, notes, the verify rail,
sliced commits, annotated tag, release.sh DMG, then a go-gated push and
Gitea release. Step one is now an unconditional apex refresh with the
full recipe inline (GitHub releases/latest → .sha256 → lipo arm64 →
strip every rpath → add the libyaml.bundle rpath → Developer ID sign
with the hardened runtime → prove it in a scratch Resources/ layout
before it touches the tree) instead of a "compare --version" check that
read as optional. Homebrew is a fallback only: its formula trailed the
GitHub release by a version on the 0.1.1 cut day. The skill bumps its
own version to 0.1.1.

docs/releases/0.1.1.md distills the CHANGELOG section for humans — the
false #67 conflict on BOM/CRLF guest files and the apex 1.1.59 refresh
— and becomes the Gitea release body. Root AGENTS.md gains the
.agents/skills/ Child DOX Index row.
2026-12-03 07:47:29 +01:00
AlexKucera 2d5073e421 Merge pull request 'museion/external-watch-compares-unnormalized-text: guest watch reads through the ONE shared external normalizer — false #67 conflict gone' (#203) from fix/external-watch-compares-unnormalized-text into main
CI / ci (push) Waiting to run
2026-12-03 07:36:51 +01:00
AlexKucera 07da076f41 merge main (3197b927) into fix/external-watch-compares-unnormalized-text (0.1.0 release wave)
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
Conflict resolution (keep-both, nothing from either side lost):
- CHANGELOG.md: the branch external-watch entry stays under [Unreleased]
  (unreleased fix, PR #203); the owner 0.1.0 release entries stay in [0.1.0].
- docs/devlog/INDEX.md: union of rows, newest-first — the 2026-12-01 release
  row above the 2026-11-30 external-watch row.

Purity: code dirs carry trunk 3197b927 hunks verbatim (diff-of-diffs cmp clean);
fix code and the branch devlog are byte-identical to reviewed 822b1b5.
2026-12-01 20:19:29 +01:00
AlexKucera 3197b9276e docs: add fonts section to readme
CI / ci (push) Canceled after 0s
Explain that Museion's typography uses commercial
Butterick typefaces that must be installed manually,
list the three faces with links, and note the system
fallbacks so users know the app works without them.
2026-12-01 15:23:20 +01:00
AlexKucera 23afcdf3b6 docs(devlog): notarization and apex bundling
CI / ci (push) Canceled after 0s
The release 0.1.0 log gains the chapter the first draft could not have:
the Developer ID creation workaround, the five script fixes the real
runs forced, the apex/libyaml bundling (1.1.58), and the gotchas table
rows for each. Open items now only the authorization-gated ones: tag
move, push, Gitea release, re-sign on certificate rotation.
2026-12-01 15:12:25 +01:00
AlexKucera fd806e9e76 fix(reading): ship apex with libyaml, signed
CI / ci (push) Canceled after 0s
The bundled apex had never run on a Mac without Homebrew: its release
build resolves libyaml through rpaths for its CI runner and the
Homebrew prefixes, and macOS ships no libyaml, so reading mode silently
fell back to the raw source for everyone else since #76. The notary
service rejected it too (an unsigned Mach-O in Resources), which is how
this surfaced during the 0.1.0 cut.

Resources/apex is now the arm64 slice of 1.1.58 (was 1.1.17), Developer
ID-signed with the hardened runtime, with one rpath that resolves in
the bundle and in the checkout alike. libyaml 0.2.5 rides beside it in
libyaml.bundle/, same team signature: a bare dylib in the synced folder
is classified by content and silently linked into the app, so the
.bundle wrapper is load-bearing. THIRD-PARTY-NOTICES.md ships with both
MIT texts; ADR-0011's bundling consequence is rewritten to match.
v0.1.0
2026-12-01 15:12:25 +01:00
AlexKucera 5f92241308 fix(release): make packaging survive real runs
The first real notarization runs exposed five ways the script lied or
stopped short. codesign's Authority output was grepped through a pipe,
so under pipefail a grep -q match SIGPIPEd codesign and a good export
read as "not Developer ID signed"; the dump is captured first. notarytool
--wait exits 0 for an Invalid submission, so the verdict is now the
status field of its JSON, with Apple's log printed on anything but
Accepted. The DMG itself is signed before submission (Gatekeeper's
open-assessment needs a signature for the ticket to ride), and the
staple is retried because the ticket can reach the CDN after Accepted.

Two checks run before anything is notarized: the exported app must not
link libyaml and the bundled apex must run from the export. Both would
have caught the broken bundle the first Accepted DMG carried. The
identity refusal now points at developer.apple.com + a Keychain Access
CSR, because Xcode 27.2's Manage Certificates refuses Developer ID
creation even for the Account Holder.
2026-12-01 15:12:25 +01:00
AlexKucera 217a87324e docs(devlog): release 0.1.0 session log
Milestone log for the release cut; INDEX row and the AGENTS.md window rebuilt from the ten newest rows (the 11-23 log had never entered the window).
2026-12-01 12:33:38 +01:00
AlexKucera d470615ac7 chore(release): 0.1.0
First release. MARKETING_VERSION 1.0 → 0.1.0 on all targets;
CHANGELOG gains the [0.1.0] - 2026-12-01 heading over the Unreleased
entries and a pointer to docs/releases/0.1.0.md.
2026-12-01 12:31:32 +01:00
AlexKucera 58355aa292 build(release): add release.sh and 0.1.0 release notes
scripts/release.sh cuts a release from an already-bumped commit:
archive → Developer ID export → UDZO DMG → notarytool → stapler,
refusing before any build when the Developer ID identity is missing
(the private key lives only on the Mac that created the certificate).
diskutil image create replaces hdiutil create, deprecated on macOS 27.

CHANGELOG.md stays the entry-by-entry record with issue numbers;
docs/releases/<version>.md is the human-readable distillation pasted
into the Gitea release (DOX contract in docs/AGENTS.md). dist/ is
gitignored. Root AGENTS.md: commands block, scripts index row, and the
Stack line corrected to macOS 27+ to match MACOSX_DEPLOYMENT_TARGET.
2026-12-01 12:31:32 +01:00
AlexKucera c10477da35 docs(readme): rewrite as feature list and usage guide
The README was a developer getting-started plus the Home section. For
the first release it now leads with what the app does — writing,
outlines, library, the Mentor loop, trends, publishing — grounded in
the shipped menus and shortcuts, then requirements, install, a quick
start, a shortcut table, and the development commands. Deployment
target corrected to macOS 27: the pbxproj says 27.0 and the old
"26.5+" was stale.
2026-12-01 12:31:31 +01:00
AlexKucera 822b1b562e docs: brief-32 session log, INDEX row, changelog entry
CI / ci (pull_request) Canceled after 0s
CI / ci (push) Canceled after 0s
Devlog records the class-site re-derivation (post-side rescan
disclosed as representation-consistent with evidence), the helper
location decision (EditorSession.swift beside readDocument — no
ceiling pressure, no new file), and the RED/GREEN evidence chain.
2026-11-30 22:19:19 +01:00
AlexKucera 70dd47ed8c fix(editor): normalize the guest watch's disk read
The external guest's watch read disk raw while the session's text and
lastFlushedText came through readDocument's normalizing external
branch, so diskTextChanged saw a difference on every BOM/CRLF file and
raised conflictAlert on unchanged content — re-arming after each
sibling directory event and after either alert answer, blocking
departures and quit until the user's own flush rewrote the file
normalized (finding museion/external-watch-compares-unnormalized-text,
argus cycle-6; unticketed, brief-32).

Extract the external branch (BOM strip + CRLF->LF) into
EditorSession.readExternalDocument(at:) — one shared normalizer, two
callers: the open read (readDocument) and the watch's onEvent. The #67
compare is now normalized-to-normalized; what readDocument loads is
unchanged.
2026-11-30 22:17:13 +01:00
AlexKucera b69ddd3963 test(editor): pin the external watch's false 67 conflict
CI / ci (push) Canceled after 0s
The external guest's watch (PostsModelImports.startExternalWatch)
reads disk raw while the session's text/lastFlushedText came through
readDocument's normalizing external branch (BOM strip + CRLF->LF), so
diskTextChanged raised conflictAlert on unchanged BOM/CRLF files —
re-arming after every sibling directory event and after either alert
answer, blocking departures and quit (brief-32, argus cycle-6).

Three RED pins over the real watch closure
(externalWatcher.onEvent): no conflict on an unchanged BOM/CRLF
guest, no re-arm after yes-reload or keep-local, and the load-bearing
negative — a real foreign write still raises. Targeted rail at base:
11 executed / 8 passed / 3 failed (all three new pins), 164
SwiftCompile lines.
2026-11-30 22:15:58 +01:00
AlexKucera 3bb178220f Merge remote-tracking branch 'origin/main'
CI / ci (push) Canceled after 0s
2026-11-24 08:56:30 +01:00
AlexKucera 5341c4ee53 Merge pull request 'fix(editor): Home repoint rides the departure gate; document identity is (Home, ID) [museion/home-repoint-retains-old-editor-target]' (#202) from fix/home-repoint-retains-old-editor-target into main
CI / ci (push) Canceled after 0s
2026-11-24 08:55:35 +01:00
AlexKucera cac66f6e76 docs(brief-28 r1): evidence classes, r1 verify line, changelog/index to 717
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
N-2: "Identity checks — evidence classes" — pinned (card hop-back,
rescan hoist, #179 guard) vs correct by construction (the Micropub
stamp) vs invariant-equivalent defensive depth (the synchronous sweep
and openPostID's gate: never independently observable under the
gate-first invariant — belt to the gate's suspenders, not
"every site test-verified"). Verify line for r1 at 92344e2: full rail
717/717, filtered 19/19, MF-1 mutation 9/8/1 restored byte-exact,
lint 0/0. Gotchas: the partial patch regeneration, the status/current
race. N-3 is the regenerated owner-apply patch beside the handoff.
2026-11-23 22:38:43 +01:00
AlexKucera 92344e224c test(editor): pin the rescan stale-Home verdict and the draft-survives repoint (review r1)
CI / ci (push) Canceled after 0s
MF-1: the hoisted `guard watchedHome == home` in rescan was live logic
with no pin — the only new guard still observable after the gate (a
scan started under A can sit in its detached hop while the gate passes
and bind flips to B; landing after B's own scan it would hold A's list
under the B binding until the next B-side event, which with nothing
open is never). `scanLibrary` is the per-model injectable library
scanner beside `scanPieceCards` (captured before the hop); the pin
parks an A scan past the repoint, lets B's scan land, releases, and
asserts the list is still B's and `contentRevision` did not move.

Mutation check: hoist removed → rail-filtered `9 executed / 8 passed /
1 failed`, ONLY that pin, `posts.map(\.id) → ["alpha"]` and
`contentRevision → 3` vs `revision → 2`; restored byte-exact (sha256
prefix d86ce09d6b7e6bd2 before and after).

N-1: the draft-survives-repoint decision pinned — newPost targets the
selected A piece's project, the draft rides the repoint intact, and
`saveDraft()` lands under B only, in the draft's OWN project even
though B does not have it (materialize creates with intermediates).

Filtered GREEN: PostsModelRepointTests + PostsModelDepartureTests
19/19. swiftformat 0/152, swiftlint 0.
2026-11-23 22:34:23 +01:00
AlexKucera 97712fbacb docs(brief-28): name the filter trap precisely — file name ≠ suite name
CI / ci (push) Canceled after 0s
The PostsModelTests.swift file holds free-function @Tests AND the
PostsModelWriteRailTests suite; the filter matched neither. The devlog
row said 'free functions' alone, which undersold it.
2026-11-23 20:26:54 +01:00
AlexKucera 108075239d docs(brief-28): session log, INDEX row, changelog entry
CI / ci (push) Canceled after 0s
Home repoint rides the departure gate — devlog with the pattern-
exhaustive identity table, the decisions (gate placement, nothing
auto-reopens, draft survives, refusal posture, the disclosed not-
converted sites), the gotchas (pollUntil's consuming probe, the
free-function filter trap, the current-session teardown shape), and
the Verify line: RED 6/6 at ca265d3b, full rail 715/715 at 8b0d43a,
stale-scan pin mutation-checked, lint 0/0.

The AGENTS.md DOX pass ships as an owner-apply patch beside the
handoff (~/daedalus-builds/museion/brief-28-agents-owner-apply.patch,
git apply --check clean against the branch head) — never written by
this session, per the brief's standing rule.
2026-11-23 20:26:27 +01:00
AlexKucera 8b0d43aed8 fix(editor): Home repoint rides the departure gate; document identity is (Home, ID)
CI / ci (push) Canceled after 0s
Settings committed the new Home and bind flipped watchedHome without
departing the open session: the session's immutable target kept the
OLD Home, a same-slug piece in the new library made the ID-only
reselect return it, and autosave/Save/quit wrote the old library
while structural operations resolved against the new one. #198's
departure gate never saw this seam; a no-collision piece was torn
down by the vanish path with its dirty buffer dropped.

The gate runs BEFORE anything commits. PostsModel.repoint(to:) is a
document departure through the same sessionMayDepart (all three legs:
unanswered #67, failed flush, never-loaded retype — no parallel
gate); on refusal nothing changes (preference, watchedHome, the
session's (A, id) target, its buffer), on acceptance the departed
piece's state dies with it. AppGateState.repointMuseionHome(to:)
commits the preference and its persistence only after the gate;
WorkspaceView's Settings binding routes through it and the root
.task(id:) binds the model after that commit — the dumb binder. A
refusal speaks the #198 reason the way #200's quit refusal does
(hosted-guarded alert: no Posts strip is in sight from Settings).
Nothing auto-reopens after an accepted repoint — the writer picks
from the new list; the in-memory draft survives (no Home until first
save; dropping it would drop the only copy).

Document identity is (Home, ID) everywhere — EditorSession.targets
is the pair, PostsModel.openSessionTargets the model-side question;
every ID-only session comparison is retired: select's reselect
no-op, openUnguarded, the structural rail (rename/trash/move/archive/
restore/unarchive + flushOrAbort), conversion, the pass guard (its
answer now carries the Home it validated), Micropub's launch, the
lock's arm/body reads. Async continuations re-validate identity at
COMPLETION: refreshCards (launch and hop-back — the old ID-only guard
let a scan from the previous library land its cards on the new
library's same-slug piece) and rescan (the stale-Home verdict is
hoisted: a scan that outlived a repoint applies nothing, not just
the vanish check; the #67 disk read runs only for a session targeting
the scan's own Home). scanPieceCards is the per-model injectable
scanner the deterministic stale-scan pin needs.

Tests: PostsModelRepointTests (7) move to the gated entry and go
green (17/17 with PostsModelDepartureTests — the #198 matrix stays
green and composes); the stale-scan pin's RED is a mutation check
(completion guard reverted to ID-only → only that pin fails, cards
→ ["Hedging"]; restored byte-exact). The #179 mid-pass repoint pin
drives the real Settings path now (repoint + bind). swiftformat 0/152,
swiftlint 0.
2026-11-23 20:23:57 +01:00
AlexKucera bce6abb38b test(editor): pin Home repoint as a document departure — RED at ca265d3
CI / ci (push) Canceled after 0s
PostsModelRepointTests (6 pins over a two-Home same-slug rig,
projects/posts/shared/post.md in both libraries): the gate runs
before anything changes (failed flush, unanswered #67, never-loaded
retype — sessionMayDepart's three legs), the same-slug piece opens
from B and saves there (flush AND quit), a no-collision repoint lands
the dirty buffer before tearing down, and a pass started after the
repoint runs against the new library.

RED at ca265d3bd3 on the rail
(-only-testing:MuseionTests/PostsModelRepointTests): 6 executed /
0 passed / 6 failed, zero compile errors — each on the finding's
signature: the retained A session under the B binding
(session.text = "A body, typed in A", targets(home: B) false), B's
edits landing on A's disk, watchedHome = B despite a refused flush,
and the no-collision vanish path dropping the dirty buffer.

The tests speak the Settings path as it exists at base (bind), which
has no gate to refuse through; the fix commit moves each repoint call
to the gated entry. EditorSession gains the pure identity predicates
the assertions speak in (targets(postID:home:) / targets(home:)) —
read-only, no behavior change.
2026-11-23 20:16:02 +01:00
AlexKucera 1df46a816f chore: remove GitNexus tooling
Session-log audit (3,393 tool executions, ~987 sessions) found near-zero information value: impact ratings systematically overridden (import-fanout inflation), detect_changes 45% zero-affected, structural index staleness (1,228 rebuilds). Extension, binaries, indexes and skill copies removed machine-wide on 2026-11-19.
2026-11-19 19:22:51 +01:00
AlexKucera ca265d3bd3 docs(issue-201): apply brief-25 AGENTS sentences
CI / ci (push) Canceled after 0s
Apply PR #198's consented owner-apply sentences to the
PostsModelWrites/PostsModelImports bullets: the departure gate
(sessionMayDepart/departOpenDocuments) and the guarded dismissal
(dismissExternal -> Bool) now name brief-25's contract. Patch
regenerated against merged HEAD (cbe16f0); git apply --check clean,
3-way clean, no other AGENTS.md content touched.

One disclosed deviation from round 1 (its accuracy-extension
precedent): "the same two gates" -> "the same gates" — #200's
finish-audit added a third sessionMayDepart leg (never-loaded
session hold), so "two" would contradict the adjacent flushOrAbort
clause.

Closes #201
2026-11-19 13:28:21 +01:00
AlexKucera cbe16f0442 docs(issue-200): log, changelog, AGENTS contracts
CI / ci (push) Canceled after 0s
Session log + INDEX row + rolling window, CHANGELOG Fixed entry,
and the #200 quit-gate contracts in the Museion/AGENTS.md chain
(delegate's two refusals, PostsModel shutdown/active, gate
family, wiring) plus the MuseionTests suite map rows — including
the PR #198 gap (PostsModelDepartureTests had never been listed)
and the gitnexus index-count refresh.
2026-11-19 13:18:26 +01:00
AlexKucera 2334afc392 fix(editor): quit rides the departure gate
shutdown() flushed both sessions best-effort and ignored the
results — quitting with an unanswered #67 conflict wrote local
text over the foreign disk body (flush() holds for conflicts
only in the debounce), and a failed quit-time flush silently
dropped the only copy of the edits.

Quit now routes through the same departure gate as navigation:
documentsMayDepart runs both sessions through sessionMayDepart,
and the failed-flush-at-quit posture is BLOCK QUIT —
applicationShouldTerminate (quitReply(posts:), before the Cold
Turkey ask) refuses termination with one spoken reason via a
hosted-guarded alert. PostsModel.active (weak, registered by
AppGateState.init — the WritingLockState.active precedent) is
the delegate's reachability.

Finish-audit fixes folded in: sessionMayDepart refuses a
never-loaded session's retyped words (its flush is a vacuous
success — the same gap closed for navigation); shutdown stays
void (no production reader of a Bool).

+5 pins (conflict hold, clean flush, guest flush, never-loaded
refusal, delegate refusal incl. chmod-injected flush failure),
all flip-verified. Rail 708/708; format+lint clean.

Closes #200
2026-11-19 13:18:19 +01:00
AlexKucera 55be3d1a2f Merge pull request 'fix(acp): engine backpressure cannot defeat deadlines or teardown [museion/acp-backpressure-defeats-timeout-and-shutdown]' (#199) from fix/acp-backpressure-defeats-timeout-and-shutdown into main
CI / ci (push) Canceled after 0s
2026-11-19 10:38:17 +01:00
AlexKucera 9ccfe83ec0 refactor(acp): land PR #199 audit fixes
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
Reviewer fanout (ponytail/security/general) over #199 found no
behavior defects. Apply the accepted non-behavioral findings:

- requestOutcome helper dedups the two outcome tasks; the two
  discarded wedge tasks drop their unread do/catch scaffolding
- awaitBounded doc names its real bound (window is green-world
  only; the RED-world watchdog is the fake's /bin/sleep 30 exit)
- send() gains a ponytail ceiling comment: queued sends are
  unbounded and a send racing close() writes onto a closed handle
  (benign, probe-verified) — bounded by the model's sequential
  sends; guard if a looping caller appears
- request() doc notes a timed-out request's bytes may still land
  on the wire (late replies dropped, ids never reused)

Suite 697/697 green post-change; format+lint clean.
2026-11-19 10:34:16 +01:00
AlexKucera ce21057586 docs(audit-199): record brief-27 writerQueue contract in the AGENTS chain 2026-11-19 10:17:47 +01:00
AlexKucera b2d01c852a Merge pull request 'fix(editor): guard document departure on failed flushes [museion/failed-flush-discarded-on-document-switch]' (#198) from fix/failed-flush-discarded-on-document-switch into main
CI / ci (push) Canceled after 0s
2026-11-19 09:45:30 +01:00
AlexKucera ae3b99c7ea docs: brief-27 session log, INDEX row, changelog entry
CI / ci (pull_request) Canceled after 0s
CI / ci (push) Canceled after 0s
Docs-only (code identical to the fix commit 89cd377, where the
697/697 suite ran): devlog carries the site-class enumeration with
disproofs, the decisions table, and the gates; CHANGELOG gains the
user-facing acp backpressure entry.
2026-11-17 22:36:56 +01:00
AlexKucera 89cd377814 fix(acp): engine backpressure cannot defeat deadlines or teardown
CI / ci (push) Canceled after 0s
A hung engine that stops reading stdin fills the 64 KB pipe, and
the client's synchronous send blocked its one serial queue — the
same queue that carries request deadlines, request registration,
and close()'s bookkeeping barrier. A blocked writer therefore
defeated the request timeout, starved Stop/lifecycle calls, and
made close() queue.sync behind the stuck write before SIGTERM was
ever reachable; EngineHost's MainActor close callers turned that
into an app-wide unbounded hang on restart or quit (argus probe:
2M-char request with 0.1 s timeout never timed out; a watchdog
close never returned).

Separate the writer from the state: stdin writes (and the stdin
handle's own close, which a blocked write may still own) now ride
a dedicated serial writerQueue, so the state queue is I/O-free —
deadlines fire, Stop is accepted, follow-up requests register,
and close() runs bookkeeping, SIGTERM -> grace -> SIGKILL -> reap
without ever queueing behind the writer. Wire order is preserved
(all send sites funnel through the one serial writer queue) and
the healthy-engine contract is untouched.

Focused serialized EngineSmokeTests: 6 executed / 6 passed at the
fix (3 of them RED at base on exactly the three mechanisms).
2026-11-17 22:27:49 +01:00
AlexKucera 33b7fe0f9f test(acp): pin blocked-writer backpressure regressions
CI / ci (push) Canceled after 0s
RED at base for the acp-backpressure finding: on the unfixed
transport a hung engine that stops reading stdin fills its pipe,
and the synchronous send wedges the client's one serial queue —
the request deadline never fires, follow-up bookkeeping starves,
and close() blocks behind the stuck write (argus probe: 2M-char
request, 0.1 s timeout, watchdog close never returned).

Three smokes over the existing rig, using a new neverRead fake
mode (execs /bin/sleep — the probe's inert non-reading child;
never a real profile): deadline fires while blocked, Stop +
bookkeeping answer while blocked, close returns bounded and reaps
the child. A fourth smoke (new serverPing fake mode) pins the
healthy contract — round trip, -32601 reply delivery over the
wire, idempotent clean close — and passes at base.

Focused serialized run at base: 6 executed / 3 passed / 3 failed
— exactly the three blocked-writer smokes fail, on mechanism.
2026-11-17 22:26:05 +01:00
AlexKucera ffb9457a63 integrate main: #193 PostsModel split (Watcher/Writes/Imports) into failed-flush departure guard
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
# Conflicts:
#	Museion/PostsModel.swift
#	docs/devlog/INDEX.md
2026-11-17 20:12:53 +01:00
AlexKucera bb4bfa2675 docs: #193 session log + distilled learnings
CI / ci (push) Canceled after 0s
Split PostsModel/WorkspaceView/PostsPaneView into 8 domain-extension
files (move-only, three audits concur; 693/693 via the verify rail).
One commit per source file precedes this log.

Closes #193
2026-11-17 18:00:10 +01:00
AlexKucera 2a02b95ed0 refactor(posts): split PostsPaneView into PostsLibraryColumn/LibraryPostRow (#193) 2026-11-17 17:55:47 +01:00
AlexKucera 70cd1c2b55 refactor(workspace): split WorkspaceView into ArchivePaneView/Sheets/Chrome (#193) 2026-11-17 17:39:39 +01:00
AlexKucera 902e860bd8 refactor(posts): split PostsModel into Watcher/Writes/Imports files (#193) 2026-11-17 17:39:39 +01:00
AlexKucera f50fecfc60 docs: gate-running learnings → full-test.sh rail
CI / ci (push) Canceled after 0s
Collapse #192: the root AGENTS.md testing learnings shrink to what
scripts/full-test.sh cannot encode. Eight gate-running recitals become
the one-line pointer; MuseionTests/AGENTS.md Verification names the
script instead of the raw xcodebuild line.

Deleted → encoded by:
- #30 flake ritual → --serialized rerun + no-concurrent-lint rule;
  pre-push no-push-while-live pid scan
- #31/#134 executed-count-not-banner + vacuous filters →
  xcresulttool-authoritative counts; zero-executed summary exits
  nonzero (full-test.sh:431-449)
- #178 parameterized @Test count arithmetic → summary-based counting
- #33/#179 newest-bundle race → per-run pinned -resultBundlePath
  (:190), each run polls its own dir
- #177 grep -c chain break → the script is the single gate command
- #177 build/test split under timeout cap → detached run (the split
  existed only to dodge the cap)
- #182 test-without-building stale green → obviation: rail builds+tests
  in one detached run; residual covered by no-push-while-live + kept
  #197 learning
- lint-gate scoping recital → scripts/hooks/pre-push header + push-
  delta scoping loop

Retained (script cannot encode): #197 stale binaries + FSEvent quiesce,
#162 ticker, #178 transport double, #33 keychain, #151 seam, #134
reboot remedy, #147 pair, #142/#143/#180/#181 format family.

Two-axis review (Standards + Spec subagents): spec PASS — all 8
mappings verified against script body, not header claims; standards
follow-ups applied (pointer scoped to its section; Commands-block
xcodebuild line marked ad-hoc/outside-the-rail).

Verify: swiftformat --lint 0/141, swiftlint 0 findings, full-test.sh
693/693; gitnexus detect-changes low, 0 flows.

Closes #192
2026-11-17 16:52:56 +01:00
AlexKucera d7fd11cf0d chore(lint): repo-wide green becomes the contract
CI / ci (push) Canceled after 0s
Close the lint arc #194-#197: deliberate-style rule disables with
rationales (#194), filter-safe test renames + --test-case-name-format
preserve (#195), every surviving warning fixed through the sanctioned
lint-stable shapes (#196), and the docs now state the true contract
(#197): bare swiftlint . reports zero violations and swiftformat .
reformats nothing, while push gates stay scoped to the push's own
files (settled #190 design) — the pre-push hook's stale 'pre-existing
violations' rationale blocks refreshed, gate logic untouched.

Also in the sweep: quiesce the FSEvent-burst watcher race in
LibrarySearchTests (two rescans double-count one shared PostScanCache
miss; benign revision over-bump), pin the learnings scan's symlink-skip
contract (flip-verified — defended in depth by the lstat guard AND
contentsOfDirectory's own symlink refusal), reorder that scan's guard
so cheap rejections precede the directory listing, and park the roster
chmod window with a ceiling comment.

Finish-audit: 3 reviewers, 0 blocking; the one code finding was
disproved by probe (&& out-binds ?? — the guard was correct). Suite
693/693 via scripts/full-test.sh; swiftlint 0 violations; swiftformat
0/141; hook rig 23/23.

Closes #197
2026-11-17 16:29:46 +01:00
AlexKucera 0ab00eb7b6 feat(scripts): verify rail + pre-push hook
CI / ci (push) Canceled after 0s
Port classis full-test.sh (071966e) as Museion's one-command verify
loop: run/start/status/summary over detached xcodebuild, per-run
pinned xcresult bundles with atomic run-dir allocation (#33/#179),
xcresulttool-authoritative counts (#31/#178), zero-match filters
fail (#31/#134), --serialized rerun is the record (#30/#147), per-
test timeouts + wedge observability (#134). Default scope:
MuseionTests.

install-hooks.sh + pre-push: no push while any run is live, lint
gate scoped to the push's Swift files (bare swiftlint . exits 2 on
main — spike/ + one tests file), autofix-rewrite guard. New-ref
pushes lint the merge-base delta vs refs/remotes/origin/main and
fail closed on unscopable history; a full-ref spelling defeats
refs/tags shadowing.

scripts/test-full-test.sh: 23-check acceptance rig with an
executed-count guard. Four finish-audit rounds; every guard
flip-verified both directions. Suite 692/692 through the rail
itself.

Closes #190
2026-11-17 12:14:12 +01:00
AlexKucera 9497661145 docs(devlog): brief-25 session log + INDEX row
CI / ci (push) Canceled after 0s
brief-25 [failed-flush-discarded-on-document-switch]
2026-11-16 21:01:06 +01:00