feat(microblog): add app token settings page and honest 5xx wording

The app token could only be entered in the publish sheet, and that
field came back only after a 401/403, so a saved token had no standing
way to be replaced or removed. The new Settings → Micro.blog page
writes the same `MicropubTokenStore` slot the sheet reads, with a
status row read back from the Keychain after every write so a locked
keychain fails visibly instead of claiming "stored". The sheet now
names the stored token a send carries when its field is hidden.

Micro.blog's errors arrive as HTML pages, never Micropub JSON, so
`decodeFailure` fell through to a bare `HTTP 503` that said nothing
about whose side it was on. Any 5xx without a JSON description now
reads "unavailable on their side — retry in a few minutes"; a
described 5xx keeps its description and a 4xx keeps the bare status.
One decode covers create, publish, q=config, and media uploads.

Docs: AGENTS.md bullets, CHANGELOG [Unreleased] Added/Fixed, and the
devlog for this task plus the 0.1.2 release log.
This commit is contained in:
AlexKucera committed 2026-12-04 15:06:00 +01:00
1 parent 9aa0314564
commit 6938826101
11 files changed
+272 -14

No files matched your search

@@ -0,0 +1,51 @@
# Release 0.1.2 — the macOS 27.2 image-drop fix ships
> **Date:** 2026-12-03
> **Type:** milestone
> **Reference:** Gitea release id 29 (tag v0.1.2); follow-up to #141 (unticketed fix, same-day)
## Goal
Ship the macOS 27.2 image-drop fix (this morning's `fix(editor)` work, finish-audited) as **0.1.2** — the first cut under the release skill's new patch-for-a-bug-fix rule — through the full runbook: apex check, bump, changelog heading, notes, rail, sliced commits, annotated tag, notarized DMG, then on Alexander's go: push, forge release, Micro.blog draft, Buy Me a Coffee draft.
## What Was Done
- **apex check (step 1):** GitHub `releases/latest` is still **v1.1.59** — identical to the bundled binary (published 2026-12-01). The shipped layout re-proven without any upgrade: exactly one rpath (`@executable_path/../Resources/libyaml.bundle`), `flags=0x10000(runtime)` + Developer ID authority, `--version` 1.1.59, and the load-bearing `--no-mixed-lists` check emits `<ul>` then `<ol>`. No `THIRD-PARTY-NOTICES.md` bump, no `### Changed` line. (The skill's "appears in `--help`" phrasing reads 0 because the help spells the flag `--[no-]mixed-lists`; the functional check is the evidence.)
- **Bump (step 2, first run of the new rule):** `MARKETING_VERSION` 0.1.1 → 0.1.2 in all 6 pbxproj occurrences; build-settings read-back prints 0.1.2. Bug-fix cut → patch, per the rule committed this morning (`1b0c23a`).
- **Changelog heading (step 3):** the former `[Unreleased]` Fixed entry moved under `## [0.1.2] - 2026-12-03` with the pointer line to the notes; a fresh empty `[Unreleased]` sits above.
- **Notes (step 4):** `docs/releases/0.1.2.md` in the 0.1.1 shape — the fix told for a reader who never saw the ticket, the two deliberate refusals, install copy, suite numbers. **README (step 5):** no change — it carries no version-specific copy; "macOS 27 or later" matches `MACOSX_DEPLOYMENT_TARGET = 27.0`.
- **Rail (step 6):** run `20261203T154235Z` (pid 41682) — **729/729**; swiftformat `--lint` 0/153; swiftlint 0. Freshness pinned on the test host's `Info.plist` reading **0.1.2** (zero `SwiftCompile` lines is expected — no Swift source changed).
- **Slices + tag (step 7):** `build(release)` (notes) · `chore(release)` (bump + changelog heading) · annotated tag `v0.1.2` on the DMG tree `c959b67`. The `chore(release)` body wrapped at 74–77 columns past a 72 check — amended (tree byte-unchanged, verified) and the still-local tag force-moved onto the amended commit per the runbook.
- **DMG (step 8):** `dist/Museion-0.1.2.dmg` — 3,167,265 bytes, **sha256 `2d0942ea1b5c01675feccc817424786f551b4ff4e1cc7aa8f60d016c54001913`**; mounted image: app `0.1.2`, apex `1.1.59`; `stapler validate` clean; `spctl` → `accepted, source=Notarized Developer ID`.
- **On go (step 10):** `git push origin main v0.1.2` (remote main `d183d735` — Alexander's own `chore: ignore .hermes directory` rode between the tag and the push; the tag stayed on `c959b67`); `tea releases create` → release **id 29**, `draft: false`, one asset at the local byte size, body ends with the `[Generated by AI]` marker; token-authenticated download sha256-identical to the local DMG.
- **Micro.blog (step 11):** draft posted to the main blog via `mp-destination` + `mp-channel: default` → 202, `Location: https://alexanderkucera.com/2026/12/03/164803.html`; read-back `q=source` → `post-status: draft`, download/release/notarized lines intact. **preview** `https://micro.blog/account/posts/239/preview/6088880`, **edit** `https://micro.blog/account/posts/239/edit/6088880`.
- **Buy Me a Coffee (step 12):** `bmc.js` `create`/`draft`/`public` → `RESULT.mode: "draft"`, **editUrl** `https://www.buymeacoffee.com/posts/5336222/edit`; task space finished.
## Gotchas & Fixes
| Problem | Root Cause | Fix |
|---------|------------|-----|
| The apex `--help` grep for `no-mixed-lists` printed 0 | The help spells the flag `--[no-]mixed-lists` | The functional check (`printf … \| apex --no-mixed-lists` → `<ul>` then `<ol>`) is the evidence; expect the literal grep to miss |
| The `chore(release)` body wrapped at 74–77 columns | Drafted wider than the 72 rule | Amended the message (tree verified unchanged), force-moved the still-local tag — after a push this would have been a new version |
| `status` reported done ~60 s after `start`, looking like a stale summary read | Warm incremental build + no Swift changes: the suite is that fast on this tree | Freshness pinned on the run-dir pid (41682) and the test host's `Info.plist` version (0.1.2), not on elapsed time |
| A `.hermes -> .agents` symlink appeared at the repo root mid-session | Hermes runtime artifact | Left untracked; Alexander committed `chore: ignore .hermes directory` (`d183d735`) which rode the release push |
## Files Changed
| File | Change Summary |
|------|---------------|
| `Museion.xcodeproj/project.pbxproj` | `MARKETING_VERSION` 0.1.1 → 0.1.2 (6 occurrences) |
| `CHANGELOG.md` | `## [0.1.2] - 2026-12-03` heading + notes pointer; fresh `[Unreleased]` |
| `docs/releases/0.1.2.md` | NEW — human-readable notes |
| `.agents/skills/release/SKILL.md` | (Alexander, `1b0c23a`) patch-for-a-bug-fix bump rule |
## Open Items & Next Steps
- [ ] Release live: https://git.babylondreams.de/AlexKucera/museion/releases/tag/v0.1.2 — DMG sha256 `2d0942ea…`, asset byte-identical on download.
- [ ] Both announcements sit as DRAFTS in Alexander's queues (Micro.blog preview link, BMC edit link) — he publishes; rotation of the Micro.blog announce token recommended if it ever pastes into a transcript.
- [ ] `/Applications/Museion.app` (0.1.1) should be replaced by the 0.1.2 DMG locally.
- [ ] Next session: nothing pending from this release.
---
*Log written by write-log skill*