Dependencies

Everything the recipe installs, grouped by source. Each ./ship.sh launch resolves the newest tool releases once, then installs those releases. Re-running apply upgrades an existing host. The installer verifies downloads against publisher checksums and refuses releases without them. Optional Koncreet failures produce a warning instead. See Latest releases and Neovim and LazyVim for source builds and Git downloads without publisher checksums, and Agent skills for the kun skill. Neovim downloads its plugins on first start, not during apply. The installer records resolved releases in ~/.local/share/crewship/resolved.json for the container smoke checks. blueprint/ansible/tasks/verify.yml also checks that Herdr and omp run the resolved releases. ./ship.sh chart installs none of this.

CA trust and security minimums

launch first disables the four Mozilla emSign entries in /etc/ca-certificates.conf. If those entries change, it rebuilds the system CA store without the initial inspection. Otherwise, it inspects the existing store and rebuilds only if that inspection fails. It checks the CA bundle and hashed certificate directories before Ansible's first network lookup. It then refreshes signed APT metadata, upgrades ca-certificates to the latest available package, and checks trust again. The disabled roots are emSign Root CA - C1 and G1, and emSign ECC Root CA - C3 and G3. An interrupted rebuild is retried when the effective trust store is still unsafe, even if all four configuration entries already match. The certifi advisory states: “Certifi 2026.10.18 removes root certificates from "emSign" from the root store.” chart checks the existing trust store without upgrading packages. If that check fails, update the system trust store before requesting a release preview. The earlier bootstrap downloads require an already trusted system CA store.

Node still follows the newest release, with minimum versions of 22.23.4, 24.22.1, and 26.12.1 in their respective major lines. The installer rejects older or unsupported releases. It checks extracted executables before promotion and installed executables before linking them onto PATH. A rejected archive leaves no installed artifact, so a corrected release can be retried. Newer major lines remain eligible.

The recipe also directs new shell and user-service processes to the filtered system CA store. It writes .profile, .bashrc, and ~/.config/environment.d/60-crewship-trust.conf. SSL_CERT_FILE, REQUESTS_CA_BUNDLE, and PIP_CERT select /etc/ssl/certs/ca-certificates.crt. NODE_OPTIONS appends --no-use-system-ca --no-use-bundled-ca --use-openssl-ca to disable conflicting selectors and preserve unrelated Node flags. Unlike --use-system-ca, this option replaces Node's bundled trust instead of adding system trust to it. PIP_USE_DEPRECATED=legacy-certs disables pip's additive truststore backend, so PIP_CERT does not retain pip's vendored roots. The version floors alone do not remove all compromised roots from published runtime bundles. These settings do not modify installed CA bundles or add unused Python packages.

The default recipe does not add Python's pip or certifi packages when they are absent. The repository lock excludes both packages, and uv creates the pruner and tool environments without pip seeds. Adding unused packages would add another trust store without serving a runtime need. The repository, pruner, and fdu environments require pip>=26.2.2 and certifi>=2026.10.19 when those packages are present. After creating or updating the repository, pruner, and fdu environments, the recipe uses uv with system certificates to enforce these floors. See Instagram Python environments for the isolated Instagram commands. onboard.sh handles the repository environment selected by uv, including UV_PROJECT_ENVIRONMENT. When uv is available, ship.sh does not run this repository-environment updater. The updater uses uv, not the environment's pip. The fdu installer selects the newest available releases even when UV_RESOLUTION requests older versions. uv pip is a uv command, not a Python pip installation. The optional desktop packages bring Ubuntu's python3-certifi through websockify and requests. Ubuntu patches that certifi to use /etc/ssl/certs/ca-certificates.crt, so its trust update comes from ca-certificates. The recipe does not replace distribution Python packages with PyPI packages.

For separately managed Python environments, select filtered system trust as described above before further pip downloads. Then update any installed certifi and pip packages to the minimum versions above before updating Node. Environments created outside Crewship remain outside this recipe. The certifi advisory, pip release notes, and Node advisory describe the fixes. The sources do not prescribe a combined update order.

Diagrams

The agents profile installs the latest published Ondine release from the npm registry. It uses the existing bun installer with versioned prefixes, registry integrity checks, and command links. No new profile or schema setting is needed. The public diagram rule makes Ondine the default when profiles.public_skills is on.

Run ondine diagram.mmd to render compatible Mermaid source as diagram.svg, then link the SVG from Markdown. The documentation uses Ondine's GitHub image blocks with light and dark variants. Each <!-- ondine:... --> marker preserves the original source without data loss, with an added accTitle that describes the flow. The public service at ondine.sh renders the source encoded in each image URL. Do not send private diagrams to this service. Use ondine file.md --svg to write local SVG files instead.

To edit a documentation diagram, run ondine file.md --restore, edit the restored fence, then run ondine file.md. Run ondine file.md --check to check the result without writing files.

Schedule viewer

tools/schedules/package.json declares the OpenTUI dependency. tools/schedules/bun.lock records the exact versions, including native platform packages. This is Crewship's own application dependency, so the lockfile stays checked in. The existing Bun tool runs its native TypeScript API. Provisioning installs production dependencies with --frozen-lockfile --ignore-scripts. The read-only collector uses Python's standard library. See Schedule viewer for its controls and inventory limits.

Repository tooling

onboard.sh, pyproject.toml, uv.lock

Instagram Python environments

The listener, poller, reply command, and curator run instagrapi in isolated uv environments with certifi>=2026.10.19. Isolation prevents older pip or certifi packages in the base interpreter from entering these environments. The commands also use --no-project so the current project's dependencies cannot add an older pip. uv does not seed pip here, so no pip copy needs an update. See CA trust and security minimums for host trust setup before dependency downloads. Already-running listeners keep their existing environment until restarted; this change applies to their next launch.

Latest releases

scripts/provisions.py. Native tools are linked into ~/.local/bin; the npm-registry tools are each installed with bun add -g (bun's global directory pointed at ~/.local/share/crewship/<tool>/<version>, so ~/.bun stays untouched; bun checks the registry integrity) and linked from there. Superseded versions stay on disk. For gh and gh-axi, these links select managed wrappers instead of the upstream executables. The installer resolves at most four independent release sources at once. Tools from the same GitHub repository share one release lookup per apply. Each npm metadata request has a 10-second socket timeout. If /latest times out or returns HTTP 5xx, the installer tries the full package document once and reads dist-tags.latest. Both requests use the same timeout, without extra retries or a cache. Final lookup errors include the URL and attempt count, including incomplete reads, invalid npm JSON, and missing npm metadata fields. The installer downloads and extracts at most four native assets at once. Every native installation must pass verification before registry setup starts. The installer runs at most four independent registry installations at once. Plugin setup starts only after those installations succeed. Bun output stays in one labeled block per package, including command failures.

The GitHub API allows 60 unauthenticated requests per hour per IP. Shared IPs, such as CI runners, can reach this limit. When the API answers HTTP 403 or 429, the lookup prints a message and reads the same release from github.com's public pages instead. Those pages have no request budget: the releases/latest redirect gives the tag (the release Atom feed, for no-mistakes), and the release's asset list shows each asset's SHA-256 digest. If the prerelease API list is empty or contains only drafts, the lookup also uses the Atom feed and public asset pages. Only the tools a run installs are resolved, so an unused source cannot fail the run. The lookups use GITHUB_TOKEN from the environment that runs ./ship.sh launch or ./onboard.sh, if set. The token goes to the GitHub API only. Container builds take the token as the optional BuildKit secret github_token (docker build --secret id=github_token,env=GITHUB_TOKEN ...). The token never enters the image.

vphone-linux

vphone profile. vphone-linux runs a virtual iPhone on Linux with QEMU, so agents test iOS apps on the host and need no Mac or iOS Simulator. Apply clones the latest release tag into ~/.local/share/crewship/vphone-linux and moves a clean checkout to each newer tag, with its submodules. A checkout with local changes, such as your build, stays on its tag, and apply prints a warning. The releases publish no assets and no checksums, so git checks the tag's objects. Apply builds nothing and starts no VM. It needs an x86_64 host with a Vulkan GPU, 16 GB RAM, about 100 GB of disk and sudo. Run ./setup/setup.sh, then ./setup/create-vm.sh, in the checkout. See the upstream setup for the steps.

Neovim and LazyVim

Every host gets Neovim. Apply copies the vendored LazyVim starter from blueprint/config/nvim/ when ~/.config/nvim is missing or an empty real directory. Apply leaves nonempty directories, files, and symlinks unchanged, including dangling symlinks. Apply also leaves directories unchanged when it cannot complete the directory scan. It never merges files or installs plugins during apply.

Run nvim to start the editor. The first start needs network access: the starter downloads lazy.nvim, LazyVim, and their plugins. Plugin downloads use the upstream Git repositories, not the Crewship checksum installer. LazyVim manages later plugin updates. The added lua/plugins/pyrefly.lua uses the Pyrefly executable from PATH with mason = false, so Mason does not install another copy. See the Pyrefly entry under Latest releases for its installation. Use a Python project with pyrefly.toml to select its project root.

The runtime starter files and Apache-2.0 license come from commit 803bc181d7c0d6d5eeba9274d9be49b287294d99. The unused example plugin and upstream development files are not included. The Pyrefly configuration is the only added runtime file.

Agent skills

blueprint/ansible/tasks/agents.yml, agents profile.

Ubuntu packages

blueprint/ansible/group_vars/all/packages.yml, blueprint/ansible/tasks/packages.yml. Distribution versions, not pinned.

Optional fleet browsers

Optional project databases

The database profile uses the official database image of each project and the Docker Compose plugin. See Project databases for setup, backups and removal.

Koncreet

See the koncreet profile for selection and existing-host defaults; installation also requires start_services: true.

Forgejo

profiles.forgejo (opt-in, Self-hosted Forgejo).

Chrome autopruner

agents profile with browser_prune.enabled.

iMessage bridge

crewship.imessage set (iMessage bridge).

Crew board

crewship.board set (Crew board).

Firstmate

firstmate profile.

Firstmate patch layer

blueprint/patches/firstmate/ holds fixes that upstream Firstmate does not have yet. Apply builds one local commit per patch on top of origin/main, in file-name order. Each commit takes its author, date, and message from the patch file, plus a Crewship-Patch: <file name> trailer, so an unchanged host gets the same commits again and the apply changes nothing.

Patch What it does
0001-watch-wake-on-queued-inbox-note.patch The watcher wakes Firstmate on its next cycle when an inbox note is queued. Without it, the note waits for an unrelated wake, which can take hours.
0002-watch-end-idle-wait-for-inbox-note.patch The watcher ends its idle wait within about 1 s when an inbox note arrives. See iMessage routing for when the bridge creates a note.
0003-brief-crewboard.patch Adds the optional Firstmate board instructions.
0004-watch-crewboard-event-source.patch Needs 0001 and 0002. With the board on, a message on the board's fm topic wakes Firstmate within about 1 s, and an optional doorbell rings a task's pane for a task/<id> message (Wake Firstmate from the board). jq is a runtime need; the host packages already install it.
0005-herdr-pane-life.patch A Herdr pane closes when its agent exits cleanly, and a pane closed on purpose is never relaunched: not by secondmate liveness, not by the stale wake. A crash leaves the pane as a dead husk, and that is still recovered. Pairs with [session] resume_agents_on_restore = false in Herdr.
0006-decision-queue.patch With config/decision-queue present, the watcher writes every needs-decision or blocked line to one durable record under state/decision-queue/ and keeps it out of chat. bin/fm-decision-queue.sh import --dry-run counts a home's open decisions, and dispatch spawns one crewmate per record (the watcher runs both about once a minute; 3 at a time, the rest in one digest text). Each crewmate texts the owner through fm-imessage, relays the answer with fm-send.sh --resolve-key, and closes the record. After 3 failed spawns a record turns stuck, but only once a text to the owner about it has been sent; failed texts retry on the next run. A second mate's done line also sends one rate-limited progress text. The crewmate reads the owner's tagged reply from the bridge's routing.jsonl, so jq is a runtime need; the desk also hands that reply to Firstmate.

How apply handles each case:

Verification requires main to be exactly origin/main plus the patch layer.

To update a patch, edit its file in a pull request. To drop a patch, delete its file, once upstream has it or when it is no longer needed. On the next apply, each host rebuilds the layer from the files.

Container images

Dockerfile, compose.yml

Assumed on the host

The recipe never installs these. The base requirements (Ubuntu, sudo, Python, git, gh) are in the Working on Crewship itself. Notes on those:

Also needed, depending on profile: