Migration and recovery
New-device sequence
Start with a supported Ubuntu installation and working SSH/sudo access.
blueprint/cloud-init/user-data.yamlinstalls initial OS prerequisites; it does not create credentials, log in to services, or clone this private repository.Install Crewship and complete setup through the Quick start.
Confirm Herdr's user service and executable agree. Both resolve to the versioned release that apply resolved and installed (see Latest releases).
Authenticate agent/provider CLIs under the configured operator account (for omp, see Sign in). Confirm the configured models exist for that account. Recreate per-project approval/trust choices instead of copying a global auto-approval list.
If selected, authenticate Tailscale as a new device and review its ACL/SSH policy. Installation alone does not authorize incoming connections.
If selected, open the desktop through an SSH tunnel and sign in using the one persistent browser profile. Never transfer a cookie database or copy the old browser directory.
Restore project source and data through their own workflows. Only then register projects/work with Firstmate or re-enable autonomous fleet tasks.
Do not point two machines at the same live session, task registry, browser profile, or database directory. A Herdr layout is not a process checkpoint. Shells, agents, and servers restart from their own durable inputs.
Troubleshooting
./ship.sh survey # actionable diagnostics
./ship.sh chart # preview what apply would change
fleet guards require the docker and firstmate profiles: enable both profiles in.local/host.yml.Spawn refused by the memory floor: follow the memory check guidance. To change the floor, edit this repository's
blueprint/config/spawn-memory-floor-mband rerun./ship.sh launch. Every apply rewrites the Firstmate checkout's copy, so an edit made only there is reverted.
Desktop access
The desktop is opt-in, loopback-only, and password-authenticated. After the first apply installs its packages and creates ~/.vnc, configure the credential as the operator with tigervncpasswd ~/.vnc/passwd, set mode 0600, and rerun apply. Missing or unsafe credentials stop provisioning before listeners are enabled. With the default novnc_port: 6080, forward the port from your client:
ssh -L 6080:127.0.0.1:6080 operator@host
Use your actual SSH alias/account, then open http://127.0.0.1:6080/vnc.html locally and enter the VNC password. SSH protects transport; VncAuth also protects against other local accounts. Do not open port 6080 to the public internet. vnc-chrome uses only the provisioned account's ~/.vnc-chrome-profile; create logins on that device rather than copying an existing profile.
For a changed display/session configuration, restart VNC explicitly only when the desktop is idle. That terminates every process inside the display. Provisioning reports this requirement rather than silently restarting a working desktop.
App and fleet state
This repository reconstructs the environment, not a host's live operations:
Firstmate source and dispatch choices are installed; its private backlog, charter briefs, project registry, session lock, and operational history are not.
Other agent runtimes on the old host own their own queues, schedules, recovery policy, and outbound authority. Restore their reviewed source and fresh configuration separately; do not automatically resume publishing jobs merely because a device was rebuilt.
Project-specific services need their own environment files, source revisions, migrations, and data restores. A cache directory containing a running executable is not an installation artifact.
Docker named volumes are durable data. Back them up with database-aware tools and verify a restore independently. Do not copy
/var/lib/dockerbetween running daemons or assume an unused volume is disposable.
The included PostgreSQL/Redis Compose services are empty development examples. They do not supply an application's schema or import production data.
Model/proxy errors
For thinking/redacted_thinking replay errors, inspect the complete request path. Prefix-bound reasoning can fail even when the opaque thinking fields are unchanged: an intermediary may have rewritten earlier messages, system text, or tool schemas. Preserve request bodies, route affinity, and signer identity; do not strip reasoning as a generic workaround.
The inspected local Headroom/pxpipe fixes, version/hash guards, and offline regressions are in proxy-fixes. Default fresh Crewship agent configuration does not import machine-specific proxy URLs. Providers can be used directly; installing the optional proxies and their credentials is a separate, deliberate operation.
Never upload a raw failed HTTP request to a public issue or this repository. Such files contain prompts and may include secrets in tool output. Share only sanitized block shapes, lengths, hashes, provider/version information, and error classifications.
Drift and upgrades
Run ./ship.sh chart before applying; every apply upgrades each tool to its latest release, and a herdr upgrade restarts herdr.service. An unmanaged executable at a managed command path is a refusal, not permission to overwrite it. Firstmate refuses dirty or independently advanced checkouts. Preserve that work and decide whether to update the configuration or move to a separate clean checkout.
See Updating an existing host for omp preferences and omp setup for model override merging.
An unchanged provisioning pass reports changed=0 when no upstream tool has published a new release or source update since the last apply. A newer release or source update shows as an expected change in the toolchain step. Runtime application activity, deliberate self-updates, and changed package indexes can create real drift; investigate it rather than weakening the check or forcing a reset.
Upgrade from a pre-rename install
The first ./ship.sh launch after the Crewship rename migrates a host installed before it, once. It stops the old desktop units and deletes their files and links. When legacy paths exist, it also stops herdr-spaces.timer and herdr-spaces.service before moving data. It stops the chrome-devtools-axi bridges that run from the old install directory, because the browser timer cannot stop them after the move. It checks for collisions again after shutdown to catch paths recreated while the writers stop. It skips missing legacy paths. It moves existing legacy paths to their new names, for example ~/.local/share/crewship, and points command links and user unit files at the new paths. It restarts each running user service whose unit file or drop-in it changed, except the no-mistakes daemon. Restart that daemon by hand when no pipeline run is active. The desktop tasks then install and enable crewship-vnc.service and crewship-novnc.service. blueprint/ansible/tasks/rename.yml holds the full old-to-new table. Run that apply when no agent session is active. Running tools lose their old paths. Do not run ./onboard.sh before that apply. If an old path and its new name both exist, the apply stops before moving data. Merge or remove one by hand and run it again. The one exception is the share directory when the new one holds only what install.sh and onboard.sh create (releases, tools, .install.lock). The old directory then merges into it. If an entry differs in both, the apply stops and leaves both share directories unchanged. A second apply reports changed=0.
Migration skips an absent user unit directory or SSH directory. It still updates unit paths and SSH block markers when those directories are symbolic links.
The Compose project is now crewship, so Compose and the devcontainer use new volume names. The old volumes stay; copy their data by hand if you need it. The containers of the project under the old name keep their ports, so stop them before the first up under the new name: run docker compose ls to find the old project name, then run docker compose -p <old project> down.
Resource limits and cleanup
Compose caps CPU, memory, swap, and process counts. Native parallel builds still need a concurrency budget suitable for the machine. Do not globally override Firstmate's task-owned build-cache paths with a shared unlimited Rust target directory; that bypasses normal task teardown.
The browser timer only closes eligible idle disposable AXI sessions. It neither prunes caches nor handles a hung bridge by force-killing it. A pending graceful shutdown stays visible for inspection. Source files, dirty worktrees, project data, and persistent browser state are not cleanup targets.
Disable a managed timer without deleting its script or state:
systemctl --user disable --now chrome-autoprune.timer
Keep the host's SSH access path intact while changing networking. In particular, changing one Tailscale preference should use tailscale set, not an unreviewed tailscale up --reset.