diff --git a/CLAUDE.md b/CLAUDE.md index 8a9158d4..25fa6ed9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -231,6 +231,11 @@ the app's code, a lightning-kmp import, a file named for a wallet's pieces, or s ./gradlew :composeApp:compileDebugKotlinAndroid :composeApp:jvmTest ``` +quartz, marmot-kmp, mls-kmp and crypto-kmp come through Magpie, not Maven Central, so the +Gradle daemon runs on Java 21 and a machine's first build needs the network. A version of +any of them moves in the catalogue *and* `gradle/magpie.lock` together, and `check` fails +when they disagree ([docs/quartz-mls-marmot-update.md](docs/quartz-mls-marmot-update.md)). + `docs/scripts/` also holds the tools each phase was done with — `m3-spacing-positions.py`, `m3-touch-targets.py`, `m3-title-case.py` and the two string extractors — each of which takes `--list` to show the sites rather than the count. diff --git a/docs/README.md b/docs/README.md index c2baa0a8..74ad6dea 100644 --- a/docs/README.md +++ b/docs/README.md @@ -35,7 +35,7 @@ the [retired](./retired/) notes now. | [material-design-conformance.md](./material-design-conformance.md) | what the M3 foundations actually require, measured against all 43 screens — the colour pairing that renders the app's own proposals invisible, and eight phases that put the decisions back in the theme | | [marmot-v2.md](./marmot-v2.md) | bringing the group layer onto the Marmot current profile after the quartz 1.15.2 bump — the nine rules that reach this app, why the room's id and the routing id have to become two values, nine phases from reading both profiles to publishing before applying, the rollout that put new rooms on the current profile and retired the legacy KeyPackage slot, and the one fork the library cannot yet settle | | [marmot-kmp.md](./marmot-kmp.md) | moving the group layer off quartz's engine and onto marmot-kmp, mls-kmp and crypto-kmp — why staying on quartz 1.15.2 is staying on an engine that left, the 228 import lines and the one rule that places all but two of them, the group state on a device that must still open afterwards, nine phases that put the swap in one commit and the evidence around it, how often this app persists a group once a sent message no longer rewrites it, and the schema change that followed, opened from the version the app ships | -| [quartz-mls-marmot-update.md](./quartz-mls-marmot-update.md) | moving quartz, mls-kmp, marmot-kmp and crypto-kmp to their newest releases, phased and not yet built — why almost nothing the app calls has changed while the way the build reaches them has (Nostr + Blossom through Magpie, none of it on Maven Central), the go/no-go that is the owner's, marmot's own pins first and the newest second, and the lock that has to be written on a mac before it can be frozen | +| [quartz-mls-marmot-update.md](./quartz-mls-marmot-update.md) | moving quartz, mls-kmp, marmot-kmp and crypto-kmp to their newest releases, phased and built but for a mac and mls-kmp 1.4.0's release — why almost nothing the app calls has changed while the way the build reaches them has (Nostr + Blossom through Magpie, none of it on Maven Central), the go/no-go that is the owner's, marmot's own pins first and the newest second, and the lock that has to be written on a mac before it can be frozen | | [giza-wallet-removal.md](./giza-wallet-removal.md) | taking every wallet out of Giza, phased and built but for moving off the wallet library (7b). Covers why a Giza member declines a Bennu peer's wallet proposal instead of ignoring or signing it, why the wallet's kinds are retired rather than freed, why a recovery phrase stays as a key backup that has to derive the same npub and id byte for byte, and why the threshold crypto keeps the build tied to the wallet library until the last phase | | [member-admin-promotion.md](./member-admin-promotion.md) | making a member an admin and back, phased and built, promotion with a share and demotion with a refresh under the experimental enrollment, under three rules: every admin holds a share, every commit in a keyed room is a proposal until the group's threshold signature is on it, and a robust group keeps at least three admins. Covers why the commit rides inside the group's signature and the rule inside the group's state, which lets every device refuse an unsigned commit with the libraries as they are, why a member's own leave stays exempt, and why a removed admin comes back as an admin when re-invited today | | [member-row-actions.md](./member-row-actions.md) | every member row but your own offers every action that applies to that member, and an action you can't take now opens a screen saying what stands in the way and what would change it — phased and built. Covers the twelve reasons an action is refused today, why an unavailable item is marked rather than disabled, and why the explanation screen recomputes its reason instead of carrying it | @@ -103,6 +103,15 @@ diagnosis is corrected; 9 is the schema change 8 made necessary, opened from a database at the version the app ships. What they do not claim is in the status note: no manual upgrade of a profile with rooms that have real histories has been done, and that is still the last check before a release. +The quartz-mls-marmot-update note is that plan's D2 come due, and is built but for a +mac and a release. Phases 0 to 5a and the Linux half of 6 and 7 are done. mls-kmp 1.4.0 +(5b) waits for a release, Phase 6's iOS lock lines and the freeze wait for a mac, and +Phase 8 is the manual checks. Read it after the marmot-kmp note. Its headline is that the +code barely moved and the distribution did: the libraries are on Nostr + Blossom through +Magpie, and `gradle/magpie.lock` is now as much a part of the build as the catalogue. +Read its "What Magpie is" before touching either. Its Phase 3 has the one correction worth +knowing before reading a library's commit log as its release: mls-kmp drafted an epoch-0 +repair and removed it before 1.3.1 shipped. The ceremony-creation note is a phased plan that has been built. It reads as the subgroups note's Phase 10 followed through to the screens: read it after that phase, and its table of findings before any phase. Its second half diff --git a/docs/marmot-kmp.md b/docs/marmot-kmp.md index be6278ad..028d8acd 100644 --- a/docs/marmot-kmp.md +++ b/docs/marmot-kmp.md @@ -141,6 +141,12 @@ Gradle resolves to the highest, so the catalog has to name 2.7.3 deliberately an has to stay off any quartz API added after it. Moving both forward together is its own change, with marmot-kmp's own CI as the evidence. +*Superseded by [quartz-mls-marmot-update.md](./quartz-mls-marmot-update.md). The rule stands, +and the catalogue now names marmot 2.3.0's own pins `strictly` and moves past them one +evidenced step at a time. The versions do not: the app is on quartz 2.20.1, marmot-kmp 2.3.0, +mls-kmp 1.3.1 and crypto-kmp 2.1.1, all through Magpie, because none of them is on Maven +Central.* + **D3 — crypto-kmp is declared, not inherited.** It arrives transitively under both quartz 2.x and mls-kmp, but after this move the app imports `RandomInstance`, `sha256`, `Ed25519` and `X25519` from it directly in 27 places. A dependency the source names is a dependency @@ -811,7 +817,8 @@ before a release. components, which marmot-kmp has and the app has no screen for. `MarmotManager` as the app's engine — Phase 3 tries it in a test and Phase 7 names the reason to want it, and that is as far as this plan goes. Moving quartz past 2.7.3, which is D2's other half and -needs marmot-kmp to move first. +needs marmot-kmp to move first. *marmot-kmp has moved, and so has quartz: +[quartz-mls-marmot-update.md](./quartz-mls-marmot-update.md).* ## Where the numbers come from diff --git a/docs/quartz-mls-marmot-update.md b/docs/quartz-mls-marmot-update.md index 72c8b4ee..a6d6d4af 100644 --- a/docs/quartz-mls-marmot-update.md +++ b/docs/quartz-mls-marmot-update.md @@ -27,8 +27,18 @@ the way the build gets them has: That is read from source, not compiled. Phase 2 is where the compiler gets its say. -Researched on 2026-11-20 against the code at `b7de119e`. **Not built.** Each phase records -what it turned out to be, the way [marmot-kmp.md](./marmot-kmp.md) did, once it is done. +Researched on 2026-11-20 against the code at `b7de119e`. Each phase records what it turned +out to be, the way [marmot-kmp.md](./marmot-kmp.md) did. + +**Built but for a mac and a release**, on 2026-11-20. The app is on quartz **2.20.1**, +marmot-kmp **2.3.0**, mls-kmp **1.3.1** and crypto-kmp **2.1.1**, through Magpie 0.2.3, with +no Kotlin source changed. `check` is green and `jvmTest` runs 1392 tests in 183 classes with +0 failures. The old engine and the new agree both ways through three epochs. What is left: + +- **5b**, mls-kmp 1.4.0. It is tagged but released nowhere, so 1.3.1 stands. +- **Phase 6's mac half.** That is the iOS lock lines, then the freeze, then the audit's + iOS suffixes, in that order. +- **Phase 8**, the manual checks: real profiles, real Bennu and MDK peers, iOS on a device. | phase | what it is | |---|---| @@ -640,6 +650,38 @@ complete. That is why the freeze is not in this commit. failing with a pointer to this note when a catalogue version is bumped without its lock lines. +**Built.** + +**`magpieLockAudit`** runs `docs/scripts/magpie-lock-audit.sh --check` from `check`. It +reads the groups out of `settings.gradle.kts`'s `magpie { }` block, then the catalogue +libraries in those groups. Each one must be declared `strictly` (D3 enforced, which the +plan did not ask for and costs nothing) and have a `release` line for its root, `-jvm` and +`-android` modules. It was verified three ways: + +- a clean tree passes: 6 groups, 4 libraries, 0 problems; +- `mls = "1.4.0"` fails with four lines, one for not being strict and three for missing + lock lines; +- dropping one line from the lock fails the Gradle task, naming + `crypto-android:2.1.1`. + +The script's first run reported 8 groups and 0 libraries. `GROUPS` is a bash built-in (the +user's group ids), and the array had been named that. + +**The notes.** + +- **[marmot-kmp.md](./marmot-kmp.md).** D2 and the out-of-scope item each carry an italic + pointer here. Its phases are untouched. +- **`docs/scripts/marmot-kmp-imports.sh`.** Unchanged. `--check` still finds 0 references + to quartz's old engine, and the compile in Phase 2 is the evidence that its rule table + still describes where the classes live. Its header names the versions it was derived + against, and that stays true as provenance. +- **[README.md](./README.md).** The table row is updated, and there is a paragraph on + reading this note after marmot-kmp.md. +- **CLAUDE.md** gets a paragraph in "Checking your work": Java 21, the first build needs + the network, and a version moves in the catalogue and the lock together. + +The README at the repository root got its Java 21 paragraph in Phase 1. + ## Phase 8 — what a fixture cannot check None of these can be automated here, and all of them stand between this work and a release: