[tauri] ApkKey: Sign the APK with Mark's Custos key rosea-domi-android, and let preflight check it again

This commit is contained in:
2026-12-02 14:57:16 +01:00
parent 69f8b74c9d
commit a2176563eb
9 changed files with 60 additions and 28 deletions
@@ -0,0 +1,29 @@
# Review — `fix/rosea-domi-android-key`
**What:** the APK is signed with Mark's Custos key `rosea-domi-android`, not `rosea-android`.
Mark made the key himself under that name and keeps it (relayed by Aula, 2026-12-02). Two release runs
of v0.1.0 (`r9j7b2sqmzdjg`, `rwyv2j3bazfv9`) were refused at preflight for `rosea-android`, a key
that was never made.
**Changed:** `APK_KEY` in `sign-apk.ts` and its test. The `apk` step now lists `keys: [rosea-domi-android]`
again: the key exists, so preflight can check it (PR #10 removed the list only because the key didn't
exist yet). The pipeline header, A6 in `android-release-apk.md`, `fabrica-release.md`, GAP G-F7,
FEATURES and HANDOVER use the new name. Earlier reviews and lessons keep the old one as history.
## Findings
1. **The name is forever.** An APK signed with this key *is* Rosea on Android. No APK has been signed with
either name yet (G-F7 is still open), so changing it now costs no player anything. After v0.1.1 it can
never change again. The comment in `sign-apk.ts` says so.
2. **Scope.** custos-sign still asks for `mnovak/Rosea`, the `release` pipeline and a tag. Whether Mark's key
allows that scope is Custos's to check at the card. *Not verified here*, since this session can't see the
vault. If the scope differs, the `apk` step fails at signing, not at preflight.
3. **Does the test fail on the old name?** `sign-apk.test.ts` pins `--key rosea-domi-android` and
`APK_KEY`. Putting `'rosea-android'` back fails both assertions.
4. **Soul, privacy, reachability, offline:** nothing a player sees changed.
5. **Not verified:** that preflight passes with the new name. That is shown only by the v0.1.1 run on the hub.
**Scope:** one constant, its test, one pipeline step and the docs that name the key.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, `pnpm test` 646 passed (schema 19, identity 5, release 8,
cpu-guard 13, storage 70, content 88, art-prep 80, tauri 92, ui 92, engine 179); `fabrica artifex check` 0 problems.