From 4cff831b76c141dda3f5c7ff8905bdc422616a86 Mon Sep 17 00:00:00 2001 From: mnovak Date: Wed, 25 Nov 2026 14:17:09 +0100 Subject: [PATCH] [repo] ReleaseFirstApkKey: The apk step lists no keys, because Custos makes rosea-android only at its first signature and preflight refused the first run --- .agents/features/android-release-apk.md | 3 +++ .agents/reviews/fix-release-first-apk-key.md | 19 +++++++++++++++++++ .fabrica/artifex/release.yaml | 5 +++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .agents/reviews/fix-release-first-apk-key.md diff --git a/.agents/features/android-release-apk.md b/.agents/features/android-release-apk.md index dd8b777..9447c22 100644 --- a/.agents/features/android-release-apk.md +++ b/.agents/features/android-release-apk.md @@ -62,6 +62,9 @@ flowchart LR Custos and Mark, not to this repository: a Custos change that adds `rosea-android` (`CN=Rosea Domi`, only `mnovak/Rosea`, pipeline `release`) and its install on this PC, or Mark's *Create Android key* by hand. `fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here. + **Answered 2026-11-25:** Custos 0.25's Android grant (`mnovak/*`, given by Mark) makes `rosea-android` at its + first signature. So the `apk` step lists no `keys:`: preflight refuses a listed key that does not exist yet, + which stopped the first v0.1.0 run (r9j7b2sqmzdjg) before it built anything. - **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-android`, every update must carry the same certificate (CLAUDE.md §8). The CN names the product, *Rosea Domi*, and the name is still provisional. The key outlives a rename: a renamed app keeps the old CN, and no player sees it. diff --git a/.agents/reviews/fix-release-first-apk-key.md b/.agents/reviews/fix-release-first-apk-key.md new file mode 100644 index 0000000..504fc7f --- /dev/null +++ b/.agents/reviews/fix-release-first-apk-key.md @@ -0,0 +1,19 @@ +# Review — `fix/release-first-apk-key` + +**What:** the release pipeline's `apk` step no longer lists `keys: [rosea-android]`. The first v0.1.0 run +(`r9j7b2sqmzdjg`) was refused at preflight: "Custos has no key rosea-android (step apk)". Custos 0.25 makes that +key only at its first signature, under Mark's Android grant. + +## Findings + +1. **Does the step still get its key?** `keys:` is only a preflight check (Fabrica docs/23_preflight.md: "Preflight + checks that such a key exists; its scope is the script's to state"). `sign-apk.ts` still asks custos-sign for + `rosea-android`, scoped to `mnovak/Rosea` and the `release` pipeline, and `sign-apk.test.ts` still pins that. + Culina's and Medicus's pipelines leave the key out for the same reason. +2. **What is lost:** after the first release, a missing key is caught at the `apk` step, not seconds before the + build. *Deferred:* put `keys: [rosea-android]` back once the key exists, after v0.1.x is published. +3. **Soul, privacy, reachability, offline:** no code that reaches a player changed. +4. **Test honesty:** `fabrica artifex check` passes (2 pipelines, 0 problems). Nothing tests the preflight list. + What proves it is the next hub run getting past preflight, which is not yet run. + +**Scope:** one YAML step, its header comment, and A6 in `android-release-apk.md`. diff --git a/.fabrica/artifex/release.yaml b/.fabrica/artifex/release.yaml index a812b99..9d028d9 100644 --- a/.fabrica/artifex/release.yaml +++ b/.fabrica/artifex/release.yaml @@ -4,7 +4,7 @@ # CLI) runs every gate of CLAUDE.md §5.5 on a clean checkout, the e2e and offline suites against the BUILT PWA, # takes the Aula pictures on demo data (e2e/aula.spec.ts), and builds the Windows installer and the Android APK. # Nothing is signed before Mark's card. Then: Authenticode on the installer (domi-code-signing); the APK through -# custos-sign with rosea-android (NOT made by Custos on its own: android-release-apk.md A6, until then `no_key`); a minisign +# custos-sign with rosea-android (Custos 0.25 makes it under Mark's Android grant at its first signature); a minisign # signature for each (domi-release); the release with SHA256SUMS signed by domi-release. # No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates # through Fabrica's Update all; a player installs the next file over the old one (F3). @@ -82,8 +82,9 @@ steps: files: ["**/*-setup.exe"] - id: apk needs: [approve] + # No `keys: [rosea-android]`: preflight checks that a listed key exists, and Custos makes rosea-android only at + # its first signature, so the list refused the first release (run r9j7b2sqmzdjg). Culina's and Medicus's way. run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }} - keys: [rosea-android] artifacts: ["target/release/rosea-domi-*-arm64.apk"] - id: minisign needs: [sign, apk]