Compare commits

..
2 Commits
Author SHA1 Message Date
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
2 changed files with 54 additions and 12 deletions

No files matched your search

+10
View File
@@ -64,6 +64,16 @@ Running a pass on an unaided first draft captures four style metrics — burstin
- A provider API key for the model the mentor should run on (Settings ▸ Provider Keys). - A provider API key for the model the mentor should run on (Settings ▸ Provider Keys).
- A [Micro.blog](https://micro.blog) account — only if you publish. - A [Micro.blog](https://micro.blog) account — only if you publish.
### Fonts
Museion's typography is set in Matthew Butterick's typefaces. They are commercial, so the app does not ship them — install them yourself (open each `.otf` in Font Book):
- **[Valkyrie OT](https://practicaltypography.com/valkyrie.html)**, the B cut — body text, document titles, the mentor's prose.
- **[Concourse OT](https://practicaltypography.com/concourse.html)** — headings and your side of the conversation.
- **[Ubuntu Mono Nerd Font](https://www.nerdfonts.com/font-downloads)** — code and syntax dimming (free).
Without them Museion still works: the editor falls back to the system font (SF Pro), Reading mode to Georgia. The spacing is calibrated on the real faces, so install them for the intended look.
## Install ## Install
Download `Museion-<version>.dmg` from [Releases](https://git.babylondreams.de/AlexKucera/museion/releases), open it, drag Museion to **Applications**. Download `Museion-<version>.dmg` from [Releases](https://git.babylondreams.de/AlexKucera/museion/releases), open it, drag Museion to **Applications**.
@@ -33,6 +33,26 @@ feature list and usage instructions now that the codebase is stable.
`docs/AGENTS.md` Local Contract for `docs/releases/<version>.md` + Child DOX Index row. `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 - Three commits (`docs(readme)`, `build(release)`, `chore(release)`) and annotated tag `v0.1.0` on
the last. 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; - 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 `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 ran (38 s); DMG step proven on the dev-signed archive app (3.3 MB UDZO, mounts, signature
@@ -62,6 +82,13 @@ feature list and usage instructions now that the codebase is stable.
| `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 | | `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 | | `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 | | 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 ## Files Changed
@@ -75,21 +102,26 @@ feature list and usage instructions now that the codebase is stable.
| `.gitignore` | `dist/` | | `.gitignore` | `dist/` |
| `AGENTS.md` | Stack line → macOS 27+; commands block `release.sh`; scripts index row; session-log window | | `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 | | `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 ## Open Items & Next Steps
- [ ] Alexander: create the Developer ID Application identity on this Mac (Xcode ▸ Settings ▸ - [ ] Authorization to commit the reading-renderer fix (`fix(reading): …`), the `release.sh`
Accounts ▸ Manage Certificates… ▸ + ▸ Developer ID Application — Account Holder only) or hardening (`fix(release): …`), and this log — then move the still-local tag:
import the `.p12` from the Mac that holds the private key. `git tag -f v0.1.0 <release commit>` so the tagged tree is the one the DMG was built from.
- [ ] Alexander (for notarization): `xcrun notarytool store-credentials museion-notary --apple-id … - [ ] Only on explicit go: `git push origin main v0.1.0`, then the Gitea release with
--team-id 3M7APDAAC5 --password <app-specific password>` — the secret never leaves his hands. `dist/Museion-0.1.0.dmg` attached and `docs/releases/0.1.0.md` as the body.
- [ ] Then `./scripts/release.sh` → `dist/Museion-0.1.0.dmg`; mount test, `spctl` should read - [ ] When the Developer ID certificate rotates: re-sign both bundled binaries (ADR-0011 has the
`accepted, source=Notarized Developer ID`. one-liners), otherwise notarization fails on the stale team signature.
- [ ] Only on explicit go: `git push origin main v0.1.0`, then the Gitea release with the DMG - [ ] apex upgrades: same recipe (download the universal release tarball, verify `.sha256`, lipo,
attached and `docs/releases/0.1.0.md` as the body. rpaths, sign) — ADR-0011. Ask upstream for a statically linked build so the dylib dance
- [ ] README's "signed and notarized" sentence is true only after the step above lands — revert disappears.
to the Gatekeeper-workaround wording if notarization is skipped.
- [ ] Optional: a screenshot for the README (launch the archive build, `screencapture -l <window>`).
- [ ] Pre-existing, not touched: Release build emits `Text +` deprecation warnings in - [ ] Pre-existing, not touched: Release build emits `Text +` deprecation warnings in
`TrendsPaneView.swift:389–391`. `TrendsPaneView.swift:389–391`.