@crvouga/homelab 0.23.13 → 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.
- 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 +54 -76
- 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 +58 -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 +16 -2
- 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/ansible/ubuntu/wip-guard.py +141 -14
- 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/convergence.md +28 -32
- package/docs/declared.md +30 -31
- package/docs/durability.md +9 -0
- 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 +18 -21
- 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 -1
- package/llms.txt +0 -2
- package/mise.lock +206 -780
- package/mise.toml +12 -27
- package/package.json +5 -6
- package/schema/check-ids.json +41 -482
- package/schema/fleet.schema.json +6 -57
- 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-manager.ts +4 -146
- package/src/cli/fleet-sync-output.ts +1 -4
- package/src/cli/fleet-sync-plan.ts +1 -24
- package/src/cli/fleet-sync-remote.ts +2 -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 -83
- 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 +1 -1
- package/src/node-converge-linux.ts +4 -47
- package/src/node-converge-shared.ts +1 -22
- 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 +0 -2
- 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/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
|
-
|
|
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
|
|
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
|
|
80
|
-
|
|
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
|
|
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
|
|
102
|
-
|
|
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)
|
package/docs/runbooks.md
CHANGED
|
@@ -14,7 +14,7 @@ It reads a code by where it stands, never by the word it ends with. The CLI
|
|
|
14
14
|
proxy documents the codes of its own commands in
|
|
15
15
|
[its README](../cliproxy/README.md); the ones converge reports are here.
|
|
16
16
|
|
|
17
|
-
There are
|
|
17
|
+
There are 462 codes; 106 need a person.
|
|
18
18
|
|
|
19
19
|
## Bootstrap of a new or returning worker
|
|
20
20
|
|
|
@@ -136,8 +136,10 @@ There are 510 codes; 111 need a person.
|
|
|
136
136
|
- `CLOCK_UNOBSERVED`: the clock synchronisation could not be read, so the check is skipped. Nothing is known to be wrong.
|
|
137
137
|
- `INODES_EXHAUSTED`: the worker's file system has almost no free inodes: every new file fails although bytes are free. The hourly disk collector removes idle dependency trees and worktrees under pressure; delete them by hand when it has not.
|
|
138
138
|
- `PACKAGE_BELOW_PIN`: a package is missing or older than the version `ansible/ubuntu/policy.json` pins. Run `homelab converge`, which installs the pinned version.
|
|
139
|
-
- `PACKAGE_NEWER_THAN_PIN`: an unattended
|
|
139
|
+
- `PACKAGE_NEWER_THAN_PIN`: an unattended update moved a package past its pin. It is kept: a warning, never undone. The pin is raised in homelab when the snapshot moves.
|
|
140
140
|
- `REBOOT_PENDING`: installed updates apply only after a reboot; it fails once the reboot has waited longer than `rebootPendingFailDays`. Reboot the worker when no agent turn is running, then confirm it with `homelab check --workers`.
|
|
141
|
+
- `UPDATES_NOT_INSTALLING`: updates Ubuntu offers are pending and unattended-upgrades has not run for longer than `updates.pendingFailDays` in `ansible/ubuntu/policy.json`, so the worker no longer keeps itself up to date. Run `homelab converge --node NODE`, which declares the unattended-upgrades policy and the apt timers, then read `journalctl -u apt-daily-upgrade` on the worker.
|
|
142
|
+
- `UPDATES_UNMEASURED`: `apt-get -s dist-upgrade` did not answer on the worker, so its pending updates are unknown. Run it on the worker; a package manager that does not answer needs repair first (see Ubuntu packages).
|
|
141
143
|
- `WORKER_MANIFEST_DRIFT`: something was installed, removed or changed on the worker outside converge; the check lists the differences. Rebuild the worker with `homelab replace`, or ask for the change to be declared in homelab. **Needs a person.**
|
|
142
144
|
- `WORKER_RECOVERY_LAST_RUN_FAILED`: the last run of `personal-worker-recovery.service` did not succeed; the check names its result. On the worker, `systemctl --user status personal-worker-recovery.service` and `journalctl --user -u personal-worker-recovery.service`, then run `homelab converge`.
|
|
143
145
|
- `SSH_CONFIG_REJECTED`: `sshd -t` refused the complete SSH configuration with the fragments converge wrote. The previous fragments were restored and sshd was not reloaded, so the worker serves SSH as before. On the worker `sudo sshd -t` names the line; it is usually another fragment under `/etc/ssh/sshd_config.d` that a person corrects before `homelab converge` is run again. **Needs a person.**
|
|
@@ -171,7 +173,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
171
173
|
- `AGENT_PEAK_PROJECTION`: individual peaks would exceed the budget if repeated together. The probe has no simultaneous measurement. Inspect the enclosing slice’s memory peak before changing capacity.
|
|
172
174
|
- `AGENT_SESSION_LIMIT_EXCEEDED`: the number of scopes exceeds the declared session limit. Inspect the counted scopes and finish excess sessions.
|
|
173
175
|
- `AGENT_SESSION_LIMIT_INACTIVE`: agent session limit inactive: `fleet.json` declares `agentSessionLimit` for the worker and the worker does not hold it, so it refuses no session. The summary says which: the user unit `personal-fleet-agent-session-limit.service` is not running, runs with another number, or the kernel holds another limit (`cgroup.max.descendants`) on the slice T3 starts agents in. Run `homelab converge`; on the worker, `systemctl --user status personal-fleet-agent-session-limit.service` shows why the unit stopped.
|
|
174
|
-
- `AGENT_SESSION_REFUSED`: agent session refused: a fleet launcher was started above the worker's `agentSessionLimit` and ended with code 75 without starting its agent. T3 shows the thread as failed with "exited with code 75 before it started"; the line is in T3's server log (`journalctl --user -u t3code-desktop.service`, or `t3code-headless.service`). End a session that is no longer needed and send the message again, or raise `agentSessionLimit` and run `homelab converge`. An agent T3 starts with no fleet launcher is refused by the kernel two scopes higher, with no message: T3 shows "exited with code 1 before it started" and the user journal says `Failed to create cgroup … Resource temporarily unavailable`. To lift the limit at once on the worker: `systemctl --user stop personal-fleet-agent-session-limit.service`; to remove it, delete `agentSessionLimit` and sync.
|
|
175
176
|
- `WORKER_FEATURES_INVALID`: worker features invalid: the session is neither desktop nor headless.
|
|
176
177
|
- `WORKER_FEATURE_REMOVAL_INCOMPLETE`: worker feature removal incomplete: a Docker package or the docker group membership is still there with containers off.
|
|
177
178
|
- `WORKER_SIZE_BELOW_MINIMUM`: worker size below minimum: less memory, disk or CPUs than the minimum worker. **Needs a person.**
|
|
@@ -255,7 +256,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
255
256
|
- `GITHUB_TOKEN_MISSING`: github token missing.
|
|
256
257
|
- `GITHUB_TOKEN_REJECTED`: github token rejected.
|
|
257
258
|
- `GITHUB_UNREACHABLE`: github unreachable.
|
|
258
|
-
- `COPILOT_TOKEN_UNSUPPORTED`: the node's GitHub token is of a kind Copilot CLI refuses (a classic personal access token). Store a fine-grained token with the Copilot Requests permission as `github-token` and run `homelab converge`. **Needs a person.**
|
|
259
259
|
- `GITHUB_ORG_MEMBERSHIP_MISSING`: the fleet login is not an active member of an organisation the fleet declares; the check names it. Someone who administers the organisation adds the login. **Needs a person.**
|
|
260
260
|
- `GITHUB_PERMISSION_MISSING`: the token lacks a declared scope or cannot push to a declared repository; the check names each. Issue a token with them, store it as `github-token` and run `homelab converge`. **Needs a person.**
|
|
261
261
|
- `GITHUB_RATE_LIMIT_LOW`: little of the login's hourly request limit is left; the check names what remains and when it resets. Wait for the reset, or give every node its own credential (`github.credential` set to `per-node`).
|
|
@@ -316,11 +316,13 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
316
316
|
|
|
317
317
|
## T3 Code
|
|
318
318
|
|
|
319
|
-
- **Meaning:** The native T3 server or desktop app, its policy, its private route
|
|
320
|
-
- **Confirm:**
|
|
321
|
-
- **Fix:** Run `homelab converge
|
|
319
|
+
- **Meaning:** The native T3 server or desktop app, its policy, its private route did not converge or verify.
|
|
320
|
+
- **Confirm:** The `t3:*` checks of `homelab check`.
|
|
321
|
+
- **Fix:** Run `homelab converge`. A MIGRATION or MAINTENANCE code names a one-time step in its remedy.
|
|
322
322
|
- **Escalate:** Set `t3.pairOnEnrollment` to true in fleet.json to authorize first pairing during sync for enrolled workers. When omitted, interactive sync asks once for the worker and carries out the approved pairing. False keeps first pairing in T3 Settings (Connections). Relinking a previously recorded peer still requires an explicit replacement or manual pairing. A replaced worker is paired by `homelab replace` or the next `homelab converge` (`t3:link`).
|
|
323
323
|
|
|
324
|
+
- `T3_LEGACY_PROVIDERS_PENDING`: a warning of `t3:legacy-providers` on a preview: T3 still holds provider instances an earlier release of the fleet added, which run launchers that no longer exist. `homelab converge` removes them once and the warning goes.
|
|
325
|
+
- `T3_LEGACY_PROVIDERS_UNREADABLE`: `t3:legacy-providers` could not read or rewrite T3's settings. Remove the provider instances the fleet once added from `~/.t3/userdata/settings.json` by hand, then delete `~/.t3/userdata/personal-managed.json`. **Needs a person.**
|
|
324
326
|
- `MANAGER_T3_LINK_UNVERIFIED`: manager t3 link unverified.
|
|
325
327
|
- `T3_BASELINE_PREREQUISITES_REQUIRED`: t3 baseline prerequisites required.
|
|
326
328
|
- `T3_CACHE_DRIFT`: t3 cache drift.
|
|
@@ -342,9 +344,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
342
344
|
- `T3_MANAGER_IDENTITY_UNVERIFIED`: t3 manager identity unverified.
|
|
343
345
|
- `T3_MANAGER_ORIGIN_UNRESTRICTED`: t3 manager origin unrestricted.
|
|
344
346
|
- `T3_MANAGER_ORIGIN_UNVERIFIED`: t3 manager origin unverified.
|
|
345
|
-
- `T3_MODELS_MISMATCH`: t3 models mismatch.
|
|
346
|
-
- `T3_MODELS_PENDING`: t3 models pending.
|
|
347
|
-
- `T3_MODELS_UNVERIFIED`: t3 models unverified.
|
|
348
347
|
- `T3_POLICY_OWNER_CONFLICT`: t3 policy owner conflict. **Needs a person.**
|
|
349
348
|
- `T3_POLICY_RESTART_FAILED`: t3 policy restart failed.
|
|
350
349
|
- `T3_POLICY_RESTART_PENDING`: the running T3 has not loaded the staged policy and its restart waits for agent turns to end; the remedy says how long it has waited and when its deadline falls. See `T3_RESTART_PENDING`.
|
|
@@ -364,15 +363,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
364
363
|
- `T3_PROFILE_PENDING`: t3 profile pending.
|
|
365
364
|
- `T3_PROFILE_RECORD_INVALID`: t3 profile record invalid.
|
|
366
365
|
- `T3_PROFILE_UNVERIFIED`: t3 profile unverified.
|
|
367
|
-
- `T3_PROVIDERS_PENDING`: t3 providers pending.
|
|
368
|
-
- `T3_RECONCILIATION_UNAVAILABLE`: a local reconciliation precondition failed. Follow the stage-specific remedy to inspect the receipt, installed definition or T3 settings and ownership record locally. Restore a valid backup or correct permissions, then retry `homelab t3-reconcile --dry-run`. Never share raw file contents.
|
|
369
|
-
- `T3_ACCOUNT_ROSTER_UNAVAILABLE`: the proxy account roster could not be read. Run `homelab accounts` on the affected machine to verify proxy access and the proxy-client-key secret, then retry `homelab t3-reconcile --dry-run`. Existing providers are preserved. If access still fails, report this code without credentials.
|
|
370
|
-
- `T3_CLI_MISSING`: the provider check could not start the T3 CLI from PATH or its user installation. Restore the executable and rerun converge to verify the account sessions.
|
|
371
|
-
- `T3_ANTIGRAVITY_SESSION_UNVERIFIED`: T3 could not open an authenticated ACP session for the reported account positions. Check that T3 is running on this machine, refresh those instances in Settings > Providers, and compare their proxy account session checks before rerunning converge.
|
|
372
|
-
- `T3_PROVIDERS_UNVERIFIED`: provider reconciliation stopped before it could report a plan. The remedy is the authored cause (a stale plan, a held lock, or the credential playbook). An unexpected error stays out of the report, because it can carry a secret. Run `homelab t3-reconcile --dry-run` on the machine.
|
|
373
|
-
- `T3_PROVIDER_CONFLICT`: t3 provider conflict.
|
|
374
|
-
- `T3_PROVIDER_NAMES_PENDING`: t3 provider names pending.
|
|
375
|
-
- `T3_PROVIDER_NAMES_UNVERIFIED`: t3 provider names unverified.
|
|
376
366
|
- `T3_RENDERER_LIMIT_UNVERIFIED`: check the delegated renderer cgroup after an idle desktop restart and recovery timer tick.
|
|
377
367
|
- `T3_RENDERERS_HIGH`: the desktop renderers exceed their memory budget. Reload the app when idle.
|
|
378
368
|
- `T3_PROTECTION_ESCAPED`: the T3 listener lacks its CPU, I/O or memory reserve; the summary names which (`cpu`, `io`, `memory`). Run converge: it declares the reserve for the unit T3 serves from and reloads the user manager, which applies it to the running T3 without a restart. `io` alone, while the user manager does not hand the io controller down (measured in its `cgroup.subtree_control`; its `cgroup.controllers` lists io as soon as the declaration is loaded), is not T3 leaving its unit and only warns: converge declares the controller, and the user manager takes it on its next start, so reboot the worker while it runs no agent turn (`homelab converge --maintenance-reboot`, which reboots for it as for pending updates); restarting T3 does not change it.
|
|
@@ -383,12 +373,18 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
383
373
|
- `T3_SETTINGS_BUSY`: t3 settings busy.
|
|
384
374
|
- `T3_VERSION_UNKNOWN`: a warning of `t3:version`: T3 on the machine the check names has not recorded the version it runs, so it cannot be compared with the pin. Start T3 there once, then run `homelab converge`.
|
|
385
375
|
- `T3_VERSION_SKEW`: a warning of `t3:version`: T3 on the machine the check names runs another release than the fleet pins; the remedy names both. `homelab converge` installs the pinned release on a worker and restarts T3. On the manager, converge switches a running desktop to the verified bundle when the running release differs from the pin. The same release is left running. See `T3_DESKTOP_ACTIVATION_SCHEDULED`.
|
|
386
|
-
- `T3_UPDATES_UNMANAGED`: a
|
|
376
|
+
- `T3_UPDATES_UNMANAGED`: a failure of `t3:updates`: the administrator policy of T3 on the manager does not turn its own updater off, so T3 may update itself away from the pinned release. Stage the fleet's policy once, as an administrator, with the command the remedy prints. **Needs a person.**
|
|
387
377
|
- `T3_RUNNING_VERSION_UNKNOWN`: `t3:running-version` could not read the version of the running server from its local API, or the release installed on the worker. Read `worker:t3-health`, then run `homelab converge`, which reinstalls the pinned T3.
|
|
388
378
|
- `T3_RUNNING_VERSION_MISMATCH`: logged by `personal-worker-recovery` on the worker: T3 was restarted once for the installed release and still reports another version. It is not restarted again for that release and the run fails (`WORKER_RECOVERY_LAST_RUN_FAILED`). Run `homelab converge`, which reinstalls the pinned T3.
|
|
389
379
|
- `T3_LEGACY_SERVER_RUNNING`: logged by `personal-worker-recovery`: the former server unit `t3code.service` is active or enabled and could not be stopped and disabled, so the run fails before it looks at T3. On the worker read `systemctl --user status t3code.service` and disable the unit by hand: one T3 runs per worker. **Needs a person.**
|
|
390
380
|
- `T3_NO_GRAPHICAL_SESSION`: logged by `personal-worker-recovery` on a desktop worker with a count: no graphical session is running, so the desktop app cannot run and the run fails. After three checks in a row the display manager is restarted so that auto-login starts a session, three times at most; after that the log says a person must log in at the worker.
|
|
391
381
|
- `T3_RESTART_DEADLINE`: not a failure. `personal-worker-recovery` logs it when a restart of T3 has waited `t3RestartMaxDeferralHours` (`ansible/ubuntu/policy.json`) and is applied although agent turns run: they end. `worker:t3-deadline-restarts` counts these of the last 24 hours as a warning. Nothing is left to repair: send the threads whose turn ended their next message.
|
|
382
|
+
- `WIP_GUARD_HEAVY`: a warning of `worker:wip-guard`: a run of the work-in-progress guard in the last 24 hours took longer than `resourceSafety.wipGuard.slowRunSeconds` or used more than `peakWarnMiB` (`ansible/ubuntu/policy.json`). Each run ends with a JSON `run` line in `journalctl --user -u personal-worker-wip-guard.service`. The cost is a worktree with a large tree of files Git does not ignore: ignore its build output or remove the worktree.
|
|
383
|
+
- `T3_HANG_SNAPSHOT`: not a failure. `personal-worker-recovery` logs it on the first failed check of the T3 local API with the directory it wrote under `~/.local/state/personal/t3-hangs` (the newest ten are kept): each thread of T3 with the kernel call it waits in (`wchan`), the pressure, the busiest processes and the journal of the unit. Read it before the third failed check restarts T3 and destroys the evidence. `worker:t3-health` names the newest one after a restart.
|
|
384
|
+
- `T3_RESTART_BACKOFF`: not a failure. `personal-worker-recovery` logs it when T3 is unresponsive again soon after the watchdog restarted it: each restart for unresponsiveness within the hour makes the next one wait twice as long (`t3Service.restartBackoffBaseSeconds`, at most `restartBackoffMaxSeconds` in `ansible/ubuntu/policy.json`), so a persistent fault does not restart T3 every few minutes. Find the cause in the snapshots (`T3_HANG_SNAPSHOT`).
|
|
385
|
+
- `T3_RESTARTS_FREQUENT`: a failure of `worker:t3-stability`: the watchdog restarted T3 for being unresponsive more than `t3Stability.maxRestarts24h` times in the last 24 hours. Each restart leaves a server that answers, so no other check reports it. The remedy names the newest snapshots of why T3 hung; look for agents or recovery jobs running heavy work at that time.
|
|
386
|
+
- `T3_API_SLOW`: a failure of `worker:t3-stability`: more than `t3Stability.slowProbeFraction` of the watchdog's probes of the T3 local API in the last 24 hours took longer than `t3Stability.slowProbeMs`. T3 answers but the worker is overloaded or T3 stalls; check `worker:pressure-events` and the load of the worker.
|
|
387
|
+
- `AGENT_OOM_KILLS`: a warning of `worker:agent-oom`: the kernel killed processes inside agent scopes in the last 24 hours although the worker as a whole had memory left; the summary names the programs (never their arguments). Agent scopes and shell tool scopes are slowed by reclaim at `memory.high` before they are killed at `memory.max`. Run fewer builds at once (`homelab-heavy` queues them), lower their parallelism (`TURBO_CONCURRENCY`, `gradle --max-workers`) or move the work to a larger worker.
|
|
392
388
|
- `T3_IDLE_UNKNOWN`: not a failure of its own. The idle check of `personal-worker-recovery` could not read the runs T3 records in its state database, and what it cannot read counts as busy: a pending restart keeps waiting (`T3_RESTART_PENDING`) until its deadline. Read `worker:t3-health` when it repeats.
|
|
393
389
|
|
|
394
390
|
## super.engineering
|
|
@@ -404,8 +400,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
404
400
|
- `SUPER_REFUSED`: a warning of `super:app` or `super:workspace`: the app answered with an error homelab does not know, or with something that is not its JSON; the remedy names the app's error code and nothing else of what it said. Update the app and start it again, then run `homelab converge`; when it repeats, raise an issue with that code.
|
|
405
401
|
- `SUPER_SSH_UNREACHABLE`: a warning of `super:ssh`: the app connects with the manager's own SSH configuration, never with the options `sync` uses, and that plain `ssh` does not reach the worker without a prompt. A worker `fleet.json` declares without an `ssh` alias is the usual cause: its host key is pinned in the fleet state, which the operator's SSH does not read. Add an alias to `~/.ssh/config` on the manager, accept the host key once, name the alias as the worker's `ssh`, then run `homelab converge`. No workspace is created until then. **Needs a person.**
|
|
406
402
|
- `SUPER_HOST_INCOMPLETE`: a warning of `super:ssh`: an SSH session without a terminal finds no `git` or no `flock` on the worker; the remedy names which. The app's helper cannot be installed without them. Run `homelab converge --node ID`: the baseline installs both.
|
|
407
|
-
- `SUPER_AGENTS_NOT_FOUND`: a warning of `super:ssh`: an SSH session without a terminal finds none of the fleet's coding agents on the worker's `PATH`, so the app can start no agent there. Run `homelab converge --node ID`, which installs the pinned agents and puts their shims on that session's `PATH`; confirm with the SSH command above.
|
|
408
|
-
- `SUPER_AGENTS_NOT_PROXIED`: a warning of `super:ssh`: on the worker an SSH session without a terminal starts the agents the remedy names as the plain pinned CLI, with a sign-in of its own or none, and not as the fleet's launcher through the CLI proxy. The worker has not been converged since its agent commands became launchers, or its shell profile no longer puts `~/.local/share/personal/fleet/agent-commands` first. Run `homelab converge --node ID`; confirm with `ssh ALIAS 'command -v claude'`, which names that directory.
|
|
409
403
|
|
|
410
404
|
## Orca
|
|
411
405
|
|
|
@@ -505,66 +499,17 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
505
499
|
- `BESZEL_API_PATH`: homelab refused to send the hub a request outside its API. No request was sent and nothing on a machine fixes it: report it as an issue.
|
|
506
500
|
- `BESZEL_REVISION`: an agent was to be installed on a worker from something that is not a full commit of homelab. Nothing was installed. Run `homelab converge`, which selects the revision itself; when it repeats, it is an issue.
|
|
507
501
|
|
|
508
|
-
## Coding
|
|
502
|
+
## Coding agent limits
|
|
509
503
|
|
|
510
|
-
- **Meaning:** An agent
|
|
511
|
-
- **Confirm:** The `agent
|
|
512
|
-
- **Fix:** Run `homelab converge
|
|
513
|
-
- **Escalate:**
|
|
504
|
+
- **Meaning:** An agent scope, its memory limit or the CLI proxy did not converge as expected.
|
|
505
|
+
- **Confirm:** The `worker:agent-*` checks of `homelab check`, and `homelab proxy` on the manager.
|
|
506
|
+
- **Fix:** Run `homelab converge`.
|
|
507
|
+
- **Escalate:** A defect of the release needs an issue in the homelab repository.
|
|
514
508
|
|
|
515
|
-
- `AGENT_COMMANDS_CONFLICT`: `agent:commands` on a worker: `~/.local/share/personal/fleet/agent-commands` exists and is not the link `sync` makes to the applied revision's launchers, so it was left untouched and the worker's `claude`, `codex` and the others are not the fleet's launchers. On the worker look at what is there, move it away, then run `homelab converge --node ID`. **Needs a person.**
|
|
516
|
-
- `AGENT_COMMANDS_NOT_LINKED`: `agent:commands` on a worker: the play that makes that link (`ansible/agents/commands.yml`) failed, or the link is not there after it ran; its output is not reported. Run `homelab converge --node ID` again; when it repeats, raise an issue.
|
|
517
|
-
- `AGENT_COMMANDS_REQUEST_INVALID`: the same play refused its variables: homelab passes the link beside the applied revision and its fixed target, so this is a defect of the release. Raise an issue.
|
|
518
509
|
- `AGENT_SLICE_MISSING`: the user manager cannot load the T3 agent slice. Check the T3 release and run converge.
|
|
519
510
|
- `AGENT_LIMIT_OVERRIDDEN`: a higher-priority setting overrides an agent slice limit. Run converge and inspect the effective properties.
|
|
520
511
|
- `AGENT_MEMORY_LIMIT_MISSING`: agent memory limit missing.
|
|
521
|
-
- `AGENT_MODEL_UNSERVED`: agent model unserved.
|
|
522
|
-
- `AGENT_PROFILE_RENDER_MISMATCH`: agent profile render mismatch.
|
|
523
|
-
- `AGENT_PROFILE_REQUEST_INVALID`: agent profile request invalid.
|
|
524
|
-
- `AGENT_PROFILE_STALE`: agent profile stale.
|
|
525
|
-
- `AGENT_SERVICE_ENVIRONMENT_INCOMPLETE`: agent service environment incomplete.
|
|
526
|
-
- `AGENT_SERVICE_ENVIRONMENT_UNVERIFIED`: agent service environment unverified.
|
|
527
|
-
- `AGENT_SESSION_UNVERIFIED`: agent session unverified.
|
|
528
|
-
- `AGENT_VAULT_UNAVAILABLE`: agent vault unavailable.
|
|
529
|
-
- `AGENT_VERSION_MISMATCH`: agent version mismatch.
|
|
530
|
-
- `PROVIDER_AUTH_REJECTED`: provider auth rejected. **Needs a person.**
|
|
531
|
-
- `PROVIDER_EMPTY_RESPONSE`: provider empty response.
|
|
532
|
-
- `PROVIDER_MODEL_UNAVAILABLE`: provider model unavailable.
|
|
533
|
-
- `PROVIDER_NETWORK_UNVERIFIED`: provider network unverified.
|
|
534
|
-
- `PROVIDER_OUTPUT_UNVERIFIED`: provider output unverified.
|
|
535
|
-
- `PROVIDER_PROTOCOL_REJECTED`: provider protocol rejected.
|
|
536
|
-
- `PROVIDER_RATE_LIMITED`: provider rate limited.
|
|
537
|
-
- `PROVIDER_RESPONSE_INVALID`: provider response invalid.
|
|
538
|
-
- `PROVIDER_RESPONSE_LIMIT`: provider response limit.
|
|
539
|
-
- `PROVIDER_ROUTE_UNVERIFIED`: provider route unverified.
|
|
540
|
-
- `PROVIDER_STREAM_INCOMPLETE`: provider stream incomplete.
|
|
541
|
-
- `PROVIDER_TIMEOUT`: provider timeout.
|
|
542
|
-
- `PROVIDER_TOOL_ARGUMENTS_INVALID`: provider tool arguments invalid.
|
|
543
|
-
- `PROVIDER_TOOL_INVALID`: provider tool invalid.
|
|
544
|
-
- `PROVIDER_TOOL_MISSING`: provider tool missing.
|
|
545
|
-
- `PROVIDER_TOOL_RESULT_UNVERIFIED`: provider tool result unverified.
|
|
546
|
-
- `PROVIDER_UNATTENDED_CREDENTIAL_REQUIRED`: provider unattended credential required.
|
|
547
|
-
- `PROVIDER_UPSTREAM_UNAVAILABLE`: provider upstream unavailable.
|
|
548
512
|
- `PROXY_RECONCILE_UNVERIFIED`: proxy reconcile unverified.
|
|
549
|
-
- `UNATTENDED_PROXY_AUTHENTICATION_REQUIRED`: unattended proxy authentication required.
|
|
550
|
-
- `AUTH_NOT_SUPPORTED_ON_ROUTE`: not a failure. The service is reached through the CLI proxy on this fleet, so a login of its own on the machine is not applicable and is not checked; the summary says why.
|
|
551
|
-
- `PROVIDER_PROTOCOL_INCOMPATIBLE`: the gateway answered a verification request with 404, 405, 415 or 501: it does not serve the protocol the route uses. Retrying or signing in again changes nothing, and nothing on the machine fixes it: the route in `agents/registry.json` has to become one listed under Supported alternatives in `agents/setup.md`. From a fleet's own project that is an issue. **Needs a person.**
|
|
552
|
-
|
|
553
|
-
## Provider accounts
|
|
554
|
-
|
|
555
|
-
- **Meaning:** A change to a provider account on the CLI proxy (sign-in, removal, cooldown) did not complete, a node does not reach the proxy, or the session a node runs through one account's instance (`agent:<tool>:account-<n>:session`) did not answer. A session check names the tool and the account's index, never the account, and never repeats what a provider answered.
|
|
556
|
-
- **Confirm:** `homelab accounts` lists every account by its index with its state, the models the proxy holds back and until when; `homelab accounts --diff` compares this machine. The session checks are in `homelab check`.
|
|
557
|
-
- **Fix:** Retry the change with `homelab accounts`; see [Provider accounts](accounts.md). A cooldown clears on its own.
|
|
558
|
-
- **Escalate:** Signing an account in again needs a person, and so does a verification its provider asks for. A session that keeps failing or hanging on an account `homelab accounts` calls usable is an issue.
|
|
559
|
-
|
|
560
|
-
- `ACCOUNT_CHANGE_FAILED`: account change failed.
|
|
561
|
-
- `AGENT_ACCOUNT_AUTH_REJECTED`: the session of one account was refused its credentials. `homelab accounts` says whether the account needs a login; one that does is signed in again with `--relogin`, as [Provider accounts](accounts.md) describes. **Needs a person.**
|
|
562
|
-
- `AGENT_ACCOUNT_COOLING_DOWN`: a warning, never a failure. The provider limited the account, or the proxy holds its model back. The summary names when the cooldown clears when the proxy said so; `homelab accounts` lists each model held back and `until`. It clears on its own and is checked again on the next status. Nothing to fix; add an account if every one of a provider cools down often.
|
|
563
|
-
- `AGENT_ACCOUNT_REMOVED`: the node still offers an instance for an account the proxy no longer holds. Run `homelab converge --only accounts`, which propagates the roster to every node.
|
|
564
|
-
- `AGENT_ACCOUNT_SESSION_FAILED`: the session of one account did not answer, and nothing it printed named a limit, a verification or a refusal. Read the account's state with `homelab accounts` and the `provider:*` checks of `homelab check`; report it when the account is usable and the session still fails.
|
|
565
|
-
- `AGENT_ACCOUNT_SESSION_TIMED_OUT`: the session never ended, and the proxy named no cooldown and no refusal for the account. Not a sign-in failure: signing in again does not help. Read which models the proxy holds back with `homelab accounts`, then run `homelab check` again; report a session that keeps hanging.
|
|
566
|
-
- `AGENT_ACCOUNT_VERIFICATION_REQUIRED`: the provider wants the account verified before it serves requests. Sign in to the provider as that account (find it by its index in `homelab accounts`) and complete the verification it asks for. Signing in again on the proxy does not replace it. **Needs a person.**
|
|
567
|
-
- `PROXY_UNREACHABLE`: the node got no answer from the CLI proxy, or the route answered and the proxy did not. Agents retry for about a minute and then report it. Check the node's tailnet, and the proxy on the manager with `homelab proxy status`.
|
|
568
513
|
|
|
569
514
|
## Vault and credentials
|
|
570
515
|
|
|
@@ -577,7 +522,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
577
522
|
- `UNATTENDED_VAULT_IDENTITY_REQUIRED`: unattended vault identity required: Vault answers the worker, and the worker holds no session, or one that is not a renewable periodic token with enough lifetime left for the renewal timer. `homelab converge` delivers the worker's issued token; `homelab replace --id ID --apply --yes` issues a new one. A Vault that does not answer the worker is `VAULT_UNREACHABLE` instead.
|
|
578
523
|
- `VAULT_LOGIN_EXPIRY_PENDING`: vault login expiry pending: the manager's login ends within a day and renewal cannot extend it, because Vault renews a token only up to its maximum lifetime or the token is not renewable. Log the manager in again before then; see [Authentication](authentication.md#rotation-and-failure). **Needs a person.**
|
|
579
524
|
- `VAULT_LOGIN_REQUIRED`: vault login required. **Needs a person.**
|
|
580
|
-
- `VAULT_POLICY_PERMISSION_REQUIRED`: vault policy permission required. **Needs a person.**
|
|
581
525
|
- `VAULT_RENEWAL_FAILING`: vault renewal failing: the last run of the renewal job failed (a worker's `personal-worker-auth.service`, the manager's `dev.homelab.vault-renew`), and the login lapses unless a renewal succeeds.
|
|
582
526
|
- `VAULT_RENEWAL_MISSING`: vault renewal missing: the manager's renewal job is not loaded. Run `homelab converge` on the manager.
|
|
583
527
|
- `VAULT_RENEWAL_NOT_MANAGER`: vault renewal not manager.
|
|
@@ -652,7 +596,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
652
596
|
- `FLEET_SOURCE_UNAVAILABLE`: fleet source unavailable.
|
|
653
597
|
- `FLEET_STATE_DIVERGED`: fleet state diverged. **Needs a person.**
|
|
654
598
|
- `FLEET_VERIFICATION_MISSING`: fleet verification missing.
|
|
655
|
-
- `MANAGER_AGENT_PROFILES_FAILED`: manager agent profiles failed.
|
|
656
599
|
- `MANAGER_DISK_UNOBSERVED`: manager disk unobserved.
|
|
657
600
|
- `MANAGER_DOCKER_DESKTOP_DRIFT`: manager docker desktop drift.
|
|
658
601
|
- `MANAGER_DOCKER_DESKTOP_UNOBSERVED`: manager docker desktop unobserved.
|
|
@@ -685,6 +628,7 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
685
628
|
- `MANAGER_JOB_LOG_ROTATION_MISSING`: manager job log rotation missing: the newsyslog drop-in the grant installs is missing or outdated. **Needs a person.**
|
|
686
629
|
- `MANAGER_PLAYBOOK_CHECK_FAILED`: manager playbook check failed: nothing was applied.
|
|
687
630
|
- `MANAGER_PLAYBOOK_FAILED`: manager playbook failed.
|
|
631
|
+
- `MANAGER_SCHEDULE_OFF`: the manager's schedule is off, paused or was never turned on, so nothing keeps the fleet converged. Turn it on from the project that pins homelab, on the manager: `homelab converge --schedule enable --apply --yes`. **Needs a person.**
|
|
688
632
|
- `MANAGER_WATCH_INTERVAL_INVALID`: manager watch interval invalid: `manager.schedule.watchMinutes` is outside 5 to 1440.
|
|
689
633
|
- `MANAGER_JOB_LOG_OVERSIZED`: logs of the scheduled jobs grew past twice the size newsyslog rotates them at, so it is not rotating them. Check that it runs with the command the remedy prints and read `/var/log/system.log` for its errors.
|
|
690
634
|
- `MANAGER_WATCH_FAILING`: the last run of the notify job failed; the check names its exit code. Read the job's error log the remedy names and run `homelab notify` on the manager to see the same failure.
|
package/docs/support-matrix.md
CHANGED
|
@@ -48,7 +48,7 @@ for that release (`packages`, `browserPackages`), and `tailscaleKeySha256`
|
|
|
48
48
|
only when Tailscale signs its suite with another key than the common one.
|
|
49
49
|
`ansible/ubuntu/tasks/release.yml` selects the entry from the facts, so the
|
|
50
50
|
playbooks need no change of their own. The release is supported once the
|
|
51
|
-
fresh-box features pass on it:
|
|
51
|
+
fresh-box features pass on it: the night runs them for every accepted release
|
|
52
52
|
(`HOMELAB_TEST_FRESH_BOX_RELEASE`), with its image pinned in
|
|
53
53
|
`features/fresh-box/Dockerfile`.
|
|
54
54
|
|
package/docs/ubuntu-sync.md
CHANGED
|
@@ -11,14 +11,14 @@ What is proven, and where:
|
|
|
11
11
|
|
|
12
12
|
| Evidence | Where |
|
|
13
13
|
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
14
|
-
| A bare Ubuntu machine bootstrapped over real SSH, then repeated | `features/fresh-box/fresh-box.feature`,
|
|
14
|
+
| A bare Ubuntu machine bootstrapped over real SSH, then repeated | `features/fresh-box/fresh-box.feature`, every night (each accepted release, amd64 and arm64) |
|
|
15
15
|
| One run over several machines, one versioned report, no partial receipt | `features/fresh-box/fleet.feature` |
|
|
16
16
|
| Interrupted checkout, package installation and toolchain setup resumed | `features/fresh-box/fleet.feature` |
|
|
17
17
|
| Overlapping runs, a dropped connection, a held APT lock, no DNS, no disk | `features/fresh-box/fleet.feature` |
|
|
18
18
|
| A failed canary stops promotion; a changed host key is never touched | `features/fresh-box/fleet.feature`, `features/orchestration/fleet-sync.feature` |
|
|
19
19
|
| Offline, unapproved and replaced devices | `features/orchestration/fleet-sync.feature` (the tailnet is injected) |
|
|
20
|
-
| T3 route, origin policy, pairing redaction, service environment | `features/core/t3-access.feature
|
|
21
|
-
| Vault renewal and policy outcomes
|
|
20
|
+
| T3 route, origin policy, pairing redaction, service environment | `features/core/t3-access.feature` |
|
|
21
|
+
| Vault renewal and policy outcomes | `features/core/worker-checks.feature` |
|
|
22
22
|
| Beszel agent privileges, evidence, backups and the stock API | `features/monitoring/`, and `ansible/monitoring/tests/upstream.py` against the pinned binaries (backup restored into a separate instance) |
|
|
23
23
|
|
|
24
24
|
A container has no systemd, so the fresh-box runs prove bootstrap,
|
|
@@ -182,21 +182,20 @@ independently. Bespoke TypeScript remains only where a native CLI or API has no
|
|
|
182
182
|
declarative owner: T3 service lifecycle, Beszel enrollment tokens, provider
|
|
183
183
|
verification and the CLIProxy singleton.
|
|
184
184
|
|
|
185
|
-
| Policy | Workers (Ubuntu 26.04 or 24.04, stateless) | Manager (macOS, singleton)
|
|
186
|
-
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
187
|
-
| Never sleep | systemd sleep targets masked; logind lid/idle policy; GNOME power plugin set to `nothing` | never sleeps on AC power (`pmset -c sleep 0`, `macos/manager.yml`, verified as `manager:power`); battery sleep is left to the human
|
|
188
|
-
| No automatic logout or lock | GNOME `lock-enabled false`, `idle-delay 0`; designated-user lingering | not managed (the human uses it)
|
|
189
|
-
| Always-on services | drop-ins `Restart=always`, `StartLimitIntervalSec=0` for ssh, tailscaled, docker, beszel-agent | singleton services under launchd and Docker Desktop (see the last row)
|
|
190
|
-
| T3 health and connection | `sync` and `status --workers` require `worker:t3-health` (local API answers), `t3:manager-endpoint` (manager HTTPS over Tailscale) and `t3:paired-access` (manager T3 link reachable) | the human's T3 desktop holds the links to every worker (`t3:paired-access`)
|
|
191
|
-
| Memory safety | `systemd-oomd` (swap 90%; no aggregate agent PSI kills); `user.slice` `MemoryMax=90%`; T3 reserves memory and CPU/I/O weight in its service and the desktop application scope that hosts the listener; each `t3code-*.scope` agent `MemoryMax=30%`, `OOMPolicy=continue`, `IOAccounting=yes` (the pressure guard reads its `io.stat` and `cpu.stat`); zram at priority 100 (25% of memory up to 8 GiB), with disk swap retained for overflow; the agent pressure guard sheds one agent on sustained CPU, memory or I/O pressure | not managed
|
|
192
|
-
| Disk safety | `personal-fleet-disk-guard` kills only the top user-cgroup writer below 3 GiB free, never deletes files; hourly (every 15 minutes with `storage.disposable`) `personal-fleet-disk-gc.timer` deletes git-ignored build output (`node_modules`, `.cache`, `dist`, ...) in checkouts idle 7d (12h under 15 GiB free) with no process inside, plus unused Docker images and build cache, never source, worktrees or volumes; journal 1G; `/tmp` 25% of RAM, aged 2d hourly, a measured write probe (`TMP_QUOTA_EXHAUSTED`), and T3 agents use disk-backed `/var/tmp` (`TMPDIR`, aged 14d); Docker log rotation | not managed
|
|
193
|
-
| Tailscale | pinned APT package, `tailscaled` enabled, native login required | Tailscale app, human login
|
|
194
|
-
| Dashboard agent | pinned native binary, hardened `beszel-agent` systemd unit as user `beszel` | not installed
|
|
195
|
-
| Credential renewal | user timer `personal-worker-auth` renews the node's own Vault token every 10min; `personal-worker-github` signs it in to GitHub from the stored token ([GitHub](github.md)) | the human's own Vault and GitHub sessions
|
|
196
|
-
| Noninteractive sudo | validated `/etc/sudoers.d/personal-fleet-USER` | only `pmset -c`, granted once by `manager-privilege.yml` (`-K`)
|
|
197
|
-
| T3 worker app | pinned desktop `.deb` is the only T3 process (UI plus embedded server) on a desktop worker, and the pinned server as the lingering user unit `t3code-headless.service` on a headless one (`features.session`; no session is waited for); GDM auto-login, user unit `t3code-desktop.service` bound to the graphical session with `Restart=always`; `personal-worker-recovery` runs a copy of `t3-health.sh` installed in `/usr/local/lib/personal-fleet` every minute: it stops and disables a still-running headless `t3code.service`, reports `T3_NO_GRAPHICAL_SESSION` and restarts the display manager (three times at most) when there is no session, starts a stopped app after `reset-failed`, restarts one whose local API missed three checks, and restarts one on another release than the installed one or with a deferred policy restart once it runs no agent turn; administrator policy | not a worker
|
|
198
|
-
|
|
|
199
|
-
| Singleton services | never; clients of the manager's services only | every singleton runs here: CLI proxy (`cliproxy`), Beszel hub (`workstation/monitoring`) |
|
|
185
|
+
| Policy | Workers (Ubuntu 26.04 or 24.04, stateless) | Manager (macOS, singleton) |
|
|
186
|
+
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
187
|
+
| Never sleep | systemd sleep targets masked; logind lid/idle policy; GNOME power plugin set to `nothing` | never sleeps on AC power (`pmset -c sleep 0`, `macos/manager.yml`, verified as `manager:power`); battery sleep is left to the human |
|
|
188
|
+
| No automatic logout or lock | GNOME `lock-enabled false`, `idle-delay 0`; designated-user lingering | not managed (the human uses it) |
|
|
189
|
+
| Always-on services | drop-ins `Restart=always`, `StartLimitIntervalSec=0` for ssh, tailscaled, docker, beszel-agent | singleton services under launchd and Docker Desktop (see the last row) |
|
|
190
|
+
| T3 health and connection | `sync` and `status --workers` require `worker:t3-health` (local API answers), `t3:manager-endpoint` (manager HTTPS over Tailscale) and `t3:paired-access` (manager T3 link reachable) | the human's T3 desktop holds the links to every worker (`t3:paired-access`) |
|
|
191
|
+
| Memory safety | `systemd-oomd` (swap 90%; no aggregate agent PSI kills); `user.slice` `MemoryMax=90%`; T3 reserves memory and CPU/I/O weight in its service and the desktop application scope that hosts the listener; each `t3code-*.scope` agent `MemoryMax=30%`, `OOMPolicy=continue`, `IOAccounting=yes` (the pressure guard reads its `io.stat` and `cpu.stat`); zram at priority 100 (25% of memory up to 8 GiB), with disk swap retained for overflow; the agent pressure guard sheds one agent on sustained CPU, memory or I/O pressure | not managed |
|
|
192
|
+
| Disk safety | `personal-fleet-disk-guard` kills only the top user-cgroup writer below 3 GiB free, never deletes files; hourly (every 15 minutes with `storage.disposable`) `personal-fleet-disk-gc.timer` deletes git-ignored build output (`node_modules`, `.cache`, `dist`, ...) in checkouts idle 7d (12h under 15 GiB free) with no process inside, plus unused Docker images and build cache, never source, worktrees or volumes; journal 1G; `/tmp` 25% of RAM, aged 2d hourly, a measured write probe (`TMP_QUOTA_EXHAUSTED`), and T3 agents use disk-backed `/var/tmp` (`TMPDIR`, aged 14d); Docker log rotation | not managed |
|
|
193
|
+
| Tailscale | pinned APT package, `tailscaled` enabled, native login required | Tailscale app, human login |
|
|
194
|
+
| Dashboard agent | pinned native binary, hardened `beszel-agent` systemd unit as user `beszel` | not installed |
|
|
195
|
+
| Credential renewal | user timer `personal-worker-auth` renews the node's own Vault token every 10min; `personal-worker-github` signs it in to GitHub from the stored token ([GitHub](github.md)) | the human's own Vault and GitHub sessions |
|
|
196
|
+
| Noninteractive sudo | validated `/etc/sudoers.d/personal-fleet-USER` | only `pmset -c`, granted once by `manager-privilege.yml` (`-K`) |
|
|
197
|
+
| T3 worker app | pinned desktop `.deb` is the only T3 process (UI plus embedded server) on a desktop worker, and the pinned server as the lingering user unit `t3code-headless.service` on a headless one (`features.session`; no session is waited for); GDM auto-login, user unit `t3code-desktop.service` bound to the graphical session with `Restart=always`; `personal-worker-recovery` runs a copy of `t3-health.sh` installed in `/usr/local/lib/personal-fleet` every minute: it stops and disables a still-running headless `t3code.service`, reports `T3_NO_GRAPHICAL_SESSION` and restarts the display manager (three times at most) when there is no session, starts a stopped app after `reset-failed`, restarts one whose local API missed three checks, and restarts one on another release than the installed one or with a deferred policy restart once it runs no agent turn; administrator policy | not a worker |
|
|
198
|
+
| Singleton services | never; clients of the manager's services only | every singleton runs here: CLI proxy (`cliproxy`), Beszel hub (`workstation/monitoring`) |
|
|
200
199
|
|
|
201
200
|
Under sustained host memory pressure the guard selects the leaf agent scope
|
|
202
201
|
using the most RAM plus swap. Under CPU pressure (80% full PSI) it selects
|
|
@@ -407,9 +406,8 @@ boot journal evidence locally; sanitize it before sharing. Do not enable automat
|
|
|
407
406
|
reboot-on-pressure or kill active work to obtain a green report.
|
|
408
407
|
|
|
409
408
|
The pinned T3's (`t3_version` in `mise.toml`) supported administrator policy at `/etc/t3code/policy.json`
|
|
410
|
-
disables independent updates and
|
|
411
|
-
|
|
412
|
-
existing `agents/t3.json` renderer; it does not edit the live settings database.
|
|
409
|
+
disables independent updates and turns linked environments on. It names no
|
|
410
|
+
provider: T3 manages its own. Fleet does not edit the live settings database.
|
|
413
411
|
Native `t3 policy check` validates before installation, and `t3 policy show`
|
|
414
412
|
compares staged policy with the running server. A staged policy the running
|
|
415
413
|
server has not loaded restarts the T3 desktop app in the same sync;
|
|
@@ -427,23 +425,13 @@ requires fencing the old host before restoring state
|
|
|
427
425
|
|
|
428
426
|
### Agents on every node
|
|
429
427
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
`agents/` that injects the shared proxy key from Vault at
|
|
435
|
-
launch; nothing is copied between nodes.
|
|
436
|
-
|
|
437
|
-
| T3 provider | T3 driver | Route |
|
|
438
|
-
| ----------------------------- | ------------- | ----------------------------------------------------------------- |
|
|
439
|
-
| `Claude <account email>` | `claudeAgent` | One per Claude account on the proxy (`claude-proxy`) |
|
|
440
|
-
| `Codex <account email>` | `codex` | One per Codex account on the proxy (`codex-proxy.ts`) |
|
|
441
|
-
| `AntiGravity <account email>` | `antigravity` | One per Antigravity account on the proxy (`antigravity-proxy.ts`) |
|
|
442
|
-
| `Grok CLI Proxy` | `grok` | Pooled: Grok Build custom model, `env_key` (`grok-proxy.ts`) |
|
|
443
|
-
| `OpenCode CLI Proxy` | `opencode` | Pooled accounts and Muse via OpenCode (`opencode-proxy.ts`) |
|
|
428
|
+
Coding agents are not homelab's: T3 Code installs, updates and signs in each
|
|
429
|
+
one on the machine it runs on, and homelab pins no agent CLI. The CLI proxy on
|
|
430
|
+
the manager gathers the usage of the provider accounts added to it; no node
|
|
431
|
+
authenticates through it.
|
|
444
432
|
|
|
445
433
|
**Ansible applies, TypeScript measures.** On a worker the T3 lifecycle is
|
|
446
|
-
declared in playbooks: `t3-policy.yml` stages the
|
|
434
|
+
declared in playbooks: `t3-policy.yml` stages the managed policy and restarts
|
|
447
435
|
a running T3 that has not loaded it, `t3-desktop.yml` installs the app, retires
|
|
448
436
|
the former headless server and starts it, and `t3-route.yml` publishes the
|
|
449
437
|
private tailnet route when port 443 has no owner. The TypeScript around them
|
|
@@ -457,28 +445,6 @@ applies its idle and deadline policy between syncs. A pending proxy
|
|
|
457
445
|
update is installed even when it recreates the gateway. The manager finishes before the workers
|
|
458
446
|
start, so they are verified against the updated proxy. `--dry-run` previews.
|
|
459
447
|
|
|
460
|
-
**Accounts are never listed in this repository.** The proxy's credential files
|
|
461
|
-
are the only source of truth: every sync gives each Claude, Codex and
|
|
462
|
-
Antigravity credential the model prefix `<type>-<email>`
|
|
463
|
-
(`cliproxy/scripts/accounts.py`, applied through the proxy's own
|
|
464
|
-
API), so the proxy's model list names every signed-in account. Each node reads
|
|
465
|
-
that list with its own proxy key and offers one provider per account, so all
|
|
466
|
-
machines list the same providers. Signing an account in or out on the proxy
|
|
467
|
-
(`homelab proxy add-account PROVIDER`, or the dashboard) changes T3 on the
|
|
468
|
-
next `sync`; an unreachable proxy fails the check and changes nothing.
|
|
469
|
-
|
|
470
|
-
A provider is pinned to its account: T3 sets `WS_AGENT_ACCOUNT` and the
|
|
471
|
-
launcher routes every request to `<type>-<email>/<model>`. Claude and Codex
|
|
472
|
-
send whichever model is picked, so their launcher runs a loopback relay
|
|
473
|
-
(`account-relay.ts`, alive only while that agent runs) that adds the prefix;
|
|
474
|
-
Antigravity names its model in the Gemini request path, where the same relay
|
|
475
|
-
adds it. Requests without a prefix (Grok, the pooled OpenCode provider, health
|
|
476
|
-
checks) still use the whole pool, fill-first. Cursor is not part of the
|
|
477
|
-
proxy (its backend cannot be proxied). Every node still installs the same
|
|
478
|
-
`cursor-agent` CLI (`http:cursor-agent` in `mise.toml`); its login stays on
|
|
479
|
-
that machine. Native Muse Code is not used: it only
|
|
480
|
-
talks to Meta's own catalog endpoint, so Muse models run through OpenCode.
|
|
481
|
-
|
|
482
448
|
### Checkout project actions
|
|
483
449
|
|
|
484
450
|
`bash bootstrap/project-action.sh converge` warms the shared toolchain
|
|
@@ -624,14 +590,15 @@ single-tool hard cap; the combined agent slice still has its hard memory and
|
|
|
624
590
|
swap limits. A 1 GiB provider reserve protects its working memory. The pressure
|
|
625
591
|
guard never kills that shared scope to relieve CPU or I/O pressure.
|
|
626
592
|
|
|
627
|
-
On Ubuntu,
|
|
628
|
-
|
|
593
|
+
On Ubuntu, a Bash tool command that runs with `BASH_ENV` set to the fleet's
|
|
594
|
+
tracked startup hook (`/usr/local/lib/personal-fleet-agent-tool/agent-tool.bash`)
|
|
629
595
|
is re-executed in a `homelab-tool-*.scope` under the combined agent slice, with
|
|
630
|
-
its own memory cap of up to 4 GiB, 512 MiB swap cap and `OOMPolicy=stop`.
|
|
631
|
-
stay in that tool's cap. An oversized tool fails without killing
|
|
632
|
-
The hook preserves shell arguments, stdin/stdout and exit
|
|
633
|
-
stops its tool scope. The managed Python helper and
|
|
634
|
-
|
|
596
|
+
its own memory cap of up to 4 GiB, 512 MiB swap cap and `OOMPolicy=stop`.
|
|
597
|
+
Nested shells stay in that tool's cap. An oversized tool fails without killing
|
|
598
|
+
the provider. The hook preserves shell arguments, stdin/stdout and exit
|
|
599
|
+
status. Cancellation stops its tool scope. The managed Python helper and
|
|
600
|
+
budget are installed by Ansible. No release of the fleet sets `BASH_ENV` for
|
|
601
|
+
an agent now: the agents are T3's, so a project opts in itself.
|
|
635
602
|
|
|
636
603
|
Before creating a tool scope, a worker-wide lock serializes admission. The
|
|
637
604
|
helper checks host available memory and every ancestor cgroup's remaining
|
|
@@ -643,6 +610,45 @@ and the tool cap shrinks to fit the remaining half. It refuses excess demand wit
|
|
|
643
610
|
before retrying. It fails closed when it cannot measure admission. This is a
|
|
644
611
|
bounded supported workload envelope, not a guarantee for unlimited work.
|
|
645
612
|
|
|
613
|
+
Each tool scope is also slowed before it is killed and bounded in CPU:
|
|
614
|
+
`MemoryHigh` is `agentTool.highPercent` of its cap, and `CPUQuota` is
|
|
615
|
+
`agentCpu.toolPercentOfCores` of the worker's cores (never under one CPU). Each
|
|
616
|
+
agent scope (`t3code-*.scope`) has the same `MemoryHigh` below its
|
|
617
|
+
`MemoryMax` (`agentMemoryHigh`, `agentMemoryMax`) and a `CPUQuota` of
|
|
618
|
+
`agentCpu.scopePercentOfCores` of the cores, and all agents together leave
|
|
619
|
+
`agentCpu.reservedCpus` cores to T3 and the system (the quota of
|
|
620
|
+
`app-t3code-agents.slice`). A tool that is killed for memory is reported to the
|
|
621
|
+
agent, which reads one of these lines on its stderr, and the kill is recorded in
|
|
622
|
+
`~/.local/state/personal/agent-oom.ndjson` (time, program name and cap, never the
|
|
623
|
+
arguments):
|
|
624
|
+
|
|
625
|
+
- `AGENT_TOOL_OOM_KILLED`: the kernel killed the tool because it used more than
|
|
626
|
+
the memory cap of its scope. The line names the tool and the cap. Start fewer
|
|
627
|
+
parallel jobs (`TURBO_CONCURRENCY`, `gradle --max-workers`, `bun test --concurrency`)
|
|
628
|
+
and run it again.
|
|
629
|
+
- `AGENT_TOOL_KILLED`: the tool ended with SIGKILL and the scope's memory events
|
|
630
|
+
do not say why. If memory was the cause its cap was the one named.
|
|
631
|
+
|
|
632
|
+
The tool also starts with defaults for its parallelism, from the cores its quota
|
|
633
|
+
allows shared by the agents that run (`TURBO_CONCURRENCY`, `UV_THREADPOOL_SIZE`,
|
|
634
|
+
and `-Dorg.gradle.workers.max` in `GRADLE_OPTS`); a value the agent set is kept.
|
|
635
|
+
|
|
636
|
+
Known heavy tools (`heavyTools.names`: gradle, turbo, tsc, biome, `bun test`,
|
|
637
|
+
ansible-playbook) are sent through a worker-wide queue by exported shell
|
|
638
|
+
functions, and `homelab-heavy COMMAND ...` queues any other command. There is
|
|
639
|
+
one slot per `heavyTools.coresPerSlot` cores. A tool that finds no slot, or a
|
|
640
|
+
worker whose CPU or I/O pressure is above `heavyTools.pressureThreshold`
|
|
641
|
+
percent, waits in the queue and says so instead of failing or hanging:
|
|
642
|
+
|
|
643
|
+
- `HEAVY_QUEUED`: the tool waits for a slot (how many are busy).
|
|
644
|
+
- `HEAVY_WAITING`: repeated every `heavyTools.reportEverySeconds`.
|
|
645
|
+
- `HEAVY_ADMITTED`: the slot was taken after the wait named.
|
|
646
|
+
- `HEAVY_QUEUE_TIMEOUT`: after `heavyTools.maxWaitSeconds` the tool runs anyway,
|
|
647
|
+
because a queue that never ends is a silent hang. The worker is overloaded.
|
|
648
|
+
|
|
649
|
+
A slot is held by `homelab-heavy` only, never by the tool or the daemons it starts.
|
|
650
|
+
`worker:agent-oom` reports what the kernel killed inside agent scopes.
|
|
651
|
+
|
|
646
652
|
`homelab converge --no-restart-busy` defers a T3 restart until idle, subject
|
|
647
653
|
to the existing 24 hour recovery deadline. Use it when running a rollout from
|
|
648
654
|
a T3 session. The flag survives worker-to-manager hand-off.
|