Commit Graph
8 Commits
Author SHA1 Message Date
davidandClaude Opus 5.5 b609252e1c Pin srt to a tested version; support only Pop!_OS 26.04 and later
srt is pinned to 0.0.83, the version the smoketest passed with. A computer
with another version sees the agents item as to do in configure, which
installs the pinned one. Move the pin only after smoketest/run 50 80 passes.

The installer and configure stop on Pop!_OS (or Ubuntu) older than 26.04.
The smoketest builds on Ubuntu 26.04, with checks that 24.04 is refused.
26.04's own AppArmor profile lets bubblewrap make user namespaces, so the
connector's profile for it, and the code that offered to add it, are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:49:54 -07:00
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
davidandClaude Opus 5.5 0eff0c70d3 Taildrop to Downloads, exit nodes past captive portals, stay awake
Ports the rest of CoreDesktop's 9dc5eb1 that applies to Pop!_OS.

- configure tailscale turns on federated-connector-taildrop.service,
  which saves files sent here with Taildrop to Downloads and says so in
  a notification. COSMIC Files has no Scripts menu, so CoreDesktop's
  "Send with Tailscale" isn't ported; send with tailscale file cp.
  Leaving the network turns it off.
- It also installs a NetworkManager dispatcher script that stops using a
  Tailscale exit node while you sign in to a captive portal, and uses it
  again once online. Pop!_OS checks connectivity (20-connectivity-pop),
  so NetworkManager sees the portal.
- A computer joined before this shows Tailscale as to do, and configure
  tailscale adds both without signing in again. update restarts the
  Taildrop service on the new version, as it does the email watcher.
- install.sh keeps the computer from sleeping until an install or update
  finishes.

The pacman guard, unowned files and hardware.sh are Arch only.

Smoketest: 75-taildrop-portal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:06:31 -07:00
davidandClaude Opus 5.5 7185d6cb3e Sign in to sudo and polkit with a security key or fingerprint
Ports configure security-key and configure fingerprint from CoreDesktop's
9dc5eb1: touch a FIDO2 key or a finger instead of typing your password for
sudo and polkit, falling back to the password. Each shows only when the
hardware is there. The fingerprint skips to the password with the lid shut.

lib/pam.sh is CoreDesktop's, but also takes Ubuntu's "@include
common-auth" as the start of a stack's auth part, which is how sudo's and
polkit's begin. Only those two stacks change, not common-auth, which
pam-auth-update owns and every sign-in includes. libpam-fprintd's
pam-auth-update profile is off by default, so installing it changes no
sign-in by itself. The login and lock screens keep asking for the
password, unlike on GNOME.

Smoketest: 70-sign-in, on copies of Ubuntu's sudo and polkit stacks.
TEST.md: with a real key and reader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:03:41 -07:00
davidandClaude Opus 5.5 2952034654 Claude notifications: clicking one brings back the app Claude runs in
Ports CoreDesktop's 4fb3539.

The hooks ran notify-send from inside Claude, so the desktop couldn't tell
which app the notification came from and clicking it did nothing.
system/claude-notify finds the terminal or editor among Claude's parent
processes (or tmux's client, or the Flatpak) and names it in the
desktop-entry hint. The title shows the project folder and the body
Claude's own message.

configure agents writes the hooks through it, and swaps the old
notify-send ones for it, only where they're still the ones it wrote.
update doesn't change settings, so old hooks make configure agents to do
until it has swapped them.

Smoketest: 35-claude-notify. TEST.md: click one on COSMIC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:00:43 -07:00
davidandClaude Opus 5.5 dfb43c866c Find storage and AI servers on the tailnet, not only over mDNS
Ports CoreDesktop's 16e5a9c.

configure storage and configure ai-servers now also ask the other online
computers on the Core's tailnet, so a laptop away from home still finds
the MiniServer and the LLM box. A machine found both ways is listed
once, by its tailnet name, and tailnet servers mount at /mnt/<short name>.

Smoketest: 45-tailnet, with a stand-in tailscale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:58:18 -07:00
davidandClaude Opus 5.5 1445ad7bb1 Let Hermes' gateway reach only a Matrix server you've allowed
Ports CoreDesktop's e991264, 05b13b2 and d974b91.

configure agents allowed Hermes' gateway the host in MATRIX_HOMESERVER
from ~/.hermes/.env, which Hermes can write from inside its sandbox, so
it could open the way out to any host it chose. The allowed server is
now in ~/.config/federated-connector/sandbox/hermes.json, which no
sandbox can write. configure hermes is to do while Hermes names a server
you haven't allowed, and asks about only that; configure agents says so.
Only a plain host name counts, so it can't be a wildcard or carry escape
codes into the question. sandbox/agent no longer reads
FEDERATED_SANDBOX_DOMAINS. The server an old drop-in allows is carried
over, read from the drop-in itself, when the gateway starts and when
configure agents rewrites it, so a working gateway keeps working.

Agents could read ~/.config/federated-connector, which has the Core's
domain and user name; base.json now hides it.

edit_json treats an empty settings file like a missing one: jq reads no
JSON from an empty file and writes nothing back, so configure ai-servers
said a server was added while the sandbox still blocked it.

agent_path joined the last folder on PATH to ~/.local/bin, so an agent
there wasn't found when ~/.local/bin wasn't on PATH (e.g. in a service).

Smoketest: 55-hermes-homeserver, and 50-sandbox checks that an agent
can't read the connector's settings. PLAN.md drops what's done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:55:37 -07:00
davidandClaude Opus 5.5 bc07e1d3e3 Set up Pop!_OS for a Federated Core, like CoreDesktop's configure
A port of CoreDesktop's configure to Pop!_OS 24.04 with COSMIC, in the shape
of connector-macos: its own install.sh, update and configure, installed in
~/.local/share/federated-connector/connector.

Every configure item is ported: the Core (email, calendars and contacts
through GNOME Online Accounts and Evolution, as COSMIC has no accounts of its
own; Superpanel; files over davfs2; Element; Tally; the email watcher),
Tailscale, backups, AI agents in the sandbox and their sign-ins, languages
with mise, AI servers, printers, network storage and the agent sandbox.
Folders go in the COSMIC Files sidebar. Each item installs what it needs
from apt, Flathub or the tool's own apt repository when you set it up.

smoketest/run checks it in Ubuntu 24.04 containers with Docker.

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