From d5a515091a6b8cf0499d30c1f396c00ba028ca4a Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Thu, 3 Dec 2026 08:02:06 +0100 Subject: [PATCH] docs(devlog): release 0.1.1 session log; release skill gains the Micro.blog draft step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ' "], + "post-status": ["draft"], + "mp-destination": ["https://AlexKucera.micro.blog/"], + "mp-channel": ["default"]}} + req = urllib.request.Request("https://micro.blog/micropub", data=json.dumps(payload).encode(), + headers={"Authorization": f"Bearer {tok}", "Content-Type": "application/json"}, method="POST") + with urllib.request.urlopen(req, timeout=30) as r: + print(r.status, r.headers.get("Location"), r.read().decode()) + PY + ``` + Body: `docs/releases/X.Y.Z.md` is too long for a microblog post — distill it to a short announcement (what was fixed in plain words, the download link, the release-page link, "Developer ID signed and notarized"). A draft does NOT syndicate, so the `syndicate-to` targets in `q=config` (Mastodon/Bluesky/Threads) are not touched until Alexander publishes. Read back before reporting: `GET '/micropub?q=source&url='` must show `post-status: draft` and the content intact — a 2xx alone is not a result. Done when the read-back says draft and the report carries the `url` (the post's final address) and the `preview` link. `preview` is display-only — never the publish/update target. A token pasted into chat is in the transcript: recommend rotation after the run. +12. **Session log + DOX.** `write-log` for the release; the devlog commit follows the tag (the log is the record about the release, not part of it). DOX pass: root `AGENTS.md` (commands block, scripts index, session-log window) and `docs/AGENTS.md`. The log commit rides the next go. ## Quick Reference @@ -102,7 +131,8 @@ Run through the `terminal` tool. Each step ends on a check; the next starts when - Gatekeeper: `spctl -a -t open --context context:primary-signature -v dist/Museion-X.Y.Z.dmg` - Push: `git push origin main vX.Y.Z` - Release: `tea releases create --tag vX.Y.Z --target -t "Museion X.Y.Z" -f -a ./dist/Museion-X.Y.Z.dmg` -- Read back: `tea api '/repos/{owner}/{repo}/releases/tags/vX.Y.Z'` +- Read back: `tea api '/repos/{owner}/{repo}/releases/tags/vX.Y.Z'` (Gitea spells it `tag_name`, not `tag`) +- Micro.blog: `POST https://micro.blog/micropub` JSON `h-entry` + `post-status: draft` + `mp-destination` (mandatory — no default blog) + `mp-channel: default` → `202` + `Location`; read back `q=source&url=…` → `post-status: draft`. Token: Keychain service `com.babylondreams.Museion.release-announce`. Never publish. ## Pitfalls @@ -114,10 +144,14 @@ Run through the `terminal` tool. Each step ends on a check; the next starts when - A DMG built before the last binary or script change is stale: rebuild, re-notarize, and the sha256 in the report is the one that ships. - The tag moves only while local; after the push a fix is a new version. - `tea releases create` takes the tag via `--tag` OR the positional — both is "ambiguous arguments". `@file` bodies work only on `tea api`; releases take `-f `. -- The release asset download 404s without a token (private repo). Read the token from `~/Library/Application Support/tea/config.yml` into a shell variable for the `curl` — never print it. +- The release asset download 404s without a token (private repo). Read the token from `~/Library/Application Support/tea/config.yml` into a shell variable for the `curl` — never print it. `grep -E '^\s*token:'` + `sed` is enough; PyYAML is not installed on the system python. +- `tea releases create` prints NOTHING on success (exit 0, empty output). The `tea api` read-back is the only proof — and Gitea's release JSON has `tag_name`, not GitHub's `tag`. +- `security add-generic-password -w ` without `` → `post-status: draft`, content intact — and the draft sits in Alexander's posts awaiting his publish. diff --git a/AGENTS.md b/AGENTS.md index e9afb5d..6945145 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -115,7 +115,7 @@ When the user requests a durable behavior change, record it here or in the relev | `MuseionTests/AGENTS.md` | Swift Testing unit suite (hosted in the app) | | `MuseionUITests/` | XCUITest smoke test — single file, no child doc yet | | `scripts/` | Verify rail + hooks + build/deploy/release-packaging scripts — contracts live in each script's header; full-test.sh is the sanctioned verify rail (#190), release.sh cuts the DMG from an already-bumped commit, no child doc | -| `.agents/skills/` | Project-local agent skills (cross-tool convention, committed) — `release/`: the end-to-end release runbook (bump → notes → rail → tag → DMG → go-gated push + Gitea release); no child doc | +| `.agents/skills/` | Project-local agent skills (cross-tool convention, committed) — `release/`: the end-to-end release runbook (apex refresh → bump → notes → rail → tag → DMG → go-gated push + Gitea release → Micro.blog announcement as a draft); no child doc | | `docs/AGENTS.md` | Durable documentation — ADRs and their conventions | | `ref/writing skills/AGENTS.md` | Bundled writing-skill set — the G3a payload seeded into the museion profile | | `GLOSSARY.md` | Binding project glossary — shared vocabulary for app, mentor, and docs | @@ -175,7 +175,9 @@ Session logs live in `docs/devlog/` (one per completed task/issue/milestone). Fu | Date | Log | | --- | --- | +| 2026-12-03 | [20261203-release-011-apex-refresh-is-step-one_log.md](docs/devlog/20261203-release-011-apex-refresh-is-step-one_log.md) | | 2026-12-01 | [20261201-release-010-readme-notes-packaging_log.md](docs/devlog/20261201-release-010-readme-notes-packaging_log.md) | +| 2026-11-30 | [20261130-external-watch-compares-unnormalized-text_log.md](docs/devlog/20261130-external-watch-compares-unnormalized-text_log.md) | | 2026-11-23 | [20261123-home-repoint-retains-old-editor-target_log.md](docs/devlog/20261123-home-repoint-retains-old-editor-target_log.md) | | 2026-11-19 | [20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md](docs/devlog/20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md) | | 2026-11-17 | [20261117-acp-backpressure-defeats-timeout-and-shutdown_log.md](docs/devlog/20261117-acp-backpressure-defeats-timeout-and-shutdown_log.md) | @@ -183,6 +185,4 @@ Session logs live in `docs/devlog/` (one per completed task/issue/milestone). Fu | 2026-11-17 | [20261117-issue192-collapse-gate-running-learnings-into-verify-rail-pointer_log.md](docs/devlog/20261117-issue192-collapse-gate-running-learnings-into-verify-rail-pointer_log.md) | | 2026-11-17 | [20261117-issue197-repo-wide-swiftlint-green-documented-lint-contract_log.md](docs/devlog/20261117-issue197-repo-wide-swiftlint-green-documented-lint-contract_log.md) | | 2026-11-17 | [20261117-issue190-full-test-verify-rail-pre-push-hook_log.md](docs/devlog/20261117-issue190-full-test-verify-rail-pre-push-hook_log.md) | -| 2026-11-16 | [20261116-failed-flush-discarded-on-document-switch_log.md](docs/devlog/20261116-failed-flush-discarded-on-document-switch_log.md) | -| 2026-11-13 | [20261113-fold-typing-budget-pin_log.md](docs/devlog/20261113-fold-typing-budget-pin_log.md) | diff --git a/docs/devlog/20261203-release-011-apex-refresh-is-step-one_log.md b/docs/devlog/20261203-release-011-apex-refresh-is-step-one_log.md new file mode 100644 index 0000000..84f9cf7 --- /dev/null +++ b/docs/devlog/20261203-release-011-apex-refresh-is-step-one_log.md @@ -0,0 +1,76 @@ +# Release 0.1.1 — the apex refresh becomes step one + +> **Date:** 2026-12-03 +> **Type:** milestone +> **Reference:** tag `v0.1.1` → `4a056f9`; [docs/releases/0.1.1.md](../releases/0.1.1.md) + +## Goal + +Cut 0.1.1, a bug-fix release carrying the one fix that sat under `[Unreleased]` since 0.1.0 (the external-watch normalizer, PR #203), and land the release skill that ran it. + +## What Was Done + +- **Pre-flight.** Local `main` == forge at `2d5073e` (the #203 merge; Alexander pulled it mid-session). Developer ID identity present, `tea` default login present. `[Unreleased]` held exactly one entry — the fix that defines this release. +- **apex 1.1.58 → 1.1.59 (step 1).** GitHub `releases/latest` = v1.1.59 (published 2026-12-01, the day after the 0.1.0 cut). Universal tarball `.sha256` verified (`e75cd828…`), `lipo -thin arm64`, the three CI/Homebrew rpaths deleted, `@executable_path/../Resources/libyaml.bundle` added, Developer ID–signed `--options runtime --timestamp`. Proven in a scratch `Resources/libyaml.bundle/` layout before the copy: `--version` = 1.1.59, `--no-mixed-lists` renders `- a` + `1. one` as `
    ` then `
      `. 1.1.59 still links libyaml dynamically — the vendored dylib and the ADR-0011 recipe stay as they were. `THIRD-PARTY-NOTICES.md` bumped. +- **Bump.** `MARKETING_VERSION` 0.1.0 → 0.1.1 on all six target×configuration pairs; `CURRENT_PROJECT_VERSION` stays 1. Read back from `-showBuildSettings`: one unique value, `0.1.1`. +- **Changelog.** `## [0.1.1] - 2026-12-03` over the external-watch entry, fresh empty `[Unreleased]` above, pointer to the notes, a `### Changed` → `- **reading:**` line for the apex refresh. +- **Release notes.** `docs/releases/0.1.1.md` — bug-fix-sized: the false #67 conflict in plain language, the apex refresh, known limits pointing at 0.1.0's, install (replaces 0.1.1 in place), numbers (720 at the tag). +- **README.** Unchanged — `` placeholder, "macOS 27 or later" matches the 6× `MACOSX_DEPLOYMENT_TARGET = 27.0`, license pointer already covers apex + libyaml. +- **Rail.** 720 executed / 720 passed / 0 failed. Freshness proven, not assumed: run dir `_build/full-test/20261203T064608Z-Museion/` at 07:46:32 > last tree edit 07:45:51; `CpResource …/Resources/apex` at 07:46:10; the built test host's apex reports 1.1.59; 59 `SwiftCompile` lines. `swiftformat` 0/152, `swiftlint` 0/0/141, `shellcheck scripts/release.sh` clean. +- **Slices + tag.** `bba4688 build(release)` (skill + its DOX row + notes) · `570abb3 fix(reading)` (apex binary + notices) · `4a056f9 chore(release)` (bump + changelog heading). Working tree byte-identical to HEAD's tree at tag time (`git diff HEAD` empty). `git tag -a v0.1.1` on `4a056f9`. +- **DMG.** `release.sh`: archive → Developer ID export → UDZO DMG → signed → notarized → stapled. Four proofs: from the mounted image `Contents/Resources/apex --version` = 1.1.59 and `CFBundleShortVersionString` = 0.1.1, shipped apex carries exactly the one rpath, the app does not link libyaml, `stapler validate` OK, `spctl` → `accepted, source=Notarized Developer ID`. **sha256 `e7add45a9a577b36fa39864f1acfdfa9db72448311ffa459031a33344dd9d76b`**, 3,164,194 bytes. +- **Skill updated (mid-session, on Alexander's steer).** Step 1 went from "compare `--version`, upgrade if stale" to an **unconditional refresh with the full recipe inline** — the exact commands that until now lived only in the 0.1.0 devlog. Homebrew is a labeled fallback. Quick Reference line and three Pitfalls added; skill `version: 0.1.1`. + +## Decisions & Rationale + +| Decision | Rationale | +|----------|-----------| +| GitHub `releases/latest` is the apex source of record; Homebrew is fallback only | Live-checked during the cut: the Homebrew formula and the installed binary were both **1.1.58** while GitHub had 1.1.59. A `brew upgrade apex` printing "already up-to-date" would have shipped the stale renderer with a clean conscience | +| Step 1 is unconditional, not a comparison | The old wording read as optional and was skipped by habit — Alexander's steer. A bundled binary is stale by definition between releases | +| Scratch-layout proof BEFORE the copy into `Resources/` | A binary that fails `--no-mixed-lists` in `$TMPDIR` has touched nothing; the same failure in-tree costs a rail run | +| The apex bump is its own `fix(reading)` slice | Same shape as 0.1.0's `fd806e9`; the binary and its notices travel together, separate from the version bump | +| CHANGELOG `### Changed` entry for apex even though it's a patch bump | Common Changelog: anything a user can observe (renderer version) is recorded. 0.1.0 did the same for 1.1.17→1.1.58 | +| Homebrew variant's rpath loop tolerates absent paths (`2>/dev/null \|\| true`) | The Homebrew build carries `$(brew --prefix)/lib` instead of the CI paths; `install_name_tool -delete_rpath` fails on a path the binary lacks. The Done-check (exactly ONE rpath left) is the real gate | + +## Gotchas & Fixes + +| Problem | Root Cause | Fix | +|---------|------------|-----| +| `git log --oneline` showed `3197b92` as tip while `rev-parse HEAD` said `2d5073e` — looked like a corrupted state | `rtk` (terminal-output wrapper on PATH) mangles `git log` porcelain output; it dropped the merge commit and flattened the first-parent line | Trusted plumbing (`cat-file -p`, `rev-parse`, `describe`) and the forge (`ls-remote`), all of which agreed: `2d5073e` is a real merge, parents `3197b92` + `07da076`, tree `93dcb24`. Prefer plumbing when a wrapper is in the path | +| My first `origin/main` check printed `3197b92`, then minutes later everything said `2d5073e` | Alexander pulled the PR mid-session (reflog: `pull: Fast-forward`); my earlier read was correct at the time | Confirmed via `git ls-remote origin refs/heads/main` = forge truth before any write | +| The release skill itself was uncommitted (untracked `SKILL.md` + unstaged `AGENTS.md` row) at the start of a release that requires a clean tree | The skill was authored in the 0.1.0 session but never committed | Folded into `build(release)` — it is release tooling; Alexander approved | +| `find -newer rel.json` missed the extracted tarball files | Both were written in the same second | `tar tzf` for the layout, `find -name apex` for the binary | +| `full-test.sh status` prints no run directory | The script keeps it in `${FT_BASE_DIR:-$ROOT/_build/full-test}/-/` | Read `BASE` from the script; the run dir's mtime + the log's `CpResource` line are the freshness proof | +| `tea releases create` printed nothing on success | Normal — silent exit 0 | The `tea api` read-back is the proof; it showed release id 28, `draft: false`, one asset at the local byte size | +| First read-back script died on `KeyError: 'tag'` | Gitea's release JSON spells it `tag_name` (GitHub-shaped assumptions) | Read `tag_name`; recorded in the skill's Quick Reference | +| `python3 -c 'import yaml'` → `ModuleNotFoundError` reading the tea token | PyYAML isn't on the system python | `grep -E '^\s*token:'` + `sed` — no new dependency for a one-line read | +| `security add-generic-password … -w ` → "passwords don't match", nothing stored (read-back 0 chars) | Without a tty, `security` prompts for a retype | `' | Date | Type | File | Summary | |------|------|------|---------| +| 2026-12-03 | milestone | [20261203-release-011-apex-refresh-is-step-one_log.md](20261203-release-011-apex-refresh-is-step-one_log.md) | Release 0.1.1: apex 1.1.59 refreshed FIRST (full recipe now in the release skill), bump + tag 4a056f9, rail 720/720, DMG notarized; push on go | | 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 |