@crvouga/homelab 0.24.0 → 0.26.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.
@@ -20,6 +20,11 @@ import { authorizePrivilege } from './fleet-sync-privilege';
20
20
  import { authorizeVault } from './fleet-sync-vault';
21
21
  import { managerFailure } from '../manager-failure';
22
22
  import { managerText, stdoutColor } from './fleet-sync-output';
23
+ import {
24
+ commitDate,
25
+ releaseIdentity,
26
+ type ReleaseIdentity,
27
+ } from '../package-info';
23
28
  import { syncProgress, type SyncProgress } from './fleet-sync-progress';
24
29
  import { saveReport } from './fleet-sync-report';
25
30
  import { synchronizeMonitoring } from './fleet-sync-monitoring';
@@ -103,6 +108,8 @@ export async function selected(
103
108
  const { nodes, definition: scoped } = active;
104
109
  const notes = [...records, ...active.checks];
105
110
  const ui = interfaceOptions(options);
111
+ const release = releaseIdentity();
112
+ ui.progress.open(release);
106
113
  const planFingerprint = createHash('sha256')
107
114
  .update(
108
115
  JSON.stringify({ revision: options.revision, definition: scoped, nodes })
@@ -193,6 +200,8 @@ export async function selected(
193
200
  ).finally(() => ui.progress.stop());
194
201
  if (options.enrollment) reportEnrollment(report, options.enrollment);
195
202
  reportSelection(report, options);
203
+ report.homelab = release;
204
+ recordNodeReleases(report, release, settings.workspace);
196
205
  notes.push(
197
206
  ...(await meshChecks(canonical, nodes, run, Boolean(options.apply)))
198
207
  );
@@ -374,6 +383,29 @@ function enrollmentRequired(
374
383
  return failed(report);
375
384
  }
376
385
 
386
+ /** Each node records the release it runs. The run's own commit is this
387
+ * release; an older one keeps its commit and date, with no version.
388
+ */
389
+ function recordNodeReleases(
390
+ report: ManagerReport,
391
+ release: ReleaseIdentity,
392
+ workspace: string
393
+ ): void {
394
+ for (const node of report.nodes) {
395
+ const revision = node.appliedRevision ?? node.desiredRevision;
396
+ const current = revision === release.revision;
397
+ node.homelab = {
398
+ version: current ? release.version : null,
399
+ revision,
400
+ committedAt: current
401
+ ? release.committedAt
402
+ : revision
403
+ ? commitDate(revision, workspace)
404
+ : null,
405
+ };
406
+ }
407
+ }
408
+
377
409
  function failed(report: ReturnType<typeof managerFailure>): CommandOutcome {
378
410
  return {
379
411
  exitCode: 1,
package/src/definition.ts CHANGED
@@ -1016,7 +1016,6 @@ const POLICY: Record<string, string> = {
1016
1016
  vaultUser: 'a Vault user name',
1017
1017
  toolchain: '"mise.lock"',
1018
1018
  unattendedSudo: 'true',
1019
- persistentT3: 'true',
1020
1019
  neverSleep: 'true',
1021
1020
  toolProfiles: 'a list of known tool profiles, each once',
1022
1021
  tools: 'a list of tool names from homelab’s mise.toml, each once',
@@ -9,20 +9,11 @@ export type IdeId = (typeof SUPPORTED_IDES)[number];
9
9
 
10
10
  /** What `t3` in fleet.json declares for every machine's T3. */
11
11
  export interface T3Definition {
12
- /** Top-level T3 settings every machine holds the same: tool servers,
13
- * projects, selected preferences. A key not named here stays local.
14
- */
15
- profile?: Record<string, unknown>;
16
12
  /** Allow first pairing during sync; absent asks on an interactive terminal. */
17
13
  pairOnEnrollment?: boolean;
18
14
  meshAccess?: 'full-access';
19
- /** Models T3 must offer for every account of a tool, by tool. */
20
15
  }
21
16
 
22
- const KEY = /^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/;
23
- /** Settings another part of homelab owns. */
24
- const RESERVED = ['providerInstances'];
25
-
26
17
  function invalid(detail: string): never {
27
18
  throw new FleetUsageError(`Invalid fleet.json: ${detail}`);
28
19
  }
@@ -53,29 +44,15 @@ export function parseT3(value: unknown): T3Definition {
53
44
  if (
54
45
  !record(value) ||
55
46
  Object.keys(value).some(
56
- (key) => !['profile', 'pairOnEnrollment', 'meshAccess'].includes(key)
47
+ (key) => !['pairOnEnrollment', 'meshAccess'].includes(key)
57
48
  )
58
49
  )
59
- invalid('t3 holds only profile, pairOnEnrollment and meshAccess.');
50
+ invalid('t3 holds only pairOnEnrollment and meshAccess.');
60
51
  const result = meshPolicy(value['meshAccess']);
61
52
  if (value['pairOnEnrollment'] !== undefined) {
62
53
  if (typeof value['pairOnEnrollment'] !== 'boolean')
63
54
  invalid('t3.pairOnEnrollment must be a boolean.');
64
55
  result.pairOnEnrollment = value['pairOnEnrollment'];
65
56
  }
66
- if (value['profile'] !== undefined) {
67
- const profile = value['profile'];
68
- if (
69
- !record(profile) ||
70
- Object.keys(profile).some(
71
- (key) => !KEY.test(key) || RESERVED.includes(key)
72
- ) ||
73
- JSON.stringify(profile).length > 65_536
74
- )
75
- invalid(
76
- 't3.profile names top-level T3 settings (not providerInstances) and stays under 64 KiB.'
77
- );
78
- result.profile = profile;
79
- }
80
57
  return result;
81
58
  }
package/src/ide/ide.ts CHANGED
@@ -2,15 +2,14 @@ import type { Check, FleetNode, Runner } from '../types';
2
2
 
3
3
  /** What every supported IDE is asked for. An implementation owns its own
4
4
  * install, service and policy (an Ansible role per IDE, with the common
5
- * variable contract: version, checksum, policy, instances, profile) and is
5
+ * variable contract: version, checksum, policy, instances) and is
6
6
  * reached only through these calls, so the orchestration never names one.
7
7
  */
8
8
  export interface Ide {
9
9
  /** The name the fleet configuration enables it by, under `ides`. */
10
10
  readonly id: string;
11
- /** The IDE's settings on this machine: provider instances from the account
12
- * roster, the declared profile and the models it offers. Run on the manager
13
- * and on every worker by the machine itself.
11
+ /** The IDE's settings on this machine. Run on the manager and on every
12
+ * worker by the machine itself.
14
13
  */
15
14
  settings(context: MachineContext): Promise<Check[]>;
16
15
  /** The manager's own IDE: its settings, its pinned version and its policy. */
package/src/ide/t3.ts CHANGED
@@ -3,8 +3,6 @@ import { homedir } from 'node:os';
3
3
  import { join, resolve } from 'node:path';
4
4
  import type { Check, FleetNode } from '../types';
5
5
  import type { Ide, MachineContext, WorkerContext } from './ide';
6
- import { fleet } from '../fleet-config';
7
- import { profileCheck } from '../t3/profile';
8
6
  import { retireManagedProviders } from '../t3/retire-providers';
9
7
  import { MACOS_POLICY, updatesCheck, workerVersion } from '../t3/version';
10
8
  import { verifyT3Endpoint } from '../t3-endpoint';
@@ -19,7 +17,6 @@ const t3Home = (): string =>
19
17
  /** What the T3 checks read besides the machine: injected by scenarios. */
20
18
  export interface T3Inputs {
21
19
  t3Home?: string;
22
- profile?: Record<string, unknown>;
23
20
  policyPath?: string;
24
21
  }
25
22
 
@@ -31,11 +28,6 @@ export function t3Ide(inputs: T3Inputs = {}): Ide {
31
28
  const home = () => inputs.t3Home ?? t3Home();
32
29
  const settings = async (context: MachineContext): Promise<Check[]> => [
33
30
  await retireManagedProviders(home(), context.apply),
34
- await profileCheck(
35
- join(home(), 'userdata/settings.json'),
36
- inputs.profile ?? fleet.t3?.profile ?? {},
37
- { apply: context.apply }
38
- ),
39
31
  ];
40
32
  return {
41
33
  id: 't3',
@@ -34,6 +34,14 @@ export interface ManagerNode extends NodeReport {
34
34
  reachability: 'online' | 'offline' | 'missing' | 'conflict' | 'unknown';
35
35
  desiredRevision: string | null;
36
36
  appliedRevision: string | null;
37
+ /** The release this node runs, when it was recorded. A node whose revision
38
+ * is not the run's has no version: the older commit and its date show it.
39
+ */
40
+ homelab?: {
41
+ version: string | null;
42
+ revision: string | null;
43
+ committedAt: string | null;
44
+ };
37
45
  durationMs: number;
38
46
  diagnostics?: Diagnostic[];
39
47
  /** Observations superseded by a later measurement during this run. */
@@ -56,6 +64,12 @@ export interface ManagerReport {
56
64
  selectedBy?: RevisionSelection;
57
65
  /** The approved revision this run's revision replaces, when it is another. */
58
66
  replacedRevision?: string;
67
+ /** The homelab release this run is: its version, commit and commit date. */
68
+ homelab?: {
69
+ version: string;
70
+ revision: string | null;
71
+ committedAt: string | null;
72
+ };
59
73
  /** The worker that proved a revision new to the fleet first, when one did. */
60
74
  canary?: string;
61
75
  /** The workers this run enrolled (added to the roster, or bound to their
@@ -267,9 +281,20 @@ async function applyNodes(
267
281
  ? chooseCanary(workers, input.canary, input.nodes)
268
282
  : undefined;
269
283
  if (canary) report.canary = canary.node;
284
+ // A T3 restart is scheduled after converge exits, so a manager (or a
285
+ // canary) whose T3 still runs an older version never gates a rollout.
286
+ // A version that has not been measured yet is not a failure either, and
287
+ // neither is `rollout`: that marker only means this revision has not been
288
+ // applied, which is what the rollout is about to do. Only a version check
289
+ // that ran and failed holds the other workers back.
270
290
  const unverified = (node: ManagerNode) =>
271
291
  input.definition.softwarePolicy &&
272
- pendingVersions(input.definition, node, input.revision).length > 0;
292
+ pendingVersions(input.definition, node, input.revision).some(
293
+ (pending) =>
294
+ pending !== 'rollout' &&
295
+ !pending.startsWith('t3') &&
296
+ node.checks.some((check) => check.id === pending && blocking(check))
297
+ );
273
298
  let blocked =
274
299
  report.checks.some(blocking) ||
275
300
  report.nodes.some((node) => node.role === 'manager' && unverified(node));
@@ -1,3 +1,4 @@
1
+ import { execFileSync } from 'node:child_process';
1
2
  import { existsSync, readFileSync } from 'node:fs';
2
3
  import { join } from 'node:path';
3
4
  import { fileURLToPath } from 'node:url';
@@ -30,10 +31,19 @@ export interface PackageInfo {
30
31
  version: string;
31
32
  /** The commit this package was published from; null in a checkout. */
32
33
  revision: string | null;
34
+ /** The calendar date of that commit, `YYYY-MM-DD`; null when unknown. */
35
+ committedAt: string | null;
33
36
  /** Where a defect or a feature request is raised (`bugs` in the manifest). */
34
37
  issues: string | null;
35
38
  }
36
39
 
40
+ /** A real calendar day, `YYYY-MM-DD`: `2026-13-01` is not one. */
41
+ function calendarDate(value: string): boolean {
42
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return false;
43
+ const date = new Date(`${value}T00:00:00Z`);
44
+ return !Number.isNaN(date.getTime()) && date.toISOString().startsWith(value);
45
+ }
46
+
37
47
  function issueTracker(bugs: unknown): string | null {
38
48
  const url =
39
49
  typeof bugs === 'object' && bugs !== null
@@ -43,16 +53,23 @@ function issueTracker(bugs: unknown): string | null {
43
53
  }
44
54
 
45
55
  /** What the running package says about itself. The release workflow stamps
46
- * the version and the commit (`gitHead`) into the package it publishes, so an
47
- * installed homelab knows which revision every machine has to run. A
48
- * checkout carries neither: its revision is its own HEAD. The issue tracker
49
- * comes from the manifest too, so a fork sends its users to its own.
56
+ * the version, the commit (`gitHead`) and that commit's date
57
+ * (`gitCommittedAt`) into the package it publishes, so an installed homelab
58
+ * knows which revision every machine has to run and how old it is. A
59
+ * checkout carries none of them: its revision is its own HEAD. The issue
60
+ * tracker comes from the manifest too, so a fork sends its users to its own.
50
61
  */
51
62
  export function packageInfo(root = PACKAGE_ROOT): PackageInfo {
52
63
  const manifest = JSON.parse(
53
64
  readFileSync(join(root, 'package.json'), 'utf8')
54
- ) as { name?: unknown; version?: unknown; gitHead?: unknown; bugs?: unknown };
55
- const { gitHead } = manifest;
65
+ ) as {
66
+ name?: unknown;
67
+ version?: unknown;
68
+ gitHead?: unknown;
69
+ gitCommittedAt?: unknown;
70
+ bugs?: unknown;
71
+ };
72
+ const { gitHead, gitCommittedAt } = manifest;
56
73
  return {
57
74
  name: String(manifest.name),
58
75
  version: String(manifest.version),
@@ -60,6 +77,117 @@ export function packageInfo(root = PACKAGE_ROOT): PackageInfo {
60
77
  typeof gitHead === 'string' && /^[a-f0-9]{40}$/.test(gitHead)
61
78
  ? gitHead
62
79
  : null,
80
+ committedAt:
81
+ typeof gitCommittedAt === 'string' && calendarDate(gitCommittedAt)
82
+ ? gitCommittedAt
83
+ : null,
63
84
  issues: issueTracker(manifest.bugs),
64
85
  };
65
86
  }
87
+
88
+ /** The release a converge run names: the package's version, the commit it
89
+ * runs from and that commit's date. The process that starts the run tells
90
+ * the checkout it hands off to, because that checkout's own manifest stays
91
+ * at the development version.
92
+ */
93
+ export interface ReleaseIdentity {
94
+ version: string;
95
+ revision: string | null;
96
+ committedAt: string | null;
97
+ }
98
+
99
+ /** `0.23.14:952dd2ba…:2026-12-01`. An empty commit or date is unknown. */
100
+ export function encodeRelease(release: ReleaseIdentity): string {
101
+ return `${release.version}:${release.revision ?? ''}:${release.committedAt ?? ''}`;
102
+ }
103
+
104
+ const TOLD_RELEASE = /^([^:]+):([a-f0-9]{40})?:(\d{4}-\d{2}-\d{2})?$/;
105
+
106
+ /** What the process that started this run said it is, or null. */
107
+ export function decodeRelease(
108
+ text: string | undefined
109
+ ): ReleaseIdentity | null {
110
+ const told = TOLD_RELEASE.exec(text ?? '');
111
+ if (!told) return null;
112
+ return {
113
+ version: told[1]!,
114
+ revision: told[2] ?? null,
115
+ committedAt: told[3] ?? null,
116
+ };
117
+ }
118
+
119
+ /** How a run tells the checkout it starts which release it is. */
120
+ export const RELEASE_ENV = 'HOMELAB_RELEASE';
121
+
122
+ /** The release this process runs: what it was told, else its own package.
123
+ * A checkout's manifest stays at the development version and names no
124
+ * commit, so the commit and its date come from Git, and the version is the
125
+ * nearest tag that checkout can see. A hand-off that only knows the
126
+ * development version has not told this process anything.
127
+ */
128
+ export function releaseIdentity(cwd = PACKAGE_ROOT): ReleaseIdentity {
129
+ const told = decodeRelease(process.env[RELEASE_ENV]);
130
+ if (told?.revision) return told;
131
+ const info = packageInfo(cwd);
132
+ const revision = info.revision ?? headCommit(cwd);
133
+ const version =
134
+ info.version === DEVELOPMENT_VERSION
135
+ ? (nearestRelease(cwd) ?? info.version)
136
+ : info.version;
137
+ return {
138
+ version,
139
+ revision,
140
+ committedAt:
141
+ info.committedAt ?? (revision ? commitDate(revision, cwd) : null),
142
+ };
143
+ }
144
+
145
+ const DEVELOPMENT_VERSION = '0.0.0-development';
146
+
147
+ /** `HEAD` when this directory is a checkout of a commit, else null. */
148
+ function headCommit(cwd: string): string | null {
149
+ const revision = git(cwd, ['rev-parse', 'HEAD']);
150
+ return revision && /^[a-f0-9]{40}$/.test(revision) ? revision : null;
151
+ }
152
+
153
+ /** The version named by the nearest tag at or before `HEAD`, else null.
154
+ * `v1.4.0` is `1.4.0`. A checkout fetched without tags has none.
155
+ */
156
+ function nearestRelease(cwd: string): string | null {
157
+ const tag = git(cwd, ['describe', '--tags', '--abbrev=0']);
158
+ if (!tag) return null;
159
+ const version = tag.startsWith('v') ? tag.slice(1) : tag;
160
+ return /^\d+\.\d+\.\d+/.test(version) ? version : null;
161
+ }
162
+
163
+ function git(cwd: string, args: string[]): string | null {
164
+ try {
165
+ const text = execFileSync('git', args, {
166
+ cwd,
167
+ stdio: ['ignore', 'pipe', 'ignore'],
168
+ timeout: 5_000,
169
+ })
170
+ .toString()
171
+ .trim();
172
+ return text || null;
173
+ } catch {
174
+ return null;
175
+ }
176
+ }
177
+
178
+ /** `homelab 0.23.14 (952dd2ba7785, 2026-12-01)`. */
179
+ export function releaseLine(release: ReleaseIdentity): string {
180
+ return `homelab ${release.version} (${(release.revision ?? 'unknown').slice(0, 12)}, ${release.committedAt ?? 'unknown'})`;
181
+ }
182
+
183
+ /** The calendar date of a commit this checkout can see, `YYYY-MM-DD`, or
184
+ * null. A published package already carries the date; a checkout asks Git.
185
+ */
186
+ export function commitDate(
187
+ revision: string,
188
+ cwd = PACKAGE_ROOT
189
+ ): string | null {
190
+ if (!/^[a-f0-9]{40}$/.test(revision)) return null;
191
+ const date = git(cwd, ['log', '-1', '--format=%cs', revision]);
192
+ return date && calendarDate(date) ? date : null;
193
+ }
@@ -204,7 +204,7 @@ async function recoveryChecks(
204
204
  : 'The T3 desktop app runs as an enabled session service with automatic crash recovery.'
205
205
  )
206
206
  );
207
- checks.push(await t3HealthCheck(run));
207
+ checks.push(await t3HealthCheck(run, features.session));
208
208
  checks.push(await wipGuardCheck(run));
209
209
  checks.push(await t3StabilityCheck(run, userInfo().homedir));
210
210
  checks.push(
@@ -269,8 +269,32 @@ export async function serviceRecoveryCheck(run: Runner): Promise<Check> {
269
269
  );
270
270
  }
271
271
 
272
- /** The server answers its local API now, not merely that a process exists. */
273
- async function t3HealthCheck(run: Runner): Promise<Check> {
272
+ /** Seconds from this boot until T3's unit became active, or null when the
273
+ * clock cannot be read. The unit's monotonic start is measured from boot. */
274
+ export async function bootToServingSeconds(
275
+ run: Runner,
276
+ session: 'desktop' | 'headless' = 'desktop'
277
+ ): Promise<number | null> {
278
+ const started = await run([
279
+ 'systemctl',
280
+ '--user',
281
+ 'show',
282
+ '--property=ActiveEnterTimestampMonotonic',
283
+ '--value',
284
+ t3Unit(session),
285
+ ]);
286
+ const entered = Number(started.stdout.trim());
287
+ if (!started.ok || !Number.isSafeInteger(entered) || entered <= 0)
288
+ return null;
289
+ return entered / 1_000_000;
290
+ }
291
+
292
+ /** The server answers its local API now, not merely that a process exists,
293
+ * with unit activation checked against the boot-serving limit. */
294
+ export async function t3HealthCheck(
295
+ run: Runner,
296
+ session: 'desktop' | 'headless' = 'desktop'
297
+ ): Promise<Check> {
274
298
  const probe = await run(
275
299
  [
276
300
  'curl',
@@ -282,21 +306,59 @@ async function t3HealthCheck(run: Runner): Promise<Check> {
282
306
  ],
283
307
  { timeoutMs: 15_000 }
284
308
  );
285
- let identified = false;
309
+ const answers = probe.ok && hasEnvironmentIdentity(probe.stdout);
310
+ const boot = answers
311
+ ? await bootServing(run, session)
312
+ : { late: false, summary: '' };
313
+ const ok = answers && !boot.late;
314
+ return {
315
+ id: 'worker:t3-health',
316
+ status: ok ? 'pass' : 'fail',
317
+ summary: boot.late
318
+ ? boot.summary
319
+ : `${answers ? 'T3 local API answers with its environment identity within 10 seconds.' : 'T3 local API did not answer with its environment identity within 10 seconds.'}${boot.summary}${await hangEvidence(run, userInfo().homedir)}`,
320
+ ...(!ok
321
+ ? {
322
+ remedy: {
323
+ action: boot.late
324
+ ? 'The T3 unit activated later than t3Service.bootServingSeconds in ansible/ubuntu/policy.json. Read the journal of the T3 unit and of personal-worker-recovery for what delayed the start after boot.'
325
+ : 'Apply the approved converge revision over verified SSH, then rerun check --workers. No password prompt or state reset is attempted by health.',
326
+ },
327
+ }
328
+ : {}),
329
+ };
330
+ }
331
+
332
+ function hasEnvironmentIdentity(response: string): boolean {
286
333
  try {
287
- const value: unknown = JSON.parse(probe.stdout);
288
- identified =
334
+ const value: unknown = JSON.parse(response);
335
+ return (
289
336
  typeof value === 'object' &&
290
337
  value !== null &&
291
- typeof (value as Record<string, unknown>)['environmentId'] === 'string';
338
+ typeof (value as Record<string, unknown>)['environmentId'] === 'string'
339
+ );
292
340
  } catch {
293
- /* Raw responses are never reported. */
341
+ return false;
294
342
  }
295
- return check(
296
- 'worker:t3-health',
297
- probe.ok && identified,
298
- `T3 local API answers with its environment identity within 10 seconds.${await hangEvidence(run, userInfo().homedir)}`
299
- );
343
+ }
344
+
345
+ /** Compare the unit activation time with the boot-serving deadline. */
346
+ async function bootServing(
347
+ run: Runner,
348
+ session: 'desktop' | 'headless'
349
+ ): Promise<{ late: boolean; summary: string }> {
350
+ const limit = policy.t3Service.bootServingSeconds;
351
+ const serving = await bootToServingSeconds(run, session);
352
+ if (serving === null) return { late: false, summary: '' };
353
+ if (serving > limit)
354
+ return {
355
+ late: true,
356
+ summary: `T3_BOOT_SERVING_LATE: The T3 unit activated ${serving} seconds after boot, past the ${limit} seconds a worker is given to serve after a power loss.`,
357
+ };
358
+ return {
359
+ late: false,
360
+ summary: ` The T3 unit activated ${serving} seconds after boot (at most ${limit}).`,
361
+ };
300
362
  }
301
363
 
302
364
  const DAY_SECONDS = 86_400;
@@ -14,7 +14,6 @@ export interface WorkerPolicy {
14
14
  vaultUser: string;
15
15
  toolchain: 'mise.lock';
16
16
  unattendedSudo: true;
17
- persistentT3: true;
18
17
  neverSleep: true;
19
18
  /** Tool profiles every worker installs on top of the base tools. */
20
19
  toolProfiles?: ToolProfile[];
@@ -52,7 +51,6 @@ const FIELDS: Record<string, (value: unknown) => boolean> = {
52
51
  typeof value === 'string' && /^[a-zA-Z0-9_.-]{1,64}$/.test(value),
53
52
  toolchain: (value) => value === 'mise.lock',
54
53
  unattendedSudo: (value) => value === true,
55
- persistentT3: (value) => value === true,
56
54
  neverSleep: (value) => value === true,
57
55
  toolProfiles: (value) => value === undefined || toolProfiles(value) !== null,
58
56
  tools: (value) => value === undefined || toolNames(value),
@@ -89,7 +87,7 @@ function toolNames(value: unknown): boolean {
89
87
  export function parseWorkerPolicy(value: unknown): WorkerPolicy {
90
88
  if (!record(value) || policyFault(value) !== null)
91
89
  throw new FleetUsageError(
92
- 'Invalid mandatory worker policy. Workers require the locked toolchain, common services, unattended sudo, persistent T3 and no sleep.'
90
+ 'Invalid mandatory worker policy. Workers require the locked toolchain, common services, unattended sudo and no sleep.'
93
91
  );
94
92
  const exposure =
95
93
  value['exposure'] === undefined