@crvouga/dev-fleet 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -16
- package/ansible/github/git.yml +66 -0
- package/ansible/macos/policy.json +11 -1
- package/ansible/monitoring/compose.yml +10 -0
- package/ansible/monitoring/container-watchdog.py +118 -0
- package/ansible/monitoring/hub-darwin.yml +146 -0
- package/ansible/net/remote-probe.sh +5 -0
- package/ansible/ubuntu/baseline.yml +2 -0
- package/ansible/ubuntu/disk-gc.py +25 -3
- package/ansible/ubuntu/disk-guard.py +24 -5
- package/ansible/ubuntu/policy.json +50 -1
- package/ansible/ubuntu/tasks/browser.yml +56 -0
- package/ansible/ubuntu/tasks/docker.yml +52 -0
- package/ansible/ubuntu/tasks/resources.yml +2 -2
- package/ansible/ubuntu/tasks/services.yml +13 -0
- package/bootstrap/doctor.ts +32 -6
- package/bootstrap/fleet-remote-bootstrap.sh +31 -4
- package/bootstrap/setup.ts +23 -8
- package/bootstrap/worker-tools.ts +118 -0
- package/cliproxy/README.md +1 -1
- package/cliproxy/compose.yaml +4 -0
- package/cliproxy/scripts/checkpoint.py +1 -1
- package/docs/authentication.md +90 -0
- package/docs/declared.md +2 -0
- package/docs/machine-setup.md +22 -12
- package/docs/operations.md +87 -31
- package/docs/runbooks.md +380 -0
- package/docs/state.md +13 -7
- package/docs/ubuntu-sync.md +7 -6
- package/examples/fleet.json +19 -1
- package/llms.txt +2 -0
- package/mise.toml +7 -0
- package/package.json +2 -2
- package/schema/check-ids.json +522 -0
- package/schema/fleet.schema.json +178 -1
- package/schema/output/check.schema.json +23 -0
- package/schema/output/error.schema.json +14 -0
- package/schema/output/fleet-report.schema.json +79 -0
- package/schema/output/fleet-sync.schema.json +112 -0
- package/schema/output/report.schema.json +38 -0
- package/src/auth-checks.ts +3 -0
- package/src/cli/agent-guide.ts +5 -3
- package/src/cli/fleet-report.ts +126 -0
- package/src/cli/fleet-sync-manager.ts +11 -0
- package/src/cli/fleet-sync-plan.ts +200 -0
- package/src/cli/fleet-sync-remote.ts +3 -1
- package/src/cli/fleet-sync-schedule.ts +142 -35
- package/src/cli/fleet-sync.ts +90 -8
- package/src/cli/fleet-watch.ts +198 -0
- package/src/cli/fleet.ts +4 -0
- package/src/cli/register-fleet.ts +51 -0
- package/src/cli/registry.ts +13 -0
- package/src/cli/schedule-logs.ts +36 -0
- package/src/clock.ts +63 -0
- package/src/definition.ts +142 -5
- package/src/git-identity.ts +160 -0
- package/src/machine-health.ts +51 -4
- package/src/manager-health.ts +205 -0
- package/src/manager-sync.ts +12 -2
- package/src/monitoring/hub-backup.ts +63 -17
- package/src/monitoring/manager-hub.ts +44 -2
- package/src/node-converge-linux.ts +16 -5
- package/src/notify.ts +239 -0
- package/src/remote-bootstrap.ts +87 -25
- package/src/remote-operation.ts +213 -0
- package/src/schedule-check.ts +40 -0
- package/src/secrets.ts +26 -8
- package/src/ssh.ts +10 -2
- package/src/state/history.ts +172 -0
- package/src/state/store.ts +11 -4
- package/src/tailscale.ts +51 -0
- package/src/toolchain-checks.ts +8 -3
- package/src/worker-capability-checks.ts +167 -0
- package/src/worker-capacity.ts +19 -7
- package/src/worker-host-checks.ts +32 -0
- package/src/worker-policy.ts +33 -0
- package/src/worker-readiness.ts +10 -1
package/docs/runbooks.md
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
# Runbooks
|
|
2
|
+
|
|
3
|
+
One entry for every failure code dev-fleet reports: in a check's summary, a
|
|
4
|
+
bootstrap phase or an Ansible assertion. Each family says what its codes
|
|
5
|
+
mean, how to confirm one, the fix (a command or a `fleet-sync` that applies
|
|
6
|
+
the playbook that owns it) and when to escalate. A code whose fix needs a
|
|
7
|
+
person (a login, an approval, a choice) is marked **needs a person**.
|
|
8
|
+
`features/rules/runbooks.feature` fails when a code in the source has no
|
|
9
|
+
entry here, or a `devfleet` command quoted in the documents does not exist.
|
|
10
|
+
|
|
11
|
+
There are 241 codes; 31 need a person.
|
|
12
|
+
|
|
13
|
+
## Bootstrap of a new or returning worker
|
|
14
|
+
|
|
15
|
+
- **Meaning:** The remote bootstrap (`bootstrap/fleet-remote-bootstrap.sh`) stopped before node convergence. It reports the phase and the code, never its output.
|
|
16
|
+
- **Confirm:** Run `devfleet fleet-sync --dry-run` and read the `bootstrap:*` check of the worker; `ssh WORKER` and look under `~/.local/share/personal/fleet`.
|
|
17
|
+
- **Fix:** Follow the remedy the check prints, then run `devfleet fleet-sync`. The bootstrap resumes where it stopped.
|
|
18
|
+
- **Escalate:** A platform or architecture code means the machine must be reinstalled: Ubuntu 26.04 on x86_64 or aarch64.
|
|
19
|
+
|
|
20
|
+
- `BOOTSTRAP_CAPACITY_UNVERIFIED`: bootstrap capacity unverified.
|
|
21
|
+
- `BOOTSTRAP_DISK_CAPACITY_REQUIRED`: bootstrap disk capacity required.
|
|
22
|
+
- `BOOTSTRAP_LOCK_TOOL_REQUIRED`: bootstrap lock tool required.
|
|
23
|
+
- `CONFIGURATION_INSTALL_FAILED`: configuration install failed.
|
|
24
|
+
- `FLEET_APPROVED_BOOTSTRAP_UNAVAILABLE`: fleet approved bootstrap unavailable.
|
|
25
|
+
- `FLEET_STATE_PATH_UNSAFE`: fleet state path unsafe.
|
|
26
|
+
- `MACOS_ARCHITECTURE_UNSUPPORTED`: macos architecture unsupported. **Needs a person.**
|
|
27
|
+
- `MACOS_BASELINE_MISMATCH`: macos baseline mismatch. **Needs a person.**
|
|
28
|
+
- `PLATFORM_UNSUPPORTED`: platform unsupported. **Needs a person.**
|
|
29
|
+
- `REMOTE_BOOTSTRAP_EVIDENCE_INVALID`: remote bootstrap evidence invalid.
|
|
30
|
+
- `REMOTE_BOOTSTRAP_EXIT_FAILED`: remote bootstrap exit failed.
|
|
31
|
+
- `ROOT_DEVELOPMENT_USER_REJECTED`: root development user rejected.
|
|
32
|
+
- `UBUNTU_ARCHITECTURE_UNSUPPORTED`: ubuntu architecture unsupported. **Needs a person.**
|
|
33
|
+
- `XCODE_COMMAND_LINE_TOOLS_REQUIRED`: xcode command line tools required. **Needs a person.**
|
|
34
|
+
|
|
35
|
+
## Ubuntu packages
|
|
36
|
+
|
|
37
|
+
- **Meaning:** A package transaction could not run or the package database is inconsistent.
|
|
38
|
+
- **Confirm:** `ssh WORKER sudo dpkg --audit` and `sudo apt-get -o Debug::NoLocking=1 check`.
|
|
39
|
+
- **Fix:** Let any running package process finish (it is never killed), free disk under `/var`, then run `devfleet fleet-sync`.
|
|
40
|
+
- **Escalate:** APT_STATE_BROKEN and DPKG_INTERRUPTED need `sudo dpkg --configure -a` by a person once no package process runs.
|
|
41
|
+
|
|
42
|
+
- `APT_DISK_FULL`: apt disk full.
|
|
43
|
+
- `APT_DNS_UNAVAILABLE`: apt dns unavailable.
|
|
44
|
+
- `APT_LOCK_CONTENDED`: apt lock contended.
|
|
45
|
+
- `APT_REPOSITORY_UNAVAILABLE`: apt repository unavailable.
|
|
46
|
+
- `APT_STATE_BROKEN`: apt state broken. **Needs a person.**
|
|
47
|
+
- `DPKG_INTERRUPTED`: dpkg interrupted. **Needs a person.**
|
|
48
|
+
|
|
49
|
+
## The fleet-owned checkout
|
|
50
|
+
|
|
51
|
+
- **Meaning:** The checkout of the revision on the machine holds changes fleet-sync did not make, or its bundle changed in transit.
|
|
52
|
+
- **Confirm:** `ssh WORKER git -C ~/.local/share/personal/fleet/revisions/REVISION status`.
|
|
53
|
+
- **Fix:** Remove that revisions directory and run `devfleet fleet-sync`; it is a cache.
|
|
54
|
+
- **Escalate:** A digest mismatch that repeats points at the SSH route.
|
|
55
|
+
|
|
56
|
+
- `SOURCE_CACHE_CHANGED`: source cache changed.
|
|
57
|
+
- `SOURCE_CHECKOUT_CONFLICT`: source checkout conflict.
|
|
58
|
+
- `SOURCE_DIGEST_MISMATCH`: source digest mismatch.
|
|
59
|
+
- `SOURCE_STATUS_FAILED`: source status failed.
|
|
60
|
+
|
|
61
|
+
## The pinned toolchain
|
|
62
|
+
|
|
63
|
+
- **Meaning:** mise, the pinned tools, the global mise configuration or the frozen dependencies did not converge.
|
|
64
|
+
- **Confirm:** Run `bun bootstrap/doctor.ts --json --worker` in the checkout on the machine, or read the `tool:*` checks of `devfleet fleet-status`.
|
|
65
|
+
- **Fix:** Run `devfleet fleet-sync`; it resumes. TOOLCHAIN_CONFIG_CONFLICT means another tool owns `~/.config/mise/config.toml`: move it away.
|
|
66
|
+
- **Escalate:** A tool that fails to download from its pinned artifact needs a new pin in `mise.toml` and `mise.lock` (an issue).
|
|
67
|
+
|
|
68
|
+
- `LAUNCHER_INSTALLATION_FAILED`: launcher installation failed.
|
|
69
|
+
- `TOOLCHAIN_AWS_FAILED`: toolchain aws failed.
|
|
70
|
+
- `TOOLCHAIN_CONFIG_CONFLICT`: toolchain config conflict.
|
|
71
|
+
- `TOOLCHAIN_CONVERGENCE_FAILED`: toolchain convergence failed.
|
|
72
|
+
- `TOOLCHAIN_FROZEN_DEPENDENCIES_FAILED`: toolchain frozen dependencies failed.
|
|
73
|
+
- `TOOLCHAIN_MISE_FAILED`: toolchain mise failed.
|
|
74
|
+
- `TOOLCHAIN_PATH_CONFIGURATION_FAILED`: toolchain path configuration failed.
|
|
75
|
+
- `TOOLCHAIN_T3_FAILED`: toolchain t3 failed.
|
|
76
|
+
|
|
77
|
+
## The Ubuntu baseline and its services
|
|
78
|
+
|
|
79
|
+
- **Meaning:** The Ansible baseline (`ansible/ubuntu/baseline.yml`) did not apply, or what it declares is not what the machine runs.
|
|
80
|
+
- **Confirm:** Read the `worker:*` and `ubuntu:*` checks of `devfleet fleet-status --workers`; on the worker, `systemctl status SERVICE`.
|
|
81
|
+
- **Fix:** Run `devfleet fleet-sync`, which applies the baseline in full when its effect no longer verifies.
|
|
82
|
+
- **Escalate:** Ownership conflicts (sudoers, SSH, Docker from another distribution) need a person to migrate the other owner first.
|
|
83
|
+
|
|
84
|
+
- `DISK_FREE_BELOW_FLOOR`: disk free below floor.
|
|
85
|
+
- `DISK_FREE_UNREADABLE`: disk free unreadable.
|
|
86
|
+
- `DOCKER_OWNER_CONFLICT`: docker owner conflict. **Needs a person.**
|
|
87
|
+
- `MEMORY_RESERVE_MISSING`: memory reserve missing.
|
|
88
|
+
- `RESOURCE_CAPACITY_REQUIRED`: resource capacity required.
|
|
89
|
+
- `RESOURCE_GUARD_INACTIVE`: resource guard inactive.
|
|
90
|
+
- `SERVICE_NOT_ENABLED`: service not enabled.
|
|
91
|
+
- `SERVICE_NOT_INSTALLED`: service not installed.
|
|
92
|
+
- `SERVICE_NOT_RUNNING`: service not running.
|
|
93
|
+
- `SERVICE_RESTART_POLICY`: service restart policy.
|
|
94
|
+
- `SSH_UNMANAGED_CONFIG_CONFLICT`: ssh unmanaged config conflict.
|
|
95
|
+
- `SUDOERS_OWNERSHIP_CONFLICT`: sudoers ownership conflict. **Needs a person.**
|
|
96
|
+
- `SUDO_AUTHORIZATION_REQUIRED`: sudo authorization required. **Needs a person.**
|
|
97
|
+
- `SWAP_CAPACITY_REQUIRED`: swap capacity required.
|
|
98
|
+
- `SWAP_MISSING`: swap missing.
|
|
99
|
+
- `TMP_QUOTA_EXHAUSTED`: tmp quota exhausted.
|
|
100
|
+
- `UBUNTU_BASELINE_INCOMPLETE`: ubuntu baseline incomplete.
|
|
101
|
+
- `UBUNTU_BASELINE_MISMATCH`: ubuntu baseline mismatch. **Needs a person.**
|
|
102
|
+
- `UBUNTU_LINGER_REQUIRED`: ubuntu linger required.
|
|
103
|
+
- `UBUNTU_MAINTENANCE_REBOOT_PENDING`: ubuntu maintenance reboot pending.
|
|
104
|
+
- `UBUNTU_SESSION_POLICY_PENDING`: ubuntu session policy pending.
|
|
105
|
+
- `UBUNTU_SLEEP_POLICY_DRIFT`: ubuntu sleep policy drift.
|
|
106
|
+
- `WORKER_RECOVERY_SCRIPT_MISSING`: worker recovery script missing.
|
|
107
|
+
- `WORKER_RECOVERY_SETUP_FAILED`: worker recovery setup failed.
|
|
108
|
+
- `WORKER_RECOVERY_TIMER_INACTIVE`: worker recovery timer inactive.
|
|
109
|
+
|
|
110
|
+
## Containers on a worker
|
|
111
|
+
|
|
112
|
+
- **Meaning:** `worker:docker-run` could not start the pinned container or build a one-line image as the worker user.
|
|
113
|
+
- **Confirm:** On the worker, as that user: `docker run --rm --network none --pull never IMAGE true`, with IMAGE from `dockerSmokeTest` in `ansible/ubuntu/policy.json`.
|
|
114
|
+
- **Fix:** Run `devfleet fleet-sync`: it starts the engine, adds the user to the docker group and caches the image. A session started earlier keeps its old groups: restart it.
|
|
115
|
+
- **Escalate:** A cgroup or runtime failure that survives a reboot is an issue.
|
|
116
|
+
|
|
117
|
+
- `DOCKER_BUILD_FAILED`: docker build failed.
|
|
118
|
+
- `DOCKER_DAEMON_UNREACHABLE`: docker daemon unreachable.
|
|
119
|
+
- `DOCKER_DISK_FULL`: docker disk full.
|
|
120
|
+
- `DOCKER_RUN_FAILED`: docker run failed.
|
|
121
|
+
- `DOCKER_RUN_TIMEOUT`: docker run timeout.
|
|
122
|
+
- `DOCKER_SMOKE_IMAGE_MISSING`: docker smoke image missing.
|
|
123
|
+
- `DOCKER_SOCKET_ACCESS_DENIED`: docker socket access denied.
|
|
124
|
+
|
|
125
|
+
## Headless browser on a worker
|
|
126
|
+
|
|
127
|
+
- **Meaning:** `worker:browser` could not launch the pinned headless Chromium of the web tool profile.
|
|
128
|
+
- **Confirm:** On the worker run the headless shell under `/opt/personal-fleet/browser/` with `--headless --no-sandbox --dump-dom about:blank`.
|
|
129
|
+
- **Fix:** Run `devfleet fleet-sync`, which installs the pinned libraries and build (`ansible/ubuntu/tasks/browser.yml`).
|
|
130
|
+
- **Escalate:** A missing library the policy does not list is an issue: the list needs it.
|
|
131
|
+
|
|
132
|
+
- `BROWSER_LAUNCH_FAILED`: browser launch failed.
|
|
133
|
+
- `BROWSER_LAUNCH_TIMEOUT`: browser launch timeout.
|
|
134
|
+
- `BROWSER_LIBRARY_MISSING`: browser library missing.
|
|
135
|
+
- `BROWSER_NOT_INSTALLED`: browser not installed.
|
|
136
|
+
|
|
137
|
+
## Git identity and pushing
|
|
138
|
+
|
|
139
|
+
- **Meaning:** Commits on the node would carry the wrong author, or git cannot authenticate to GitHub on its own.
|
|
140
|
+
- **Confirm:** On the node: `git config --global --get user.name`, and `printf "protocol=https\nhost=github.com\n\n" | GIT_TERMINAL_PROMPT=0 git credential fill >/dev/null`.
|
|
141
|
+
- **Fix:** Declare the `git` block in `fleet.json` and run `devfleet fleet-sync` (`ansible/github/git.yml`). Remove lines in `~/.gitconfig` that override it.
|
|
142
|
+
- **Escalate:** GIT_REMOTE_REFUSED means the fleet account lost access to the declared repository: a person grants it.
|
|
143
|
+
|
|
144
|
+
- `GIT_CONFIGURATION_INCOMPLETE`: git configuration incomplete.
|
|
145
|
+
- `GIT_CREDENTIAL_HELPER_MISSING`: git credential helper missing.
|
|
146
|
+
- `GIT_IDENTITY_MISMATCH`: git identity mismatch.
|
|
147
|
+
- `GIT_IDENTITY_MISSING`: git identity missing.
|
|
148
|
+
- `GIT_IDENTITY_OVERRIDDEN`: git identity overridden.
|
|
149
|
+
- `GIT_IDENTITY_UNDECLARED`: git identity undeclared.
|
|
150
|
+
- `GIT_REMOTE_REFUSED`: git remote refused. **Needs a person.**
|
|
151
|
+
- `GIT_REMOTE_UNREACHABLE`: git remote unreachable.
|
|
152
|
+
|
|
153
|
+
## Tailscale
|
|
154
|
+
|
|
155
|
+
- **Meaning:** A machine is not on the tailnet as the fleet declares it.
|
|
156
|
+
- **Confirm:** `tailscale status` on the machine and `devfleet fleet-discover`.
|
|
157
|
+
- **Fix:** Sign the machine in (`sudo tailscale up` on a worker, the app on the manager), then run `devfleet fleet-sync`.
|
|
158
|
+
- **Escalate:** Logins and device approvals need a person.
|
|
159
|
+
|
|
160
|
+
- `TAILSCALE_DEVICE_REPLACED`: tailscale device replaced. **Needs a person.**
|
|
161
|
+
- `TAILSCALE_ENROLLMENT_REQUIRED`: tailscale enrollment required. **Needs a person.**
|
|
162
|
+
- `TAILSCALE_IDENTITY_CONFLICT`: tailscale identity conflict. **Needs a person.**
|
|
163
|
+
- `TAILSCALE_INTERACTIVE_AUTHORIZATION_REQUIRED`: tailscale interactive authorization required. **Needs a person.**
|
|
164
|
+
- `TAILSCALE_KEY_EXPIRY_UNOBSERVED`: tailscale key expiry unobserved.
|
|
165
|
+
- `TAILSCALE_LOGIN_REQUIRED`: tailscale login required. **Needs a person.**
|
|
166
|
+
- `TAILSCALE_NODE_MISSING`: tailscale node missing.
|
|
167
|
+
- `TAILSCALE_NODE_OFFLINE`: tailscale node offline.
|
|
168
|
+
- `TAILSCALE_SETUP_OR_LOGIN_REQUIRED`: tailscale setup or login required. **Needs a person.**
|
|
169
|
+
- `TAILSCALE_SOURCE_OWNER_CONFLICT`: tailscale source owner conflict. **Needs a person.**
|
|
170
|
+
- `TAILSCALE_UPGRADE_PENDING`: tailscale upgrade pending. **Needs a person.**
|
|
171
|
+
|
|
172
|
+
## T3 Code
|
|
173
|
+
|
|
174
|
+
- **Meaning:** The native T3 server or desktop app, its policy, its private route or its providers did not converge or verify.
|
|
175
|
+
- **Confirm:** `devfleet t3-status` and the `t3:*` checks of `devfleet fleet-status`.
|
|
176
|
+
- **Fix:** Run `devfleet fleet-sync`, then `devfleet t3-apply` for providers. A MIGRATION or MAINTENANCE code names a one-time step in its remedy.
|
|
177
|
+
- **Escalate:** Pairing and relinking a peer needs a person in T3 Settings.
|
|
178
|
+
|
|
179
|
+
- `MANAGER_T3_LINK_UNVERIFIED`: manager t3 link unverified.
|
|
180
|
+
- `T3_BASELINE_PREREQUISITES_REQUIRED`: t3 baseline prerequisites required.
|
|
181
|
+
- `T3_CACHE_DRIFT`: t3 cache drift.
|
|
182
|
+
- `T3_CHECKSUM_MISMATCH`: t3 checksum mismatch.
|
|
183
|
+
- `T3_DESKTOP_INSTALL_FAILED`: t3 desktop install failed.
|
|
184
|
+
- `T3_DESKTOP_STOPPED`: t3 desktop stopped.
|
|
185
|
+
- `T3_DOWNLOAD_UNAVAILABLE`: t3 download unavailable.
|
|
186
|
+
- `T3_ENVIRONMENT_IDENTITY_CHANGED`: t3 environment identity changed.
|
|
187
|
+
- `T3_EXECUTABLE_FAILED`: t3 executable failed.
|
|
188
|
+
- `T3_EXECUTABLE_OWNER_CONFLICT`: t3 executable owner conflict. **Needs a person.**
|
|
189
|
+
- `T3_EXTRACTION_FAILED`: t3 extraction failed.
|
|
190
|
+
- `T3_INSTALLATION_DRIFT`: t3 installation drift.
|
|
191
|
+
- `T3_MANAGER_ENDPOINT_REJECTED`: t3 manager endpoint rejected.
|
|
192
|
+
- `T3_MANAGER_ENDPOINT_UNREACHABLE`: t3 manager endpoint unreachable.
|
|
193
|
+
- `T3_MANAGER_IDENTITY_UNVERIFIED`: t3 manager identity unverified.
|
|
194
|
+
- `T3_MANAGER_ORIGIN_UNRESTRICTED`: t3 manager origin unrestricted.
|
|
195
|
+
- `T3_MANAGER_ORIGIN_UNVERIFIED`: t3 manager origin unverified.
|
|
196
|
+
- `T3_MODELS_MISMATCH`: t3 models mismatch.
|
|
197
|
+
- `T3_MODELS_UNVERIFIED`: t3 models unverified.
|
|
198
|
+
- `T3_POLICY_OWNER_CONFLICT`: t3 policy owner conflict. **Needs a person.**
|
|
199
|
+
- `T3_POLICY_RESTART_FAILED`: t3 policy restart failed.
|
|
200
|
+
- `T3_POLICY_RESTART_PENDING`: t3 policy restart pending.
|
|
201
|
+
- `T3_POLICY_STAGE_FAILED`: t3 policy stage failed.
|
|
202
|
+
- `T3_PRIVATE_IDENTITY_REQUIRED`: t3 private identity required.
|
|
203
|
+
- `T3_PRIVATE_ROUTE_CONFLICT`: t3 private route conflict.
|
|
204
|
+
- `T3_PRIVATE_ROUTE_REQUIRED`: t3 private route required.
|
|
205
|
+
- `T3_PRIVATE_ROUTE_UNVERIFIED`: t3 private route unverified.
|
|
206
|
+
- `T3_PROFILE_CONFLICT`: t3 profile conflict.
|
|
207
|
+
- `T3_PROFILE_PENDING`: t3 profile pending.
|
|
208
|
+
- `T3_PROFILE_RECORD_INVALID`: t3 profile record invalid.
|
|
209
|
+
- `T3_PROFILE_UNVERIFIED`: t3 profile unverified.
|
|
210
|
+
- `T3_PROVIDERS_PENDING`: t3 providers pending.
|
|
211
|
+
- `T3_PROVIDERS_UNVERIFIED`: t3 providers unverified.
|
|
212
|
+
- `T3_PROVIDER_CONFLICT`: t3 provider conflict.
|
|
213
|
+
- `T3_PROVIDER_NAMES_PENDING`: t3 provider names pending.
|
|
214
|
+
- `T3_PROVIDER_NAMES_UNVERIFIED`: t3 provider names unverified.
|
|
215
|
+
- `T3_RESTART_PENDING`: t3 restart pending.
|
|
216
|
+
- `T3_SETTINGS_BUSY`: t3 settings busy.
|
|
217
|
+
|
|
218
|
+
## Monitoring (Beszel)
|
|
219
|
+
|
|
220
|
+
- **Meaning:** The hub on the manager, an agent on a machine, an enrollment or the hub backups do not match what the fleet declares.
|
|
221
|
+
- **Confirm:** The `beszel:*` checks of `devfleet fleet-status --workers`; on the manager `docker compose ls` and the hub at `/_/`.
|
|
222
|
+
- **Fix:** Run `devfleet fleet-sync`, which converges the hub, its accounts, its backups and every agent. Hub data is never deleted.
|
|
223
|
+
- **Escalate:** BESZEL_HUB_UPGRADE_PENDING needs a verified backup and a planned upgrade by a person.
|
|
224
|
+
|
|
225
|
+
- `BESZEL_ACCOUNT_INVALID`: beszel account invalid.
|
|
226
|
+
- `BESZEL_ACCOUNT_REQUIRED`: beszel account required. **Needs a person.**
|
|
227
|
+
- `BESZEL_AGENT_CONNECTION_PENDING`: beszel agent connection pending.
|
|
228
|
+
- `BESZEL_AGENT_DISCONNECTED`: beszel agent disconnected.
|
|
229
|
+
- `BESZEL_AGENT_KEY_REJECTED`: beszel agent key rejected.
|
|
230
|
+
- `BESZEL_AGENT_LOG_UNAVAILABLE`: beszel agent log unavailable.
|
|
231
|
+
- `BESZEL_AGENT_TOKEN_REJECTED`: beszel agent token rejected.
|
|
232
|
+
- `BESZEL_API_UNAVAILABLE`: beszel api unavailable.
|
|
233
|
+
- `BESZEL_API_UNVERIFIED`: beszel api unverified.
|
|
234
|
+
- `BESZEL_AUTH_REQUIRED`: beszel auth required.
|
|
235
|
+
- `BESZEL_BACKUP_CONVERGENCE_FAILED`: beszel backup convergence failed.
|
|
236
|
+
- `BESZEL_BACKUP_NOT_CONVERGED`: beszel backup not converged.
|
|
237
|
+
- `BESZEL_BACKUP_OFFHOST_REQUIRED`: beszel backup offhost required.
|
|
238
|
+
- `BESZEL_BACKUP_STALE`: beszel backup stale.
|
|
239
|
+
- `BESZEL_BACKUP_UNSCHEDULED`: beszel backup unscheduled.
|
|
240
|
+
- `BESZEL_BACKUP_UNVERIFIED`: beszel backup unverified.
|
|
241
|
+
- `BESZEL_CREDENTIALS_REQUIRED`: beszel credentials required. **Needs a person.**
|
|
242
|
+
- `BESZEL_DISK_FULL`: beszel disk full.
|
|
243
|
+
- `BESZEL_DISK_UNVERIFIED`: beszel disk unverified.
|
|
244
|
+
- `BESZEL_DOCKER_DESKTOP_REQUIRED`: beszel docker desktop required.
|
|
245
|
+
- `BESZEL_ENROLLMENT_INCOMPLETE`: beszel enrollment incomplete.
|
|
246
|
+
- `BESZEL_HOST_CONFLICT`: beszel host conflict.
|
|
247
|
+
- `BESZEL_HUB_INSTALLATION_INCOMPLETE`: beszel hub installation incomplete.
|
|
248
|
+
- `BESZEL_HUB_MISMATCH`: beszel hub mismatch.
|
|
249
|
+
- `BESZEL_HUB_SELECTION_REQUIRED`: beszel hub selection required.
|
|
250
|
+
- `BESZEL_HUB_UNHEALTHY`: beszel hub unhealthy.
|
|
251
|
+
- `BESZEL_HUB_UNREACHABLE`: beszel hub unreachable.
|
|
252
|
+
- `BESZEL_HUB_UPGRADE_PENDING`: beszel hub upgrade pending. **Needs a person.**
|
|
253
|
+
- `BESZEL_INPUT_INVALID`: beszel input invalid.
|
|
254
|
+
- `BESZEL_INPUT_LIMIT`: beszel input limit.
|
|
255
|
+
- `BESZEL_INSTALLATION_INCOMPLETE`: beszel installation incomplete.
|
|
256
|
+
- `BESZEL_LEGACY_DAEMON`: beszel legacy daemon.
|
|
257
|
+
- `BESZEL_METRICS_STALE`: beszel metrics stale.
|
|
258
|
+
- `BESZEL_NODE_INVALID`: beszel node invalid.
|
|
259
|
+
- `BESZEL_NODE_MISSING`: beszel node missing.
|
|
260
|
+
- `BESZEL_NODE_TAILNET_REQUIRED`: beszel node tailnet required.
|
|
261
|
+
- `BESZEL_NOT_ENROLLED`: beszel not enrolled.
|
|
262
|
+
- `BESZEL_NOT_HUB`: beszel not hub.
|
|
263
|
+
- `BESZEL_NOT_MANAGER`: beszel not manager.
|
|
264
|
+
- `BESZEL_OPERATION_INCOMPLETE`: beszel operation incomplete.
|
|
265
|
+
- `BESZEL_PRIVATE_ROUTE_CONFLICT`: beszel private route conflict.
|
|
266
|
+
- `BESZEL_PRIVATE_ROUTE_REQUIRED`: beszel private route required.
|
|
267
|
+
- `BESZEL_PRIVATE_ROUTE_UNVERIFIED`: beszel private route unverified.
|
|
268
|
+
- `BESZEL_PROTOCOL`: beszel protocol.
|
|
269
|
+
- `BESZEL_PUBLIC_ENDPOINT_OFFLINE`: beszel public endpoint offline.
|
|
270
|
+
- `BESZEL_REMOTE_EVIDENCE_INVALID`: beszel remote evidence invalid.
|
|
271
|
+
- `BESZEL_RESPONSE_LIMIT`: beszel response limit.
|
|
272
|
+
- `BESZEL_SERVICE_STOPPED`: beszel service stopped.
|
|
273
|
+
- `BESZEL_SOURCE_MISMATCH`: beszel source mismatch.
|
|
274
|
+
- `BESZEL_TAILSCALE_REQUIRED`: beszel tailscale required.
|
|
275
|
+
- `BESZEL_TOKEN_INVALID`: beszel token invalid.
|
|
276
|
+
- `BESZEL_TUNNEL_CREDENTIAL_UNAVAILABLE`: beszel tunnel credential unavailable. **Needs a person.**
|
|
277
|
+
- `BESZEL_VERSION_MISMATCH`: beszel version mismatch.
|
|
278
|
+
- `BESZEL_VIEWER_ROLE`: beszel viewer role.
|
|
279
|
+
- `BESZEL_VIEWER_UNPROVISIONED`: beszel viewer unprovisioned.
|
|
280
|
+
- `BESZEL_VIEWER_UNVERIFIED`: beszel viewer unverified.
|
|
281
|
+
|
|
282
|
+
## Coding agents and providers
|
|
283
|
+
|
|
284
|
+
- **Meaning:** An agent CLI, its profile or a provider behind the CLI proxy did not answer as expected.
|
|
285
|
+
- **Confirm:** The `agent:*` and `provider:*` checks of `devfleet fleet-status`, and `devfleet cliproxy` on the manager.
|
|
286
|
+
- **Fix:** Run `devfleet fleet-sync`; a rate limit or upstream outage clears on its own.
|
|
287
|
+
- **Escalate:** PROVIDER_AUTH_REJECTED needs a person to sign the account in again on the proxy.
|
|
288
|
+
|
|
289
|
+
- `AGENT_MEMORY_LIMIT_MISSING`: agent memory limit missing.
|
|
290
|
+
- `AGENT_MODEL_UNSERVED`: agent model unserved.
|
|
291
|
+
- `AGENT_PROFILE_STALE`: agent profile stale.
|
|
292
|
+
- `AGENT_SERVICE_ENVIRONMENT_INCOMPLETE`: agent service environment incomplete.
|
|
293
|
+
- `AGENT_SERVICE_ENVIRONMENT_UNVERIFIED`: agent service environment unverified.
|
|
294
|
+
- `AGENT_SESSION_UNVERIFIED`: agent session unverified.
|
|
295
|
+
- `AGENT_VAULT_UNAVAILABLE`: agent vault unavailable.
|
|
296
|
+
- `AGENT_VERSION_MISMATCH`: agent version mismatch.
|
|
297
|
+
- `PROVIDER_AUTH_REJECTED`: provider auth rejected. **Needs a person.**
|
|
298
|
+
- `PROVIDER_EMPTY_RESPONSE`: provider empty response.
|
|
299
|
+
- `PROVIDER_MODEL_UNAVAILABLE`: provider model unavailable.
|
|
300
|
+
- `PROVIDER_NETWORK_UNVERIFIED`: provider network unverified.
|
|
301
|
+
- `PROVIDER_OUTPUT_UNVERIFIED`: provider output unverified.
|
|
302
|
+
- `PROVIDER_PROTOCOL_REJECTED`: provider protocol rejected.
|
|
303
|
+
- `PROVIDER_RATE_LIMITED`: provider rate limited.
|
|
304
|
+
- `PROVIDER_RESPONSE_INVALID`: provider response invalid.
|
|
305
|
+
- `PROVIDER_RESPONSE_LIMIT`: provider response limit.
|
|
306
|
+
- `PROVIDER_ROUTE_UNVERIFIED`: provider route unverified.
|
|
307
|
+
- `PROVIDER_STREAM_INCOMPLETE`: provider stream incomplete.
|
|
308
|
+
- `PROVIDER_TIMEOUT`: provider timeout.
|
|
309
|
+
- `PROVIDER_TOOL_ARGUMENTS_INVALID`: provider tool arguments invalid.
|
|
310
|
+
- `PROVIDER_TOOL_INVALID`: provider tool invalid.
|
|
311
|
+
- `PROVIDER_TOOL_MISSING`: provider tool missing.
|
|
312
|
+
- `PROVIDER_TOOL_RESULT_UNVERIFIED`: provider tool result unverified.
|
|
313
|
+
- `PROVIDER_UNATTENDED_CREDENTIAL_REQUIRED`: provider unattended credential required.
|
|
314
|
+
- `PROVIDER_UPSTREAM_UNAVAILABLE`: provider upstream unavailable.
|
|
315
|
+
- `PROXY_RECONCILE_UNVERIFIED`: proxy reconcile unverified.
|
|
316
|
+
- `UNATTENDED_PROXY_AUTHENTICATION_REQUIRED`: unattended proxy authentication required.
|
|
317
|
+
|
|
318
|
+
## Provider accounts
|
|
319
|
+
|
|
320
|
+
- **Meaning:** A change to a provider account on the CLI proxy (sign-in, removal, cooldown) did not complete.
|
|
321
|
+
- **Confirm:** `devfleet fleet-accounts` lists every account and its state; `devfleet fleet-accounts --diff` compares this machine.
|
|
322
|
+
- **Fix:** Retry the change with `devfleet fleet-accounts`; see [Provider accounts](accounts.md).
|
|
323
|
+
- **Escalate:** Signing an account in again needs a person.
|
|
324
|
+
|
|
325
|
+
- `ACCOUNT_CHANGE_FAILED`: account change failed.
|
|
326
|
+
|
|
327
|
+
## Vault and credentials
|
|
328
|
+
|
|
329
|
+
- **Meaning:** A machine cannot read the secrets it needs with its own Vault session.
|
|
330
|
+
- **Confirm:** `vault token lookup` on the machine and the `worker:vault-renewal` check.
|
|
331
|
+
- **Fix:** Log the machine in once (`devfleet fleet-sync` asks on the manager); renewal is automatic afterwards.
|
|
332
|
+
- **Escalate:** A refused policy needs the Vault administrator.
|
|
333
|
+
|
|
334
|
+
- `UNATTENDED_VAULT_IDENTITY_REQUIRED`: unattended vault identity required.
|
|
335
|
+
- `VAULT_LOGIN_REQUIRED`: vault login required. **Needs a person.**
|
|
336
|
+
- `VAULT_POLICY_PERMISSION_REQUIRED`: vault policy permission required. **Needs a person.**
|
|
337
|
+
- `VAULT_RENEWAL_FAILING`: vault renewal failing.
|
|
338
|
+
|
|
339
|
+
## Fleet operations and the fleet state
|
|
340
|
+
|
|
341
|
+
- **Meaning:** fleet-sync could not plan, lock, reach a machine, promote a revision or keep the fleet state.
|
|
342
|
+
- **Confirm:** `devfleet fleet-state` for the state, `devfleet fleet-status` for machines, and the report `devfleet fleet-sync` writes.
|
|
343
|
+
- **Fix:** Follow the remedy; most clear by running `devfleet fleet-sync` again once the holder of a lock finishes.
|
|
344
|
+
- **Escalate:** FLEET_STATE_DIVERGED needs a person to choose which copy of the state to keep (docs/state.md).
|
|
345
|
+
|
|
346
|
+
- `ANSIBLE_VARIABLE_LIMIT`: ansible variable limit.
|
|
347
|
+
- `CONTAINER_WATCHDOG_UNOBSERVED`: container watchdog unobserved.
|
|
348
|
+
- `FLEET_CONNECTION_REQUIRED`: fleet connection required.
|
|
349
|
+
- `FLEET_MANAGER_ENROLLMENT_REQUIRED`: fleet manager enrollment required. **Needs a person.**
|
|
350
|
+
- `FLEET_MANAGER_LOCKED`: fleet manager locked.
|
|
351
|
+
- `FLEET_MANAGER_UNREACHABLE`: fleet manager unreachable.
|
|
352
|
+
- `FLEET_NOT_MANAGER`: fleet not manager.
|
|
353
|
+
- `FLEET_PLAN_STALE`: fleet plan stale.
|
|
354
|
+
- `FLEET_PROMOTION_BLOCKED`: fleet promotion blocked.
|
|
355
|
+
- `FLEET_REMOTE_LOCKED`: fleet remote locked.
|
|
356
|
+
- `FLEET_REMOTE_OPERATION_FAILED`: fleet remote operation failed.
|
|
357
|
+
- `FLEET_REVISION_REQUIRED`: fleet revision required.
|
|
358
|
+
- `FLEET_SCHEDULE_PREVIEW`: fleet schedule preview.
|
|
359
|
+
- `FLEET_SOURCE_UNAVAILABLE`: fleet source unavailable.
|
|
360
|
+
- `FLEET_STATE_DIVERGED`: fleet state diverged. **Needs a person.**
|
|
361
|
+
- `FLEET_VERIFICATION_MISSING`: fleet verification missing.
|
|
362
|
+
- `MANAGER_AGENT_PROFILES_FAILED`: manager agent profiles failed.
|
|
363
|
+
- `MANAGER_DISK_UNOBSERVED`: manager disk unobserved.
|
|
364
|
+
- `MANAGER_DOCKER_DESKTOP_DRIFT`: manager docker desktop drift.
|
|
365
|
+
- `MANAGER_DOCKER_DESKTOP_UNOBSERVED`: manager docker desktop unobserved.
|
|
366
|
+
- `MANAGER_RELEASE_UNOBSERVED`: manager release unobserved.
|
|
367
|
+
- `MANAGER_SLEEPS_ON_POWER`: manager sleeps on power.
|
|
368
|
+
- `MANAGER_UPDATES_UNOBSERVED`: manager updates unobserved.
|
|
369
|
+
- `REMOTE_CONFIGURATION_INCOMPLETE`: remote configuration incomplete.
|
|
370
|
+
- `REMOTE_PHASE_FAILED`: remote phase failed.
|
|
371
|
+
|
|
372
|
+
## Notifications (fleet-watch)
|
|
373
|
+
|
|
374
|
+
- **Meaning:** fleet-watch could not reach a notification target `notify` in `fleet.json` names, or its address is not stored as a secret.
|
|
375
|
+
- **Confirm:** Run `devfleet fleet-watch --test` and read the `notify:*` checks.
|
|
376
|
+
- **Fix:** Store the target's address as the secret the remedy names, or fix the endpoint, then run `devfleet fleet-watch --test` again.
|
|
377
|
+
- **Escalate:** A target that keeps refusing needs whoever runs that endpoint.
|
|
378
|
+
|
|
379
|
+
- `NOTIFY_DELIVERY_FAILED`: notify delivery failed.
|
|
380
|
+
- `NOTIFY_TARGET_UNAVAILABLE`: notify target unavailable.
|
package/docs/state.md
CHANGED
|
@@ -4,13 +4,18 @@ A fleet is described in two places you own. Your project in Git holds
|
|
|
4
4
|
`fleet.json` and pins the dev-fleet version. Everything else the manager
|
|
5
5
|
cannot rebuild from Git is the **fleet state**:
|
|
6
6
|
|
|
7
|
-
| Document | What it is
|
|
8
|
-
| ------------ |
|
|
9
|
-
| `roster` | The enrolled connection to each worker (SSH alias, Tailscale device)
|
|
10
|
-
| `enrollment` | The revision `fleet-sync` approved and the one it last applied
|
|
11
|
-
| `definition` | The fleet configuration `fleet-sync` last applied: your `fleet.json`
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
| Document | What it is |
|
|
8
|
+
| ------------ | --------------------------------------------------------------------- |
|
|
9
|
+
| `roster` | The enrolled connection to each worker (SSH alias, Tailscale device) |
|
|
10
|
+
| `enrollment` | The revision `fleet-sync` approved and the one it last applied |
|
|
11
|
+
| `definition` | The fleet configuration `fleet-sync` last applied: your `fleet.json` |
|
|
12
|
+
| `history` | The last 90 days of `fleet-sync` runs (at most 500), and the schedule |
|
|
13
|
+
|
|
14
|
+
`devfleet fleet-watch` also keeps `watch.json` in the bucket, beside the
|
|
15
|
+
database: the health of each worker when it last looked, and when that was
|
|
16
|
+
(the manager's heartbeat). Losing it costs at most one repeated notification.
|
|
17
|
+
|
|
18
|
+
The three documents live in one SQLite database, and [Litestream](https://litestream.io)
|
|
14
19
|
replicates that database to a storage bucket you own. The bucket is the source
|
|
15
20
|
of truth. The copy on the manager is disposable: delete it, or replace the
|
|
16
21
|
whole machine, and the next command brings the fleet back.
|
|
@@ -118,6 +123,7 @@ way, needs no credentials and is the quickest way to try this out.
|
|
|
118
123
|
```sh
|
|
119
124
|
devfleet fleet-state # read-only: where the state is, and how it stands with the bucket
|
|
120
125
|
devfleet fleet-state --example # print a fleet.json to start a project from
|
|
126
|
+
devfleet fleet-report --since 30d # read-only: how reliably fleet-sync ran, from the history
|
|
121
127
|
devfleet fleet-state --export # print the configuration fleet-sync last applied
|
|
122
128
|
devfleet fleet-state --push # upload changes made while the bucket was unreachable
|
|
123
129
|
devfleet fleet-state --restore # replace the local copy with the bucket's
|
package/docs/ubuntu-sync.md
CHANGED
|
@@ -117,9 +117,8 @@ included, to the exact version in `ansible/ubuntu/policy.json`. The interactive
|
|
|
117
117
|
roster in the [fleet state](state.md), using the existing roster schema.
|
|
118
118
|
Preserve workspace/runtime paths, capabilities and explicit `tailscaleId`
|
|
119
119
|
bindings.
|
|
120
|
-
- Workstation network consumers derive their inventory from
|
|
121
|
-
|
|
122
|
-
lossless identity-path migration; conflicts fail rather than silently winning.
|
|
120
|
+
- Workstation network consumers derive their inventory from the fleet
|
|
121
|
+
configuration; conflicts fail rather than silently winning.
|
|
123
122
|
- Manager approval: the `enrollment` document in the [fleet state](state.md).
|
|
124
123
|
Manager deployment lock: `~/.local/share/personal/fleet/manager/sync.lock`.
|
|
125
124
|
- Remote source: `~/.local/share/personal/fleet/revisions/FULL_SHA`.
|
|
@@ -211,8 +210,10 @@ vault kv get -field=FLEET_WORKER_TOKEN_WORKER_ONE secret/personal/prd \
|
|
|
211
210
|
| ssh worker-one 'vault login -address=https://vault.example.com -no-print -'
|
|
212
211
|
```
|
|
213
212
|
|
|
214
|
-
From then on the node's `personal-worker-auth` timer renews that token and
|
|
215
|
-
GitHub login
|
|
213
|
+
From then on the node's `personal-worker-auth` timer renews that token and
|
|
214
|
+
restores its GitHub login from it (`bootstrap/worker-auth.ts`). It renders no
|
|
215
|
+
provider configuration: agent profiles are applied by `fleet-sync`. See
|
|
216
|
+
[Authentication and accounts](authentication.md).
|
|
216
217
|
|
|
217
218
|
## Ubuntu and remote-work safety
|
|
218
219
|
|
|
@@ -268,7 +269,7 @@ promise. Inspect disk/inodes, swap/memory pressure, `systemctl --failed`, and pr
|
|
|
268
269
|
boot journal evidence locally; sanitize it before sharing. Do not enable automatic
|
|
269
270
|
reboot-on-pressure or kill active work to obtain a green report.
|
|
270
271
|
|
|
271
|
-
T3
|
|
272
|
+
The pinned T3's (`t3_version` in `mise.toml`) supported administrator policy at `/etc/t3code/policy.json`
|
|
272
273
|
disables independent updates and declares the existing managed Codex instance
|
|
273
274
|
plus an OpenCode instance for all five gateway models. Fleet reuses the
|
|
274
275
|
existing `agents/t3.json` renderer; it does not edit the live settings database.
|
package/examples/fleet.json
CHANGED
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
"proxy-tunnel-token": {
|
|
30
30
|
"path": "cliproxy-fleet/tunnel",
|
|
31
31
|
"field": "TUNNEL_TOKEN"
|
|
32
|
+
},
|
|
33
|
+
"monitoring-backup-access-key": {
|
|
34
|
+
"path": "beszel/backups",
|
|
35
|
+
"field": "ACCESS_KEY_ID"
|
|
36
|
+
},
|
|
37
|
+
"monitoring-backup-secret-key": {
|
|
38
|
+
"path": "beszel/backups",
|
|
39
|
+
"field": "SECRET_ACCESS_KEY"
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
},
|
|
@@ -73,7 +81,16 @@
|
|
|
73
81
|
"hubPort": 8443,
|
|
74
82
|
"publicUrl": "https://beszel.example.com",
|
|
75
83
|
"managerAccount": "fleet-manager@example.com",
|
|
76
|
-
"viewerAccount": "public-viewer@example.com"
|
|
84
|
+
"viewerAccount": "public-viewer@example.com",
|
|
85
|
+
"backups": {
|
|
86
|
+
"schedule": "0 3 * * *",
|
|
87
|
+
"keep": 7,
|
|
88
|
+
"storage": {
|
|
89
|
+
"bucket": "my-fleet-hub-backups",
|
|
90
|
+
"endpoint": "https://s3.example.com",
|
|
91
|
+
"region": "auto"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
77
94
|
}
|
|
78
95
|
},
|
|
79
96
|
"ubuntu": {
|
|
@@ -92,6 +109,7 @@
|
|
|
92
109
|
"githubLogin": "example-user",
|
|
93
110
|
"vaultUser": "example-user",
|
|
94
111
|
"toolchain": "mise.lock",
|
|
112
|
+
"toolProfiles": ["go"],
|
|
95
113
|
"agentProfile": "proxy",
|
|
96
114
|
"unattendedSudo": true,
|
|
97
115
|
"persistentT3": true,
|
package/llms.txt
CHANGED
|
@@ -31,6 +31,8 @@ Rules for an agent working in a project that uses dev-fleet:
|
|
|
31
31
|
- [Ubuntu fleet-sync reference](https://github.com/crvouga/dev-fleet/blob/main/docs/ubuntu-sync.md): enrollment, approval, machine policy by platform, remote-work safety
|
|
32
32
|
- [Worker contract](https://github.com/crvouga/dev-fleet/blob/main/docs/worker-contract.md): what a worker guarantees and how readiness is scoped
|
|
33
33
|
- [Operations](https://github.com/crvouga/dev-fleet/blob/main/docs/operations.md): roster, diagnostics and repairs
|
|
34
|
+
- [Runbooks](https://github.com/crvouga/dev-fleet/blob/main/docs/runbooks.md): every failure code, how to confirm it, the fix and when to escalate
|
|
35
|
+
- [Authentication and accounts](https://github.com/crvouga/dev-fleet/blob/main/docs/authentication.md): where each credential lives, how it reaches each node and how it rotates
|
|
34
36
|
- [Coding agents on every node](https://github.com/crvouga/dev-fleet/blob/main/agents/setup.md): agent launchers and the T3 providers
|
|
35
37
|
- [Releasing](https://github.com/crvouga/dev-fleet/blob/main/docs/releasing.md): how a version is published from one commit (for dev-fleet developers)
|
|
36
38
|
- [Features](https://github.com/crvouga/dev-fleet/blob/main/features/README.md): the behaviour specified in Gherkin (for dev-fleet developers)
|
package/mise.toml
CHANGED
|
@@ -110,3 +110,10 @@ docker_desktop_amd64_sha256 = "96b53f9a4a807b6be6207d18f360b9778ff481e1d94b5027b
|
|
|
110
110
|
|
|
111
111
|
# Minimal remote development baseline; versions are resolved exclusively by tools + mise.lock.
|
|
112
112
|
worker_tools = "bun,node,gh,python,uv,docker-cli,vault,jq,codex,claude,aqua:anomalyco/opencode,gemini,copilot,http:grok,http:antigravity"
|
|
113
|
+
# Tool profiles a fleet adds to its workers (`worker.toolProfiles` in
|
|
114
|
+
# fleet.json, fleet-wide or per worker): one `worker_profile_<name>` each,
|
|
115
|
+
# naming tools pinned above. bootstrap/worker-tools.ts lists the names.
|
|
116
|
+
worker_profile_web = "pnpm,deno,npm:@yarnpkg/cli-dist"
|
|
117
|
+
worker_profile_go = "go"
|
|
118
|
+
worker_profile_rust = "rust,cmake,ninja"
|
|
119
|
+
worker_profile_jvm = "java"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/dev-fleet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Keeps a set of development machines in sync: one manager and many workers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:crvouga/dev-fleet",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=22"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "f2813f818b062ed53335afbeee8f67de3b3ac4d4"
|
|
76
76
|
}
|