@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
|
@@ -6,20 +6,20 @@ name: CLI proxy health
|
|
|
6
6
|
# when they run. One workflow, five entry points, deliberately cheap by
|
|
7
7
|
# default:
|
|
8
8
|
# every 15 min readiness: free (no inference) + cloud checkpoint freshness
|
|
9
|
-
#
|
|
10
|
-
# 03:41
|
|
9
|
+
# daily 03:17 light: 2 tiny requests per model (about 8 requests a day)
|
|
10
|
+
# Sundays 03:41 comprehensive suite (bounded by models.json budgets)
|
|
11
11
|
# manual any profile, one model or one check, optional force-probe
|
|
12
12
|
# The offline contract (no credentials, no inference) runs in homelab's own
|
|
13
13
|
# CI, not here.
|
|
14
14
|
on:
|
|
15
15
|
schedule:
|
|
16
16
|
- cron: '7,22,37,52 * * * *'
|
|
17
|
-
- cron: '17
|
|
18
|
-
- cron: '41 3 * *
|
|
17
|
+
- cron: '17 3 * * *'
|
|
18
|
+
- cron: '41 3 * * 0'
|
|
19
19
|
workflow_dispatch:
|
|
20
20
|
inputs:
|
|
21
21
|
profile:
|
|
22
|
-
description: readiness is free; light is the
|
|
22
|
+
description: readiness is free; light is the daily check; nightly is the weekly comprehensive suite; manual adds wrong-key probes and fault simulations.
|
|
23
23
|
type: choice
|
|
24
24
|
default: light
|
|
25
25
|
options: [liveness, readiness, light, nightly, manual]
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
uses: crvouga/homelab/.github/workflows/cliproxy-health.yml@RELEASE_TAG
|
|
55
55
|
with:
|
|
56
56
|
# Inference only on the hourly schedule; the 15-minute one is free.
|
|
57
|
-
profile: ${{ github.event_name == 'workflow_dispatch' && inputs.profile || github.event.schedule == '41 3 * *
|
|
57
|
+
profile: ${{ github.event_name == 'workflow_dispatch' && inputs.profile || github.event.schedule == '41 3 * * 0' && 'nightly' || github.event.schedule == '17 3 * * *' && 'light' || 'readiness' }}
|
|
58
58
|
suite: ${{ inputs.suite || 'all' }}
|
|
59
59
|
model: ${{ inputs.model || '' }}
|
|
60
60
|
check: ${{ inputs.check || '' }}
|
|
@@ -68,7 +68,7 @@ models.json ──► config.py (validate, resolve capability states)
|
|
|
68
68
|
| ----------- | ------------------- | ------------------ | ---------------------------------------------------------------------------------------------- |
|
|
69
69
|
| `liveness` | liveness | none | "Is it reachable and does it reject anonymous callers?" No credentials. |
|
|
70
70
|
| `readiness` | liveness, readiness | none | Key works, `/v1/models` valid, **every configured model served**. |
|
|
71
|
-
| `light` | + cheapest e2e | 2 requests/model |
|
|
71
|
+
| `light` | + cheapest e2e | 2 requests/model | Daily. Chat non-stream + Responses stream. |
|
|
72
72
|
| `nightly` | + all `full` checks | ~53 requests/model | Comprehensive protocol, tools, agent workflow, errors, concurrency; also runs the simulations. |
|
|
73
73
|
| `manual` | + `manual` checks | + wrong-key probe | Full diagnostics, plus the fault-injection scenarios. |
|
|
74
74
|
|
|
@@ -286,13 +286,13 @@ budgets, fault detection, last-success persistence, and secret hygiene.
|
|
|
286
286
|
|
|
287
287
|
[`cliproxy-health.yml`](../../../.github/workflows/cliproxy-health.yml) has five entry points:
|
|
288
288
|
|
|
289
|
-
| Trigger
|
|
290
|
-
|
|
|
291
|
-
| Every 15 minutes
|
|
292
|
-
|
|
|
293
|
-
| 03:41 UTC
|
|
294
|
-
| Pull request
|
|
295
|
-
| Manual dispatch
|
|
289
|
+
| Trigger | Profile | Inference | Notes |
|
|
290
|
+
| ----------------- | ----------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
291
|
+
| Every 15 minutes | `readiness` | none | Key, `/v1/models`, every configured model served, plus cloud checkpoint freshness. Free. |
|
|
292
|
+
| Daily (03:17 UTC) | `light` | 2 requests per model (about 8/run) | About 8 requests and well under 1,000 output tokens a day across four models. |
|
|
293
|
+
| Sundays 03:41 UTC | `nightly` | about 53 requests per model | Capped at 240 requests and 24,000 output tokens per run, once a week. |
|
|
294
|
+
| Pull request | (offline) | none | `contract` job: `models.json` lint, the offline tests and the whole suite against the emulator. No credentials. |
|
|
295
|
+
| Manual dispatch | any | your choice | `model`, `check`, `max_requests` and `force_probe` inputs. |
|
|
296
296
|
|
|
297
297
|
Controls that keep usage bounded, all in `models.json`:
|
|
298
298
|
|
|
@@ -11,7 +11,7 @@ import pathlib
|
|
|
11
11
|
import re
|
|
12
12
|
|
|
13
13
|
# Provider credential types that T3 offers once per account.
|
|
14
|
-
ROUTED = ('claude', 'codex'
|
|
14
|
+
ROUTED = ('claude', 'codex')
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def prefix(kind, email):
|
|
@@ -132,9 +132,8 @@ def classify(credential, entry, now):
|
|
|
132
132
|
def credentials(auths):
|
|
133
133
|
"""[(file name, credential)] for every readable credential, in a stable
|
|
134
134
|
order: by provider, then sign-in email, then file name. Each provider's
|
|
135
|
-
accounts are numbered in this order, the same order
|
|
136
|
-
|
|
137
|
-
everywhere."""
|
|
135
|
+
accounts are numbered in this order, the same order `homelab proxy accounts` lists them in, so an
|
|
136
|
+
index means one account."""
|
|
138
137
|
found = []
|
|
139
138
|
for path in pathlib.Path(auths).glob('*.json'):
|
|
140
139
|
try:
|
|
@@ -132,23 +132,12 @@ def inspect(root, node, owner, revision, run=execute, audit_fn=audit, compatible
|
|
|
132
132
|
return checks
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
def claude_pin(repository=SCRIPTS.parents[1]):
|
|
136
|
-
"""The Claude Code version every node runs (the shared toolchain pin)."""
|
|
137
|
-
try:
|
|
138
|
-
match = re.search(r'^claude = "(\d+\.\d+\.\d+)"$', (repository / 'mise.toml').read_text(), re.M)
|
|
139
|
-
return match.group(1) if match else None
|
|
140
|
-
except OSError:
|
|
141
|
-
return None
|
|
142
|
-
|
|
143
|
-
|
|
144
135
|
def declared(root, apply):
|
|
145
136
|
"""Checks (exit 0 when unchanged) or applies the template-owned settings.
|
|
146
|
-
Runs under the install's pinned interpreter: only it carries PyYAML.
|
|
147
|
-
proxy must claim the Claude Code version the fleet actually runs."""
|
|
137
|
+
Runs under the install's pinned interpreter: only it carries PyYAML."""
|
|
148
138
|
python = root / 'tools/bin/python3'
|
|
149
|
-
version = claude_pin()
|
|
150
139
|
return [str(python) if python.exists() else sys.executable, '-B', str(root / 'scripts/ops'),
|
|
151
|
-
'declared', *(['--
|
|
140
|
+
'declared', *(['--apply'] if apply else [])]
|
|
152
141
|
|
|
153
142
|
|
|
154
143
|
def endpoint_health(root):
|
package/cliproxy/scripts/ops
CHANGED
|
@@ -98,28 +98,11 @@ def wait():
|
|
|
98
98
|
DECLARED = [("oauth", "model-alias"), ("upstream", "claude")]
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
def claude_version():
|
|
102
|
-
"""`--claude-version X.Y.Z`: the Claude Code version every node runs."""
|
|
103
|
-
import re
|
|
104
|
-
|
|
105
|
-
for index, argument in enumerate(sys.argv):
|
|
106
|
-
if argument == "--claude-version":
|
|
107
|
-
version = sys.argv[index + 1] if index + 1 < len(sys.argv) else ""
|
|
108
|
-
if not re.fullmatch(r"\d+\.\d+\.\d+", version):
|
|
109
|
-
raise ValueError("Invalid Claude Code version")
|
|
110
|
-
return version
|
|
111
|
-
return None
|
|
112
|
-
|
|
113
|
-
|
|
114
101
|
def declared_template():
|
|
115
|
-
"""The tracked template
|
|
116
|
-
import
|
|
102
|
+
"""The tracked template."""
|
|
103
|
+
import yaml
|
|
117
104
|
|
|
118
|
-
|
|
119
|
-
version = claude_version()
|
|
120
|
-
if version:
|
|
121
|
-
text = re.sub(r"claude-cli/\d+\.\d+\.\d+", "claude-cli/" + version, text)
|
|
122
|
-
return yaml.safe_load(text)
|
|
105
|
+
return yaml.safe_load((root / "config.template.yaml").read_text())
|
|
123
106
|
|
|
124
107
|
|
|
125
108
|
def declared_candidate():
|
|
@@ -209,7 +192,6 @@ def apply_prefixes(prefixes):
|
|
|
209
192
|
LOGIN_FLAGS = {
|
|
210
193
|
"codex": "-codex-device-login",
|
|
211
194
|
"claude": "-claude-login",
|
|
212
|
-
"antigravity": "-antigravity-login",
|
|
213
195
|
"kimi": "-kimi-login",
|
|
214
196
|
"xai": "-xai-login",
|
|
215
197
|
"meta": "-meta-login",
|
package/docs/authentication.md
CHANGED
|
@@ -14,7 +14,7 @@ rewrites them).
|
|
|
14
14
|
| The bucket's two keys | The environment of the `homelab` command; `~/.config/homelab/bucket.json` (0600) on the manager after `state --init` | The manager only |
|
|
15
15
|
| A node's Vault token | That node's own Vault session (`~/.vault-token`) | That node only; never copied |
|
|
16
16
|
| A node's GitHub login | `gh`'s own store on that node | `gh`, and git through its credential helper |
|
|
17
|
-
| Provider accounts (Claude, Codex …) |
|
|
17
|
+
| Provider accounts (Claude, Codex …) | Each machine, signed in by T3 Code; the CLI proxy on the manager holds accounts only to gather usage | T3 Code, on that machine |
|
|
18
18
|
| Tailscale and T3 pairing | Each machine, signed in by a person; a replaced worker's T3 is paired by the manager with a one-time code it never writes down | That machine |
|
|
19
19
|
|
|
20
20
|
## How they reach each node
|
|
@@ -29,11 +29,6 @@ rewrites them).
|
|
|
29
29
|
(`bootstrap/worker-github.ts`, on standard input, never argv). `sync`
|
|
30
30
|
makes `gh` git's credential helper and writes the declared identity
|
|
31
31
|
(`git` in `fleet.json`, `ansible/github/git.yml`) on every node.
|
|
32
|
-
- **The proxy client key** is read by each node from its own secrets provider
|
|
33
|
-
whenever a launcher starts an agent. The node keeps the last key it read in
|
|
34
|
-
`~/.cache/homelab/proxy-client-key` (0600) and uses it only while the
|
|
35
|
-
provider cannot answer, so an unreachable Vault or an expired session leaves
|
|
36
|
-
that node's agents working until the Vault checks below are fixed.
|
|
37
32
|
- **The monitoring hub's backup storage keys** are read on the manager by
|
|
38
33
|
`sync` and handed to the hub's playbook in a private variables file.
|
|
39
34
|
|
|
@@ -120,19 +115,18 @@ Every failure code is in [the runbooks](runbooks.md).
|
|
|
120
115
|
|
|
121
116
|
<!-- generated: checks -->
|
|
122
117
|
|
|
123
|
-
| Check
|
|
124
|
-
|
|
|
125
|
-
| `auth:github`
|
|
126
|
-
| `auth:vault`
|
|
127
|
-
| `auth:vault-isolation`
|
|
128
|
-
| `worker:credential-renewal`
|
|
129
|
-
| `worker:git-identity`
|
|
130
|
-
| `worker:git-push-auth`
|
|
131
|
-
| `worker:git-signing`
|
|
132
|
-
| `worker:github-sync`
|
|
133
|
-
| `worker:
|
|
134
|
-
| `worker:
|
|
135
|
-
| `worker:vault-renewal` | `src/worker-access-checks.ts` |
|
|
118
|
+
| Check | Measured in |
|
|
119
|
+
| --------------------------- | --------------------------------------------------- |
|
|
120
|
+
| `auth:github` | `src/github/checks.ts` |
|
|
121
|
+
| `auth:vault` | `src/auth-checks.ts`, `src/cli/fleet-sync-vault.ts` |
|
|
122
|
+
| `auth:vault-isolation` | `src/cli/fleet-sync-vault.ts` |
|
|
123
|
+
| `worker:credential-renewal` | `src/worker-host-checks.ts` |
|
|
124
|
+
| `worker:git-identity` | `src/git-identity.ts` |
|
|
125
|
+
| `worker:git-push-auth` | `src/definition.ts`, `src/git-identity.ts` |
|
|
126
|
+
| `worker:git-signing` | `src/definition.ts`, `src/git-identity.ts` |
|
|
127
|
+
| `worker:github-sync` | `src/worker-access-checks.ts` |
|
|
128
|
+
| `worker:rdp-credential` | `src/screen-sharing.ts` |
|
|
129
|
+
| `worker:vault-renewal` | `src/worker-access-checks.ts` |
|
|
136
130
|
|
|
137
131
|
<!-- end: checks -->
|
|
138
132
|
|
|
@@ -140,13 +134,14 @@ Every failure code is in [the runbooks](runbooks.md).
|
|
|
140
134
|
|
|
141
135
|
<!-- generated: timers -->
|
|
142
136
|
|
|
143
|
-
| Timer
|
|
144
|
-
|
|
|
145
|
-
| `personal-fleet-disk-gc.timer`
|
|
146
|
-
| `personal-
|
|
147
|
-
| `personal-worker-
|
|
148
|
-
| `personal-worker-
|
|
149
|
-
| `personal-worker-recovery.timer`
|
|
137
|
+
| Timer | Declared in | Schedule |
|
|
138
|
+
| ---------------------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
139
|
+
| `personal-fleet-disk-gc.timer` | `ansible/ubuntu/tasks/resources.yml` | OnBootSec=10min, OnCalendar={{ gc_calendar }} |
|
|
140
|
+
| `personal-fleet-idle-reboot.timer` | `ansible/ubuntu/tasks/updates.yml` | OnBootSec={{ updates.idleReboot.minUptimeMinutes }}min, OnUnitActiveSec={{ updates.idleReboot.intervalMinutes }}min |
|
|
141
|
+
| `personal-worker-auth.timer` | `ansible/ubuntu/tasks/credentials.yml` | OnBootSec=2min, OnUnitActiveSec=10min |
|
|
142
|
+
| `personal-worker-github.timer` | `ansible/ubuntu/tasks/github.yml` | OnBootSec=2min, OnUnitActiveSec=10min |
|
|
143
|
+
| `personal-worker-recovery.timer` | `ansible/ubuntu/tasks/recovery.yml` | OnBootSec=1min, OnUnitActiveSec=1min |
|
|
144
|
+
| `personal-worker-recovery.timer` | `ansible/ubuntu/tasks/recovery.yml` | OnBootSec=5min, OnUnitActiveSec=15min |
|
|
150
145
|
|
|
151
146
|
<!-- end: timers -->
|
|
152
147
|
|
package/docs/convergence.md
CHANGED
|
@@ -11,38 +11,34 @@ is missing from it.
|
|
|
11
11
|
|
|
12
12
|
## Ansible
|
|
13
13
|
|
|
14
|
-
| Playbook | Converges
|
|
15
|
-
| ------------------------------------------ |
|
|
16
|
-
| `ansible/ubuntu/tests/fixture.yml` | Disposable VM setup only: marker-gated package timers and package-lock readiness
|
|
17
|
-
| `ansible/ubuntu/baseline.yml` | A worker's packages, Docker, services, power, user, SSH, disk
|
|
18
|
-
| `ansible/ubuntu/native-ssh.yml` | Enroll and verify native SSH in both directions
|
|
19
|
-
| `ansible/ubuntu/t3-mesh.yml` | Replace or create one declared full-access T3 grant
|
|
20
|
-
| `ansible/ubuntu/screen-sharing.yml` | Configure GNOME desktop sharing and publish its per-worker credential
|
|
21
|
-
| `ansible/ubuntu/retire-screen-sharing.yml` | Retire managed sharing before changing the firewall
|
|
22
|
-
| `ansible/ubuntu/tailscale.yml` | Tailscale on a worker
|
|
23
|
-
| `ansible/ubuntu/t3-desktop.yml` | The T3 desktop app on a desktop worker
|
|
24
|
-
| `ansible/ubuntu/t3-headless.yml` | The T3 server as a lingering user service on a headless worker
|
|
25
|
-
| `ansible/ubuntu/t3-policy.yml` | T3's administrator policy
|
|
26
|
-
| `ansible/ubuntu/t3-route.yml` | T3's private tailnet route
|
|
27
|
-
| `ansible/ubuntu/recovery.yml` | Recovery of a stopped T3 desktop app or server
|
|
28
|
-
| `ansible/ubuntu/worker-account.yml` | The declared account on an image that lets only root in, from the manager
|
|
29
|
-
| `ansible/ubuntu/reboot.yml` | One worker's first-converge or maintenance reboot, from the manager
|
|
30
|
-
| `ansible/ubuntu/tailscale-upgrade.yml` | One worker's maintenance upgrade of Tailscale to its pin, from the manager
|
|
31
|
-
| `ansible/monitoring/agent.yml` | The Beszel agent on a worker
|
|
32
|
-
| `ansible/monitoring/agent-darwin.yml` | The Beszel agent on the manager
|
|
33
|
-
| `ansible/monitoring/hub-darwin.yml` | The Beszel hub and its tunnel on the manager
|
|
34
|
-
| `ansible/monitoring/hub-route-darwin.yml` | The hub's private tailnet route
|
|
35
|
-
| `ansible/macos/manager.yml` | The manager's power settings, network time and notify job, unattended
|
|
36
|
-
| `ansible/macos/t3-desktop.yml` | The verified manager desktop, staged alongside earlier releases
|
|
37
|
-
| `ansible/macos/t3-policy.yml` | T3's administrator policy on the manager
|
|
38
|
-
| `ansible/macos/manager-privilege.yml` | The one administrator grant: sudoers, job log rotation and the T3 policy
|
|
39
|
-
| `ansible/macos/worker-host-key.yml` | A worker's pinned SSH host key in the manager's known_hosts
|
|
40
|
-
| `ansible/macos/vault-renew.yml` | The launch agent that renews the manager's own Vault session
|
|
41
|
-
| `ansible/github/git.yml` | The Git identity and GitHub credentials of every node
|
|
42
|
-
| `ansible/t3/provider-keys.yml` | Install and retire local T3 client-key slots for managed Antigravity providers |
|
|
43
|
-
| `ansible/agents/agents.yml` | Each agent CLI's dedicated profile, rendered from `ansible/agents/templates/` |
|
|
44
|
-
| `ansible/agents/receipts.yml` | Advance revision evidence for unchanged, verified profiles in one run |
|
|
45
|
-
| `ansible/agents/commands.yml` | The link that makes a worker's agent commands the fleet's launchers (`agents/bin`) |
|
|
14
|
+
| Playbook | Converges |
|
|
15
|
+
| ------------------------------------------ | -------------------------------------------------------------------------------- |
|
|
16
|
+
| `ansible/ubuntu/tests/fixture.yml` | Disposable VM setup only: marker-gated package timers and package-lock readiness |
|
|
17
|
+
| `ansible/ubuntu/baseline.yml` | A worker's packages, Docker, services, power, user, SSH, disk |
|
|
18
|
+
| `ansible/ubuntu/native-ssh.yml` | Enroll and verify native SSH in both directions |
|
|
19
|
+
| `ansible/ubuntu/t3-mesh.yml` | Replace or create one declared full-access T3 grant |
|
|
20
|
+
| `ansible/ubuntu/screen-sharing.yml` | Configure GNOME desktop sharing and publish its per-worker credential |
|
|
21
|
+
| `ansible/ubuntu/retire-screen-sharing.yml` | Retire managed sharing before changing the firewall |
|
|
22
|
+
| `ansible/ubuntu/tailscale.yml` | Tailscale on a worker |
|
|
23
|
+
| `ansible/ubuntu/t3-desktop.yml` | The T3 desktop app on a desktop worker |
|
|
24
|
+
| `ansible/ubuntu/t3-headless.yml` | The T3 server as a lingering user service on a headless worker |
|
|
25
|
+
| `ansible/ubuntu/t3-policy.yml` | T3's administrator policy |
|
|
26
|
+
| `ansible/ubuntu/t3-route.yml` | T3's private tailnet route |
|
|
27
|
+
| `ansible/ubuntu/recovery.yml` | Recovery of a stopped T3 desktop app or server |
|
|
28
|
+
| `ansible/ubuntu/worker-account.yml` | The declared account on an image that lets only root in, from the manager |
|
|
29
|
+
| `ansible/ubuntu/reboot.yml` | One worker's first-converge or maintenance reboot, from the manager |
|
|
30
|
+
| `ansible/ubuntu/tailscale-upgrade.yml` | One worker's maintenance upgrade of Tailscale to its pin, from the manager |
|
|
31
|
+
| `ansible/monitoring/agent.yml` | The Beszel agent on a worker |
|
|
32
|
+
| `ansible/monitoring/agent-darwin.yml` | The Beszel agent on the manager |
|
|
33
|
+
| `ansible/monitoring/hub-darwin.yml` | The Beszel hub and its tunnel on the manager |
|
|
34
|
+
| `ansible/monitoring/hub-route-darwin.yml` | The hub's private tailnet route |
|
|
35
|
+
| `ansible/macos/manager.yml` | The manager's power settings, network time and notify job, unattended |
|
|
36
|
+
| `ansible/macos/t3-desktop.yml` | The verified manager desktop, staged alongside earlier releases |
|
|
37
|
+
| `ansible/macos/t3-policy.yml` | T3's administrator policy on the manager |
|
|
38
|
+
| `ansible/macos/manager-privilege.yml` | The one administrator grant: sudoers, job log rotation and the T3 policy |
|
|
39
|
+
| `ansible/macos/worker-host-key.yml` | A worker's pinned SSH host key in the manager's known_hosts |
|
|
40
|
+
| `ansible/macos/vault-renew.yml` | The launch agent that renews the manager's own Vault session |
|
|
41
|
+
| `ansible/github/git.yml` | The Git identity and GitHub credentials of every node |
|
|
46
42
|
|
|
47
43
|
Every playbook passes `ansible-lint` in the production profile, every command
|
|
48
44
|
in it says when it changes something and runs, or is skipped, in a dry run
|
package/docs/declared.md
CHANGED
|
@@ -12,34 +12,33 @@ may only shrink.
|
|
|
12
12
|
|
|
13
13
|
## Declared
|
|
14
14
|
|
|
15
|
-
| What | Declared in | Pinned by | Applied by | Measured by
|
|
16
|
-
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
17
|
-
| The fleet: machines, services, accounts | Your `fleet.json` | The `homelab` version in your `package.json`, which names one commit | `sync` | `status`
|
|
18
|
-
| Tools: languages, CLIs, coding agents | `mise.toml` | `mise.lock`: version and checksum for each platform | `mise install --locked` | Tool and `agent:verification` checks
|
|
19
|
-
| mise itself | `min_version` and `mise_*_sha256` in `mise.toml` | The digest of its release archive, held here | `bootstrap/bootstrap.sh` | `tool:mise`: the pin, or a newer one it keeps
|
|
20
|
-
| JavaScript dependencies | `package.json` | `bun.lock` | `bun install --frozen-lockfile` | The install fails on a difference
|
|
21
|
-
| T3 Code, server and desktop app | `t3_*` under `[vars]` in `mise.toml` | SHA-256 of each artifact | `bootstrap/native-t3.ts`; `ansible/ubuntu/t3-desktop.yml`; `ansible/macos/t3-desktop.yml` | T3 checks; `t3:version` on every machine
|
|
22
|
-
| T3 policy on the manager (updates off, linked environments on) | `ansible/ubuntu/t3/policy.json`, shared with the workers | The commit | `ansible/macos/t3-policy.yml`, once, as an administrator (`manager-privilege.yml`) | `t3:updates`
|
|
23
|
-
| Worker work-in-progress guard | `ansible/ubuntu/wip-guard.py`, `ansible/ubuntu/tasks/recovery.yml` | The commit | `sync` | `features/ide/work-in-progress.feature`
|
|
24
|
-
| Ubuntu packages | `packages` and `snapshot` in `ansible/ubuntu/policy.json` | Exact versions from a dated archive snapshot | `ansible/ubuntu/tasks/packages.yml` | `package:*`
|
|
25
|
-
| Tailscale on workers | `tailscale` in `ansible/ubuntu/policy.json` | Exact version; digest of the signing key | `ansible/ubuntu/tailscale.yml` | `package:tailscale`
|
|
26
|
-
| Worker policy: power, SSH, sudo, memory, disk | `ansible/ubuntu/*.yml`, values shared with checks in `policy.json` | The commit | `sync` | Host and resource checks
|
|
27
|
-
| Monitoring: hub, tunnel, agents | `ansible/monitoring/*.yml`, `compose.yml`, `lock.json` | Image digests; SHA-256 of each agent archive | `sync` | `beszel:*`
|
|
28
|
-
| The manager's private route to the hub | `ansible/monitoring/hub-route-darwin.yml` | The commit | `sync` | The route, read back
|
|
29
|
-
| The manager's power settings | `pmset` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager.yml`, on every `sync`, after one grant (`manager-privilege.yml`) | `manager:power`
|
|
30
|
-
| Ansible on the manager | `ansible/pyproject.toml` | `ansible/uv.lock`: one release, one Python, every dependency hashed | `uv run --locked --isolated` | A hash that differs stops the run
|
|
31
|
-
| Ansible on a worker | `ansible-core` in `ansible/ubuntu/policy.json` | Exact version | `ansible/ubuntu/tasks/packages.yml` | `package:ansible-core`
|
|
32
|
-
| The CLI proxy | `cliproxy/compose.yaml`, `image.lock.json`, `requirements.lock`, `launchd/`, `config.template.yaml` | Image digests; hashed Python dependencies | `homelab proxy install`, and `sync` after it | The proxy's audit
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
| The manager's
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
| CI | `.github/workflows/` | Each action at a commit; tools from `mise.lock` | GitHub | `features/rules/` |
|
|
15
|
+
| What | Declared in | Pinned by | Applied by | Measured by |
|
|
16
|
+
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | --------------------------------------------- |
|
|
17
|
+
| The fleet: machines, services, accounts | Your `fleet.json` | The `homelab` version in your `package.json`, which names one commit | `sync` | `status` |
|
|
18
|
+
| Tools: languages, CLIs, coding agents | `mise.toml` | `mise.lock`: version and checksum for each platform | `mise install --locked` | Tool and `agent:verification` checks |
|
|
19
|
+
| mise itself | `min_version` and `mise_*_sha256` in `mise.toml` | The digest of its release archive, held here | `bootstrap/bootstrap.sh` | `tool:mise`: the pin, or a newer one it keeps |
|
|
20
|
+
| JavaScript dependencies | `package.json` | `bun.lock` | `bun install --frozen-lockfile` | The install fails on a difference |
|
|
21
|
+
| T3 Code, server and desktop app | `t3_*` under `[vars]` in `mise.toml` | SHA-256 of each artifact | `bootstrap/native-t3.ts`; `ansible/ubuntu/t3-desktop.yml`; `ansible/macos/t3-desktop.yml` | T3 checks; `t3:version` on every machine |
|
|
22
|
+
| T3 policy on the manager (updates off, linked environments on) | `ansible/ubuntu/t3/policy.json`, shared with the workers | The commit | `ansible/macos/t3-policy.yml`, once, as an administrator (`manager-privilege.yml`) | `t3:updates` |
|
|
23
|
+
| Worker work-in-progress guard | `ansible/ubuntu/wip-guard.py`, `ansible/ubuntu/tasks/recovery.yml` | The commit | `sync` | `features/ide/work-in-progress.feature` |
|
|
24
|
+
| Ubuntu packages | `packages` and `snapshot` in `ansible/ubuntu/policy.json` | Exact versions from a dated archive snapshot | `ansible/ubuntu/tasks/packages.yml` | `package:*` |
|
|
25
|
+
| Tailscale on workers | `tailscale` in `ansible/ubuntu/policy.json` | Exact version; digest of the signing key | `ansible/ubuntu/tailscale.yml` | `package:tailscale` |
|
|
26
|
+
| Worker policy: power, SSH, sudo, memory, disk | `ansible/ubuntu/*.yml`, values shared with checks in `policy.json` | The commit | `sync` | Host and resource checks |
|
|
27
|
+
| Monitoring: hub, tunnel, agents | `ansible/monitoring/*.yml`, `compose.yml`, `lock.json` | Image digests; SHA-256 of each agent archive | `sync` | `beszel:*` |
|
|
28
|
+
| The manager's private route to the hub | `ansible/monitoring/hub-route-darwin.yml` | The commit | `sync` | The route, read back |
|
|
29
|
+
| The manager's power settings | `pmset` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager.yml`, on every `sync`, after one grant (`manager-privilege.yml`) | `manager:power` |
|
|
30
|
+
| Ansible on the manager | `ansible/pyproject.toml` | `ansible/uv.lock`: one release, one Python, every dependency hashed | `uv run --locked --isolated` | A hash that differs stops the run |
|
|
31
|
+
| Ansible on a worker | `ansible-core` in `ansible/ubuntu/policy.json` | Exact version | `ansible/ubuntu/tasks/packages.yml` | `package:ansible-core` |
|
|
32
|
+
| The CLI proxy | `cliproxy/compose.yaml`, `image.lock.json`, `requirements.lock`, `launchd/`, `config.template.yaml` | Image digests; hashed Python dependencies | `homelab proxy install`, and `sync` after it | The proxy's audit |
|
|
33
|
+
| A limit on agent sessions (opt-in) | `agentSessionLimit` in your `fleet.json`; `resourceSafety.agentSessionLimit` in `ansible/ubuntu/policy.json` | The commit | `ansible/ubuntu/tasks/agent-session-limit.yml` | `worker:agent-sessions` |
|
|
34
|
+
| Worker time service | `ansible/ubuntu/tasks/services.yml`, offsets in `clock` in `ansible/ubuntu/policy.json` | The commit | `sync` | `worker:clock` |
|
|
35
|
+
| The manager's playbook and its receipt | `ansible/macos/manager.yml` | The commit | `sync`, check mode first, then applied; re-applied at least daily | `manager:playbook` |
|
|
36
|
+
| The manager's network time | `ansible/macos/manager.yml` (an assert) | The commit | macOS | `manager:clock`, `worker:clock-offset` |
|
|
37
|
+
| notify on a schedule | `fleetWatch` in `ansible/macos/policy.json`, `manager.schedule.watchMinutes` in `fleet.json` | The commit | `sync` (`manager.yml`) | `manager:watch` |
|
|
38
|
+
| Rotation of the scheduled jobs' logs | `jobLogs` in `ansible/macos/policy.json` | The commit | `ansible/macos/manager-privilege.yml`, once, as an administrator | `manager:job-logs` |
|
|
39
|
+
| The manager's container watchdog | `ansible/monitoring/container-watchdog.py`, `containerWatchdog` in `ansible/macos/policy.json` | The commit | `sync` (`hub-darwin.yml`) | `manager:container-watchdog` |
|
|
40
|
+
| Docker Desktop on the manager | `docker_desktop_*` under `[vars]` in `mise.toml` | Version and build | You | `manager:docker` (warns) |
|
|
41
|
+
| CI | `.github/workflows/` | Each action at a commit; tools from `mise.lock` | GitHub | `features/rules/` |
|
|
43
42
|
|
|
44
43
|
A value lives in a policy file when something besides the playbook reads it,
|
|
45
44
|
so the check and the playbook cannot disagree. A value only a playbook uses
|
|
@@ -91,8 +90,8 @@ would settle and the current tools do not is the rest of a worker's packages.
|
|
|
91
90
|
|
|
92
91
|
A pin that is only moved by hand goes stale and is then moved in a large
|
|
93
92
|
batch, the riskiest way to change a fleet. Each pin is moved by a machine,
|
|
94
|
-
one pull request at a time, which CI
|
|
95
|
-
|
|
93
|
+
one pull request at a time, which CI judges like any change and the night's
|
|
94
|
+
fresh workers and VM test judge again, unless it says below why a person moves it.
|
|
96
95
|
|
|
97
96
|
The repository runs Renovate hourly with its tracked configuration; it opens at most two pull requests an hour and keeps no dependency dashboard issue. The Pins workflow owns provider CLI versions, resolves stable releases and opens one pull request per provider with platform integrity locks. A failed resolution fails Pins and is tracked in its CI failure issue. A consumer adopts the published revision by updating its homelab dependency and running converge. Existing agent processes pick up a new executable on their next launch. Pending updates are the pull requests Renovate opens. Renovate takes security advisories from the public OSV database, not from Dependabot alerts, which the workflow's token cannot read. That token may not change files under `.github/workflows` either, so updates to the actions and images there need the `PINS_TOKEN` secret (contents, issues, pull requests and workflows write); without it each Renovate run warns.
|
|
98
97
|
|
|
@@ -109,7 +108,7 @@ The repository runs Renovate hourly with its tracked configuration; it opens at
|
|
|
109
108
|
| Docker Desktop on the manager | A person, because a person installs it and homelab only measures the version |
|
|
110
109
|
| The Ubuntu snapshot and package versions | The Pins workflow compares the supported architectures in each Ubuntu release and advances the snapshot and package versions together |
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
Fleet-wide version verification is always on; `"softwarePolicy": "latest-supported"` in fleet.json is still accepted and changes nothing. The consumer's package revision fixes the rollout target. Pins and Renovate check upstream channels before publication. During sync, `versionParity.nodes[].pending` lists missing or mismatched checks, including workers omitted from this run. A later sync of the same revision measures them again. A newer Ubuntu security package stays installed and counts as pending until its release pin catches up.
|
|
113
112
|
|
|
114
113
|
Tailscale's pin is a minimum that workers pass by themselves: a worker takes a
|
|
115
114
|
newer Tailscale through its own updates and keeps it, and `worker:package:tailscale`
|
package/docs/durability.md
CHANGED
|
@@ -24,3 +24,12 @@ The guard is `ansible/ubuntu/wip-guard.py`, run by the user timer
|
|
|
24
24
|
`personal-worker-wip-guard.timer` that `ansible/ubuntu/tasks/recovery.yml`
|
|
25
25
|
installs. It pushes with the worker's own Git credentials, so a worktree
|
|
26
26
|
whose remote the worker cannot write to is reported and skipped.
|
|
27
|
+
|
|
28
|
+
A run costs about nothing when nothing changed: the guard keeps a fingerprint
|
|
29
|
+
of each worktree it saved (`HEAD`, the changed paths with their size and
|
|
30
|
+
mtime) under `~/.local/state/personal/wip-guard` and skips a worktree whose
|
|
31
|
+
fingerprint is unchanged, for a day at most. The snapshot is built from a copy
|
|
32
|
+
of the worktree's own index, so only files that changed are read. A run has a
|
|
33
|
+
time budget (`resourceSafety.wipGuard` in the Ubuntu policy) and resumes after
|
|
34
|
+
the last worktree it finished; its unit is bounded in memory and processes. The
|
|
35
|
+
last line of a run is a JSON `run` event with its duration and peak memory.
|
package/docs/github.md
CHANGED
|
@@ -81,17 +81,8 @@ A `sync` fails with `github:sync` when the node cannot be signed in.
|
|
|
81
81
|
| `github:org-access` | Single sign-on has authorised the token for each declared organisation. |
|
|
82
82
|
| `github:git-credential` | git asks gh for its GitHub credential. |
|
|
83
83
|
| `worker:github-sync` | Why a worker is not signed in: `GITHUB_TOKEN_MISSING`, `GITHUB_TOKEN_REJECTED`, `GITHUB_LOGIN_MISMATCH`, `GITHUB_UNREACHABLE`. |
|
|
84
|
-
| `auth:copilot` | Copilot CLI uses the node's GitHub sign-in; fails `not-signed-in` without one and `COPILOT_TOKEN_UNSUPPORTED` for a classic token. |
|
|
85
84
|
| `github:workflow` | From `check-github`: the first step of clone, branch, commit, push, pull request, checks and comment that failed. |
|
|
86
85
|
|
|
87
|
-
## Copilot CLI
|
|
88
|
-
|
|
89
|
-
Copilot CLI takes the token gh holds when it has none of its own, so the
|
|
90
|
-
node's GitHub sign-in is its sign-in. It accepts OAuth, GitHub App user and
|
|
91
|
-
fine-grained tokens with the Copilot Requests permission, not classic
|
|
92
|
-
personal access tokens. Whether the account is entitled to Copilot is not
|
|
93
|
-
measured; no prompt is sent.
|
|
94
|
-
|
|
95
86
|
## Verifying the whole workflow
|
|
96
87
|
|
|
97
88
|
`homelab check-github` runs, from the machine it is started on, what an
|
package/docs/machine-setup.md
CHANGED
|
@@ -57,11 +57,7 @@ Unix PATH blocks cover `.profile`, existing `.bash_profile`/`.bash_login`,
|
|
|
57
57
|
`.bashrc`, `.zshenv`, `.zshrc` and fish's config. Zsh uses `ZDOTDIR` when set.
|
|
58
58
|
POSIX blocks are quiet, idempotent
|
|
59
59
|
and placed before interactive-only early returns, so noninteractive SSH/agent
|
|
60
|
-
commands can find the same shims without loading an interactive UI.
|
|
61
|
-
the same blocks put `~/.local/share/personal/fleet/agent-commands` ahead of the
|
|
62
|
-
shims: the agent commands there are the fleet's launchers, through the CLI
|
|
63
|
-
proxy. A machine without that directory, the manager included, skips it;
|
|
64
|
-
Windows updates only the user's PATH; AWS CLI v2 additionally uses the official
|
|
60
|
+
commands can find the same shims without loading an interactive UI. Windows updates only the user's PATH; AWS CLI v2 additionally uses the official
|
|
65
61
|
versioned MSI (a UAC prompt may appear) because mise's AWS recipe supports only
|
|
66
62
|
macOS/Linux. Its version comes from the same manifest and its Windows SHA-256 is
|
|
67
63
|
pinned in `vars.aws_windows_msi_sha256`; no unversioned installer is executed.
|
|
@@ -123,16 +119,9 @@ The generated guide includes the exact tool table from `mise.toml` below. Scope:
|
|
|
123
119
|
- **Delivery/infra:** Vercel, Wrangler, Railway, OpenTofu, Vault CLI (for the OpenBao-compatible secret service), Docker CLI,
|
|
124
120
|
ShellCheck, shfmt, actionlint, AWS CLI v2, kubectl and Helm. Installing provider CLIs does not authorize agents
|
|
125
121
|
to provision resources; shared infrastructure is still OpenTofu-owned.
|
|
126
|
-
- **Agent harnesses:**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
want to use and complete its interactive sign-in; installation does not copy
|
|
130
|
-
tokens, choose paid plans or grant agent permissions. OpenCode's optional
|
|
131
|
-
settings remain managed by `personal` and Vault. Codex sign-in follows the
|
|
132
|
-
[official CLI guide](https://learn.chatgpt.com/docs/codex/cli).
|
|
133
|
-
Claude/Copilot background self-updaters are disabled through mise environment
|
|
134
|
-
settings so they cannot silently replace locked versions; update through this
|
|
135
|
-
repository instead.
|
|
122
|
+
- **Agent harnesses:** none. T3 Code installs, updates and signs in Claude Code,
|
|
123
|
+
Codex, Gemini CLI, Copilot, Grok, OpenCode and the others itself; homelab pins
|
|
124
|
+
no agent CLI and sets none of their self-updater switches.
|
|
136
125
|
- **Security/data/HTTP:** Gitleaks for secret scanning, SOPS + age for encrypted
|
|
137
126
|
files, xh for HTTP requests, and usql for SQL database connections. Installing
|
|
138
127
|
these tools does not create encryption keys or copy credentials.
|
|
@@ -212,7 +201,7 @@ homelab converge
|
|
|
212
201
|
```
|
|
213
202
|
|
|
214
203
|
The machine bootstrap installs tools/dependencies only. `personal:install` additionally
|
|
215
|
-
installs the existing workstation launcher
|
|
204
|
+
installs the existing workstation launcher;
|
|
216
205
|
it may need platform permissions and a Vault login for credential-backed
|
|
217
206
|
features. `bun run setup` remains dependency installation only.
|
|
218
207
|
|
|
@@ -405,9 +394,19 @@ Pairing is done from the manager: by a person the first time, and by
|
|
|
405
394
|
`replace` or the next `sync` for a machine that replaces a
|
|
406
395
|
worker.
|
|
407
396
|
|
|
397
|
+
Which workers should run headless, what the desktop app is still needed for
|
|
398
|
+
and what was verified to behave the same under `t3code-headless.service` are
|
|
399
|
+
decided in [the worker contract](worker-contract.md#which-workers-run-headless).
|
|
400
|
+
To switch a worker, set `features.session` to `"headless"` in the consumer's
|
|
401
|
+
`fleet.json` and converge.
|
|
402
|
+
|
|
408
403
|
The disposable Ubuntu VM test (`ansible/ubuntu/tests/vm.py`) converges each
|
|
409
404
|
session type, reboots with nobody logged in and kills the T3 process to
|
|
410
|
-
prove the recovery timer brings it back.
|
|
405
|
+
prove the recovery timer brings it back. On the headless worker it also
|
|
406
|
+
starts an agent scope with the server's own environment and finds it in the
|
|
407
|
+
agents slice under the managed limits, restarts the server with that scope
|
|
408
|
+
running, launches the web profile's headless browser, mints a pairing code
|
|
409
|
+
with the pinned CLI and reads the idle probe's state.
|
|
411
410
|
|
|
412
411
|
Normal Ubuntu fleet setup is controller-led:
|
|
413
412
|
`homelab converge`. See the
|
package/docs/manager-recovery.md
CHANGED
|
@@ -52,8 +52,6 @@ On the new machine, with Git, Node and Docker installed:
|
|
|
52
52
|
after its last change). Use it only once the old machine is gone: an old
|
|
53
53
|
manager that wakes up afterwards is refused with `FLEET_MANAGER_LEASE_HELD`.
|
|
54
54
|
|
|
55
|
-
5. Adopt the T3 instances again: `npx homelab t3-reconcile --import ID`.
|
|
56
|
-
|
|
57
55
|
Workers need nothing: they reach the manager by its Tailscale name, so they
|
|
58
56
|
follow it once the new machine holds that name. If the Tailscale name
|
|
59
57
|
changed, change `manager.network.tailscaleName` in `fleet.json` and run
|
package/docs/operations.md
CHANGED
|
@@ -122,6 +122,7 @@ remote nodes' required lists. Run `workers --schema` for editor/agent validation
|
|
|
122
122
|
| `worker:capacity:inodes` | Free inodes on the home filesystem, against `inodeWarnFreePercent`/`inodeFailFreePercent` in `ansible/ubuntu/policy.json`. The disk guard and disk collector act on the same floors. |
|
|
123
123
|
| `worker:clock` | `timedatectl` says the clock is synchronised and a time service is enabled; with a reference time, the offset is held to `clock` in the policy. |
|
|
124
124
|
| `worker:reboot-pending` | `/var/run/reboot-required` exists: warns with its age, fails after `rebootPendingFailDays`. Reboot when no agent turn is running. |
|
|
125
|
+
| `worker:updates-pending` | `apt-get -s dist-upgrade` against Ubuntu's own archives (`updates` in `policy.json`): passes when nothing is pending or `unattended-upgrades` ran within `pendingFailDays`, fails with `UPDATES_NOT_INSTALLING` otherwise. |
|
|
125
126
|
| `tailscale:key-expiry` | The node key expiry Tailscale reports: warns 14 days ahead, fails 3 days ahead. See [Tailscale key expiry](#tailscale-key-expiry). |
|
|
126
127
|
| `manager:release` | `sw_vers` against `minimumMajorVersion` in `ansible/macos/policy.json`. |
|
|
127
128
|
| `manager:updates` | `softwareupdate --list --no-scan` (nothing is downloaded): warns on pending updates, and names one that waits for a restart. Names never shown. |
|
|
@@ -147,6 +148,12 @@ expiry.
|
|
|
147
148
|
### Maintenance reboots
|
|
148
149
|
|
|
149
150
|
Kernel and library updates apply only after a reboot (`worker:reboot-pending`).
|
|
151
|
+
A worker reboots itself for them: `personal-fleet-idle-reboot.timer`
|
|
152
|
+
(`ansible/ubuntu/idle-reboot.py`) reboots it when a reboot is pending, it has
|
|
153
|
+
been up for `updates.idleReboot.minUptimeMinutes`, no package transaction runs
|
|
154
|
+
and T3 has run no agent turn for `idleMinutes`. A worker that is never idle
|
|
155
|
+
keeps its reboot pending, and `worker:reboot-pending` fails after
|
|
156
|
+
`rebootPendingFailDays`.
|
|
150
157
|
`homelab converge --maintenance-reboot` reboots each worker that has one
|
|
151
158
|
pending: one at a time, the canary first, only while it runs no agent turn
|
|
152
159
|
(`--force` ends them), through `ansible/ubuntu/reboot.yml`. Each worker is
|
|
@@ -395,14 +402,8 @@ OpenTofu. No OAuth/session/keychain/SSH credential transfer is implemented.
|
|
|
395
402
|
|
|
396
403
|
All commands are in the `homelab` entry point.
|
|
397
404
|
|
|
398
|
-
##
|
|
399
|
-
|
|
400
|
-
`homelab converge
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
after approval. The [setup runbook](../agents/setup.md)
|
|
404
|
-
covers canaries, offline/partial failures, per-node receipts and rollback. Both
|
|
405
|
-
delegate installation to mise and `bootstrap/setup.ts`.
|
|
406
|
-
They never reset the developer checkout or transfer credentials. Status delegates
|
|
407
|
-
managed-profile drift evidence to the workstation owner; historical rollout receipts
|
|
408
|
-
alone are not a live readiness assertion.
|
|
405
|
+
## Rolling out a revision
|
|
406
|
+
|
|
407
|
+
`homelab converge --revision FULL_SHA` rolls a reviewed revision out to the
|
|
408
|
+
enrolled fleet. It delegates installation to mise and `bootstrap/setup.ts`,
|
|
409
|
+
never resets the developer checkout and transfers no credentials.
|