@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
@@ -45,20 +45,6 @@ export interface SyncPlan {
45
45
  removals: { node: string; removes: string[] }[];
46
46
  }
47
47
 
48
- /** The coding agents' CLIs: a new version is used by the next session, and a
49
- * running one keeps the binary it started with.
50
- */
51
- const AGENT_TOOLS = [
52
- 'claude',
53
- 'codex',
54
- 'gemini',
55
- 'copilot',
56
- 'aqua:anomalyco/opencode',
57
- 'http:grok',
58
- 'http:antigravity',
59
- 'http:cursor-agent',
60
- ];
61
-
62
48
  function section(text: string, name: string): string {
63
49
  const start = text.search(new RegExp(`^\\[${name}\\]\\s*$`, 'm'));
64
50
  if (start < 0) return '';
@@ -116,9 +102,7 @@ export function restarts(
116
102
  ...deferred,
117
103
  });
118
104
  else if (
119
- files.some((file) =>
120
- /^(agents\/|ansible\/ubuntu\/(t3-policy\.yml|t3\/))/.test(file)
121
- )
105
+ files.some((file) => /^ansible\/ubuntu\/(t3-policy\.yml|t3\/)/.test(file))
122
106
  )
123
107
  found.push({
124
108
  service: 't3',
@@ -126,13 +110,6 @@ export function restarts(
126
110
  endsRunningTurns: restartBusy,
127
111
  ...deferred,
128
112
  });
129
- const agents = tools.filter((change) => AGENT_TOOLS.includes(change.tool));
130
- if (agents.length)
131
- found.push({
132
- service: 'agent-clis',
133
- reason: `New sessions use the new ${agents.map((change) => change.tool).join(', ')}; running turns keep the version they started with.`,
134
- endsRunningTurns: false,
135
- });
136
113
  return found;
137
114
  }
138
115
 
@@ -543,7 +543,8 @@ function convergeWorker(
543
543
  );
544
544
  if (
545
545
  result.checks.some(
546
- (check) => check.id === 'configuration:apply' && check.status === 'pass'
546
+ (check) =>
547
+ check.id === 'workstation:configuration' && check.status === 'pass'
547
548
  )
548
549
  ) {
549
550
  result.checks = result.checks.filter(
@@ -265,8 +265,7 @@ function unreachable(node: FleetNode): Check {
265
265
  * unreachable (`secretsLogin` in src/secrets.ts tells them the same way). Renewal does not keep every
266
266
  * login alive (`loginEndsIn`), so a login about to end warns while a person
267
267
  * can still log in again. A lapsed session needs one login by a person, and
268
- * until then agents on the manager use the proxy client key they last read
269
- * (src/agents/secrets.ts).
268
+ * until then the manager keeps the secrets it last read.
270
269
  */
271
270
  export async function holdManagerVault(
272
271
  run: Runner,
@@ -50,7 +50,6 @@ import { FleetLockError } from '../machine/lock-error';
50
50
  import { selected } from './fleet-sync-remote';
51
51
  import { managerIdentity } from './fleet-sync-manager';
52
52
  import { inRunCheckout, managerRunScript, rehome } from './fleet-sync-checkout';
53
- import { syncAccounts } from './fleet-sync-accounts';
54
53
  import { workerCopyRefusal } from './fleet-sync-worker-copy';
55
54
  import { packageInfo } from '../package-info';
56
55
  import { retireLegacyMonitoring } from './legacy-monitoring';
@@ -119,7 +118,7 @@ export interface FleetSyncOptions {
119
118
  vaultPasswordLogin?: boolean;
120
119
  all?: boolean;
121
120
  schedule?: ScheduleAction;
122
- /** `accounts`: only the account-derived configuration, on every node. */
121
+ /** `legacy-monitoring`: only retire the replaced manager monitoring job. */
123
122
  only?: string;
124
123
  /** Internal: this revision already converged the whole fleet, so no canary
125
124
  * has to prove it first and every worker converges at once.
@@ -816,7 +815,7 @@ async function offManager(
816
815
  `converge runs only on the manager (${definition.manager.id}), which is always a macOS machine; nothing was changed. Run it there, or from a worker that can SSH to the manager.`,
817
816
  revision ?? null
818
817
  );
819
- // An accounts-only request is the manager's installed launcher's.
818
+ // A scoped request is the manager's installed launcher's.
820
819
  const runScript =
821
820
  revision && !options.only
822
821
  ? await managerRunScript(settings.workspace, revision, run)
@@ -954,53 +953,18 @@ function validateRollback(options: FleetSyncOptions): void {
954
953
  }
955
954
 
956
955
  function validateOnly(options: FleetSyncOptions): void {
957
- if (
958
- options.only !== undefined &&
959
- !['accounts', 'legacy-monitoring'].includes(options.only)
960
- )
961
- throw new FleetUsageError(
962
- '--only takes one scope: accounts or legacy-monitoring.'
963
- );
964
- if (
965
- (options.only === 'accounts' && options.dryRun) ||
966
- (options.only && options.schedule)
967
- )
968
- throw new FleetUsageError(
969
- '--only accounts applies at once; it takes neither --dry-run nor --schedule.'
970
- );
956
+ if (options.only !== undefined && options.only !== 'legacy-monitoring')
957
+ throw new FleetUsageError('--only takes one scope: legacy-monitoring.');
958
+ if (options.only && options.schedule)
959
+ throw new FleetUsageError('--only takes no --schedule.');
971
960
  }
972
961
 
973
962
  function onlyScope(
974
963
  options: FleetSyncOptions,
975
- settings: Settings,
964
+ _settings: Settings,
976
965
  run: Runner
977
966
  ): Promise<CommandOutcome> {
978
- return options.only === 'legacy-monitoring'
979
- ? retireLegacyMonitoring(options, run)
980
- : onlyAccounts(options, settings, run);
981
- }
982
-
983
- /** `--only accounts`: workers keep the revision they run; only their
984
- * accounts change.
985
- */
986
- async function onlyAccounts(
987
- options: FleetSyncOptions,
988
- settings: Settings,
989
- run: Runner
990
- ): Promise<CommandOutcome> {
991
- const root = machineRoot();
992
- await ensurePrivateRoot(root);
993
- const state = await loadEnrollment(legacyHome() ? root : null);
994
- const revision =
995
- state?.approvedRevision ??
996
- (await selectedRevision(options.revision, undefined, settings, run))
997
- .revision;
998
- if (!isRevision(revision))
999
- return actionRequired(
1000
- 'FLEET_REVISION_REQUIRED',
1001
- 'No revision is applied yet. Run a full converge first.'
1002
- );
1003
- return syncAccounts(options, settings, { revision, run });
967
+ return retireLegacyMonitoring(options, run);
1004
968
  }
1005
969
 
1006
970
  /** The workers that converged before this run. A fleet state written before
package/src/cli/fleet.ts CHANGED
@@ -188,8 +188,7 @@ async function diagnose(
188
188
  );
189
189
  explainMissingCheckout(reports, root);
190
190
  if (!options.local && settings.missingRoster) reports.push(missingRoster());
191
- const schedule = scheduleCheck(readHistory(), new Date());
192
- if (schedule) reports[0]?.checks.push(schedule);
191
+ reports[0]?.checks.push(scheduleCheck(readHistory(), new Date()));
193
192
  // What each worker is doing, unless only this manager is checked.
194
193
  const usage = await usageOf(
195
194
  reports,
@@ -1,8 +1,6 @@
1
- import { T3DiagnosticError } from '../t3/diagnostics';
2
1
  import { Command, CommanderError } from 'commander';
3
2
  import { FleetUsageError } from '../errors';
4
3
  import { indexedCommands } from './command-index';
5
- import { registerT3 } from './t3/register';
6
4
  import { registerSourceOperations } from './source-operations';
7
5
  import { registerFleet } from './register-fleet';
8
6
  import { agentGuide } from './agent-guide';
@@ -74,8 +72,8 @@ function createProgram(
74
72
  [
75
73
  '',
76
74
  `Release: ${releaseLabel(release)}`,
77
- 'Groups: converge, check, state and the other machine commands · t3 T3 provider instances · proxy the CLI proxy service.',
78
- 'Apply on invocation (--dry-run previews): converge-local, t3-reconcile, t3-remove. converge applies on invocation too; --apply --yes is still accepted.',
75
+ 'Groups: converge, check, state and the other machine commands · proxy the CLI proxy service.',
76
+ 'converge applies on invocation (--dry-run previews); --apply --yes is still accepted.',
79
77
  'Preview until --apply --yes: repair, enroll. --json does not make a command read-only.',
80
78
  'Agents: homelab commands --json. Menu: homelab --interactive.',
81
79
  ...(release.issues
@@ -128,16 +126,12 @@ export async function execute(
128
126
  outcome = result;
129
127
  };
130
128
  registerFleet(program, defaults, complete);
131
- registerT3(program, defaults, complete);
132
129
  registerSourceOperations(program, defaults, complete);
133
130
  program
134
131
  .command('commands')
135
132
  .description('Search the command catalog and agent contract')
136
133
  .option('--search <text>', 'Filter names, descriptions and keywords')
137
- .option(
138
- '--group <name>',
139
- 'Filter group: Fleet, T3, Infra, Workstation, Reference'
140
- )
134
+ .option('--group <name>', 'Filter group: Fleet, Services, Reference')
141
135
  .action((_options, command: Command) => {
142
136
  outcome = catalog(command.optsWithGlobals<CliOptions>(), release);
143
137
  });
@@ -194,11 +188,6 @@ function commandError(error: unknown, output: string): CommandOutcome {
194
188
  data: { version: 1, help: output.trim() },
195
189
  text: output.trim(),
196
190
  };
197
- if (error instanceof T3DiagnosticError)
198
- return {
199
- exitCode: 1,
200
- data: { version: 1, ok: false, checks: [error.check] },
201
- };
202
191
  const usage =
203
192
  error instanceof CommanderError || error instanceof FleetUsageError;
204
193
  return {
@@ -5,9 +5,7 @@ import type { Settings } from './settings';
5
5
  import { resolveSettings } from './settings';
6
6
  import { executeFleet } from './fleet';
7
7
  import { fleetSync, type FleetSyncOptions } from './fleet-sync';
8
- import { syncNode, type NodeSyncOptions } from './node-sync';
9
8
  import { fleetState, type FleetStateOptions } from './fleet-state';
10
- import { fleetAccounts, type FleetAccountsOptions } from './fleet-accounts';
11
9
  import { fleetReport, type FleetReportOptions } from './fleet-report';
12
10
  import { fleetWatch, watchServices } from './fleet-watch';
13
11
  import type { Check, NodeReport } from '../types';
@@ -288,7 +286,7 @@ function registerSync({ program, defaults, complete }: Registration) {
288
286
  )
289
287
  .option(
290
288
  '--only <scope>',
291
- 'accounts: account configuration on every node; legacy-monitoring: retire only the replaced manager monitoring job (supports --dry-run)'
289
+ 'legacy-monitoring: retire only the replaced manager monitoring job (supports --dry-run)'
292
290
  )
293
291
  .action(async (_options, command: Command) => {
294
292
  const options = command.optsWithGlobals<
@@ -301,24 +299,6 @@ function registerSync({ program, defaults, complete }: Registration) {
301
299
  })
302
300
  );
303
301
  });
304
- named(
305
- program,
306
- 'converge-local',
307
- 'Reconcile this node’s locked tools, launcher, Codex proxy profile and T3 instances; applies by default'
308
- )
309
- .option(
310
- '--id <name>',
311
- 'Stable node name; defaults to this machine hostname'
312
- )
313
- .option('--revision <sha>', 'Reviewed commit; defaults to checkout HEAD')
314
- .option('--dry-run', 'Preview without changing this node')
315
- .option('--t3-home <path>', 'T3 base directory')
316
- .action(async (_options, command: Command) => {
317
- const options = command.optsWithGlobals<
318
- NodeSyncOptions & Partial<Settings>
319
- >();
320
- complete(await syncNode(options, await withSettings(defaults, options)));
321
- });
322
302
  }
323
303
 
324
304
  function registerState({ program, complete }: Registration) {
@@ -663,39 +643,5 @@ export function registerFleet(
663
643
  registerManifest(registration);
664
644
  registerRepair(registration);
665
645
  registerNodes(registration);
666
- registerAccounts(registration);
667
646
  registerGithubVerify(program, complete);
668
647
  }
669
-
670
- function registerAccounts({ program, defaults, complete }: Registration) {
671
- named(
672
- program,
673
- 'accounts [args...]',
674
- 'List the provider accounts signed in on the CLI proxy and their state; add, sign in again or remove one'
675
- )
676
- .option(
677
- '--auth-plan',
678
- 'List the provider accounts that require a sign-in on the manager'
679
- )
680
- .option('--diff', 'Also compare what this machine offers with the roster')
681
- .option('--add', 'Sign a new account in: --add PROVIDER')
682
- .option('--relogin', 'Sign one account in again: --relogin PROVIDER INDEX')
683
- .option('--remove', 'Remove one account: --remove PROVIDER INDEX')
684
- .option(
685
- '--remove-native-logins',
686
- 'Remove provider logins agent CLIs keep outside the proxy on this machine; needs --yes'
687
- )
688
- .option('--yes', 'Confirm --remove-native-logins')
689
- .action(async (args: string[], _options, command: Command) => {
690
- const options = command.optsWithGlobals<
691
- FleetAccountsOptions & CliOptions
692
- >();
693
- complete(
694
- await fleetAccounts(
695
- options,
696
- args,
697
- await withSettings(defaults, options)
698
- )
699
- );
700
- });
701
- }
@@ -42,7 +42,7 @@ export const COMMANDS: CommandSpec[] = [
42
42
  'check --tailnet',
43
43
  'Check all Tailscale computers',
44
44
  'Discover every visible non-mobile Tailscale computer, then test reachability, pinned tools, configuration and service logins. Offline, unregistered and unverified computers fail coverage.',
45
- ['tailscale', 'tailnet', 'all', 'versions', 'codex', 'claude', 'login'],
45
+ ['tailscale', 'tailnet', 'all', 'versions', 'login'],
46
46
  ],
47
47
  [
48
48
  'check --workers',
@@ -128,13 +128,6 @@ export const COMMANDS: CommandSpec[] = [
128
128
  'Read-only over verified SSH: every installed package, the active mise tools and the state of each always-on service, with a digest that is the same for two workers built from the same revision. The check worker:manifest reports every difference from the declared pins and, with --reference, from a fresh build.',
129
129
  ['manifest', 'drift', 'reproducible', 'rebuild', 'packages', 'audit'],
130
130
  ],
131
- [
132
- 'converge-local',
133
- 'Sync this node',
134
- 'Reconcile locked tools, the personal launcher, Codex proxy profile and owned T3 instances on this machine. Applies by default; --dry-run previews.',
135
- ['node', 'sync', 'proxy', 'tools'],
136
- true,
137
- ],
138
131
  [
139
132
  'repair',
140
133
  'Repair tools and configuration',
@@ -173,19 +166,6 @@ export const COMMANDS: CommandSpec[] = [
173
166
  ['onboarding', 'register', 'new', 'setup', 'add'],
174
167
  true,
175
168
  ],
176
- [
177
- 'accounts',
178
- 'List provider accounts and their state',
179
- 'Read-only: the provider accounts signed in on the CLI proxy (provider, index, label, state, when a cooldown clears), the roster version and the proxy:account:<provider> checks. --diff also compares what this machine offers with the roster.',
180
- ['accounts', 'providers', 'login', 'quota', 'cooldown', 'roster'],
181
- ],
182
- [
183
- 'accounts --add',
184
- 'Add, sign in again or remove a provider account',
185
- '--add PROVIDER, --relogin PROVIDER INDEX or --remove PROVIDER INDEX changes one account on the CLI proxy (signing in is the only manual step), then propagates the accounts to every node with converge --only accounts.',
186
- ['accounts', 'login', 'relogin', 'remove', 'add', 'sign in'],
187
- true,
188
- ],
189
169
  [
190
170
  'check-github',
191
171
  'Verify the GitHub workflow from this machine',
@@ -229,28 +209,6 @@ export const COMMANDS: CommandSpec[] = [
229
209
  true,
230
210
  ],
231
211
  ]),
232
- ...group('T3', [
233
- [
234
- 't3',
235
- 'Check T3 configuration drift',
236
- 'Compare declared T3 provider instances with the configuration on this machine; exit 1 on drift.',
237
- ['t3', 'drift', 'status'],
238
- ],
239
- [
240
- 't3-reconcile',
241
- 'Reconcile T3 provider instances',
242
- 'Create and update declared instances and remove previously owned instances absent from the definition. --dry-run plans; --plan-hash rejects stale plans; --import ID adopts an existing instance.',
243
- ['t3', 'apply', 'plan', 'import', 'reconcile'],
244
- true,
245
- ],
246
- [
247
- 't3-remove',
248
- 'Remove owned T3 instances',
249
- 'Remove only provider instances recorded in personal ownership state. --dry-run previews.',
250
- ['t3', 'cleanup', 'remove'],
251
- true,
252
- ],
253
- ]),
254
212
  ...group(
255
213
  'Services',
256
214
  Object.entries(SOURCE_OPERATIONS).map(([id, operation]) => [
package/src/config.ts CHANGED
@@ -8,8 +8,6 @@ export const CAPABILITIES: Capability[] = [
8
8
  't3',
9
9
  'vscode',
10
10
  'toolchain',
11
- 'codex',
12
- 'claude',
13
11
  'services',
14
12
  'workstation',
15
13
  'worker',
package/src/definition.ts CHANGED
@@ -144,7 +144,7 @@ export interface FleetDefinition {
144
144
  canary?: string;
145
145
  services: {
146
146
  /** Public HTTPS origin of the CLI proxy every node uses. */
147
- proxy: { endpoint: string; accounts?: AccountPolicy };
147
+ proxy: { endpoint: string };
148
148
  monitoring: {
149
149
  hubPort: 8443;
150
150
  /** Public dashboard origin. */
@@ -196,22 +196,6 @@ export interface StoragePolicy {
196
196
  export const disposableStorage = (
197
197
  definition: Pick<FleetDefinition, 'storage'>
198
198
  ): boolean => definition.storage?.disposable === true;
199
- /** How provider accounts are watched and chosen (src/accounts/). */
200
- export interface AccountPolicy {
201
- /** Fewer usable accounts of a provider than this is a warning; none fails. */
202
- minimumUsable?: number;
203
- /** Per provider (`claude`, `codex`, `antigravity`): which account an
204
- * unpinned request goes to first. Accounts cooling down are skipped.
205
- */
206
- selection?: Record<string, AccountSelection>;
207
- }
208
- export interface AccountSelection {
209
- strategy: 'fill-first' | 'round-robin' | 'least-recently-limited';
210
- /** Account labels (sign-in emails) first, in this order; the others
211
- * follow in the order of their routing prefix.
212
- */
213
- order?: string[];
214
- }
215
199
  export interface HubBackups {
216
200
  /** Cron expression of the hub's backup schedule. */
217
201
  schedule: string;
@@ -820,15 +804,16 @@ function operations(
820
804
  'github' | 'parking' | 'tailnet' | 'storage' | 'nativeSsh' | 'softwarePolicy'
821
805
  > {
822
806
  return {
823
- ...(fields['softwarePolicy'] === undefined
824
- ? {}
825
- : {
826
- softwarePolicy: constant(
807
+ // Version parity is not optional: a fleet that sets the field gets the
808
+ // one value it ever had, and a fleet that does not gets it too.
809
+ softwarePolicy:
810
+ fields['softwarePolicy'] === undefined
811
+ ? ('latest-supported' as const)
812
+ : constant(
827
813
  fields['softwarePolicy'],
828
814
  'latest-supported' as const,
829
815
  '$.softwarePolicy'
830
816
  ),
831
- }),
832
817
  ...(fields['nativeSsh'] === undefined
833
818
  ? {}
834
819
  : {
@@ -876,7 +861,7 @@ function services(value: unknown): FleetDefinition['services'] {
876
861
  const fields = object(value, '$.services');
877
862
  keys(fields, ['proxy', 'monitoring'], '$.services');
878
863
  const proxy = object(fields['proxy'], '$.services.proxy');
879
- keys(proxy, ['endpoint', 'accounts'], '$.services.proxy');
864
+ keys(proxy, ['endpoint'], '$.services.proxy');
880
865
  return {
881
866
  proxy: {
882
867
  endpoint: text(
@@ -885,9 +870,6 @@ function services(value: unknown): FleetDefinition['services'] {
885
870
  '$.services.proxy.endpoint',
886
871
  'an https origin without a path'
887
872
  ),
888
- ...(proxy['accounts'] === undefined
889
- ? {}
890
- : { accounts: accountPolicy(proxy['accounts']) }),
891
873
  },
892
874
  monitoring: monitoringService(fields['monitoring']),
893
875
  };
@@ -902,62 +884,6 @@ function block<T>(path: string, parse: () => T): T {
902
884
  return fail(path, error.message, 'something else');
903
885
  }
904
886
  }
905
- const STRATEGIES = ['fill-first', 'round-robin', 'least-recently-limited'];
906
- function accountPolicy(value: unknown): AccountPolicy {
907
- const path = '$.services.proxy.accounts';
908
- const fields = object(value, path);
909
- keys(fields, ['minimumUsable', 'selection'], path);
910
- const { minimumUsable, selection } = fields;
911
- if (
912
- minimumUsable !== undefined &&
913
- !(Number.isInteger(minimumUsable) && Number(minimumUsable) >= 1)
914
- )
915
- fail(`${path}.minimumUsable`, 'an integer of at least 1', minimumUsable);
916
- return {
917
- ...(minimumUsable === undefined
918
- ? {}
919
- : { minimumUsable: minimumUsable as number }),
920
- ...(selection === undefined
921
- ? {}
922
- : { selection: selectionPolicies(selection, `${path}.selection`) }),
923
- };
924
- }
925
- function selectionPolicies(
926
- value: unknown,
927
- path: string
928
- ): Record<string, AccountSelection> {
929
- const fields = object(value, path);
930
- const providers: Record<string, AccountSelection> = {};
931
- for (const [provider, entry] of Object.entries(fields)) {
932
- if (!/^[a-z][a-z0-9-]{0,31}$/.test(provider))
933
- fail(`${path}.${provider}`, 'a provider name', provider);
934
- providers[provider] = accountSelection(entry, `${path}.${provider}`);
935
- }
936
- return providers;
937
- }
938
- function accountSelection(entry: unknown, path: string): AccountSelection {
939
- const fields = object(entry, path);
940
- keys(fields, ['strategy', 'order'], path);
941
- if (!STRATEGIES.includes(String(fields['strategy'])))
942
- fail(
943
- `${path}.strategy`,
944
- `one of ${STRATEGIES.join(', ')}`,
945
- fields['strategy']
946
- );
947
- const { order } = fields;
948
- if (
949
- order !== undefined &&
950
- !(
951
- Array.isArray(order) &&
952
- order.every((label) => typeof label === 'string' && ACCOUNT.test(label))
953
- )
954
- )
955
- fail(`${path}.order`, 'a list of account email addresses', order);
956
- return {
957
- strategy: fields['strategy'] as AccountSelection['strategy'],
958
- ...(order ? { order: order as string[] } : {}),
959
- };
960
- }
961
887
  function monitoringService(
962
888
  value: unknown
963
889
  ): FleetDefinition['services']['monitoring'] {
@@ -1089,7 +1015,6 @@ const POLICY: Record<string, string> = {
1089
1015
  githubLogin: 'a GitHub login',
1090
1016
  vaultUser: 'a Vault user name',
1091
1017
  toolchain: '"mise.lock"',
1092
- agentProfile: '"proxy"',
1093
1018
  unattendedSudo: 'true',
1094
1019
  persistentT3: 'true',
1095
1020
  neverSleep: 'true',
@@ -15,7 +15,7 @@ import {
15
15
  type FleetDefinition,
16
16
  } from './definition';
17
17
  import { FleetUsageError } from './errors';
18
- import { pinnedPath } from './agents/toolchain';
18
+ import { pinnedPath } from './pinned-path';
19
19
  import type { Runner } from './types';
20
20
  import {
21
21
  secretsProvider,
@@ -17,7 +17,6 @@ export interface T3Definition {
17
17
  pairOnEnrollment?: boolean;
18
18
  meshAccess?: 'full-access';
19
19
  /** Models T3 must offer for every account of a tool, by tool. */
20
- requiredModels?: Record<string, string[]>;
21
20
  }
22
21
 
23
22
  const KEY = /^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/;
@@ -54,18 +53,10 @@ export function parseT3(value: unknown): T3Definition {
54
53
  if (
55
54
  !record(value) ||
56
55
  Object.keys(value).some(
57
- (key) =>
58
- ![
59
- 'profile',
60
- 'requiredModels',
61
- 'pairOnEnrollment',
62
- 'meshAccess',
63
- ].includes(key)
56
+ (key) => !['profile', 'pairOnEnrollment', 'meshAccess'].includes(key)
64
57
  )
65
58
  )
66
- invalid(
67
- 't3 holds only profile, requiredModels, pairOnEnrollment and meshAccess.'
68
- );
59
+ invalid('t3 holds only profile, pairOnEnrollment and meshAccess.');
69
60
  const result = meshPolicy(value['meshAccess']);
70
61
  if (value['pairOnEnrollment'] !== undefined) {
71
62
  if (typeof value['pairOnEnrollment'] !== 'boolean')
@@ -86,23 +77,5 @@ export function parseT3(value: unknown): T3Definition {
86
77
  );
87
78
  result.profile = profile;
88
79
  }
89
- if (value['requiredModels'] !== undefined) {
90
- const required = value['requiredModels'];
91
- if (
92
- !record(required) ||
93
- Object.entries(required).some(
94
- ([tool, models]) =>
95
- !KEY.test(tool) ||
96
- !Array.isArray(models) ||
97
- models.some(
98
- (model) =>
99
- typeof model !== 'string' ||
100
- !/^[A-Za-z0-9._:-]{1,128}$/.test(model)
101
- )
102
- )
103
- )
104
- invalid('t3.requiredModels lists model names by tool.');
105
- result.requiredModels = required as Record<string, string[]>;
106
- }
107
80
  return result;
108
81
  }
package/src/ide/super.ts CHANGED
@@ -6,34 +6,25 @@ import type { MachineDefinition } from '../definition';
6
6
  import { record } from '../config';
7
7
  import { fleet } from '../fleet-config';
8
8
  import { declaredConnection } from '../ssh-connection';
9
- import { NATIVE_AGENTS } from '../agents/native-verify';
10
9
 
11
10
  /** super.engineering, the second supported IDE. It is a desktop app on the
12
11
  * manager only: a worker is one of its remote workspaces, reached over the
13
12
  * manager's own SSH, where the app installs and updates its helper itself.
14
13
  * homelab installs nothing of it. On the manager it asks the app, through
15
14
  * the app's CLI, for one remote workspace per worker; of a worker it measures
16
- * what such a workspace needs. The app starts an agent by its plain command,
17
- * which on a worker is the fleet's launcher: the sign-in is the CLI proxy's.
15
+ * what such a workspace needs. Coding agents are the app's own to install.
18
16
  */
19
17
 
20
18
  /** Where the app keeps its data, and its CLI, under the home directory. */
21
19
  const APP_HOME = '.super.engineering';
22
20
 
23
- /** What a remote workspace needs on the host, besides a coding agent. */
21
+ /** What a remote workspace needs on the host. */
24
22
  const HOST_COMMANDS = ['git', 'flock'];
25
- const AGENT_COMMANDS = NATIVE_AGENTS.map((agent) => agent.binary);
26
23
 
27
24
  /** Prints each command the session finds and where, one a line. The app
28
25
  * starts agents from a session like this one: no terminal, no login shell.
29
26
  */
30
- const PROBE = `for c in ${[...HOST_COMMANDS, ...AGENT_COMMANDS].join(' ')}; do p=$(command -v "$c" 2>/dev/null) && printf '%s=%s\\n' "$c" "$p"; done; true`;
31
-
32
- /** A worker's agent commands are the fleet's launchers, which sign in
33
- * through the CLI proxy (src/agents/commands.ts): the directory they are
34
- * found in, under any home directory.
35
- */
36
- const LAUNCHERS = '/.local/share/personal/fleet/agent-commands/';
27
+ const PROBE = `for c in ${HOST_COMMANDS.join(' ')}; do p=$(command -v "$c" 2>/dev/null) && printf '%s=%s\\n' "$c" "$p"; done; true`;
37
28
 
38
29
  const INSTALL =
39
30
  'Install super.engineering on the manager (https://super.engineering/download) and start it once, then run converge.';
@@ -324,32 +315,10 @@ export function superIde(inputs: SuperInputs = {}): Ide {
324
315
  action: `Worker ${node.id} has no ${missing.join(' or ')} in an SSH session without a terminal. Run converge for that worker: the baseline installs both.`,
325
316
  },
326
317
  };
327
- const agents = AGENT_COMMANDS.filter((command) => found.has(command));
328
- if (!agents.length)
329
- return {
330
- id,
331
- status: 'warn',
332
- summary: 'SUPER_AGENTS_NOT_FOUND',
333
- remedy: {
334
- action: `An SSH session without a terminal finds none of ${AGENT_COMMANDS.join(', ')} on worker ${node.id}, so super.engineering can start no agent there. Run converge for that worker: it installs the pinned agents and puts them on that session's PATH.`,
335
- },
336
- };
337
- const own = agents.filter(
338
- (command) => !found.get(command)!.includes(LAUNCHERS)
339
- );
340
- if (own.length)
341
- return {
342
- id,
343
- status: 'warn',
344
- summary: 'SUPER_AGENTS_NOT_PROXIED',
345
- remedy: {
346
- action: `On worker ${node.id} an SSH session without a terminal starts ${own.join(', ')} as the plain CLI, with a sign-in of its own, not through the CLI proxy. Run converge for that worker: it puts the fleet's launchers first on that session's PATH.`,
347
- },
348
- };
349
318
  return {
350
319
  id,
351
320
  status: 'pass',
352
- summary: `super.engineering's SSH session reaches worker ${node.id} and starts ${agents.join(', ')} through the CLI proxy.`,
321
+ summary: `super.engineering's SSH session reaches worker ${node.id} and finds ${HOST_COMMANDS.join(' and ')}.`,
353
322
  };
354
323
  };
355
324