The platform now has `scope: 'shared'` for a dependency every account must be able to run, and the check that goes with it — world-executable, and every parent directory traversable. iris cannot use it yet, for a reason worth writing down rather than rediscovering: it BUILDS its binary in the sidecar rather than declaring it as a dependency, so there is nothing for the probe to judge. The remaining half is this sidecar installing into /usr/local/bin. Also corrected open item 3, which said a member's agent "cannot read it there". On alpha it can — /home/<owner> is mode 751, so an absolute path traverses. That is an accident, not a design, and 750 would break it silently. Stated that way so nobody concludes it already works. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
5.1 KiB
Iris — the decision record
Written 2026-08-20, the day the plugin was designed in conversation and first laid down. The decisions below are the conversation's residue; where one reverses later, record it here rather than deleting it.
Not a fork
Upstream (iris-screenshot on crates.io, github.com/brijr/iris) is used as-is. The obvious reason to
fork was authentication — iris has no --cookie/--header flags — and the decision was that flags are
the wrong mechanism anyway: credentials on command lines end up in transcripts and process lists. The
session lives in a browser profile the user signs into through the desktop plugin, and the capture
borrows a copy. The human authenticates; the agent only ever captures.
Build with cargo, in the sidecar
The owner's call: cargo is a declared dependency, installed before iris, and iris compiles from source on the machine. No prebuilt releases to host, no artefacts to cross-compile, and the plugin has no binary of its own to distribute.
The platform's installer deliberately has no build step (osDependencies installs packages and fetches
release binaries, nothing more), so the build lives in the one process the platform starts for a plugin:
the sidecar. First start compiles; later starts probe and skip. --locked honours upstream's lockfile —
the platform's frozen-lockfile principle, one language over.
Known consequence, accepted: distro cargo is usually too old. Upstream declares rust-version = 1.88; Ubuntu's apt cargo is ~1.75. The manifest still declares distro packages (right on Arch/Fedora,
and the honest default), and the sidecar checks the version before building and prints the rustup
one-liner when it refuses. Auto-running rustup's curl-pipe-sh was considered and rejected — that is a
decision the owner makes at a terminal, not one a sidecar makes silently.
No browser in osDependencies
Three reasons. Ubuntu's apt chromium is a snap stub, so a truthful package map does not exist across
distros. The user prefers Brave, which is Chromium underneath — same CDP, same profile format — so the
right declaration is "any of a family", which osDependencies cannot express. And the browser this
plugin wants is the desktop plugin's, because a browser nobody can see is a browser nobody can sign
in to. bin/iris-browser resolves brave → chromium → chrome at run time and fails with a sentence when
none exists.
The profile contract
~/.config/officer/browser-profile is the persistent, per-user profile. The desktop plugin's browser
should launch with --user-data-dir pointing there and --password-store=basic (portable cookie
encryption — keyring-backed cookies do not survive copying). Captures never open that profile directly:
the wrapper copies Local State, Default/Cookies and Default/Login Data into a throwaway profile,
which avoids Chrome's profile lock entirely and makes the persistent profile read-only to captures.
This contract predates the desktop plugin. When that plugin lands, this path is what it must honour.
Open items, in order of bite
- Nothing has run. No live install, no capture, no build. The whole verification table is owed.
- How chromiumoxide launches decides which wrapper branch runs. If it passes its own
--user-data-dir, the wrapper seeds cookies into that directory; if not, the wrapper appends its own ephemeral one. Both are written; neither is proven. Also unproven: that a seeded cookie copy is accepted (Chrome ties cookie encryption toLocal State, which is copied for exactly that reason). - Members. The wrapper isolates per-user by
$HOME, but the binary lands in the owner's~/.local/bin, and a confined member's agent cannot reliably reach it there — on alpha it happens to work only because/home/<owner>is mode 751, and 750 would break it with nothing reporting so. The platform now has the vocabulary for this (scope: 'shared'on an osDependency —docs/plugin-dependency-scope.md), but iris builds its binary rather than declaring it as a dependency, so the remaining half is this sidecar installing into/usr/local/bininstead. Deferred until the desktop plugin defines the member story; until then iris is owner-only in practice. - Cookie copy under a live browser. Copying a SQLite file mid-write can catch a torn state. Being
WAL does not make this safe — it is what makes the copy INCOMPLETE, because a recent write may live
only in
Cookies-waluntil the browser checkpoints it. This originally read "the cookie DB is WAL and short-lived reads are fine", which had the reasoning backwards: the wrapper copiedCookiesalone, so a session created moments earlier was the one guaranteed to be missing.-walis now copied alongside each database (-shmdeliberately is not — it is live shared memory, rebuilt on open). A torn read of the pair is still possible under a live browser and is still unverified. permissions: []is honest today (nothing platform-gated to protect) but means the owner cannot dock-gate or role-gate the plugin's existence. Revisit if an api/ or web/ arrives.