@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.
Files changed (177) hide show
  1. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/aube-lock.yaml +73 -297
  2. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/package.json +1 -1
  3. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/aube-lock.yaml +42 -42
  4. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/package.json +1 -1
  5. package/README.md +54 -76
  6. package/ansible/ubuntu/agent-tool.py +106 -1
  7. package/ansible/ubuntu/heavy.py +142 -0
  8. package/ansible/ubuntu/idle-reboot.py +125 -0
  9. package/ansible/ubuntu/policy.json +58 -3
  10. package/ansible/ubuntu/t3-desktop.yml +7 -0
  11. package/ansible/ubuntu/t3-hang-snapshot.sh +75 -0
  12. package/ansible/ubuntu/t3-headless.yml +7 -0
  13. package/ansible/ubuntu/t3-health.sh +71 -3
  14. package/ansible/ubuntu/t3-policy.yml +14 -5
  15. package/ansible/ubuntu/tasks/packages.yml +2 -0
  16. package/ansible/ubuntu/tasks/recovery.yml +16 -2
  17. package/ansible/ubuntu/tasks/resources.yml +25 -2
  18. package/ansible/ubuntu/tasks/unattended-upgrades.yml +24 -6
  19. package/ansible/ubuntu/tasks/updates.yml +59 -0
  20. package/ansible/ubuntu/wip-guard.py +141 -14
  21. package/bootstrap/doctor.ts +0 -4
  22. package/bootstrap/project-action.sh +4 -5
  23. package/bootstrap/shell-path.ts +17 -19
  24. package/cliproxy/README.md +5 -6
  25. package/cliproxy/config.template.yaml +1 -15
  26. package/cliproxy/docs/health-workflow.example.yml +6 -6
  27. package/cliproxy/docs/model-health.md +8 -8
  28. package/cliproxy/scripts/accounts.py +3 -4
  29. package/cliproxy/scripts/fleet_sync.py +2 -13
  30. package/cliproxy/scripts/ops +3 -21
  31. package/docs/authentication.md +21 -26
  32. package/docs/convergence.md +28 -32
  33. package/docs/declared.md +30 -31
  34. package/docs/durability.md +9 -0
  35. package/docs/github.md +0 -9
  36. package/docs/machine-setup.md +16 -17
  37. package/docs/manager-recovery.md +0 -2
  38. package/docs/operations.md +12 -11
  39. package/docs/releasing.md +18 -21
  40. package/docs/runbooks.md +22 -78
  41. package/docs/support-matrix.md +1 -1
  42. package/docs/ubuntu-sync.md +71 -65
  43. package/docs/worker-contract.md +112 -15
  44. package/examples/fleet.json +0 -1
  45. package/llms.txt +0 -2
  46. package/mise.lock +206 -780
  47. package/mise.toml +12 -27
  48. package/package.json +5 -6
  49. package/schema/check-ids.json +41 -482
  50. package/schema/fleet.schema.json +6 -57
  51. package/schema/roster.schema.json +0 -2
  52. package/src/agent-session-limit.ts +2 -7
  53. package/src/auth-checks.ts +1 -3
  54. package/src/check-owners.ts +0 -13
  55. package/src/check-registry.ts +13 -72
  56. package/src/cli/agent-guide.ts +3 -16
  57. package/src/cli/command-index.ts +0 -12
  58. package/src/cli/fleet-sync-manager.ts +4 -146
  59. package/src/cli/fleet-sync-output.ts +1 -4
  60. package/src/cli/fleet-sync-plan.ts +1 -24
  61. package/src/cli/fleet-sync-remote.ts +2 -1
  62. package/src/cli/fleet-sync-vault.ts +1 -2
  63. package/src/cli/fleet-sync.ts +8 -44
  64. package/src/cli/fleet.ts +1 -2
  65. package/src/cli/program.ts +3 -14
  66. package/src/cli/register-fleet.ts +1 -55
  67. package/src/cli/registry.ts +1 -43
  68. package/src/config.ts +0 -2
  69. package/src/definition.ts +8 -83
  70. package/src/fleet-config.ts +1 -1
  71. package/src/ide/definition.ts +2 -29
  72. package/src/ide/super.ts +4 -35
  73. package/src/ide/t3.ts +9 -38
  74. package/src/manager-sync.ts +1 -1
  75. package/src/node-converge-linux.ts +4 -47
  76. package/src/node-converge-shared.ts +1 -22
  77. package/src/{agents/toolchain.ts → pinned-path.ts} +0 -17
  78. package/src/platform/agent-oom-check.ts +104 -0
  79. package/src/platform/t3-policy.ts +23 -36
  80. package/src/platform/t3-service.ts +117 -0
  81. package/src/platform/wip-guard-check.ts +65 -0
  82. package/src/remote-entry.ts +2 -41
  83. package/src/repair-catalog.ts +0 -30
  84. package/src/schedule-check.ts +17 -4
  85. package/src/service-auth.ts +0 -50
  86. package/src/state/litestream.ts +1 -1
  87. package/src/t3/retire-providers.ts +79 -0
  88. package/src/t3/version.ts +1 -1
  89. package/src/transport.ts +2 -6
  90. package/src/types.ts +0 -2
  91. package/src/version-parity.ts +0 -8
  92. package/src/worker-access-checks.ts +0 -75
  93. package/src/worker-host-checks.ts +78 -1
  94. package/src/worker-policy.ts +0 -2
  95. package/src/worker-readiness.ts +2 -0
  96. package/src/worker-sizing.ts +25 -0
  97. package/.mise/locks/azure-cli/2.93.0~a837e014/pyproject.toml +0 -5
  98. package/.mise/locks/azure-cli/2.93.0~a837e014/uv.lock +0 -2841
  99. package/.mise/locks/gemini/0.71.1~84aac8e6/aube-lock.yaml +0 -124
  100. package/.mise/locks/gemini/0.71.1~84aac8e6/package.json +0 -12
  101. package/agents/antigravity-proxy.ts +0 -3
  102. package/agents/audit.md +0 -88
  103. package/agents/bin/agy +0 -10
  104. package/agents/bin/antigravity +0 -10
  105. package/agents/bin/claude +0 -10
  106. package/agents/bin/codex +0 -10
  107. package/agents/bin/grok +0 -10
  108. package/agents/bin/opencode +0 -10
  109. package/agents/claude-proxy +0 -5
  110. package/agents/claude-proxy.ts +0 -3
  111. package/agents/codex-proxy.ts +0 -3
  112. package/agents/grok-proxy.ts +0 -3
  113. package/agents/managed-proxy.ts +0 -109
  114. package/agents/opencode-proxy.ts +0 -3
  115. package/agents/registry.json +0 -209
  116. package/agents/registry.schema.json +0 -149
  117. package/agents/setup.md +0 -158
  118. package/agents/t3.json +0 -40
  119. package/ansible/agents/agents.yml +0 -135
  120. package/ansible/agents/commands.yml +0 -32
  121. package/ansible/agents/receipts.yml +0 -19
  122. package/ansible/agents/templates/antigravity.settings.json.j2 +0 -3
  123. package/ansible/agents/templates/claude.settings.json.j2 +0 -3
  124. package/ansible/agents/templates/codex.config.toml.j2 +0 -11
  125. package/ansible/agents/templates/gemini.settings.json.j2 +0 -14
  126. package/ansible/agents/templates/grok.config.toml.j2 +0 -25
  127. package/ansible/agents/templates/opencode.json.j2 +0 -24
  128. package/ansible/agents/templates/receipt.json.j2 +0 -10
  129. package/ansible/t3/provider-keys.yml +0 -24
  130. package/docs/accounts.md +0 -256
  131. package/src/accounts/checks.ts +0 -226
  132. package/src/accounts/context.ts +0 -77
  133. package/src/accounts/propagate.ts +0 -62
  134. package/src/accounts/roster.ts +0 -112
  135. package/src/accounts/selection.ts +0 -67
  136. package/src/accounts/sessions.ts +0 -354
  137. package/src/agents/account-relay.ts +0 -279
  138. package/src/agents/accounts.ts +0 -94
  139. package/src/agents/admission.ts +0 -65
  140. package/src/agents/audit.ts +0 -77
  141. package/src/agents/cli.ts +0 -13
  142. package/src/agents/command.ts +0 -257
  143. package/src/agents/commands.ts +0 -127
  144. package/src/agents/converge.ts +0 -339
  145. package/src/agents/doctor.ts +0 -107
  146. package/src/agents/errors.ts +0 -2
  147. package/src/agents/files.ts +0 -43
  148. package/src/agents/fleet-verify.ts +0 -195
  149. package/src/agents/launch.ts +0 -361
  150. package/src/agents/native-verify.ts +0 -738
  151. package/src/agents/provider-errors.ts +0 -57
  152. package/src/agents/registry.ts +0 -61
  153. package/src/agents/render.ts +0 -121
  154. package/src/agents/round-trip.ts +0 -192
  155. package/src/agents/secrets.ts +0 -48
  156. package/src/agents/verify-cache.ts +0 -164
  157. package/src/agents/verify.ts +0 -129
  158. package/src/cli/fleet-accounts.ts +0 -294
  159. package/src/cli/fleet-sync-accounts.ts +0 -62
  160. package/src/cli/node-deployment.ts +0 -34
  161. package/src/cli/node-sync.ts +0 -121
  162. package/src/cli/node-t3.ts +0 -35
  163. package/src/cli/t3/command.ts +0 -91
  164. package/src/cli/t3/register.ts +0 -56
  165. package/src/configure.ts +0 -271
  166. package/src/github/copilot.ts +0 -54
  167. package/src/t3/accounts.ts +0 -90
  168. package/src/t3/antigravity.ts +0 -93
  169. package/src/t3/desired.ts +0 -174
  170. package/src/t3/diagnostics.ts +0 -42
  171. package/src/t3/models.ts +0 -354
  172. package/src/t3/names-check.ts +0 -53
  173. package/src/t3/names.ts +0 -155
  174. package/src/t3/plan.ts +0 -106
  175. package/src/t3/provider-keys.ts +0 -49
  176. package/src/t3/providers.ts +0 -102
  177. package/src/t3/reconcile.ts +0 -133
@@ -363,43 +363,6 @@
363
363
  "type": "string",
364
364
  "pattern": "^https://[A-Za-z0-9.-]+$",
365
365
  "description": "Public HTTPS origin of the CLI proxy every node uses."
366
- },
367
- "accounts": {
368
- "type": "object",
369
- "additionalProperties": false,
370
- "description": "How provider accounts signed in on the proxy are watched and chosen. See docs/accounts.md.",
371
- "properties": {
372
- "minimumUsable": {
373
- "type": "integer",
374
- "minimum": 1,
375
- "description": "proxy:account:<provider> warns when a provider has fewer usable accounts than this (default 2) and fails when it has none."
376
- },
377
- "selection": {
378
- "type": "object",
379
- "description": "Per provider (claude, codex, antigravity): which account an unpinned request goes to first. Accounts cooling down are always skipped.",
380
- "additionalProperties": {
381
- "type": "object",
382
- "additionalProperties": false,
383
- "required": ["strategy"],
384
- "properties": {
385
- "strategy": {
386
- "enum": [
387
- "fill-first",
388
- "round-robin",
389
- "least-recently-limited"
390
- ]
391
- },
392
- "order": {
393
- "type": "array",
394
- "items": {
395
- "type": "string"
396
- },
397
- "description": "Account labels (sign-in emails) first, in this order; the others follow in the order of their routing prefix."
398
- }
399
- }
400
- }
401
- }
402
- }
403
366
  }
404
367
  }
405
368
  },
@@ -506,7 +469,6 @@
506
469
  "githubLogin",
507
470
  "vaultUser",
508
471
  "toolchain",
509
- "agentProfile",
510
472
  "unattendedSudo",
511
473
  "persistentT3",
512
474
  "neverSleep"
@@ -540,9 +502,6 @@
540
502
  "toolchain": {
541
503
  "const": "mise.lock"
542
504
  },
543
- "agentProfile": {
544
- "const": "proxy"
545
- },
546
505
  "unattendedSudo": {
547
506
  "const": true
548
507
  },
@@ -668,7 +627,7 @@
668
627
  },
669
628
  "softwarePolicy": {
670
629
  "const": "latest-supported",
671
- "description": "Require version parity across the manager and all declared workers at the channel pins of this published revision."
630
+ "description": "Accepted for compatibility. Version parity across the manager and all declared workers at the pins of this published revision is always required."
672
631
  },
673
632
  "storage": {
674
633
  "type": "object",
@@ -676,7 +635,11 @@
676
635
  "dependentSchemas": {
677
636
  "targetUsedPercent": {
678
637
  "required": ["disposable"],
679
- "properties": { "disposable": { "const": true } }
638
+ "properties": {
639
+ "disposable": {
640
+ "const": true
641
+ }
642
+ }
680
643
  }
681
644
  },
682
645
  "description": "How the disk GC of every node, workers and manager, treats what is on its disk (docs/ubuntu-sync.md, Disk GC).",
@@ -725,20 +688,6 @@
725
688
  "pairOnEnrollment": {
726
689
  "type": "boolean",
727
690
  "description": "Allow first T3 pairing for enrolled workers over their verified connection. Omit to ask during interactive sync; false keeps pairing manual."
728
- },
729
- "requiredModels": {
730
- "type": "object",
731
- "description": "Models T3 must offer, and the proxy must serve, for every account of a tool, by tool (claude, codex, opencode).",
732
- "propertyNames": {
733
- "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
734
- },
735
- "additionalProperties": {
736
- "type": "array",
737
- "items": {
738
- "type": "string",
739
- "pattern": "^[A-Za-z0-9._:-]{1,128}$"
740
- }
741
- }
742
691
  }
743
692
  }
744
693
  },
@@ -49,8 +49,6 @@
49
49
  "t3",
50
50
  "vscode",
51
51
  "toolchain",
52
- "codex",
53
- "claude",
54
52
  "services",
55
53
  "workstation",
56
54
  "worker"
@@ -7,13 +7,8 @@ import policy from '../ansible/ubuntu/policy.json';
7
7
  * limit that refuses every session has no way back from inside T3.
8
8
  *
9
9
  * `tasks/agent-session-limit.yml` declares it and `worker:agent-sessions`
10
- * measures it. Two things refuse, and the first is the readable one:
11
- *
12
- * - a fleet launcher, started in a scope above the limit, ends with
13
- * `AGENT_SESSION_REFUSED` (src/agents/admission.ts);
14
- * - the kernel refuses a scope `reserve` above the limit, for an agent T3
15
- * starts without a fleet launcher. T3 shows that as a provider that
16
- * exited with code 1 before it started.
10
+ * measures it. The kernel refuses a scope `reserve` above the limit; T3 shows
11
+ * that as a provider that exited with code 1 before it started.
17
12
  */
18
13
  export const SESSION_LIMIT_MAXIMUM = 512;
19
14
  export const SESSION_LIMIT_EXPECTED = `a whole number of agent sessions from 1 to ${SESSION_LIMIT_MAXIMUM}`;
@@ -2,7 +2,7 @@ import { resolveVaultConfig, usesVault } from './vault-config';
2
2
  import { fleet as definition } from './fleet-config';
3
3
  import { workerReadiness } from './worker-readiness';
4
4
  import { record } from './config';
5
- import { codingAuth, serviceAuth } from './service-auth';
5
+ import { serviceAuth } from './service-auth';
6
6
  import { launcherCheck } from './workstation-checks';
7
7
  import { toolchainChecks } from './toolchain-checks';
8
8
  import { workerSelection } from '../bootstrap/worker-tools';
@@ -18,8 +18,6 @@ export async function authCheck(
18
18
  ): Promise<Check[]> {
19
19
  if (capability === 'worker') return workerReadiness(run, nodeId, root);
20
20
  if (capability === 't3') return t3Checks(run, nodeId !== undefined);
21
- if (capability === 'codex' || capability === 'claude')
22
- return codingAuth(capability, run);
23
21
  if (capability === 'services') return serviceAuth(run);
24
22
  if (capability === 'workstation') return [await launcherCheck(run)];
25
23
  if (capability === 'github')
@@ -162,12 +162,6 @@ export const CHECK_OWNERS: CheckOwner[] = [
162
162
  'SSH trust (host keys, keys in the agent, the alias) is set up by a person once per machine; homelab never accepts a host key for you.',
163
163
  },
164
164
  { pattern: 'login:*', manual: IDENTITY },
165
- { pattern: 'provider:*', manual: IDENTITY },
166
- {
167
- pattern: 'agent:*',
168
- manual:
169
- 'Re-converge the machine with converge; an agent that needs a sign-in is a person’s.',
170
- },
171
165
  {
172
166
  pattern: 't3:desktop-installed',
173
167
  manual:
@@ -225,13 +219,6 @@ export const CHECK_OWNERS: CheckOwner[] = [
225
219
  manual:
226
220
  'The CLI proxy is installed with homelab proxy install and its accounts are signed in by a person.',
227
221
  },
228
- {
229
- pattern: 'accounts:roster-current',
230
- manual:
231
- 'The roster reaches every node with homelab converge --only accounts, run from the manager.',
232
- },
233
- { pattern: 'accounts:native-login', manual: IDENTITY },
234
- { pattern: 'accounts:verification', manual: EVIDENCE },
235
222
  { pattern: 'configuration:*', manual: EVIDENCE },
236
223
  { pattern: 'source:*', manual: EVIDENCE },
237
224
  { pattern: 'bootstrap:*', manual: EVIDENCE },
@@ -1,11 +1,6 @@
1
1
  import { readdirSync, readFileSync } from 'node:fs';
2
2
  import { join, relative, resolve } from 'node:path';
3
- import agents from '../agents/registry.json';
4
3
  import ubuntu from '../ansible/ubuntu/policy.json';
5
- import {
6
- ADDITIONAL_PROVIDER_CLIS,
7
- NATIVE_AGENTS,
8
- } from './agents/native-verify';
9
4
  import { CHECK_OWNERS } from './check-owners';
10
5
  import { CAPABILITIES } from './config';
11
6
  import { FINGERPRINT_FILES } from './input-hashes';
@@ -14,7 +9,7 @@ import { NOTIFY_TARGETS } from './notify';
14
9
  import { packagePins, ubuntuRelease } from './platform/ubuntu-release';
15
10
  import { AUTOMATED_REPAIRS } from './repair-catalog';
16
11
  import { checkRepair } from './repair-plan';
17
- import { PROXY_ROUTED, SERVICE_IDS } from './service-auth';
12
+ import { SERVICE_IDS } from './service-auth';
18
13
  import { DOCUMENTS } from './state/store';
19
14
 
20
15
  /** schema/check-ids.json is generated from this module:
@@ -43,7 +38,7 @@ const NOT_CHECKS = new Set(['node', 'personal']);
43
38
 
44
39
  /** Where checks are made. The owners of the checks, the repair recipes and
45
40
  * this registry name them; they make none. */
46
- const SOURCES = ['src', 'bootstrap', 'agents'];
41
+ const SOURCES = ['src', 'bootstrap'];
47
42
  const NOT_MADE_HERE = new Set([
48
43
  'src/check-owners.ts',
49
44
  'src/repair-catalog.ts',
@@ -127,17 +122,10 @@ const pinnedPackages = (): string[] => [
127
122
  * in from the fleet configuration, a machine or a tool's own output (a node,
128
123
  * a tool, an account) stays a `*`. */
129
124
  function expansions(root: string): Record<string, string[]> {
130
- const providers = Object.keys(agents.proxy.routes);
131
- const natives = NATIVE_AGENTS.map((agent) => agent.name);
132
125
  return {
133
- 'auth:*': [...CAPABILITIES, ...SERVICE_IDS, ...Object.keys(PROXY_ROUTED)],
134
- 'agent:*': Object.keys(agents.tools),
135
- 'agent:*:version': [...natives, ...ADDITIONAL_PROVIDER_CLIS],
136
- 'agent:*:session': natives,
126
+ 'auth:*': [...CAPABILITIES, ...SERVICE_IDS],
137
127
  'bootstrap:*': bootstrapPhases(root),
138
128
  'notify:*': Object.keys(NOTIFY_TARGETS),
139
- 'provider:*:authentication': providers,
140
- 'provider:*:inference': providers,
141
129
  'repair:*': AUTOMATED_REPAIRS,
142
130
  'state:*': [...DOCUMENTS],
143
131
  'sync:*': FINGERPRINT_FILES,
@@ -175,33 +163,7 @@ export function reportedCheckIds(
175
163
  /** What a passing check means. A `*` entry is the meaning of every ID filled
176
164
  * in from it that has none of its own. */
177
165
  export const CHECK_MEANINGS: Record<string, string> = {
178
- 'accounts:native-login':
179
- 'This machine holds no provider login of its own outside the proxy.',
180
- 'accounts:roster-current':
181
- "This machine offers exactly the accounts of the proxy's current account roster.",
182
- 'accounts:verification':
183
- 'The provider accounts this machine offers were verified; fails when verification could not run.',
184
- 'agent:*':
185
- 'A coding agent CLI is installed at its pinned version on this machine.',
186
- 'agent:*:*:*':
187
- 'A coding agent launches with its fleet profile on this machine.',
188
- 'agent:*:account-*:session':
189
- 'An agent instance of one proxy account is signed in and usable on this machine.',
190
- 'agent:*:removed-*:session':
191
- 'This machine offers no agent instance for an account the proxy no longer holds.',
192
- 'agent:*:session':
193
- 'The shared account of a coding agent is signed in and usable.',
194
- 'agent:*:version': 'A coding agent runs the version the fleet pins.',
195
- 'agent:commands':
196
- "A worker's agent commands (claude, codex and the others) are the fleet's launchers, which sign in through the CLI proxy.",
197
- 'agent:profiles': "The fleet's agent profiles are written on this machine.",
198
- 'agent:service-environment':
199
- 'The environment agent services start with is complete.',
200
- 'agent:verification':
201
- 'Every coding agent was verified; fails when verification could not run.',
202
166
  'auth:*': 'A required login or capability works in this process context.',
203
- 'auth:copilot':
204
- "Copilot CLI uses the node's GitHub sign-in with a token it accepts.",
205
167
  'auth:github': 'gh answers auth status in this context.',
206
168
  'auth:toolchain':
207
169
  'The pinned toolchain, dependencies and Docker could be checked.',
@@ -268,8 +230,6 @@ export const CHECK_MEANINGS: Record<string, string> = {
268
230
  'bootstrap:tailnet-key':
269
231
  'The single-use tailnet key was handed to the worker in a root-only file.',
270
232
  'bootstrap:toolchain': 'The pinned toolchain converged.',
271
- 'configuration:apply':
272
- "The node's configuration (agent profiles, launcher) was applied.",
273
233
  'configuration:operation': 'The remote configuration operation completed.',
274
234
  'definition:inventory':
275
235
  'Ansible reads the inventory the fleet definition describes.',
@@ -344,16 +304,8 @@ export const CHECK_MEANINGS: Record<string, string> = {
344
304
  'platform:unsupported': 'The machine runs a supported operating system.',
345
305
  'platform:worker-size':
346
306
  'The worker has at least the stated minimum memory, root filesystem and CPUs (sizing.minimumWorker in the Ubuntu policy), measured before anything is installed.',
347
- 'provider:*:authentication': 'A proxy provider authenticates unattended.',
348
- 'provider:*:inference':
349
- 'A proxy provider answers a bounded inference round trip.',
350
- 'provider:verification':
351
- 'Every proxy provider was verified; fails when verification could not run.',
352
307
  'proxy:*': "A phase of the CLI proxy's reconciliation completed.",
353
- 'proxy:account:*':
354
- 'A provider has at least one usable account signed in on the CLI proxy.',
355
308
  'proxy:configuration': "The CLI proxy's configuration was reconciled.",
356
- 'proxy:reachable-from': 'This machine reaches the CLI proxy, and how fast.',
357
309
  'repair:*': 'An automated repair completed.',
358
310
  'repair:inputs':
359
311
  'The checkout inputs are unchanged since the diagnostics a repair plan used.',
@@ -436,8 +388,8 @@ export const CHECK_MEANINGS: Record<string, string> = {
436
388
  't3:manager-endpoint':
437
389
  "The manager reaches the worker's private T3 endpoint.",
438
390
  't3:manager-origin': "The manager's T3 origin is configured.",
439
- 't3:models':
440
- 'T3 offers only the declared models for every account instance the fleet manages.',
391
+ 't3:legacy-providers':
392
+ 'T3 holds no provider instance an earlier release of the fleet added.',
441
393
  't3:mesh-member': 'Enrolled mesh member identity and availability.',
442
394
  't3:mesh-link': 'Directed T3 access to an enrolled environment.',
443
395
  't3:paired-access': "The manager's T3 is linked to this worker.",
@@ -448,12 +400,6 @@ export const CHECK_MEANINGS: Record<string, string> = {
448
400
  't3:client-settings':
449
401
  'The complete T3 desktop preferences match the manager’s snapshot.',
450
402
  't3:profile': 'The declared T3 settings are in place on this machine.',
451
- 't3:provider-names': "T3 lists the fleet's provider names.",
452
- 't3:account-roster':
453
- 'The proxy account roster can be read without changing providers.',
454
- 't3:reconciliation':
455
- 'T3 reconciliation can read and validate its local inputs.',
456
- 't3:providers': "T3's provider instances are the declared ones.",
457
403
  't3:running-version':
458
404
  'The running T3 server is the installed release and no restart of it is pending; a pending restart waits for running agent turns, until its deadline.',
459
405
  't3:service': 'The pinned T3 app runs.',
@@ -552,8 +498,6 @@ export const CHECK_MEANINGS: Record<string, string> = {
552
498
  'A worker parked on purpose: listed with the time since, not contacted and never the canary (not-applicable). As a command result, the worker was parked or resumed.',
553
499
  'worker:parked-online': 'A parked worker is not online on the tailnet.',
554
500
  'worker:power-loss-recovery': 'The worker powers on after AC loss.',
555
- 'worker:proxy-authentication':
556
- 'The worker authenticates to the shared proxy.',
557
501
  'worker:proxy-singleton':
558
502
  'The worker is a proxy client, not a second gateway.',
559
503
  'worker:public-reachability':
@@ -562,6 +506,8 @@ export const CHECK_MEANINGS: Record<string, string> = {
562
506
  'worker:reboot':
563
507
  'The worker was rebooted while it ran no agent turn (after its first converge, or for maintenance), answered again and was converged once more.',
564
508
  'worker:reboot-pending': 'The worker needs no reboot to finish an update.',
509
+ 'worker:updates-pending':
510
+ 'The updates Ubuntu offers are installed, or unattended-upgrades ran recently enough to install them.',
565
511
  'worker:tailscale-upgrade':
566
512
  'A maintenance run upgraded Tailscale to its pin in a detached unit; the worker answered again and was converged once more.',
567
513
  'worker:service:*':
@@ -574,6 +520,12 @@ export const CHECK_MEANINGS: Record<string, string> = {
574
520
  'The worker last applied the approved revision and its last apply succeeded.',
575
521
  'worker:pressure-events':
576
522
  'The pressure guard reports recent CPU, I/O and memory stops of agents.',
523
+ 'worker:agent-oom':
524
+ 'The kernel killed no process inside an agent scope in the last 24 hours, so no agent saw a tool die for memory.',
525
+ 'worker:wip-guard':
526
+ 'Runs of the work-in-progress guard in the last 24 hours stayed within the time and memory the policy allows.',
527
+ 'worker:t3-stability':
528
+ 'The watchdog restarted T3 no more than the policy allows in the last 24 hours, and the T3 local API answered quickly.',
577
529
  'worker:t3-deadline-restarts':
578
530
  'No pending restart of T3 reached its deadline in the last 24 hours: none ended running agent turns.',
579
531
  'worker:t3-renderers':
@@ -586,13 +538,6 @@ export const CHECK_MEANINGS: Record<string, string> = {
586
538
  'worker:vault-renewal': 'The worker renews its Vault identity unattended.',
587
539
  'workstation:configuration': 'The homelab launcher is installed and linked.',
588
540
  'workstation:installation': 'The homelab launcher could be installed.',
589
- // An agent CLI that signs in through the proxy has no login to check.
590
- ...Object.fromEntries(
591
- Object.keys(PROXY_ROUTED).map((id) => [
592
- `auth:${id}`,
593
- `Not applicable: ${id} has no sign-in of its own on this machine; its summary names the check that proves its access instead.`,
594
- ])
595
- ),
596
541
  };
597
542
 
598
543
  /** Checks that never block readiness: the code reports them only as a
@@ -614,8 +559,6 @@ export const ADVISORY_CHECKS = [
614
559
  'super:app',
615
560
  'super:ssh',
616
561
  'super:workspace',
617
- 't3:models',
618
- 't3:updates',
619
562
  'tailscale:device',
620
563
  'tailscale:leftover',
621
564
  'ubuntu:disk-gc',
@@ -624,7 +567,6 @@ export const ADVISORY_CHECKS = [
624
567
  'worker:parked-online',
625
568
  'worker:public-reachability',
626
569
  'worker:t3-deadline-restarts',
627
- ...Object.keys(PROXY_ROUTED).map((id) => `auth:${id}`),
628
570
  ];
629
571
 
630
572
  /** Checks that enforce a requirement of docs/worker-requirements.md; that
@@ -634,7 +576,6 @@ export const WORKER_REQUIREMENTS = [
634
576
  'bootstrap:privilege',
635
577
  'platform:environment',
636
578
  'platform:worker-size',
637
- 'proxy:reachable-from',
638
579
  'ssh:auth',
639
580
  'ssh:host-key',
640
581
  'tailscale:configuration',
@@ -3,20 +3,18 @@ import type { Release } from './program';
3
3
  const SAFETY = [
4
4
  'No arguments prints help, including on a TTY. --json returns this document. The menu requires --interactive; --json and --non-interactive never prompt.',
5
5
  'Diagnostics, onboarding instructions, schema, catalogs, scripts and repair previews are read-only.',
6
- 'converge, converge-local, t3-reconcile and t3-remove apply by invocation; --dry-run previews. t3-reconcile --import ID explicitly adopts ownership. --json never implies a dry run. enroll and repair require --apply --yes.',
6
+ 'converge applies by invocation; --dry-run previews. --json never implies a dry run. enroll and repair require --apply --yes.',
7
7
  'state alone is read-only; --init, --import, --push and --restore each act on invocation. Bucket credentials come from HOMELAB_BUCKET_ACCESS_KEY_ID and HOMELAB_BUCKET_SECRET_ACCESS_KEY or a terminal prompt, never from arguments.',
8
8
  'Do not copy credentials, forward SSH agents, bypass host keys, provision infrastructure or execute unreviewed remedies.',
9
9
  'A healthy manager does not prove another machine can connect to it. Run check from each intended manager.',
10
10
  'repair executes only allowlisted owner actions, then reruns diagnostics. Native logins, host trust and resource permissions remain explicit operator steps. Pass the reviewed planHash as --plan-hash to reject a changed plan.',
11
- 'Shared provider keys are fetched through each machine’s existing Vault authorization by workstation tooling. Never copy machine-local login caches.',
11
+ 'Never copy machine-local login caches.',
12
12
  'Use exact npm versions for automation. The application never self-updates.',
13
13
  ];
14
14
 
15
15
  const EXAMPLES = [
16
- 'homelab converge-local',
17
16
  'homelab check',
18
17
  'homelab state --json',
19
- 'homelab t3',
20
18
  'homelab check --local --workspace /path/to/personal --json',
21
19
  'homelab check --json --strict --timeout 120000',
22
20
  'homelab check --tailnet --json',
@@ -63,8 +61,7 @@ export function agentGuide(release: Release) {
63
61
  'homelab --interactive (explicit opt-in; TTY required, disabled in CI)',
64
62
  groups: {
65
63
  'fleet-*':
66
- 'Developer computers: check, tailnet, converge, state, history, converge-local, repair, workers, enroll',
67
- t3: 'Declared T3 provider instances: t3, t3-reconcile, t3-remove',
64
+ 'Developer computers: check, tailnet, converge, state, history, repair, workers, enroll',
68
65
  proxy: 'The CLI proxy service on the manager; arguments are forwarded',
69
66
  },
70
67
  configuration: {
@@ -118,16 +115,6 @@ export function agentGuide(release: Release) {
118
115
  readiness:
119
116
  'Full Ubuntu acceptance is incomplete and fails closed; do not override it or claim deployment success.',
120
117
  },
121
- reconciliation: {
122
- plan: 'homelab t3-reconcile --dry-run --json',
123
- apply: 'homelab t3-reconcile --plan-hash HASH',
124
- cleanup: 'homelab t3-remove --dry-run',
125
- import: 'homelab t3-reconcile --import ID',
126
- ownership:
127
- 'Only declared or explicitly imported T3 instances. Pairing, credentials, threads and unrelated settings are preserved.',
128
- concurrency:
129
- 'Exclusive personal lock with optimistic external T3 file updates; avoid concurrent Settings edits.',
130
- },
131
118
  examples: EXAMPLES,
132
119
  };
133
120
  }
@@ -2,8 +2,6 @@ import { SOURCE_OPERATIONS } from './source-operations';
2
2
  import { commandCatalog } from './registry';
3
3
  import type { CommandSpec } from './contracts';
4
4
 
5
- const APPLIES = new Set(['converge-local', 't3-reconcile', 't3-remove']);
6
-
7
5
  /** Additive machine-readable discovery; the registry also drives the menu. */
8
6
  export function indexedCommands(search = '', group?: string) {
9
7
  return commandCatalog(search, group).map((entry) => ({
@@ -37,16 +35,6 @@ function execution(entry: CommandSpec) {
37
35
  preview: 'homelab state --json',
38
36
  note: 'Each flag is one explicit action on this manager’s fleet state. JSON selects output format; it does not prevent writes.',
39
37
  };
40
- if (APPLIES.has(entry.id))
41
- return {
42
- default: 'apply',
43
- authorization: 'command-invocation',
44
- preview: `homelab ${entry.id} --dry-run --json`,
45
- note:
46
- entry.id === 't3-reconcile'
47
- ? '--import ID adopts an existing instance without reconciling. JSON selects output format; it does not prevent writes.'
48
- : 'JSON selects output format; it does not prevent writes.',
49
- };
50
38
  if (entry.mutation)
51
39
  return {
52
40
  default: 'preview',
@@ -7,9 +7,6 @@ import { toolchainChecks } from '../toolchain-checks';
7
7
  import { pinnedT3Version, versionCheck } from '../t3/version';
8
8
  import { liveServerVersion } from '../platform/t3-service';
9
9
  import { loopbackOrigin } from '../t3/local-rpc';
10
- import { quotaLimited, verifyFleetProviders } from '../agents/fleet-verify';
11
- import { verifyNativeAgents } from '../agents/native-verify';
12
- import { accountContext, nodeAccountChecks } from '../accounts/context';
13
10
  import { convergeManagerHub } from '../monitoring/manager-hub';
14
11
  import { enrollManagerMonitoring } from './fleet-sync-monitoring';
15
12
  import { installConfig, secretVia } from '../fleet-config';
@@ -72,8 +69,10 @@ export async function convergeManager(
72
69
  }
73
70
  say('Measuring power, boot recovery, Docker, Vault, IDEs and health');
74
71
  checks.push(...(await managerMeasures(definition, input, run, host)));
75
- if (input.apply)
76
- checks.push(...(await managerAgents(definition, input, run)));
72
+ if (input.apply) {
73
+ say('Converging Git and GitHub');
74
+ checks.push(...(await managerGit(definition, input.workspace, run)));
75
+ }
77
76
  say('Converging the CLI proxy');
78
77
  checks.push(
79
78
  ...(await timed(() =>
@@ -184,37 +183,6 @@ async function managerMeasures(
184
183
  return [...vault, ...rest];
185
184
  }
186
185
 
187
- /** The same provider profiles, Git identity, GitHub sign-in, agents,
188
- * versions and shared accounts as every worker: the instances launch from
189
- * these profiles, and the checks prove the credential works end to end
190
- * through the shared proxy.
191
- *
192
- * The profiles come first: every session launches from them. Git and GitHub
193
- * then run beside the providers, accounts and agent sessions, which use
194
- * neither.
195
- */
196
- async function managerAgents(
197
- definition: FleetDefinition,
198
- input: { workspace: string; progress?: (step: string) => void },
199
- run: Runner
200
- ): Promise<Check[]> {
201
- const id = definition.manager.id;
202
- input.progress?.('Rendering agent profiles');
203
- const profiles = await timed(() =>
204
- attempt('configuration:apply', () =>
205
- managerAgentProfiles(id, input.workspace, run)
206
- )
207
- );
208
- input.progress?.(
209
- 'Converging Git and GitHub; verifying providers, accounts and agent sessions'
210
- );
211
- const [git, agents] = await Promise.all([
212
- managerGit(definition, input.workspace, run),
213
- managerSessions(id, input.workspace, run),
214
- ]);
215
- return [...profiles, ...git, ...agents];
216
- }
217
-
218
186
  /** The Git identity, then what reads it: git asks gh for the token through
219
187
  * the helper git.yml declares, so these three keep their order.
220
188
  */
@@ -243,32 +211,6 @@ async function managerGit(
243
211
  return [...identity, ...checked, ...github];
244
212
  }
245
213
 
246
- /** Providers, then the accounts and the sessions that depend on what the
247
- * providers found out of quota.
248
- */
249
- async function managerSessions(
250
- id: string,
251
- workspace: string,
252
- run: Runner
253
- ): Promise<Check[]> {
254
- const providers = await timed(() =>
255
- attempt('provider:verification', () => verifyFleetProviders(id))
256
- );
257
- const accounts = await accountContext();
258
- const roster = await timed(() =>
259
- attempt('accounts:verification', () => nodeAccountChecks(accounts))
260
- );
261
- const sessions = await timed(() =>
262
- attempt('agent:verification', () =>
263
- verifyNativeAgents(id, workspace, run, {
264
- outOfQuota: quotaLimited(providers),
265
- ...(accounts ? { accounts } : {}),
266
- })
267
- )
268
- );
269
- return [...providers, ...roster, ...sessions];
270
- }
271
-
272
214
  function playbookPassed(cached: boolean): Check {
273
215
  return cached
274
216
  ? {
@@ -285,90 +227,6 @@ function playbookPassed(cached: boolean): Check {
285
227
  };
286
228
  }
287
229
 
288
- const PROFILE_TOOLS = [
289
- 'codex',
290
- 'claude',
291
- 'gemini',
292
- 'opencode',
293
- 'grok',
294
- 'antigravity',
295
- ] as const;
296
-
297
- /** Applies the proxy agent profiles the managed T3 instances launch from
298
- * (codex-proxy.ts refuses to start with a missing or stale profile). Workers
299
- * apply the same profiles from a pinned deployment; the manager's checkout is
300
- * the human's working tree, so only the workstation sources must be clean
301
- * (the `agents apply` owner enforces that) and nothing else is touched.
302
- */
303
- export async function managerAgentProfiles(
304
- id: string,
305
- workspace: string,
306
- run: Runner
307
- ): Promise<Check[]> {
308
- // One process for every tool: each start of the pinned Bun costs about
309
- // as much as applying a profile does.
310
- const result = await run(
311
- [
312
- 'mise',
313
- 'exec',
314
- '--locked',
315
- 'bun',
316
- '--',
317
- 'bun',
318
- 'src/agents/cli.ts',
319
- '--json',
320
- '--yes',
321
- '--non-interactive',
322
- 'agents',
323
- 'apply',
324
- '--node',
325
- id,
326
- '--tool',
327
- PROFILE_TOOLS.join(','),
328
- '--profile',
329
- 'proxy',
330
- ],
331
- { cwd: workspace, timeoutMs: 300_000 }
332
- );
333
- if (!result.ok) {
334
- const tool = failedTool(result.stdout) ?? PROFILE_TOOLS.join(',');
335
- return [
336
- {
337
- id: 'configuration:apply',
338
- status: 'fail',
339
- summary: 'MANAGER_AGENT_PROFILES_FAILED',
340
- remedy: {
341
- action: `Run bun src/agents/cli.ts --yes agents apply --node ${id} --tool ${tool} --profile proxy in the homelab checkout on the manager and review the result.`,
342
- },
343
- },
344
- ];
345
- }
346
- return [
347
- {
348
- id: 'configuration:apply',
349
- status: 'pass',
350
- summary: `The manager has the same proxy agent profiles as every worker (${PROFILE_TOOLS.join(', ')}).`,
351
- },
352
- ];
353
- }
354
-
355
- /** The tool `agents apply` stopped at, from the line it printed for it. */
356
- function failedTool(stdout: string): string | undefined {
357
- for (const line of stdout.split('\n').reverse()) {
358
- try {
359
- const said = JSON.parse(line) as { ok?: unknown; tool?: unknown };
360
- if (
361
- said.ok === false &&
362
- (PROFILE_TOOLS as readonly unknown[]).includes(said.tool)
363
- )
364
- return said.tool as string;
365
- } catch {
366
- /* Not a line of the command's own. */
367
- }
368
- }
369
- return undefined;
370
- }
371
-
372
230
  /** converge runs only on the declared manager. */
373
231
  export async function managerIdentity(
374
232
  id: string,
@@ -12,9 +12,7 @@ const COLUMNS: { title: string; matches: (id: string) => boolean }[] = [
12
12
  { title: 'SSH', matches: (id) => id.startsWith('ssh:') },
13
13
  {
14
14
  title: 'OS',
15
- matches: (id) =>
16
- ['ubuntu:baseline', 'configuration:apply'].includes(id) ||
17
- id.startsWith('manager:'),
15
+ matches: (id) => id === 'ubuntu:baseline' || id.startsWith('manager:'),
18
16
  },
19
17
  {
20
18
  title: 'T3',
@@ -24,7 +22,6 @@ const COLUMNS: { title: string; matches: (id: string) => boolean }[] = [
24
22
  't3:policy-staged',
25
23
  't3:policy-loaded',
26
24
  't3:running-version',
27
- 't3:providers',
28
25
  't3:private-route',
29
26
  'worker:t3-recovery',
30
27
  'worker:t3-health',