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.
This commit is contained in:
AlexKucera committed 2026-12-01 20:19:29 +01:00
commit 07da076f41
15 files changed
+515 -74

No files matched your search

@@ -0,0 +1,130 @@
# Release 0.1.0 — version bump, README rewrite, release notes, DMG packaging
> **Date:** 2026-12-01
> **Type:** milestone
> **Reference:** tag `v0.1.0` at `d470615` (local; push + Gitea release pending Alexander's go)
## Goal
Cut the first release: bump to 0.1.0 with a git tag, a DMG shareable on Gitea, a human-readable
release-notes document (CHANGELOG.md is too dense for a release page), and a README with a real
feature list and usage instructions now that the codebase is stable.
## What Was Done
- `Museion.xcodeproj/project.pbxproj`: `MARKETING_VERSION` 1.0 → 0.1.0 on all three targets (six
configs). `CURRENT_PROJECT_VERSION` stays 1. Verified in a real Release archive: Info.plist reads
`0.1.0` / `1`, `LSMinimumSystemVersion` 27.0, binary arm64 only.
- `CHANGELOG.md`: `## [0.1.0] - 2026-12-01` heading over the former Unreleased entries, empty
`[Unreleased]` above, pointer to the release notes.
- `README.md`: rewritten. Intro → features (Writing, Outlines, Library, The Mentor, Measuring
progress, Publishing, Rails) → requirements → install → quick start → shortcut table → the
Museion Home (kept, plus a folder-layout block) → development commands → license. Every feature
line grounded in `MuseionApp.swift` (menus/shortcuts), `Museion/AGENTS.md`, and CHANGELOG entries;
nothing from the PRD's ambitions.
- `docs/releases/0.1.0.md`: the distilled notes — what's in it, the milestones closed (M0–M6 plus
the post-v1 extensions), install, known limits, numbers. This is the Gitea release body.
- `scripts/release.sh`: archive → `-exportArchive` with `method: developer-id` → UDZO DMG
(`diskutil image create from`) → `notarytool --wait` → `stapler staple` → `spctl` assessment.
Preflight refuses before any build when no `Developer ID Application` identity is in the
keychain. `NOTARIZE=0` skips notarize+staple. Output `dist/Museion-<MARKETING_VERSION>.dmg`
(version read from build settings, not from the pbxproj text). `.gitignore` gains `dist/`.
- DOX: root `AGENTS.md` commands block + scripts index row + Stack line (macOS 27+, see gotchas);
`docs/AGENTS.md` Local Contract for `docs/releases/<version>.md` + Child DOX Index row.
- Three commits (`docs(readme)`, `build(release)`, `chore(release)`) and annotated tag `v0.1.0` on
the last.
- **Signing prerequisites (Alexander, this Mac):** Developer ID Application identity created through
developer.apple.com + a Keychain Access CSR (Xcode's Manage Certificates refuses even for the
Account Holder); `notarytool store-credentials museion-notary` registered by Alexander.
- **`scripts/release.sh` hardened by the real runs:** capture `codesign -dvv` before grepping
(pipefail + `grep -q` SIGPIPEs codesign → false "not Developer ID signed"); read notarytool's
status FIELD (`--wait` exits 0 on Invalid; JSON goes to stdout only — no output-path option);
sign the DMG before submitting (Gatekeeper's `spctl -t open` on the image needs it); retry the
staple 6× (ticket can lag "Accepted"); two shipped-layout proofs before notarizing — apex must
run from the export and the app must not link libyaml.
- **Reading renderer made self-contained (`Museion/Resources/`):** `apex` → 1.1.58 (the
bundle had 1.1.17; the official universal release tarball, `.sha256` verified), arm64 slice,
rpaths replaced by the single `@executable_path/../Resources/libyaml.bundle`, Developer ID–signed
with `--options runtime`; `libyaml.bundle/libyaml-0.2.dylib` (0.2.5 from Homebrew's Cellar, install
name `@rpath/libyaml-0.2.dylib`) beside it, same identity; `THIRD-PARTY-NOTICES.md` (both MIT
texts fetched from the source repos). `--no-mixed-lists` still exists in 1.1.58 (ADR-0011's
requirement). ADR-0011's Bundling consequence rewritten; `Museion/AGENTS.md`
reading-mode line; README license pointer; CHANGELOG `**reading:**` entry.
- Final DMG: `dist/Museion-0.1.0.dmg` 3.0 MB — notarization **Accepted**, staple valid, `spctl`:
DMG and the app inside both `accepted, source=Notarized Developer ID`; apex runs from the mounted
DMG with the bundled libyaml.
- Verification: `scripts/full-test.sh` at the tagged commit — 717 executed / 717 passed / 0 failed;
`shellcheck scripts/release.sh` clean; `bash -n` clean; preflight refusal exercised; archive step
ran (38 s); DMG step proven on the dev-signed archive app (3.3 MB UDZO, mounts, signature
verifies inside).
## Decisions & Rationale
| Decision | Rationale |
|----------|-----------|
| No wayfinder map — direct session | The skill's own test: no fog, one session. The only real decision (signing) was a question for Alexander, not a ticket. |
| `v0.1.0` tag with the `v` | The convention Gitea release pages expect; annotated so it carries a message. |
| Tag AFTER the docs commits | The tagged tree must contain the README and release notes it describes. |
| DMG, no zip | Same effort with `diskutil image create`; DMG is what Mac users expect. |
| `docs/releases/<version>.md` over a root `RELEASE_NOTES.md` | Scales per release, lives under the docs contract, reviewable in the commit; the Gitea release body is pasted from it. |
| `archive` + `-exportArchive` (method `developer-id`) over a plain Release build with `CODE_SIGN_IDENTITY` overrides | The Xcode-sanctioned distribution path — identical to Organizer's export, so a GUI fallback matches. Preflight guarantees no portal-side surprise from `-allowProvisioningUpdates`. |
| arm64 only | `MACOSX_DEPLOYMENT_TARGET = 27.0`; macOS 27 does not run on Intel, so a universal binary is dead weight. |
| Developer ID + notarization | Alexander has a Developer ID (not yet on this Mac). Without notarization Gatekeeper still blocks on Sequoia+ regardless of the signing cert, so Developer ID alone buys nothing for the downloader. |
| `diskutil image create from` over `hdiutil create` | hdiutil create is deprecated on macOS 27 (warning on every run); the replacement produced an identical UDZO image. |
| Stale README "macOS 26.5+" → 27+ | pbxproj `MACOSX_DEPLOYMENT_TARGET = 27.0` on all six configs and `Museion/AGENTS.md` already said 27.0; the root Stack line was corrected to match. |
## Gotchas & Fixes
| Problem | Root Cause | Fix |
|---------|------------|-----|
| `codesign -dv` prints no `Authority=` lines — the script's Developer-ID check would have false-failed on the real run | Authority chain needs `-dvv` | `codesign -dvv` in both the check and the diagnostic echo |
| `hdiutil create` warns "deprecated. Please use 'diskutil image create…'" on macOS 27 | Apple moved image creation under diskutil | `diskutil image create from --format UDZO --volumeName … <stage> <dmg>`; kept `hdiutil detach` for the busy-volume guard (not deprecated) |
| `security find-identity -v -p codesigning` showed only `Apple Development` despite Alexander having a Developer ID | A Developer ID private key exists only on the Mac that generated the CSR; the portal copy is useless without it | Preflight names the Xcode path (Settings ▸ Accounts ▸ Manage Certificates ▸ + ▸ Developer ID Application) or a `.p12` import from the other Mac |
| `git log --oneline` hid the merge commit `3bb1782` and read as if HEAD were `cac66f6` | This machine's log config suppresses merges in short logs | Trust `git status --branch` and `git show -s` for ancestry; the snapshot's "ahead 2" was the merge + one chore commit |
| AGENTS.md session-log window was one log stale (11-23 missing) | The 11-23 write-log did not refresh the window | Window rebuilt from INDEX's 10 newest rows |
| Xcode ▸ Manage Certificates ▸ + ▸ Developer ID Application: "This operation can only be performed by the Account Holder" — for the Account Holder | Xcode caches the team role as Admin on Xcode 27.2 / macOS 27.2 (documented by others on the same combo) | Website route: Keychain Access ▸ Certificate Assistant CSR → developer.apple.com ▸ Certificates ▸ + → download `.cer` → `security import` (not `open`, which strands an "Add Certificates" dialog). Script header + refusal message point there now |
| First notarization: `notarytool --wait` passed, `stapler` failed "Record not found" | Submission was **Invalid**, not slow: `--wait` exits 0 on Invalid, so `set -e` walked on | Script reads the status field from `--output-format json` (stdout only) and prints Apple's log on anything but Accepted |
| Apple's log: `Contents/Resources/apex` "does not have the hardened runtime enabled" | Xcode never signs Mach-Os in Resources — the bundled apex was ad-hoc linker-signed | Sign apex at commit time with Developer ID + `--options runtime`; Xcode copies and seals it as a resource |
| Deeper: the bundled apex could never run on a clean Mac | apex's release build links `@rpath/libyaml-0.2.dylib` with rpaths for its CI runner, `/usr/local/lib`, `/opt/homebrew/lib`; macOS ships no libyaml → reading mode silently fell back to source for every non-Homebrew user since #76 | Vendor `libyaml.bundle/libyaml-0.2.dylib` beside apex, same team signature (library validation), one rpath that resolves in bundle AND checkout; proved by removing the dylib ("Library not loaded") and restoring it |
| `Museion/Resources/libyaml-0.2.dylib` → `ld: library 'yaml-0' not found`; and `otool -L Museion` showed `@rpath/libyaml-0.2.dylib` with nothing in Frameworks | Xcode's synced-folder classifier treats a dylib in the folder as the APP's link target — would have shipped an app that can't launch | Extension-less still linked (Xcode sniffs Mach-O content); a `.bundle` folder is an opaque resource → `libyaml.bundle/`. `release.sh` now refuses if the app links libyaml and runs apex from the export |
| `spctl -a -t open … Museion-0.1.0.dmg` → "rejected, source=no usable signature" after a successful notarize+staple | The DMG itself was unsigned; the image-level assessment needs a signature for the ticket to ride | `codesign --timestamp --sign "$SIGNER" "$DMG"` before submitting |
| `lipo … -out` → usage dump | The flag is `-output` | `lipo in -thin arm64 -output out` |
## Files Changed
| File | Change Summary |
|------|---------------|
| `Museion.xcodeproj/project.pbxproj` | `MARKETING_VERSION = 0.1.0` ×6 |
| `CHANGELOG.md` | `[0.1.0] - 2026-12-01` heading + notes pointer |
| `README.md` | Full rewrite: features, requirements, install, quick start, shortcuts, Home layout, development |
| `docs/releases/0.1.0.md` | New — distilled release notes (Gitea release body) |
| `scripts/release.sh` | New — Developer ID export → notarized DMG |
| `.gitignore` | `dist/` |
| `AGENTS.md` | Stack line → macOS 27+; commands block `release.sh`; scripts index row; session-log window |
| `docs/AGENTS.md` | `docs/releases/<version>.md` contract + index row |
| `Museion/Resources/apex` | 1.1.58 (was 1.1.17): arm64 slice, single rpath → `libyaml.bundle`, Developer ID + hardened runtime (committed signed) |
| `Museion/Resources/libyaml.bundle/libyaml-0.2.dylib` | New — vendored libyaml 0.2.5, install name `@rpath/libyaml-0.2.dylib`, Developer ID–signed |
| `Museion/Resources/THIRD-PARTY-NOTICES.md` | New — apex + libyaml MIT notices (ships in the bundle) |
| `docs/adr/0011-apex-html-reading-pipeline.md` | Bundling consequence rewritten (vendoring, signing, `.bundle` rationale, re-sign on cert rotation) |
| `Museion/AGENTS.md` | Reading-mode line: bundled apex facts + `.bundle` rule |
| `README.md` | License section points at the third-party notices |
| `CHANGELOG.md` | `**reading:**` entry under 0.1.0 Fixed |
## Open Items & Next Steps
- [ ] Authorization to commit the reading-renderer fix (`fix(reading): …`), the `release.sh`
hardening (`fix(release): …`), and this log — then move the still-local tag:
`git tag -f v0.1.0 <release commit>` so the tagged tree is the one the DMG was built from.
- [ ] Only on explicit go: `git push origin main v0.1.0`, then the Gitea release with
`dist/Museion-0.1.0.dmg` attached and `docs/releases/0.1.0.md` as the body.
- [ ] When the Developer ID certificate rotates: re-sign both bundled binaries (ADR-0011 has the
one-liners), otherwise notarization fails on the stale team signature.
- [ ] apex upgrades: same recipe (download the universal release tarball, verify `.sha256`, lipo,
rpaths, sign) — ADR-0011. Ask upstream for a statically linked build so the dylib dance
disappears.
- [ ] Pre-existing, not touched: Release build emits `Text +` deprecation warnings in
`TrendsPaneView.swift:389–391`.
---
*Log written by write-log skill*
+1
View File
@@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa
<!-- write-log: full-index -->
| Date | Type | File | Summary |
|------|------|------|---------|
| 2026-12-01 | milestone | [20261201-release-010-readme-notes-packaging_log.md](20261201-release-010-readme-notes-packaging_log.md) | Release 0.1.0: version bump + tag, README feature/usage rewrite, distilled release notes, release.sh (Developer ID DMG, notarize); rail 717/717; Developer ID cert pending |
| 2026-11-30 | fix | [20261130-external-watch-compares-unnormalized-text_log.md](20261130-external-watch-compares-unnormalized-text_log.md) | Unticketed fix (brief-32, argus cycle-6): the external guest's watch reads through the ONE shared external normalizer — the false #67 conflict on unchanged BOM/CRLF files (re-arming after sibling events and alert answers, blocking departures/quit) is gone; real foreign writes still raise; RED-first 3 pins over the real watch closure; rail 720/720 |
| 2026-11-23 | fix | [20261123-home-repoint-retains-old-editor-target_log.md](20261123-home-repoint-retains-old-editor-target_log.md) | Unticketed fix (brief-28, argus cycle-5): a Home repoint is a guarded document departure — the gate runs before the preference/binding commit, the refusal keeps Home A and the buffers; document identity is (Home, ID) across the model and re-checked at async completion (card scan, rescan — both mutation-checked); RED-first 6/6 at ca265d3b, review r1 +2 pins (rescan hoist, draft survives); rail 717/717 |
| 2026-11-19 | fix | [20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md](20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md) | Quit routes through the departure gate (#200): conflict-held shutdown, BLOCK-QUIT at applicationShouldTerminate, never-loaded-retype guard; finish-audit fixes; rail 708/708 |