@crvouga/homelab 0.23.14 → 0.25.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/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/aube-lock.yaml +73 -297
- package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/package.json +1 -1
- package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/aube-lock.yaml +42 -42
- package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/package.json +1 -1
- package/README.md +65 -87
- package/ansible/ubuntu/agent-tool.py +106 -1
- package/ansible/ubuntu/heavy.py +142 -0
- package/ansible/ubuntu/idle-reboot.py +125 -0
- package/ansible/ubuntu/policy.json +51 -3
- package/ansible/ubuntu/t3-desktop.yml +7 -0
- package/ansible/ubuntu/t3-hang-snapshot.sh +75 -0
- package/ansible/ubuntu/t3-headless.yml +7 -0
- package/ansible/ubuntu/t3-health.sh +71 -3
- package/ansible/ubuntu/t3-policy.yml +14 -5
- package/ansible/ubuntu/tasks/packages.yml +2 -0
- package/ansible/ubuntu/tasks/recovery.yml +5 -1
- package/ansible/ubuntu/tasks/resources.yml +25 -2
- package/ansible/ubuntu/tasks/unattended-upgrades.yml +24 -6
- package/ansible/ubuntu/tasks/updates.yml +59 -0
- package/bootstrap/doctor.ts +0 -4
- package/bootstrap/project-action.sh +4 -5
- package/bootstrap/shell-path.ts +17 -19
- package/cliproxy/README.md +5 -6
- package/cliproxy/config.template.yaml +1 -15
- package/cliproxy/docs/health-workflow.example.yml +6 -6
- package/cliproxy/docs/model-health.md +8 -8
- package/cliproxy/scripts/accounts.py +3 -4
- package/cliproxy/scripts/fleet_sync.py +2 -13
- package/cliproxy/scripts/ops +3 -21
- package/docs/authentication.md +21 -26
- package/docs/consumer-setup.md +31 -31
- package/docs/convergence.md +28 -32
- package/docs/declared.md +30 -31
- package/docs/github.md +0 -9
- package/docs/machine-setup.md +16 -17
- package/docs/manager-recovery.md +0 -2
- package/docs/operations.md +12 -11
- package/docs/releasing.md +24 -25
- package/docs/runbooks.md +22 -78
- package/docs/support-matrix.md +1 -1
- package/docs/ubuntu-sync.md +71 -65
- package/docs/worker-contract.md +112 -15
- package/examples/fleet.json +0 -2
- package/llms.txt +0 -2
- package/mise.lock +235 -809
- package/mise.toml +13 -28
- package/package.json +6 -6
- package/schema/check-ids.json +41 -482
- package/schema/fleet.schema.json +6 -61
- package/schema/output/fleet-sync.schema.json +23 -0
- package/schema/roster.schema.json +0 -2
- package/src/agent-session-limit.ts +2 -7
- package/src/auth-checks.ts +1 -3
- package/src/check-owners.ts +0 -13
- package/src/check-registry.ts +13 -72
- package/src/cli/agent-guide.ts +3 -16
- package/src/cli/command-index.ts +0 -12
- package/src/cli/fleet-sync-checkout.ts +10 -1
- package/src/cli/fleet-sync-manager.ts +4 -146
- package/src/cli/fleet-sync-output.ts +19 -4
- package/src/cli/fleet-sync-plan.ts +1 -24
- package/src/cli/fleet-sync-progress.ts +11 -2
- package/src/cli/fleet-sync-remote.ts +34 -1
- package/src/cli/fleet-sync-vault.ts +1 -2
- package/src/cli/fleet-sync.ts +8 -44
- package/src/cli/fleet.ts +1 -2
- package/src/cli/program.ts +3 -14
- package/src/cli/register-fleet.ts +1 -55
- package/src/cli/registry.ts +1 -43
- package/src/config.ts +0 -2
- package/src/definition.ts +8 -84
- package/src/fleet-config.ts +1 -1
- package/src/ide/definition.ts +2 -29
- package/src/ide/super.ts +4 -35
- package/src/ide/t3.ts +9 -38
- package/src/manager-sync.ts +15 -1
- package/src/node-converge-linux.ts +4 -47
- package/src/node-converge-shared.ts +1 -22
- package/src/package-info.ts +104 -6
- package/src/{agents/toolchain.ts → pinned-path.ts} +0 -17
- package/src/platform/agent-oom-check.ts +104 -0
- package/src/platform/t3-policy.ts +23 -36
- package/src/platform/t3-service.ts +117 -0
- package/src/platform/wip-guard-check.ts +65 -0
- package/src/remote-entry.ts +2 -41
- package/src/repair-catalog.ts +0 -30
- package/src/schedule-check.ts +17 -4
- package/src/service-auth.ts +0 -50
- package/src/state/litestream.ts +1 -1
- package/src/t3/retire-providers.ts +79 -0
- package/src/t3/version.ts +1 -1
- package/src/transport.ts +2 -6
- package/src/types.ts +0 -2
- package/src/version-parity.ts +0 -8
- package/src/worker-access-checks.ts +0 -75
- package/src/worker-host-checks.ts +78 -1
- package/src/worker-policy.ts +1 -5
- package/src/worker-readiness.ts +2 -0
- package/src/worker-sizing.ts +25 -0
- package/.mise/locks/azure-cli/2.93.0~a837e014/pyproject.toml +0 -5
- package/.mise/locks/azure-cli/2.93.0~a837e014/uv.lock +0 -2841
- package/.mise/locks/gemini/0.71.1~84aac8e6/aube-lock.yaml +0 -124
- package/.mise/locks/gemini/0.71.1~84aac8e6/package.json +0 -12
- package/agents/antigravity-proxy.ts +0 -3
- package/agents/audit.md +0 -88
- package/agents/bin/agy +0 -10
- package/agents/bin/antigravity +0 -10
- package/agents/bin/claude +0 -10
- package/agents/bin/codex +0 -10
- package/agents/bin/grok +0 -10
- package/agents/bin/opencode +0 -10
- package/agents/claude-proxy +0 -5
- package/agents/claude-proxy.ts +0 -3
- package/agents/codex-proxy.ts +0 -3
- package/agents/grok-proxy.ts +0 -3
- package/agents/managed-proxy.ts +0 -109
- package/agents/opencode-proxy.ts +0 -3
- package/agents/registry.json +0 -209
- package/agents/registry.schema.json +0 -149
- package/agents/setup.md +0 -158
- package/agents/t3.json +0 -40
- package/ansible/agents/agents.yml +0 -135
- package/ansible/agents/commands.yml +0 -32
- package/ansible/agents/receipts.yml +0 -19
- package/ansible/agents/templates/antigravity.settings.json.j2 +0 -3
- package/ansible/agents/templates/claude.settings.json.j2 +0 -3
- package/ansible/agents/templates/codex.config.toml.j2 +0 -11
- package/ansible/agents/templates/gemini.settings.json.j2 +0 -14
- package/ansible/agents/templates/grok.config.toml.j2 +0 -25
- package/ansible/agents/templates/opencode.json.j2 +0 -24
- package/ansible/agents/templates/receipt.json.j2 +0 -10
- package/ansible/t3/provider-keys.yml +0 -24
- package/docs/accounts.md +0 -256
- package/src/accounts/checks.ts +0 -226
- package/src/accounts/context.ts +0 -77
- package/src/accounts/propagate.ts +0 -62
- package/src/accounts/roster.ts +0 -112
- package/src/accounts/selection.ts +0 -67
- package/src/accounts/sessions.ts +0 -354
- package/src/agents/account-relay.ts +0 -279
- package/src/agents/accounts.ts +0 -94
- package/src/agents/admission.ts +0 -65
- package/src/agents/audit.ts +0 -77
- package/src/agents/cli.ts +0 -13
- package/src/agents/command.ts +0 -257
- package/src/agents/commands.ts +0 -127
- package/src/agents/converge.ts +0 -339
- package/src/agents/doctor.ts +0 -107
- package/src/agents/errors.ts +0 -2
- package/src/agents/files.ts +0 -43
- package/src/agents/fleet-verify.ts +0 -195
- package/src/agents/launch.ts +0 -361
- package/src/agents/native-verify.ts +0 -738
- package/src/agents/provider-errors.ts +0 -57
- package/src/agents/registry.ts +0 -61
- package/src/agents/render.ts +0 -121
- package/src/agents/round-trip.ts +0 -192
- package/src/agents/secrets.ts +0 -48
- package/src/agents/verify-cache.ts +0 -164
- package/src/agents/verify.ts +0 -129
- package/src/cli/fleet-accounts.ts +0 -294
- package/src/cli/fleet-sync-accounts.ts +0 -62
- package/src/cli/node-deployment.ts +0 -34
- package/src/cli/node-sync.ts +0 -121
- package/src/cli/node-t3.ts +0 -35
- package/src/cli/t3/command.ts +0 -91
- package/src/cli/t3/register.ts +0 -56
- package/src/configure.ts +0 -271
- package/src/github/copilot.ts +0 -54
- package/src/t3/accounts.ts +0 -90
- package/src/t3/antigravity.ts +0 -93
- package/src/t3/desired.ts +0 -174
- package/src/t3/diagnostics.ts +0 -42
- package/src/t3/models.ts +0 -354
- package/src/t3/names-check.ts +0 -53
- package/src/t3/names.ts +0 -155
- package/src/t3/plan.ts +0 -106
- package/src/t3/provider-keys.ts +0 -49
- package/src/t3/providers.ts +0 -102
- package/src/t3/reconcile.ts +0 -133
package/docs/consumer-setup.md
CHANGED
|
@@ -158,37 +158,37 @@ npx @crvouga/homelab state --example > fleet.json
|
|
|
158
158
|
Then replace every placeholder. Each field, from
|
|
159
159
|
[`schema/fleet.schema.json`](../schema/fleet.schema.json):
|
|
160
160
|
|
|
161
|
-
| Field
|
|
162
|
-
|
|
|
163
|
-
| `version`
|
|
164
|
-
| `source.repository`
|
|
165
|
-
| `state`
|
|
166
|
-
| `secrets`
|
|
167
|
-
| `manager.id`
|
|
168
|
-
| `manager.os`
|
|
169
|
-
| `manager.network.tailscaleName`
|
|
170
|
-
| `manager.network.user`
|
|
171
|
-
| `manager.neverSleepOnPower`
|
|
172
|
-
| `workers[].id`
|
|
173
|
-
| `canary`
|
|
174
|
-
| `workers[].ssh`
|
|
175
|
-
| `workers[].os`
|
|
176
|
-
| `workers[].network.tailscaleName`
|
|
177
|
-
| `workers[].network.sshPort`
|
|
178
|
-
| `workers[].network.user`
|
|
179
|
-
| `workers[].network.t3Port`
|
|
180
|
-
| `services.proxy.endpoint`
|
|
181
|
-
| `services.monitoring.hubPort`
|
|
182
|
-
| `services.monitoring.publicUrl`
|
|
183
|
-
| `services.monitoring.managerAccount`
|
|
184
|
-
| `services.monitoring.viewerAccount`
|
|
185
|
-
| `ubuntu`
|
|
186
|
-
| `worker.requiredCapabilities`
|
|
187
|
-
| `worker.githubLogin`
|
|
188
|
-
| `github` (optional)
|
|
189
|
-
| `worker.vaultUser`
|
|
190
|
-
| `worker.toolchain
|
|
191
|
-
| `worker.unattendedSudo`, `
|
|
161
|
+
| Field | Value |
|
|
162
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
163
|
+
| `version` | `3` |
|
|
164
|
+
| `source.repository` | `https://github.com/crvouga/homelab.git`, or your fork if you publish one. Machines only accept code from it. |
|
|
165
|
+
| `state` | `{ "bucket", "endpoint"?, "region"?, "prefix"? }` or `{ "directory": "/absolute/path" }`. Never credentials. |
|
|
166
|
+
| `secrets` | See [secrets](#secrets). |
|
|
167
|
+
| `manager.id` | A short lowercase id, `^[a-z][a-z0-9-]{0,62}$`, e.g. `manager-mac`. |
|
|
168
|
+
| `manager.os` | `"macOS"` |
|
|
169
|
+
| `manager.network.tailscaleName` | The manager's MagicDNS name: `tailscale status --json` → `.Self.DNSName` without the trailing dot. |
|
|
170
|
+
| `manager.network.user` | The manager's login name (`id -un`). |
|
|
171
|
+
| `manager.neverSleepOnPower` | `true` (workers depend on the manager's services). |
|
|
172
|
+
| `workers[].id` | A short lowercase id. The first reachable worker is the canary: a new revision must pass there before the others get it. |
|
|
173
|
+
| `canary` | Optional: the id of the worker to prefer as canary. When it is unreachable, the next reachable worker is used. |
|
|
174
|
+
| `workers[].ssh` | The worker's alias in the manager's `~/.ssh/config`. |
|
|
175
|
+
| `workers[].os` | `"linux"` |
|
|
176
|
+
| `workers[].network.tailscaleName` | The worker's MagicDNS name (from `tailscale status --json` → `.Peer[].DNSName` on the manager). |
|
|
177
|
+
| `workers[].network.sshPort` | `22` unless the worker's sshd listens elsewhere. |
|
|
178
|
+
| `workers[].network.user` | The worker account (`ssh WORKER_ALIAS id -un`). |
|
|
179
|
+
| `workers[].network.t3Port` | `3773` |
|
|
180
|
+
| `services.proxy.endpoint` | The public HTTPS origin of the CLI proxy, e.g. `https://cli-proxy.example.com`. |
|
|
181
|
+
| `services.monitoring.hubPort` | `8443` |
|
|
182
|
+
| `services.monitoring.publicUrl` | The public HTTPS origin of the monitoring dashboard. |
|
|
183
|
+
| `services.monitoring.managerAccount` | The email of the monitoring account the manager enrolls machines with. |
|
|
184
|
+
| `services.monitoring.viewerAccount` | The email of the read-only account visitors are signed in as. |
|
|
185
|
+
| `ubuntu` | `{ "release": "26.04", "architectures": ["amd64", "arm64"] }`: a release of the [support matrix](support-matrix.md). |
|
|
186
|
+
| `worker.requiredCapabilities` | Normally all of `github`, `vault`, `t3`, `toolchain`, `workstation`, `worker`. |
|
|
187
|
+
| `worker.githubLogin` | The GitHub login every worker must be signed in as. |
|
|
188
|
+
| `github` (optional) | Who the manager signs in to GitHub as, per-node tokens, required scopes; see [GitHub](github.md). |
|
|
189
|
+
| `worker.vaultUser` | The Vault user each worker's token is issued for. |
|
|
190
|
+
| `worker.toolchain` | `"mise.lock"` (fixed). |
|
|
191
|
+
| `worker.unattendedSudo`, `neverSleep` | `true` (fixed policy). |
|
|
192
192
|
|
|
193
193
|
Use the same values in every place they repeat. Validate before going on:
|
|
194
194
|
|
package/docs/convergence.md
CHANGED
|
@@ -11,38 +11,34 @@ is missing from it.
|
|
|
11
11
|
|
|
12
12
|
## Ansible
|
|
13
13
|
|
|
14
|
-
| Playbook | Converges
|
|
15
|
-
| ------------------------------------------ |
|
|
16
|
-
| `ansible/ubuntu/tests/fixture.yml` | Disposable VM setup only: marker-gated package timers and package-lock readiness
|
|
17
|
-
| `ansible/ubuntu/baseline.yml` | A worker's packages, Docker, services, power, user, SSH, disk
|
|
18
|
-
| `ansible/ubuntu/native-ssh.yml` | Enroll and verify native SSH in both directions
|
|
19
|
-
| `ansible/ubuntu/t3-mesh.yml` | Replace or create one declared full-access T3 grant
|
|
20
|
-
| `ansible/ubuntu/screen-sharing.yml` | Configure GNOME desktop sharing and publish its per-worker credential
|
|
21
|
-
| `ansible/ubuntu/retire-screen-sharing.yml` | Retire managed sharing before changing the firewall
|
|
22
|
-
| `ansible/ubuntu/tailscale.yml` | Tailscale on a worker
|
|
23
|
-
| `ansible/ubuntu/t3-desktop.yml` | The T3 desktop app on a desktop worker
|
|
24
|
-
| `ansible/ubuntu/t3-headless.yml` | The T3 server as a lingering user service on a headless worker
|
|
25
|
-
| `ansible/ubuntu/t3-policy.yml` | T3's administrator policy
|
|
26
|
-
| `ansible/ubuntu/t3-route.yml` | T3's private tailnet route
|
|
27
|
-
| `ansible/ubuntu/recovery.yml` | Recovery of a stopped T3 desktop app or server
|
|
28
|
-
| `ansible/ubuntu/worker-account.yml` | The declared account on an image that lets only root in, from the manager
|
|
29
|
-
| `ansible/ubuntu/reboot.yml` | One worker's first-converge or maintenance reboot, from the manager
|
|
30
|
-
| `ansible/ubuntu/tailscale-upgrade.yml` | One worker's maintenance upgrade of Tailscale to its pin, from the manager
|
|
31
|
-
| `ansible/monitoring/agent.yml` | The Beszel agent on a worker
|
|
32
|
-
| `ansible/monitoring/agent-darwin.yml` | The Beszel agent on the manager
|
|
33
|
-
| `ansible/monitoring/hub-darwin.yml` | The Beszel hub and its tunnel on the manager
|
|
34
|
-
| `ansible/monitoring/hub-route-darwin.yml` | The hub's private tailnet route
|
|
35
|
-
| `ansible/macos/manager.yml` | The manager's power settings, network time and notify job, unattended
|
|
36
|
-
| `ansible/macos/t3-desktop.yml` | The verified manager desktop, staged alongside earlier releases
|
|
37
|
-
| `ansible/macos/t3-policy.yml` | T3's administrator policy on the manager
|
|
38
|
-
| `ansible/macos/manager-privilege.yml` | The one administrator grant: sudoers, job log rotation and the T3 policy
|
|
39
|
-
| `ansible/macos/worker-host-key.yml` | A worker's pinned SSH host key in the manager's known_hosts
|
|
40
|
-
| `ansible/macos/vault-renew.yml` | The launch agent that renews the manager's own Vault session
|
|
41
|
-
| `ansible/github/git.yml` | The Git identity and GitHub credentials of every node
|
|
42
|
-
| `ansible/t3/provider-keys.yml` | Install and retire local T3 client-key slots for managed Antigravity providers |
|
|
43
|
-
| `ansible/agents/agents.yml` | Each agent CLI's dedicated profile, rendered from `ansible/agents/templates/` |
|
|
44
|
-
| `ansible/agents/receipts.yml` | Advance revision evidence for unchanged, verified profiles in one run |
|
|
45
|
-
| `ansible/agents/commands.yml` | The link that makes a worker's agent commands the fleet's launchers (`agents/bin`) |
|
|
14
|
+
| Playbook | Converges |
|
|
15
|
+
| ------------------------------------------ | -------------------------------------------------------------------------------- |
|
|
16
|
+
| `ansible/ubuntu/tests/fixture.yml` | Disposable VM setup only: marker-gated package timers and package-lock readiness |
|
|
17
|
+
| `ansible/ubuntu/baseline.yml` | A worker's packages, Docker, services, power, user, SSH, disk |
|
|
18
|
+
| `ansible/ubuntu/native-ssh.yml` | Enroll and verify native SSH in both directions |
|
|
19
|
+
| `ansible/ubuntu/t3-mesh.yml` | Replace or create one declared full-access T3 grant |
|
|
20
|
+
| `ansible/ubuntu/screen-sharing.yml` | Configure GNOME desktop sharing and publish its per-worker credential |
|
|
21
|
+
| `ansible/ubuntu/retire-screen-sharing.yml` | Retire managed sharing before changing the firewall |
|
|
22
|
+
| `ansible/ubuntu/tailscale.yml` | Tailscale on a worker |
|
|
23
|
+
| `ansible/ubuntu/t3-desktop.yml` | The T3 desktop app on a desktop worker |
|
|
24
|
+
| `ansible/ubuntu/t3-headless.yml` | The T3 server as a lingering user service on a headless worker |
|
|
25
|
+
| `ansible/ubuntu/t3-policy.yml` | T3's administrator policy |
|
|
26
|
+
| `ansible/ubuntu/t3-route.yml` | T3's private tailnet route |
|
|
27
|
+
| `ansible/ubuntu/recovery.yml` | Recovery of a stopped T3 desktop app or server |
|
|
28
|
+
| `ansible/ubuntu/worker-account.yml` | The declared account on an image that lets only root in, from the manager |
|
|
29
|
+
| `ansible/ubuntu/reboot.yml` | One worker's first-converge or maintenance reboot, from the manager |
|
|
30
|
+
| `ansible/ubuntu/tailscale-upgrade.yml` | One worker's maintenance upgrade of Tailscale to its pin, from the manager |
|
|
31
|
+
| `ansible/monitoring/agent.yml` | The Beszel agent on a worker |
|
|
32
|
+
| `ansible/monitoring/agent-darwin.yml` | The Beszel agent on the manager |
|
|
33
|
+
| `ansible/monitoring/hub-darwin.yml` | The Beszel hub and its tunnel on the manager |
|
|
34
|
+
| `ansible/monitoring/hub-route-darwin.yml` | The hub's private tailnet route |
|
|
35
|
+
| `ansible/macos/manager.yml` | The manager's power settings, network time and notify job, unattended |
|
|
36
|
+
| `ansible/macos/t3-desktop.yml` | The verified manager desktop, staged alongside earlier releases |
|
|
37
|
+
| `ansible/macos/t3-policy.yml` | T3's administrator policy on the manager |
|
|
38
|
+
| `ansible/macos/manager-privilege.yml` | The one administrator grant: sudoers, job log rotation and the T3 policy |
|
|
39
|
+
| `ansible/macos/worker-host-key.yml` | A worker's pinned SSH host key in the manager's known_hosts |
|
|
40
|
+
| `ansible/macos/vault-renew.yml` | The launch agent that renews the manager's own Vault session |
|
|
41
|
+
| `ansible/github/git.yml` | The Git identity and GitHub credentials of every node |
|
|
46
42
|
|
|
47
43
|
Every playbook passes `ansible-lint` in the production profile, every command
|
|
48
44
|
in it says when it changes something and runs, or is skipped, in a dry run
|
package/docs/declared.md
CHANGED
|
@@ -12,34 +12,33 @@ may only shrink.
|
|
|
12
12
|
|
|
13
13
|
## Declared
|
|
14
14
|
|
|
15
|
-
| What | Declared in | Pinned by | Applied by | Measured by
|
|
16
|
-
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
17
|
-
| The fleet: machines, services, accounts | Your `fleet.json` | The `homelab` version in your `package.json`, which names one commit | `sync` | `status`
|
|
18
|
-
| Tools: languages, CLIs, coding agents | `mise.toml` | `mise.lock`: version and checksum for each platform | `mise install --locked` | Tool and `agent:verification` checks
|
|
19
|
-
| mise itself | `min_version` and `mise_*_sha256` in `mise.toml` | The digest of its release archive, held here | `bootstrap/bootstrap.sh` | `tool:mise`: the pin, or a newer one it keeps
|
|
20
|
-
| JavaScript dependencies | `package.json` | `bun.lock` | `bun install --frozen-lockfile` | The install fails on a difference
|
|
21
|
-
| T3 Code, server and desktop app | `t3_*` under `[vars]` in `mise.toml` | SHA-256 of each artifact | `bootstrap/native-t3.ts`; `ansible/ubuntu/t3-desktop.yml`; `ansible/macos/t3-desktop.yml` | T3 checks; `t3:version` on every machine
|
|
22
|
-
| T3 policy on the manager (updates off, linked environments on) | `ansible/ubuntu/t3/policy.json`, shared with the workers | The commit | `ansible/macos/t3-policy.yml`, once, as an administrator (`manager-privilege.yml`) | `t3:updates`
|
|
23
|
-
| Worker work-in-progress guard | `ansible/ubuntu/wip-guard.py`, `ansible/ubuntu/tasks/recovery.yml` | The commit | `sync` | `features/ide/work-in-progress.feature`
|
|
24
|
-
| Ubuntu packages | `packages` and `snapshot` in `ansible/ubuntu/policy.json` | Exact versions from a dated archive snapshot | `ansible/ubuntu/tasks/packages.yml` | `package:*`
|
|
25
|
-
| Tailscale on workers | `tailscale` in `ansible/ubuntu/policy.json` | Exact version; digest of the signing key | `ansible/ubuntu/tailscale.yml` | `package:tailscale`
|
|
26
|
-
| Worker policy: power, SSH, sudo, memory, disk | `ansible/ubuntu/*.yml`, values shared with checks in `policy.json` | The commit | `sync` | Host and resource checks
|
|
27
|
-
| Monitoring: hub, tunnel, agents | `ansible/monitoring/*.yml`, `compose.yml`, `lock.json` | Image digests; SHA-256 of each agent archive | `sync` | `beszel:*`
|
|
28
|
-
| The manager's private route to the hub | `ansible/monitoring/hub-route-darwin.yml` | The commit | `sync` | The route, read back
|
|
29
|
-
| The manager's power settings | `pmset` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager.yml`, on every `sync`, after one grant (`manager-privilege.yml`) | `manager:power`
|
|
30
|
-
| Ansible on the manager | `ansible/pyproject.toml` | `ansible/uv.lock`: one release, one Python, every dependency hashed | `uv run --locked --isolated` | A hash that differs stops the run
|
|
31
|
-
| Ansible on a worker | `ansible-core` in `ansible/ubuntu/policy.json` | Exact version | `ansible/ubuntu/tasks/packages.yml` | `package:ansible-core`
|
|
32
|
-
| The CLI proxy | `cliproxy/compose.yaml`, `image.lock.json`, `requirements.lock`, `launchd/`, `config.template.yaml` | Image digests; hashed Python dependencies | `homelab proxy install`, and `sync` after it | The proxy's audit
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
| The manager's
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
| CI | `.github/workflows/` | Each action at a commit; tools from `mise.lock` | GitHub | `features/rules/` |
|
|
15
|
+
| What | Declared in | Pinned by | Applied by | Measured by |
|
|
16
|
+
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | --------------------------------------------- |
|
|
17
|
+
| The fleet: machines, services, accounts | Your `fleet.json` | The `homelab` version in your `package.json`, which names one commit | `sync` | `status` |
|
|
18
|
+
| Tools: languages, CLIs, coding agents | `mise.toml` | `mise.lock`: version and checksum for each platform | `mise install --locked` | Tool and `agent:verification` checks |
|
|
19
|
+
| mise itself | `min_version` and `mise_*_sha256` in `mise.toml` | The digest of its release archive, held here | `bootstrap/bootstrap.sh` | `tool:mise`: the pin, or a newer one it keeps |
|
|
20
|
+
| JavaScript dependencies | `package.json` | `bun.lock` | `bun install --frozen-lockfile` | The install fails on a difference |
|
|
21
|
+
| T3 Code, server and desktop app | `t3_*` under `[vars]` in `mise.toml` | SHA-256 of each artifact | `bootstrap/native-t3.ts`; `ansible/ubuntu/t3-desktop.yml`; `ansible/macos/t3-desktop.yml` | T3 checks; `t3:version` on every machine |
|
|
22
|
+
| T3 policy on the manager (updates off, linked environments on) | `ansible/ubuntu/t3/policy.json`, shared with the workers | The commit | `ansible/macos/t3-policy.yml`, once, as an administrator (`manager-privilege.yml`) | `t3:updates` |
|
|
23
|
+
| Worker work-in-progress guard | `ansible/ubuntu/wip-guard.py`, `ansible/ubuntu/tasks/recovery.yml` | The commit | `sync` | `features/ide/work-in-progress.feature` |
|
|
24
|
+
| Ubuntu packages | `packages` and `snapshot` in `ansible/ubuntu/policy.json` | Exact versions from a dated archive snapshot | `ansible/ubuntu/tasks/packages.yml` | `package:*` |
|
|
25
|
+
| Tailscale on workers | `tailscale` in `ansible/ubuntu/policy.json` | Exact version; digest of the signing key | `ansible/ubuntu/tailscale.yml` | `package:tailscale` |
|
|
26
|
+
| Worker policy: power, SSH, sudo, memory, disk | `ansible/ubuntu/*.yml`, values shared with checks in `policy.json` | The commit | `sync` | Host and resource checks |
|
|
27
|
+
| Monitoring: hub, tunnel, agents | `ansible/monitoring/*.yml`, `compose.yml`, `lock.json` | Image digests; SHA-256 of each agent archive | `sync` | `beszel:*` |
|
|
28
|
+
| The manager's private route to the hub | `ansible/monitoring/hub-route-darwin.yml` | The commit | `sync` | The route, read back |
|
|
29
|
+
| The manager's power settings | `pmset` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager.yml`, on every `sync`, after one grant (`manager-privilege.yml`) | `manager:power` |
|
|
30
|
+
| Ansible on the manager | `ansible/pyproject.toml` | `ansible/uv.lock`: one release, one Python, every dependency hashed | `uv run --locked --isolated` | A hash that differs stops the run |
|
|
31
|
+
| Ansible on a worker | `ansible-core` in `ansible/ubuntu/policy.json` | Exact version | `ansible/ubuntu/tasks/packages.yml` | `package:ansible-core` |
|
|
32
|
+
| The CLI proxy | `cliproxy/compose.yaml`, `image.lock.json`, `requirements.lock`, `launchd/`, `config.template.yaml` | Image digests; hashed Python dependencies | `homelab proxy install`, and `sync` after it | The proxy's audit |
|
|
33
|
+
| A limit on agent sessions (opt-in) | `agentSessionLimit` in your `fleet.json`; `resourceSafety.agentSessionLimit` in `ansible/ubuntu/policy.json` | The commit | `ansible/ubuntu/tasks/agent-session-limit.yml` | `worker:agent-sessions` |
|
|
34
|
+
| Worker time service | `ansible/ubuntu/tasks/services.yml`, offsets in `clock` in `ansible/ubuntu/policy.json` | The commit | `sync` | `worker:clock` |
|
|
35
|
+
| The manager's playbook and its receipt | `ansible/macos/manager.yml` | The commit | `sync`, check mode first, then applied; re-applied at least daily | `manager:playbook` |
|
|
36
|
+
| The manager's network time | `ansible/macos/manager.yml` (an assert) | The commit | macOS | `manager:clock`, `worker:clock-offset` |
|
|
37
|
+
| notify on a schedule | `fleetWatch` in `ansible/macos/policy.json`, `manager.schedule.watchMinutes` in `fleet.json` | The commit | `sync` (`manager.yml`) | `manager:watch` |
|
|
38
|
+
| Rotation of the scheduled jobs' logs | `jobLogs` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager-privilege.yml`, once, as an administrator | `manager:job-logs` |
|
|
39
|
+
| The manager's container watchdog | `ansible/monitoring/container-watchdog.py`, `containerWatchdog` in `ansible/macos/policy.json` | The commit | `sync` (`hub-darwin.yml`) | `manager:container-watchdog` |
|
|
40
|
+
| Docker Desktop on the manager | `docker_desktop_*` under `[vars]` in `mise.toml` | Version and build | You | `manager:docker` (warns) |
|
|
41
|
+
| CI | `.github/workflows/` | Each action at a commit; tools from `mise.lock` | GitHub | `features/rules/` |
|
|
43
42
|
|
|
44
43
|
A value lives in a policy file when something besides the playbook reads it,
|
|
45
44
|
so the check and the playbook cannot disagree. A value only a playbook uses
|
|
@@ -91,8 +90,8 @@ would settle and the current tools do not is the rest of a worker's packages.
|
|
|
91
90
|
|
|
92
91
|
A pin that is only moved by hand goes stale and is then moved in a large
|
|
93
92
|
batch, the riskiest way to change a fleet. Each pin is moved by a machine,
|
|
94
|
-
one pull request at a time, which CI
|
|
95
|
-
|
|
93
|
+
one pull request at a time, which CI judges like any change and the night's
|
|
94
|
+
fresh workers and VM test judge again, unless it says below why a person moves it.
|
|
96
95
|
|
|
97
96
|
The repository runs Renovate hourly with its tracked configuration; it opens at most two pull requests an hour and keeps no dependency dashboard issue. The Pins workflow owns provider CLI versions, resolves stable releases and opens one pull request per provider with platform integrity locks. A failed resolution fails Pins and is tracked in its CI failure issue. A consumer adopts the published revision by updating its homelab dependency and running converge. Existing agent processes pick up a new executable on their next launch. Pending updates are the pull requests Renovate opens. Renovate takes security advisories from the public OSV database, not from Dependabot alerts, which the workflow's token cannot read. That token may not change files under `.github/workflows` either, so updates to the actions and images there need the `PINS_TOKEN` secret (contents, issues, pull requests and workflows write); without it each Renovate run warns.
|
|
98
97
|
|
|
@@ -109,7 +108,7 @@ The repository runs Renovate hourly with its tracked configuration; it opens at
|
|
|
109
108
|
| Docker Desktop on the manager | A person, because a person installs it and homelab only measures the version |
|
|
110
109
|
| The Ubuntu snapshot and package versions | The Pins workflow compares the supported architectures in each Ubuntu release and advances the snapshot and package versions together |
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
Fleet-wide version verification is always on; `"softwarePolicy": "latest-supported"` in fleet.json is still accepted and changes nothing. The consumer's package revision fixes the rollout target. Pins and Renovate check upstream channels before publication. During sync, `versionParity.nodes[].pending` lists missing or mismatched checks, including workers omitted from this run. A later sync of the same revision measures them again. A newer Ubuntu security package stays installed and counts as pending until its release pin catches up.
|
|
113
112
|
|
|
114
113
|
Tailscale's pin is a minimum that workers pass by themselves: a worker takes a
|
|
115
114
|
newer Tailscale through its own updates and keeps it, and `worker:package:tailscale`
|
package/docs/github.md
CHANGED
|
@@ -81,17 +81,8 @@ A `sync` fails with `github:sync` when the node cannot be signed in.
|
|
|
81
81
|
| `github:org-access` | Single sign-on has authorised the token for each declared organisation. |
|
|
82
82
|
| `github:git-credential` | git asks gh for its GitHub credential. |
|
|
83
83
|
| `worker:github-sync` | Why a worker is not signed in: `GITHUB_TOKEN_MISSING`, `GITHUB_TOKEN_REJECTED`, `GITHUB_LOGIN_MISMATCH`, `GITHUB_UNREACHABLE`. |
|
|
84
|
-
| `auth:copilot` | Copilot CLI uses the node's GitHub sign-in; fails `not-signed-in` without one and `COPILOT_TOKEN_UNSUPPORTED` for a classic token. |
|
|
85
84
|
| `github:workflow` | From `check-github`: the first step of clone, branch, commit, push, pull request, checks and comment that failed. |
|
|
86
85
|
|
|
87
|
-
## Copilot CLI
|
|
88
|
-
|
|
89
|
-
Copilot CLI takes the token gh holds when it has none of its own, so the
|
|
90
|
-
node's GitHub sign-in is its sign-in. It accepts OAuth, GitHub App user and
|
|
91
|
-
fine-grained tokens with the Copilot Requests permission, not classic
|
|
92
|
-
personal access tokens. Whether the account is entitled to Copilot is not
|
|
93
|
-
measured; no prompt is sent.
|
|
94
|
-
|
|
95
86
|
## Verifying the whole workflow
|
|
96
87
|
|
|
97
88
|
`homelab check-github` runs, from the machine it is started on, what an
|
package/docs/machine-setup.md
CHANGED
|
@@ -57,11 +57,7 @@ Unix PATH blocks cover `.profile`, existing `.bash_profile`/`.bash_login`,
|
|
|
57
57
|
`.bashrc`, `.zshenv`, `.zshrc` and fish's config. Zsh uses `ZDOTDIR` when set.
|
|
58
58
|
POSIX blocks are quiet, idempotent
|
|
59
59
|
and placed before interactive-only early returns, so noninteractive SSH/agent
|
|
60
|
-
commands can find the same shims without loading an interactive UI.
|
|
61
|
-
the same blocks put `~/.local/share/personal/fleet/agent-commands` ahead of the
|
|
62
|
-
shims: the agent commands there are the fleet's launchers, through the CLI
|
|
63
|
-
proxy. A machine without that directory, the manager included, skips it;
|
|
64
|
-
Windows updates only the user's PATH; AWS CLI v2 additionally uses the official
|
|
60
|
+
commands can find the same shims without loading an interactive UI. Windows updates only the user's PATH; AWS CLI v2 additionally uses the official
|
|
65
61
|
versioned MSI (a UAC prompt may appear) because mise's AWS recipe supports only
|
|
66
62
|
macOS/Linux. Its version comes from the same manifest and its Windows SHA-256 is
|
|
67
63
|
pinned in `vars.aws_windows_msi_sha256`; no unversioned installer is executed.
|
|
@@ -123,16 +119,9 @@ The generated guide includes the exact tool table from `mise.toml` below. Scope:
|
|
|
123
119
|
- **Delivery/infra:** Vercel, Wrangler, Railway, OpenTofu, Vault CLI (for the OpenBao-compatible secret service), Docker CLI,
|
|
124
120
|
ShellCheck, shfmt, actionlint, AWS CLI v2, kubectl and Helm. Installing provider CLIs does not authorize agents
|
|
125
121
|
to provision resources; shared infrastructure is still OpenTofu-owned.
|
|
126
|
-
- **Agent harnesses:**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
want to use and complete its interactive sign-in; installation does not copy
|
|
130
|
-
tokens, choose paid plans or grant agent permissions. OpenCode's optional
|
|
131
|
-
settings remain managed by `personal` and Vault. Codex sign-in follows the
|
|
132
|
-
[official CLI guide](https://learn.chatgpt.com/docs/codex/cli).
|
|
133
|
-
Claude/Copilot background self-updaters are disabled through mise environment
|
|
134
|
-
settings so they cannot silently replace locked versions; update through this
|
|
135
|
-
repository instead.
|
|
122
|
+
- **Agent harnesses:** none. T3 Code installs, updates and signs in Claude Code,
|
|
123
|
+
Codex, Gemini CLI, Copilot, Grok, OpenCode and the others itself; homelab pins
|
|
124
|
+
no agent CLI and sets none of their self-updater switches.
|
|
136
125
|
- **Security/data/HTTP:** Gitleaks for secret scanning, SOPS + age for encrypted
|
|
137
126
|
files, xh for HTTP requests, and usql for SQL database connections. Installing
|
|
138
127
|
these tools does not create encryption keys or copy credentials.
|
|
@@ -212,7 +201,7 @@ homelab converge
|
|
|
212
201
|
```
|
|
213
202
|
|
|
214
203
|
The machine bootstrap installs tools/dependencies only. `personal:install` additionally
|
|
215
|
-
installs the existing workstation launcher
|
|
204
|
+
installs the existing workstation launcher;
|
|
216
205
|
it may need platform permissions and a Vault login for credential-backed
|
|
217
206
|
features. `bun run setup` remains dependency installation only.
|
|
218
207
|
|
|
@@ -405,9 +394,19 @@ Pairing is done from the manager: by a person the first time, and by
|
|
|
405
394
|
`replace` or the next `sync` for a machine that replaces a
|
|
406
395
|
worker.
|
|
407
396
|
|
|
397
|
+
Which workers should run headless, what the desktop app is still needed for
|
|
398
|
+
and what was verified to behave the same under `t3code-headless.service` are
|
|
399
|
+
decided in [the worker contract](worker-contract.md#which-workers-run-headless).
|
|
400
|
+
To switch a worker, set `features.session` to `"headless"` in the consumer's
|
|
401
|
+
`fleet.json` and converge.
|
|
402
|
+
|
|
408
403
|
The disposable Ubuntu VM test (`ansible/ubuntu/tests/vm.py`) converges each
|
|
409
404
|
session type, reboots with nobody logged in and kills the T3 process to
|
|
410
|
-
prove the recovery timer brings it back.
|
|
405
|
+
prove the recovery timer brings it back. On the headless worker it also
|
|
406
|
+
starts an agent scope with the server's own environment and finds it in the
|
|
407
|
+
agents slice under the managed limits, restarts the server with that scope
|
|
408
|
+
running, launches the web profile's headless browser, mints a pairing code
|
|
409
|
+
with the pinned CLI and reads the idle probe's state.
|
|
411
410
|
|
|
412
411
|
Normal Ubuntu fleet setup is controller-led:
|
|
413
412
|
`homelab converge`. See the
|
package/docs/manager-recovery.md
CHANGED
|
@@ -52,8 +52,6 @@ On the new machine, with Git, Node and Docker installed:
|
|
|
52
52
|
after its last change). Use it only once the old machine is gone: an old
|
|
53
53
|
manager that wakes up afterwards is refused with `FLEET_MANAGER_LEASE_HELD`.
|
|
54
54
|
|
|
55
|
-
5. Adopt the T3 instances again: `npx homelab t3-reconcile --import ID`.
|
|
56
|
-
|
|
57
55
|
Workers need nothing: they reach the manager by its Tailscale name, so they
|
|
58
56
|
follow it once the new machine holds that name. If the Tailscale name
|
|
59
57
|
changed, change `manager.network.tailscaleName` in `fleet.json` and run
|
package/docs/operations.md
CHANGED
|
@@ -122,6 +122,7 @@ remote nodes' required lists. Run `workers --schema` for editor/agent validation
|
|
|
122
122
|
| `worker:capacity:inodes` | Free inodes on the home filesystem, against `inodeWarnFreePercent`/`inodeFailFreePercent` in `ansible/ubuntu/policy.json`. The disk guard and disk collector act on the same floors. |
|
|
123
123
|
| `worker:clock` | `timedatectl` says the clock is synchronised and a time service is enabled; with a reference time, the offset is held to `clock` in the policy. |
|
|
124
124
|
| `worker:reboot-pending` | `/var/run/reboot-required` exists: warns with its age, fails after `rebootPendingFailDays`. Reboot when no agent turn is running. |
|
|
125
|
+
| `worker:updates-pending` | `apt-get -s dist-upgrade` against Ubuntu's own archives (`updates` in `policy.json`): passes when nothing is pending or `unattended-upgrades` ran within `pendingFailDays`, fails with `UPDATES_NOT_INSTALLING` otherwise. |
|
|
125
126
|
| `tailscale:key-expiry` | The node key expiry Tailscale reports: warns 14 days ahead, fails 3 days ahead. See [Tailscale key expiry](#tailscale-key-expiry). |
|
|
126
127
|
| `manager:release` | `sw_vers` against `minimumMajorVersion` in `ansible/macos/policy.json`. |
|
|
127
128
|
| `manager:updates` | `softwareupdate --list --no-scan` (nothing is downloaded): warns on pending updates, and names one that waits for a restart. Names never shown. |
|
|
@@ -147,6 +148,12 @@ expiry.
|
|
|
147
148
|
### Maintenance reboots
|
|
148
149
|
|
|
149
150
|
Kernel and library updates apply only after a reboot (`worker:reboot-pending`).
|
|
151
|
+
A worker reboots itself for them: `personal-fleet-idle-reboot.timer`
|
|
152
|
+
(`ansible/ubuntu/idle-reboot.py`) reboots it when a reboot is pending, it has
|
|
153
|
+
been up for `updates.idleReboot.minUptimeMinutes`, no package transaction runs
|
|
154
|
+
and T3 has run no agent turn for `idleMinutes`. A worker that is never idle
|
|
155
|
+
keeps its reboot pending, and `worker:reboot-pending` fails after
|
|
156
|
+
`rebootPendingFailDays`.
|
|
150
157
|
`homelab converge --maintenance-reboot` reboots each worker that has one
|
|
151
158
|
pending: one at a time, the canary first, only while it runs no agent turn
|
|
152
159
|
(`--force` ends them), through `ansible/ubuntu/reboot.yml`. Each worker is
|
|
@@ -395,14 +402,8 @@ OpenTofu. No OAuth/session/keychain/SSH credential transfer is implemented.
|
|
|
395
402
|
|
|
396
403
|
All commands are in the `homelab` entry point.
|
|
397
404
|
|
|
398
|
-
##
|
|
399
|
-
|
|
400
|
-
`homelab converge
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
after approval. The [setup runbook](../agents/setup.md)
|
|
404
|
-
covers canaries, offline/partial failures, per-node receipts and rollback. Both
|
|
405
|
-
delegate installation to mise and `bootstrap/setup.ts`.
|
|
406
|
-
They never reset the developer checkout or transfer credentials. Status delegates
|
|
407
|
-
managed-profile drift evidence to the workstation owner; historical rollout receipts
|
|
408
|
-
alone are not a live readiness assertion.
|
|
405
|
+
## Rolling out a revision
|
|
406
|
+
|
|
407
|
+
`homelab converge --revision FULL_SHA` rolls a reviewed revision out to the
|
|
408
|
+
enrolled fleet. It delegates installation to mise and `bootstrap/setup.ts`,
|
|
409
|
+
never resets the developer checkout and transfers no credentials.
|
package/docs/releasing.md
CHANGED
|
@@ -18,8 +18,9 @@ release pins (a dependency of the package), falling back to a Bun on `PATH`.
|
|
|
18
18
|
|
|
19
19
|
Machines do not run the package. `sync` rebuilds every machine from one
|
|
20
20
|
git commit of this repository, and the package says which: the Release
|
|
21
|
-
workflow writes the commit it publishes from
|
|
22
|
-
|
|
21
|
+
workflow writes the commit it publishes from, and that commit's date, into
|
|
22
|
+
the package's `package.json` as `gitHead` and `gitCommittedAt`
|
|
23
|
+
([`src/package-info.ts`](../src/package-info.ts) reads them). Run
|
|
23
24
|
from the package, `sync` fetches that commit from the repository
|
|
24
25
|
`fleet.json` names under `source` into a cache the manager owns, and converges
|
|
25
26
|
the manager and every worker from checkouts of it. So a version of the package
|
|
@@ -42,8 +43,9 @@ Release. The commit messages choose the bump:
|
|
|
42
43
|
| otherwise any `feat:` | minor |
|
|
43
44
|
| otherwise | patch |
|
|
44
45
|
|
|
45
|
-
`package.json` stays at `0.0.0-development` and carries no `gitHead
|
|
46
|
-
workflow stamps the version
|
|
46
|
+
`package.json` stays at `0.0.0-development` and carries no `gitHead` or
|
|
47
|
+
`gitCommittedAt`; the workflow stamps the version, the commit and its date
|
|
48
|
+
into the package it publishes, so
|
|
47
49
|
nobody edits a version or runs `npm publish` by hand after the one-time setup
|
|
48
50
|
below. Merges that land while a release runs
|
|
49
51
|
wait, and the newest one releases everything since the last tag. A run that
|
|
@@ -55,19 +57,13 @@ and GitHub Release, whether all its jobs or only the failed ones are re-run: a
|
|
|
55
57
|
`HEAD` that carries its tag but has no GitHub Release is released again.
|
|
56
58
|
|
|
57
59
|
Nothing is published until the release has been tried. The workflow packs
|
|
58
|
-
the package once, then, for that commit and that tarball
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
machine: baseline, a second run, drift, reboot, and the production SSH
|
|
66
|
-
bootstrap of the commit);
|
|
67
|
-
- runs the [tailnet test](../.github/workflows/tailnet.yml) (a worker joins
|
|
68
|
-
a self-hosted tailnet unattended and leaves no device behind).
|
|
69
|
-
|
|
70
|
-
Only when all three pass is that same tarball published, and the GitHub Release
|
|
60
|
+
the package once, then, for that commit and that tarball, installs it in an
|
|
61
|
+
empty directory, the way a fleet project does, and runs `homelab --version`
|
|
62
|
+
and `homelab state --example` on Node 22 and 24
|
|
63
|
+
([`bootstrap/package-smoke.ts`](../bootstrap/package-smoke.ts)): a broken bin
|
|
64
|
+
path or a file missing from `files` fails here.
|
|
65
|
+
|
|
66
|
+
Only when that passes is that same tarball published, and the GitHub Release
|
|
71
67
|
gets notes written from the Conventional Commits since the last release
|
|
72
68
|
([`bootstrap/release-notes.ts`](../bootstrap/release-notes.ts)). A commit
|
|
73
69
|
whose change restarts T3 on the workers, and so ends the agent turns running
|
|
@@ -76,8 +72,13 @@ first.
|
|
|
76
72
|
|
|
77
73
|
There is no `next` channel yet: publishing uses npm Trusted Publishing, which
|
|
78
74
|
can publish but cannot move a dist-tag, and moving one would need an npm
|
|
79
|
-
token stored in CI. The
|
|
80
|
-
|
|
75
|
+
token stored in CI. The real machines (the [Ubuntu VM test](../.github/workflows/vm.yml),
|
|
76
|
+
the [tailnet test](../.github/workflows/tailnet.yml) and the fresh workers of
|
|
77
|
+
the [Nightly workflow](../.github/workflows/nightly.yml)) do not hold a
|
|
78
|
+
release: a release is checked and published within five minutes of the merge,
|
|
79
|
+
and those machines test every night what was published. A failure there is
|
|
80
|
+
queued as an issue (`CI failure: vm / vm`, `CI failure: nightly / fresh-box`,
|
|
81
|
+
...) and is fixed by the next pull request.
|
|
81
82
|
|
|
82
83
|
A hand-pushed tag still works and publishes exactly that version:
|
|
83
84
|
|
|
@@ -94,13 +95,11 @@ A release that fails publishes nothing, and neither does any merge after it
|
|
|
94
95
|
until one passes: npm stays at the last version. The failed job opens or
|
|
95
96
|
updates one issue, `CI failure: publish / <job>`, and the next release that
|
|
96
97
|
passes that job closes it. `gh run list --workflow release.yml` finds the
|
|
97
|
-
run. A failed VM test keeps
|
|
98
|
-
its
|
|
99
|
-
(`gh run download <run>`). The next passing release publishes everything
|
|
98
|
+
run. A failed VM test keeps its redacted results and the guest's logs as an
|
|
99
|
+
artifact of its run (`gh run download <run>`). The next passing release publishes everything
|
|
100
100
|
since the last tag. The same holds for CI on `main`, which the release waits
|
|
101
|
-
for. CI on `main` is the release tier
|
|
102
|
-
|
|
103
|
-
the Ubuntu VM and the tailnet test, which sit outside that goal.
|
|
101
|
+
for. CI on `main` is the release tier: every job is stopped after five
|
|
102
|
+
minutes, and a stopped job fails and is queued like any other.
|
|
104
103
|
|
|
105
104
|
A pull request is merged by a workflow, and a merge made with a workflow's
|
|
106
105
|
own token starts no CI on `main`. [`catch-up.yml`](../.github/workflows/catch-up.yml)
|