Files
connector-popos/PLAN.md
T
davidandClaude Opus 5.5 c84e6d3aa0 Start opencode's sandbox on Pop!_OS; lint and the smoketest now pass
The first run of lint and the full Docker smoketest since the CoreDesktop
ports found:

- opencode's sandbox didn't start. Its profile didn't allow all Unix sockets,
  so srt added its socket filter, which needs a user namespace inside
  bubblewrap, and Pop!_OS' AppArmor (bwrap-userns-restrict) denies that.
  opencode now allows them and hides their paths (/run/user, /run/dbus,
  Docker, Podman, Tailscale, X11, tmux, ssh-agent), as Hermes and Cline
  Desktop do. 80-security shows it still can't reach the session D-Bus.
- 80-security's agent list was named AGENTS, and 30-agents.sh, loaded later,
  replaced it with its own, so every sandbox check ran a command that
  doesn't exist. It's FAKE_AGENTS now.
- 50-sandbox's "can't" checks would pass if the sandbox never started; a
  check that it starts now comes first.
- shellcheck read a jq variable named done as bash's keyword (SC1010).

TEST.md says to install shellcheck and Docker, which the connector doesn't.
PLAN.md: pin srt, try the real opencode, and settle on 24.04 or 26.04.

make lint passes. smoketest/run --tier all passed every scenario but 50 and
80 before the opencode change, and 50 and 80 pass after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:59:14 -07:00

79 lines
4.0 KiB
Markdown

# Plan
What's left to do in the Federated Connector for Pop!_OS. Delete an item once
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.
## Federated Calendar
CoreDesktop installs Federated Calendar (based on GNOME Calendar, adds
invitations and Jitsi meetings) from the `[federated]` pacman repo. It isn't
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)
## Keep in step with CoreDesktop
Last compared with CoreDesktop at `4e9b962` (2026-11-28). Port what applies to
Pop!_OS, then move this marker to the CoreDesktop commit compared with. To see
what's new:
```
git -C ../coredesktop log --oneline <marker>..HEAD -- configure configure.d sandbox system
```
Nothing to port since `4e9b962`.
Not ported, and why:
- `ffbaf71` Keep other machines on the network from reaching Docker
containers: only if the connector ever installs Docker
- From `9dc5eb1`: the pacman guard, unowned files and `hardware.sh` (System76
does its own), and "Send with Tailscale" (COSMIC Files has no Scripts menu)
- From `05b13b2`'s security checks: network exposure (ufw, Docker, sshd), which
the connector doesn't install
- Arch or GNOME only: `e14a345` and `ba4dc17` (login screen logo), `1e2581d`
(kernel modules), `d456e31` (initramfs), `5d7db2c` (reboot after update:
Pop!_OS' own updates handle this)
## Pop!_OS-specific
- [ ] Pin srt. `configure.d/lib/tools.sh` installs the latest
`@anthropic-ai/sandbox-runtime`, so a new release reaches every computer
untested. One already broke opencode's sandbox: srt's Unix socket filter
needs a user namespace inside bubblewrap, which Pop!_OS' AppArmor
(`bwrap-userns-restrict`) denies. opencode now allows all Unix sockets
and hides their paths instead, as Hermes and Cline Desktop do. Pin a
version the smoketest passed with, and move the pin only after
`smoketest/run 50 80` passes on the new one.
- [ ] 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 development machine runs Pop!_OS 26.04, but the smoketest still builds on Ubuntu
24.04 and smoketest/README.md says 24.04. Decide which release the
connector supports, and test on it.
- [ ] The manual checks in [TEST.md](TEST.md) on a real Pop!_OS machine,
against a real Core. None have been done yet.