@crvouga/homelab 0.23.14 → 0.24.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.
Files changed (175) hide show
  1. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/aube-lock.yaml +73 -297
  2. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/package.json +1 -1
  3. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/aube-lock.yaml +42 -42
  4. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/package.json +1 -1
  5. package/README.md +54 -76
  6. package/ansible/ubuntu/agent-tool.py +106 -1
  7. package/ansible/ubuntu/heavy.py +142 -0
  8. package/ansible/ubuntu/idle-reboot.py +125 -0
  9. package/ansible/ubuntu/policy.json +51 -3
  10. package/ansible/ubuntu/t3-desktop.yml +7 -0
  11. package/ansible/ubuntu/t3-hang-snapshot.sh +75 -0
  12. package/ansible/ubuntu/t3-headless.yml +7 -0
  13. package/ansible/ubuntu/t3-health.sh +71 -3
  14. package/ansible/ubuntu/t3-policy.yml +14 -5
  15. package/ansible/ubuntu/tasks/packages.yml +2 -0
  16. package/ansible/ubuntu/tasks/recovery.yml +5 -1
  17. package/ansible/ubuntu/tasks/resources.yml +25 -2
  18. package/ansible/ubuntu/tasks/unattended-upgrades.yml +24 -6
  19. package/ansible/ubuntu/tasks/updates.yml +59 -0
  20. package/bootstrap/doctor.ts +0 -4
  21. package/bootstrap/project-action.sh +4 -5
  22. package/bootstrap/shell-path.ts +17 -19
  23. package/cliproxy/README.md +5 -6
  24. package/cliproxy/config.template.yaml +1 -15
  25. package/cliproxy/docs/health-workflow.example.yml +6 -6
  26. package/cliproxy/docs/model-health.md +8 -8
  27. package/cliproxy/scripts/accounts.py +3 -4
  28. package/cliproxy/scripts/fleet_sync.py +2 -13
  29. package/cliproxy/scripts/ops +3 -21
  30. package/docs/authentication.md +21 -26
  31. package/docs/convergence.md +28 -32
  32. package/docs/declared.md +30 -31
  33. package/docs/github.md +0 -9
  34. package/docs/machine-setup.md +16 -17
  35. package/docs/manager-recovery.md +0 -2
  36. package/docs/operations.md +12 -11
  37. package/docs/releasing.md +18 -21
  38. package/docs/runbooks.md +22 -78
  39. package/docs/support-matrix.md +1 -1
  40. package/docs/ubuntu-sync.md +71 -65
  41. package/docs/worker-contract.md +112 -15
  42. package/examples/fleet.json +0 -1
  43. package/llms.txt +0 -2
  44. package/mise.lock +206 -780
  45. package/mise.toml +12 -27
  46. package/package.json +5 -6
  47. package/schema/check-ids.json +41 -482
  48. package/schema/fleet.schema.json +6 -57
  49. package/schema/roster.schema.json +0 -2
  50. package/src/agent-session-limit.ts +2 -7
  51. package/src/auth-checks.ts +1 -3
  52. package/src/check-owners.ts +0 -13
  53. package/src/check-registry.ts +13 -72
  54. package/src/cli/agent-guide.ts +3 -16
  55. package/src/cli/command-index.ts +0 -12
  56. package/src/cli/fleet-sync-manager.ts +4 -146
  57. package/src/cli/fleet-sync-output.ts +1 -4
  58. package/src/cli/fleet-sync-plan.ts +1 -24
  59. package/src/cli/fleet-sync-remote.ts +2 -1
  60. package/src/cli/fleet-sync-vault.ts +1 -2
  61. package/src/cli/fleet-sync.ts +8 -44
  62. package/src/cli/fleet.ts +1 -2
  63. package/src/cli/program.ts +3 -14
  64. package/src/cli/register-fleet.ts +1 -55
  65. package/src/cli/registry.ts +1 -43
  66. package/src/config.ts +0 -2
  67. package/src/definition.ts +8 -83
  68. package/src/fleet-config.ts +1 -1
  69. package/src/ide/definition.ts +2 -29
  70. package/src/ide/super.ts +4 -35
  71. package/src/ide/t3.ts +9 -38
  72. package/src/manager-sync.ts +1 -1
  73. package/src/node-converge-linux.ts +4 -47
  74. package/src/node-converge-shared.ts +1 -22
  75. package/src/{agents/toolchain.ts → pinned-path.ts} +0 -17
  76. package/src/platform/agent-oom-check.ts +104 -0
  77. package/src/platform/t3-policy.ts +23 -36
  78. package/src/platform/t3-service.ts +117 -0
  79. package/src/platform/wip-guard-check.ts +65 -0
  80. package/src/remote-entry.ts +2 -41
  81. package/src/repair-catalog.ts +0 -30
  82. package/src/schedule-check.ts +17 -4
  83. package/src/service-auth.ts +0 -50
  84. package/src/state/litestream.ts +1 -1
  85. package/src/t3/retire-providers.ts +79 -0
  86. package/src/t3/version.ts +1 -1
  87. package/src/transport.ts +2 -6
  88. package/src/types.ts +0 -2
  89. package/src/version-parity.ts +0 -8
  90. package/src/worker-access-checks.ts +0 -75
  91. package/src/worker-host-checks.ts +78 -1
  92. package/src/worker-policy.ts +0 -2
  93. package/src/worker-readiness.ts +2 -0
  94. package/src/worker-sizing.ts +25 -0
  95. package/.mise/locks/azure-cli/2.93.0~a837e014/pyproject.toml +0 -5
  96. package/.mise/locks/azure-cli/2.93.0~a837e014/uv.lock +0 -2841
  97. package/.mise/locks/gemini/0.71.1~84aac8e6/aube-lock.yaml +0 -124
  98. package/.mise/locks/gemini/0.71.1~84aac8e6/package.json +0 -12
  99. package/agents/antigravity-proxy.ts +0 -3
  100. package/agents/audit.md +0 -88
  101. package/agents/bin/agy +0 -10
  102. package/agents/bin/antigravity +0 -10
  103. package/agents/bin/claude +0 -10
  104. package/agents/bin/codex +0 -10
  105. package/agents/bin/grok +0 -10
  106. package/agents/bin/opencode +0 -10
  107. package/agents/claude-proxy +0 -5
  108. package/agents/claude-proxy.ts +0 -3
  109. package/agents/codex-proxy.ts +0 -3
  110. package/agents/grok-proxy.ts +0 -3
  111. package/agents/managed-proxy.ts +0 -109
  112. package/agents/opencode-proxy.ts +0 -3
  113. package/agents/registry.json +0 -209
  114. package/agents/registry.schema.json +0 -149
  115. package/agents/setup.md +0 -158
  116. package/agents/t3.json +0 -40
  117. package/ansible/agents/agents.yml +0 -135
  118. package/ansible/agents/commands.yml +0 -32
  119. package/ansible/agents/receipts.yml +0 -19
  120. package/ansible/agents/templates/antigravity.settings.json.j2 +0 -3
  121. package/ansible/agents/templates/claude.settings.json.j2 +0 -3
  122. package/ansible/agents/templates/codex.config.toml.j2 +0 -11
  123. package/ansible/agents/templates/gemini.settings.json.j2 +0 -14
  124. package/ansible/agents/templates/grok.config.toml.j2 +0 -25
  125. package/ansible/agents/templates/opencode.json.j2 +0 -24
  126. package/ansible/agents/templates/receipt.json.j2 +0 -10
  127. package/ansible/t3/provider-keys.yml +0 -24
  128. package/docs/accounts.md +0 -256
  129. package/src/accounts/checks.ts +0 -226
  130. package/src/accounts/context.ts +0 -77
  131. package/src/accounts/propagate.ts +0 -62
  132. package/src/accounts/roster.ts +0 -112
  133. package/src/accounts/selection.ts +0 -67
  134. package/src/accounts/sessions.ts +0 -354
  135. package/src/agents/account-relay.ts +0 -279
  136. package/src/agents/accounts.ts +0 -94
  137. package/src/agents/admission.ts +0 -65
  138. package/src/agents/audit.ts +0 -77
  139. package/src/agents/cli.ts +0 -13
  140. package/src/agents/command.ts +0 -257
  141. package/src/agents/commands.ts +0 -127
  142. package/src/agents/converge.ts +0 -339
  143. package/src/agents/doctor.ts +0 -107
  144. package/src/agents/errors.ts +0 -2
  145. package/src/agents/files.ts +0 -43
  146. package/src/agents/fleet-verify.ts +0 -195
  147. package/src/agents/launch.ts +0 -361
  148. package/src/agents/native-verify.ts +0 -738
  149. package/src/agents/provider-errors.ts +0 -57
  150. package/src/agents/registry.ts +0 -61
  151. package/src/agents/render.ts +0 -121
  152. package/src/agents/round-trip.ts +0 -192
  153. package/src/agents/secrets.ts +0 -48
  154. package/src/agents/verify-cache.ts +0 -164
  155. package/src/agents/verify.ts +0 -129
  156. package/src/cli/fleet-accounts.ts +0 -294
  157. package/src/cli/fleet-sync-accounts.ts +0 -62
  158. package/src/cli/node-deployment.ts +0 -34
  159. package/src/cli/node-sync.ts +0 -121
  160. package/src/cli/node-t3.ts +0 -35
  161. package/src/cli/t3/command.ts +0 -91
  162. package/src/cli/t3/register.ts +0 -56
  163. package/src/configure.ts +0 -271
  164. package/src/github/copilot.ts +0 -54
  165. package/src/t3/accounts.ts +0 -90
  166. package/src/t3/antigravity.ts +0 -93
  167. package/src/t3/desired.ts +0 -174
  168. package/src/t3/diagnostics.ts +0 -42
  169. package/src/t3/models.ts +0 -354
  170. package/src/t3/names-check.ts +0 -53
  171. package/src/t3/names.ts +0 -155
  172. package/src/t3/plan.ts +0 -106
  173. package/src/t3/provider-keys.ts +0 -49
  174. package/src/t3/providers.ts +0 -102
  175. package/src/t3/reconcile.ts +0 -133
@@ -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
- | Agent profiles and T3 providers | `agents/registry.json`, `agents/t3.json`; each CLI's configuration from `ansible/agents/templates/` | The commit | `sync` (agent profiles through `ansible/agents/agents.yml`) | Profile receipts; the plan after every apply; `agent:*:session` |
34
- | 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` |
35
- | Worker time service | `ansible/ubuntu/tasks/services.yml`, offsets in `clock` in `ansible/ubuntu/policy.json` | The commit | `sync` | `worker:clock` |
36
- | 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` |
37
- | The manager's network time | `ansible/macos/manager.yml` (an assert) | The commit | macOS | `manager:clock`, `worker:clock-offset` |
38
- | notify on a schedule | `fleetWatch` in `ansible/macos/policy.json`, `manager.schedule.watchMinutes` in `fleet.json` | The commit | `sync` (`manager.yml`) | `manager:watch` |
39
- | 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` |
40
- | 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` |
41
- | Docker Desktop on the manager | `docker_desktop_*` under `[vars]` in `mise.toml` | Version and build | You | `manager:docker` (warns) |
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, the fresh workers and the VM test then
95
- judge like any change, unless it says below why a person moves it.
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
- Set `"softwarePolicy": "latest-supported"` in fleet.json to require fleet-wide version verification. 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.
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
@@ -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. On a worker
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:** Claude Code (`claude`), Codex (`codex`), Gemini CLI
127
- (`gemini`), GitHub Copilot CLI (`copilot`) and OpenCode (`opencode`).
128
- Installed versions are checked by doctor on all three OSes. Start the CLI you
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 and converges OpenCode configuration;
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
@@ -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
@@ -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
- ## Reviewed workstation configuration rollout
399
-
400
- `homelab converge-local --revision FULL_SHA --dry-run` previews this node's
401
- reviewed configuration; without `--dry-run` it applies. `homelab converge
402
- --revision FULL_SHA` rolls the same reviewed revision out to the enrolled fleet
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
@@ -55,19 +55,13 @@ and GitHub Release, whether all its jobs or only the failed ones are re-run: a
55
55
  `HEAD` that carries its tag but has no GitHub Release is released again.
56
56
 
57
57
  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
- - installs the tarball in an empty directory, the way a fleet project does,
61
- and runs `homelab --version` and `homelab state --example` on Node
62
- 22 and 24 ([`bootstrap/package-smoke.ts`](../bootstrap/package-smoke.ts)):
63
- a broken bin path or a file missing from `files` fails here;
64
- - runs the [Ubuntu VM test](../.github/workflows/vm.yml) (a real Ubuntu
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
58
+ the package once, then, for that commit and that tarball, installs it in an
59
+ empty directory, the way a fleet project does, and runs `homelab --version`
60
+ and `homelab state --example` on Node 22 and 24
61
+ ([`bootstrap/package-smoke.ts`](../bootstrap/package-smoke.ts)): a broken bin
62
+ path or a file missing from `files` fails here.
63
+
64
+ Only when that passes is that same tarball published, and the GitHub Release
71
65
  gets notes written from the Conventional Commits since the last release
72
66
  ([`bootstrap/release-notes.ts`](../bootstrap/release-notes.ts)). A commit
73
67
  whose change restarts T3 on the workers, and so ends the agent turns running
@@ -76,8 +70,13 @@ first.
76
70
 
77
71
  There is no `next` channel yet: publishing uses npm Trusted Publishing, which
78
72
  can publish but cannot move a dist-tag, and moving one would need an npm
79
- token stored in CI. The VM test before publishing stands in for the soak a
80
- `next` channel would give.
73
+ token stored in CI. The real machines (the [Ubuntu VM test](../.github/workflows/vm.yml),
74
+ the [tailnet test](../.github/workflows/tailnet.yml) and the fresh workers of
75
+ the [Nightly workflow](../.github/workflows/nightly.yml)) do not hold a
76
+ release: a release is checked and published within five minutes of the merge,
77
+ and those machines test every night what was published. A failure there is
78
+ queued as an issue (`CI failure: vm / vm`, `CI failure: nightly / fresh-box`,
79
+ ...) and is fixed by the next pull request.
81
80
 
82
81
  A hand-pushed tag still works and publishes exactly that version:
83
82
 
@@ -94,13 +93,11 @@ A release that fails publishes nothing, and neither does any merge after it
94
93
  until one passes: npm stays at the last version. The failed job opens or
95
94
  updates one issue, `CI failure: publish / <job>`, and the next release that
96
95
  passes that job closes it. `gh run list --workflow release.yml` finds the
97
- run. A failed VM test keeps
98
- its redacted results and the guest's logs as an artifact of the run
99
- (`gh run download <run>`). The next passing release publishes everything
96
+ run. A failed VM test keeps its redacted results and the guest's logs as an
97
+ artifact of its run (`gh run download <run>`). The next passing release publishes everything
100
98
  since the last tag. The same holds for CI on `main`, which the release waits
101
- for. CI on `main` is the release tier and aims to finish in ten minutes. A
102
- job that runs longer is not cancelled. The publish workflow then still runs
103
- the Ubuntu VM and the tailnet test, which sit outside that goal.
99
+ for. CI on `main` is the release tier: every job is stopped after five
100
+ minutes, and a stopped job fails and is queued like any other.
104
101
 
105
102
  A pull request is merged by a workflow, and a merge made with a workflow's
106
103
  own token starts no CI on `main`. [`catch-up.yml`](../.github/workflows/catch-up.yml)