diff --git a/PLAN.md b/PLAN.md index 3737ab1..9d67b47 100644 --- a/PLAN.md +++ b/PLAN.md @@ -5,7 +5,8 @@ it's done; git history keeps the record. How to test is in [TEST.md](TEST.md). This project stays separate from CoreDesktop: Pop!_OS needs its own setup (apt, Flathub, COSMIC, Evolution), but it keeps roughly in step with -CoreDesktop's `configure`, with the same items, working the same way. +CoreDesktop's `configure`, with the same items, working the same way. It +supports Pop!_OS 26.04 and later only. ## Federated Calendar @@ -15,25 +16,39 @@ built for Pop!_OS yet: the [federated-calendar](https://gitea.federated.computer/Federated_Computer/federated-calendar) repo only has `build-aux/arch/`. -- [ ] Choose how to ship it. A Flatpak is the likely choice: upstream's - `build-aux/org.gnome.Calendar.json` is a starting point, it runs - the same on any Pop!_OS release, and it updates in the COSMIC Store with - Element. The other choice is a `.deb` in an apt repo on Gitea, which - would need building for each Ubuntu release. -- [ ] Build it in federated-calendar's Gitea Actions next to the Arch package, - and publish it (a Flatpak repo on Gitea, or a `.flatpakref`) -- [ ] Federated Calendar finds the Core in `~/.config/coredesktop/cores/*.conf`; - the connector writes `~/.config/federated-connector/cores/*.conf`. Have - Federated Calendar look in both, or the connector write both. A Flatpak - also needs read access to that folder (`--filesystem=xdg-config/...:ro`). -- [ ] Check that, without GNOME, it sees the Core's calendars in GNOME Online - Accounts and Evolution Data Server, as Evolution does. A Flatpak talks to - them over D-Bus (`--talk-name=org.gnome.OnlineAccounts`, - `org.gnome.evolution.dataserver.*`). -- [ ] Install it in `configure core`, after the calendars are added, and say - so in the README, alongside Evolution -- [ ] `update`: restart it after a new version, as CoreDesktop's PLAN.md - describes (it keeps running in the background after its window closes) +It will ship as a Flatpak, app ID `computer.federated.FederatedCalendar`: it +runs the same on every Pop!_OS release, and the COSMIC Store updates it, as it +does Element. Since 2026-11-28 another agent has been doing the +federated-calendar side, from a brief that asks it to: + +- build the Flatpak in federated-calendar's Gitea Actions, from upstream's + `build-aux/org.gnome.Calendar.json`, and publish a GPG-signed Flatpak repo + over HTTPS with a `.flatpakrepo` (Gitea doesn't serve one itself) +- bundle an EDS whose D-Bus interfaces match Pop!_OS 26.04's + evolution-data-server 3.56, and talk to it and Online Accounts 3.58 over + D-Bus (`--talk-name=org.gnome.evolution.dataserver.*`, + `org.gnome.OnlineAccounts`) +- find the Core in both `~/.config/coredesktop/cores/*.conf` and + `~/.config/federated-connector/cores/*.conf` (read-only `xdg-config` + permissions, paths built from the home folder, not the Flatpak's config + folder), so the connector keeps writing only its own +- restart itself after an update, through the Flatpak portal's update monitor, + once no event editor has unsaved changes. This replaces `update` restarting + it: the COSMIC Store, not `update`, installs the new version. +- report back the remote's name, the `.flatpakrepo` URL, the signing key's + fingerprint, the app ID and branch, and any permission or setup the + connector must add + +Here, once it reports back: + +- [ ] Install it in `configure core`, after the calendars are added: add the + remote from its `.flatpakrepo` (checking the key's fingerprint), then + the app, per user as Flathub is. Show it as to do in `configure` until + it's installed. +- [ ] Say so in the README, alongside Evolution +- [ ] A smoketest scenario for what a container can check (the remote and its + key, with a stand-in `flatpak`) +- [ ] The Federated Calendar checks in [TEST.md](TEST.md) ## Keep in step with CoreDesktop @@ -63,5 +78,14 @@ Not ported, and why: - [ ] Start the real opencode in its sandbox on Pop!_OS, to check it needs no socket the new `denyRead` list hides. Only a stand-in has run so far. -- [ ] The manual checks in [TEST.md](TEST.md) on a real Pop!_OS machine, - against a real Core. None have been done yet. + On the development machine (Pop!_OS 26.04, `configure` not yet run + there): `update`, then `configure agents`, then `opencode` in a project + folder in a new terminal. If it fails on a socket or a permission, fix + the sandbox config and add the case to `smoketest/scenarios/50-sandbox.sh`. +- [ ] The manual checks in [TEST.md](TEST.md) on Pop!_OS 26.04, against a real + Core. None have been done yet. Start with "AI agents and the sandbox" + (with the item above), then "Your Federated Core", which needs the + Core's Superpanel address and an email address and password on it. +- [ ] Moving the srt pin: when srt has a new release, change `SRT_VERSION` in + `configure.d/lib/tools.sh` and run `smoketest/run 50 80`. Commit only if + it passes. It's at 0.0.83, npm's latest on 2026-11-28. diff --git a/TEST.md b/TEST.md index 7423146..f19a249 100644 --- a/TEST.md +++ b/TEST.md @@ -69,14 +69,19 @@ ticks when the item changes. ### Federated Calendar -Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)): +Once it's packaged for Pop!_OS, as a Flatpak (see [PLAN.md](PLAN.md)): - [ ] It's installed by `configure core` and opens from the launcher -- [ ] It shows the Core's calendars that Evolution shows +- [ ] Its remote's signing key is the one federated-calendar publishes + (`flatpak remotes --show-details`) +- [ ] It shows the Core's calendars that Evolution shows, without GNOME +- [ ] It finds the Core from `~/.config/federated-connector/cores/`, with no + `~/.config/coredesktop` on the computer - [ ] An event with an invited email address sends the invitation from the Core, and updating and cancelling the event send those too - [ ] Adding a Jitsi meeting uses the Core's Jitsi server -- [ ] After `update` brings a new version, the new one runs +- [ ] After the COSMIC Store installs a new version, the new one runs, even + if it was running in the background; an event being edited isn't lost ### Tailscale @@ -115,6 +120,11 @@ Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)): ### AI agents and the sandbox - [ ] Each agent installs and signs in, and runs in the sandbox +- [ ] opencode, typed in a new terminal in a project folder, answers a prompt + in the sandbox, with no socket or permission errors +- [ ] With an srt other than `SRT_VERSION` in + `~/.local/share/federated-connector/srt`, `configure` shows the agents + item as to do, and running it installs the pinned version - [ ] Claude Code's notification, from Claude in COSMIC Terminal, shows the project folder, and clicking it brings COSMIC Terminal back - [ ] An AI server on the network or tailnet is found by `configure ai-servers`