@catamorphic/work-server 0.1.0-alpha.39 → 0.1.0-alpha.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.txt +7 -0
- package/README.md +9 -9
- package/dist/admission/routes.d.ts +1 -1
- package/dist/admission/routes.d.ts.map +1 -1
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agents.d.ts +5 -6
- package/dist/agents.d.ts.map +1 -1
- package/dist/auth/fastify-auth.d.ts.map +1 -1
- package/dist/auth/work-auth-types.d.ts +2 -0
- package/dist/auth/work-auth-types.d.ts.map +1 -1
- package/dist/auth/work-auth.d.ts.map +1 -1
- package/dist/chunk-kcck20aw.js +676 -0
- package/dist/chunk-kcck20aw.js.map +11 -0
- package/dist/cluster.d.ts +8 -7
- package/dist/cluster.d.ts.map +1 -1
- package/dist/config.d.ts +5 -15
- package/dist/config.d.ts.map +1 -1
- package/dist/execution-config.d.ts +22 -0
- package/dist/execution-config.d.ts.map +1 -1
- package/dist/fake-agent.d.ts +1 -0
- package/dist/fake-agent.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2730 -2851
- package/dist/index.js.map +28 -28
- package/dist/machines/contract-kit.d.ts +91 -0
- package/dist/machines/contract-kit.d.ts.map +1 -0
- package/dist/machines/contract.d.ts +383 -0
- package/dist/machines/contract.d.ts.map +1 -0
- package/dist/machines/sequencer.d.ts +267 -0
- package/dist/machines/sequencer.d.ts.map +1 -0
- package/dist/machines/simulation.d.ts +124 -0
- package/dist/machines/simulation.d.ts.map +1 -0
- package/dist/machines/work-machines.d.ts +61 -0
- package/dist/machines/work-machines.d.ts.map +1 -0
- package/dist/server.d.ts +15 -11
- package/dist/server.d.ts.map +1 -1
- package/dist/setup/machines.d.ts +9 -17
- package/dist/setup/machines.d.ts.map +1 -1
- package/dist/shares/share-routes.d.ts +1 -1
- package/dist/shares/share-routes.d.ts.map +1 -1
- package/dist/testing.d.ts +8 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +1013 -0
- package/dist/testing.js.map +11 -0
- package/dist/workers/disk-care.d.ts +41 -0
- package/dist/workers/disk-care.d.ts.map +1 -0
- package/dist/workers/harness-sign-ins.d.ts +146 -0
- package/dist/workers/harness-sign-ins.d.ts.map +1 -0
- package/dist/workers/machine-store.d.ts +196 -0
- package/dist/workers/machine-store.d.ts.map +1 -0
- package/dist/workers/member-machine-routes.d.ts +5 -3
- package/dist/workers/member-machine-routes.d.ts.map +1 -1
- package/dist/workers/member-machines.d.ts +47 -28
- package/dist/workers/member-machines.d.ts.map +1 -1
- package/dist/workers/placement.d.ts +23 -40
- package/dist/workers/placement.d.ts.map +1 -1
- package/dist/workers/sign-ins.d.ts +44 -17
- package/dist/workers/sign-ins.d.ts.map +1 -1
- package/dist/workers/worker-protocol.d.ts +5 -2
- package/dist/workers/worker-protocol.d.ts.map +1 -1
- package/dist/workers/worker-registry.d.ts +174 -223
- package/dist/workers/worker-registry.d.ts.map +1 -1
- package/dist/workers/worker-routes.d.ts.map +1 -1
- package/dist/workers/worker-runtime.d.ts.map +1 -1
- package/package.json +31 -21
- package/src/admission/routes.ts +5 -2
- package/src/agent-capabilities.ts +22 -8
- package/src/agents.ts +52 -23
- package/src/auth/fastify-auth.ts +149 -17
- package/src/auth/work-auth-types.ts +2 -0
- package/src/auth/work-auth.ts +27 -0
- package/src/cluster.ts +115 -42
- package/src/config.ts +15 -41
- package/src/execution-config.ts +40 -0
- package/src/fake-agent.ts +21 -4
- package/src/index.ts +26 -12
- package/src/machines/contract-kit.ts +648 -0
- package/src/machines/contract.ts +522 -0
- package/src/machines/sequencer.ts +1010 -0
- package/src/machines/simulation.ts +833 -0
- package/src/machines/work-machines.ts +231 -0
- package/src/server.ts +235 -150
- package/src/setup/machines.ts +128 -121
- package/src/shares/share-routes.ts +17 -1
- package/src/testing.ts +22 -0
- package/src/workers/disk-care.ts +121 -0
- package/src/workers/fake-claude-cli.ts +95 -0
- package/src/workers/fake-codex-cli.ts +11 -4
- package/src/workers/harness-sign-ins.ts +580 -0
- package/src/workers/machine-store.ts +1065 -0
- package/src/workers/member-machine-routes.ts +92 -20
- package/src/workers/member-machines.ts +163 -99
- package/src/workers/placement.ts +59 -70
- package/src/workers/sign-ins.ts +109 -52
- package/src/workers/worker-protocol.ts +5 -2
- package/src/workers/worker-registry.ts +894 -754
- package/src/workers/worker-routes.ts +4 -1
- package/src/workers/worker-runtime.ts +55 -23
- package/dist/test-support.d.ts +0 -133
- package/dist/test-support.d.ts.map +0 -1
- package/dist/workers/codex-sign-ins.d.ts +0 -107
- package/dist/workers/codex-sign-ins.d.ts.map +0 -1
- package/dist/workers/install-script.d.ts +0 -71
- package/dist/workers/install-script.d.ts.map +0 -1
- package/dist/workers/machine-classes.d.ts +0 -115
- package/dist/workers/machine-classes.d.ts.map +0 -1
- package/dist/workers/machine-rules.d.ts +0 -402
- package/dist/workers/machine-rules.d.ts.map +0 -1
- package/src/test-support.ts +0 -404
- package/src/workers/codex-sign-ins.ts +0 -360
- package/src/workers/install-script.ts +0 -394
- package/src/workers/machine-classes.ts +0 -152
- package/src/workers/machine-rules.ts +0 -1954
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { RemoteExecutorLeaseLostError, type WorkerNodesService } from "@catamorphic/core";
|
|
2
2
|
import type { DB } from "@catamorphic/db";
|
|
3
|
-
import { type
|
|
3
|
+
import { type MachineDisk } from "@catamorphic/sandbox";
|
|
4
4
|
import { type Kysely } from "kysely";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import type
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
import { type MachineEvent, type MachineFacts } from "../machines/contract.js";
|
|
7
|
+
import type { HarnessSignInRequest } from "./harness-sign-ins.js";
|
|
8
|
+
import { MachineStore, WORKER_NODE_PREFIX } from "./machine-store.js";
|
|
9
|
+
import { type ScheduledPlacement, type WorkerPlacement, type WorkerPlacementSchema } from "./placement.js";
|
|
10
|
+
export { WORKER_NODE_PREFIX };
|
|
9
11
|
/** What a worker reports about itself when it connects. */
|
|
10
12
|
export declare const WorkerOfferSchema: z.ZodObject<{
|
|
11
13
|
isolation: z.ZodEnum<{
|
|
@@ -21,8 +23,11 @@ export declare const WorkerOfferSchema: z.ZodObject<{
|
|
|
21
23
|
workspaceRoot: z.ZodString;
|
|
22
24
|
processes: z.ZodDefault<z.ZodBoolean>;
|
|
23
25
|
capabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
26
|
+
caches: "caches";
|
|
27
|
+
"commands.separate": "commands.separate";
|
|
24
28
|
containers: "containers";
|
|
25
29
|
"credentials.personal": "credentials.personal";
|
|
30
|
+
disk: "disk";
|
|
26
31
|
"harness.claude-code": "harness.claude-code";
|
|
27
32
|
"harness.codex": "harness.codex";
|
|
28
33
|
images: "images";
|
|
@@ -42,6 +47,14 @@ export declare const WorkerOfferSchema: z.ZodObject<{
|
|
|
42
47
|
memoryMb: z.ZodOptional<z.ZodNumber>;
|
|
43
48
|
}, z.core.$strict>>;
|
|
44
49
|
version: z.ZodOptional<z.ZodString>;
|
|
50
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
totalBytes: z.ZodNumber;
|
|
53
|
+
freeBytes: z.ZodNumber;
|
|
54
|
+
floorBytes: z.ZodNumber;
|
|
55
|
+
criticalBytes: z.ZodNumber;
|
|
56
|
+
measuredAt: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
45
58
|
backend: z.ZodOptional<z.ZodObject<{
|
|
46
59
|
kind: z.ZodEnum<{
|
|
47
60
|
container: "container";
|
|
@@ -77,8 +90,11 @@ export declare const WorkerConnectSchema: z.ZodObject<{
|
|
|
77
90
|
workspaceRoot: z.ZodString;
|
|
78
91
|
processes: z.ZodDefault<z.ZodBoolean>;
|
|
79
92
|
capabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
93
|
+
caches: "caches";
|
|
94
|
+
"commands.separate": "commands.separate";
|
|
80
95
|
containers: "containers";
|
|
81
96
|
"credentials.personal": "credentials.personal";
|
|
97
|
+
disk: "disk";
|
|
82
98
|
"harness.claude-code": "harness.claude-code";
|
|
83
99
|
"harness.codex": "harness.codex";
|
|
84
100
|
images: "images";
|
|
@@ -98,6 +114,14 @@ export declare const WorkerConnectSchema: z.ZodObject<{
|
|
|
98
114
|
memoryMb: z.ZodOptional<z.ZodNumber>;
|
|
99
115
|
}, z.core.$strict>>;
|
|
100
116
|
version: z.ZodOptional<z.ZodString>;
|
|
117
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
path: z.ZodString;
|
|
119
|
+
totalBytes: z.ZodNumber;
|
|
120
|
+
freeBytes: z.ZodNumber;
|
|
121
|
+
floorBytes: z.ZodNumber;
|
|
122
|
+
criticalBytes: z.ZodNumber;
|
|
123
|
+
measuredAt: z.ZodString;
|
|
124
|
+
}, z.core.$strict>>;
|
|
101
125
|
backend: z.ZodOptional<z.ZodObject<{
|
|
102
126
|
kind: z.ZodEnum<{
|
|
103
127
|
container: "container";
|
|
@@ -130,72 +154,9 @@ export declare class WorkerIsolationError extends Error {
|
|
|
130
154
|
constructor(name: string);
|
|
131
155
|
}
|
|
132
156
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* pool, being reset before it returns to its pool, revoked and still being
|
|
136
|
-
* destroyed on its platform, or revoked.
|
|
157
|
+
* This worker's node is disabled: an operator disabled it, or Work stopped
|
|
158
|
+
* its machine (ADR 0350). It may connect once enabled or resumed.
|
|
137
159
|
*/
|
|
138
|
-
export type WorkerState = "serving" | "released" | "free" | "resetting" | "destroying" | "revoked";
|
|
139
|
-
/** A machine of a pool (`"pool": true` at enrollment), for the reconciler. */
|
|
140
|
-
export interface PooledMachine {
|
|
141
|
-
name: string;
|
|
142
|
-
nodeId: string;
|
|
143
|
-
/** The rule that holds it; absent while it is free or being reset. */
|
|
144
|
-
rule: string | null;
|
|
145
|
-
/** The user id it serves under an `each-member` rule. */
|
|
146
|
-
member: string | null;
|
|
147
|
-
/** Its place among a group's shared machines. */
|
|
148
|
-
slot: number | null;
|
|
149
|
-
/** How long ago it was released, by the database's clock. */
|
|
150
|
-
releasedForMs: number | null;
|
|
151
|
-
retainDays: number | null;
|
|
152
|
-
placement: WorkerPlacement;
|
|
153
|
-
}
|
|
154
|
-
/** A machine a rule provisioned on a platform, for the reconciler. */
|
|
155
|
-
export interface ProvisionedMachine {
|
|
156
|
-
name: string;
|
|
157
|
-
ref: string | null;
|
|
158
|
-
rule: string;
|
|
159
|
-
/**
|
|
160
|
-
* Enrolled, still pending enrollment, expired before enrolling (or its
|
|
161
|
-
* code withdrawn for destruction), or revoked and not yet destroyed.
|
|
162
|
-
*/
|
|
163
|
-
state: "enrolled" | "pending" | "expired" | "revoked";
|
|
164
|
-
/** How long ago it was released, by the database's clock. */
|
|
165
|
-
releasedForMs: number | null;
|
|
166
|
-
retainDays: number | null;
|
|
167
|
-
placement: WorkerPlacement;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* How busy a machine a rule provisioned is (ADR 0258), by the database's
|
|
171
|
-
* clock: Allocations holding its capacity, how long since it last held
|
|
172
|
-
* one (or enrolled), how long since it last called (or enrolled, when it
|
|
173
|
-
* never did), and while it is connected what it offers and has free.
|
|
174
|
-
*/
|
|
175
|
-
export interface MachineLoad {
|
|
176
|
-
holding: number;
|
|
177
|
-
idleForMs: number;
|
|
178
|
-
unseenForMs: number;
|
|
179
|
-
/** It enrolled and has not connected yet. */
|
|
180
|
-
neverConnected: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* While its lease is live: what it offers, what it has free, and what a
|
|
183
|
-
* workspace naming no resources is charged there.
|
|
184
|
-
*/
|
|
185
|
-
live: {
|
|
186
|
-
descriptor: EnvironmentBinding;
|
|
187
|
-
free: {
|
|
188
|
-
workspaces: number;
|
|
189
|
-
cpuMillis?: number;
|
|
190
|
-
memoryMb?: number;
|
|
191
|
-
};
|
|
192
|
-
defaults: {
|
|
193
|
-
cpuMillis?: number;
|
|
194
|
-
memoryMb?: number;
|
|
195
|
-
};
|
|
196
|
-
} | null;
|
|
197
|
-
}
|
|
198
|
-
/** The operator disabled this worker's node; it may connect once enabled. */
|
|
199
160
|
export declare class WorkerDisabledError extends Error {
|
|
200
161
|
constructor();
|
|
201
162
|
}
|
|
@@ -236,16 +197,39 @@ export declare class WorkWorkerRegistry {
|
|
|
236
197
|
private readonly deps;
|
|
237
198
|
private readonly queue;
|
|
238
199
|
private readonly waits;
|
|
200
|
+
/** The machines Work knows: whom each is for and where it stands. */
|
|
201
|
+
readonly machines: MachineStore;
|
|
239
202
|
constructor(deps: {
|
|
240
203
|
db: Kysely<DB>;
|
|
241
204
|
nodes: WorkerNodesService;
|
|
242
205
|
tenantId: string;
|
|
243
206
|
authorityId: string;
|
|
207
|
+
/**
|
|
208
|
+
* Derives the enrollment codes of machines the machines hook makes
|
|
209
|
+
* (ADR 0349); every replica of a deployment shares it.
|
|
210
|
+
*/
|
|
211
|
+
enrollmentSecret?: string;
|
|
244
212
|
/**
|
|
245
213
|
* A worker connected: hint this process's agent sweep, which tries
|
|
246
214
|
* chats waiting for a machine (ADR 0258) again at once.
|
|
247
215
|
*/
|
|
248
216
|
connected?: () => void;
|
|
217
|
+
/**
|
|
218
|
+
* Something happened to a machine (ADR 0349): it connected, started
|
|
219
|
+
* again, was lost, or fell short of disk. Delivery is the host's;
|
|
220
|
+
* nothing here waits on it.
|
|
221
|
+
*/
|
|
222
|
+
event?: (event: MachineEvent) => Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Work was retired from a machine (ADR 0348): hint this process's
|
|
225
|
+
* agent sweep, which admits its chats again at once.
|
|
226
|
+
*/
|
|
227
|
+
retired?: () => void;
|
|
228
|
+
/**
|
|
229
|
+
* Minutes unseen that make a machine whose plan sets no limit lost
|
|
230
|
+
* (default 5).
|
|
231
|
+
*/
|
|
232
|
+
lostMinutes?: number;
|
|
249
233
|
log?: (line: string) => void;
|
|
250
234
|
});
|
|
251
235
|
/**
|
|
@@ -275,7 +259,20 @@ export declare class WorkWorkerRegistry {
|
|
|
275
259
|
renew(args: {
|
|
276
260
|
nodeId: string;
|
|
277
261
|
session: string;
|
|
262
|
+
/** Its latest disk measurement (ADR 0336). */
|
|
263
|
+
disk?: MachineDisk;
|
|
278
264
|
}): Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* Store a worker's disk report under its epoch (ADR 0336). One that
|
|
267
|
+
* begins an episode under the floor is logged and told as
|
|
268
|
+
* `machine.disk-low` once, whichever replica heard it.
|
|
269
|
+
*/
|
|
270
|
+
private reportDisk;
|
|
271
|
+
/**
|
|
272
|
+
* Tell the host something happened to a machine. A failure is logged;
|
|
273
|
+
* with `rethrow` the caller hears it and tries again.
|
|
274
|
+
*/
|
|
275
|
+
private emit;
|
|
279
276
|
/**
|
|
280
277
|
* Renew the lease for this epoch, or say why the session ended: a newer
|
|
281
278
|
* process took over, or the operator disabled the worker.
|
|
@@ -286,40 +283,29 @@ export declare class WorkWorkerRegistry {
|
|
|
286
283
|
* lease, so about every five seconds while it calls.
|
|
287
284
|
*/
|
|
288
285
|
private seen;
|
|
286
|
+
/**
|
|
287
|
+
* A worker connected: a machine that was starting or resuming serves
|
|
288
|
+
* from now on (ADRs 0349, 0350), and one that was lost and came back
|
|
289
|
+
* with its disk is lost no more.
|
|
290
|
+
*/
|
|
291
|
+
private serving;
|
|
289
292
|
/** Why this epoch's session ended: superseded, or disabled and lapsed. */
|
|
290
293
|
private ended;
|
|
291
294
|
/**
|
|
292
|
-
* Operator: a one-time code a new worker exchanges for its credential
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
+
* Operator: a one-time code a new worker exchanges for its credential,
|
|
296
|
+
* for a machine enrolled by hand (ADR 0349): Work places work on it by
|
|
297
|
+
* its labels and whom it is for, and never creates, stops or destroys
|
|
298
|
+
* it. The machines hook's own machines are enrolled by the sequencer.
|
|
295
299
|
*/
|
|
296
300
|
createEnrollment(args: {
|
|
297
301
|
name: string;
|
|
298
302
|
ttlMinutes?: number;
|
|
299
303
|
placement?: z.input<typeof WorkerPlacementSchema>;
|
|
300
|
-
pool?: boolean;
|
|
301
304
|
}): Promise<{
|
|
302
305
|
code: string;
|
|
303
306
|
nodeId: string;
|
|
304
307
|
expiresAt: Date;
|
|
305
308
|
}>;
|
|
306
|
-
/**
|
|
307
|
-
* Machine reconciler: the code for a machine it is about to provision
|
|
308
|
-
* under a rule, or null when that machine already enrolled or has a code
|
|
309
|
-
* waiting. Replicas asking at once get one code, so a person never gets
|
|
310
|
-
* two machines.
|
|
311
|
-
*/
|
|
312
|
-
createMachineEnrollment(args: {
|
|
313
|
-
name: string;
|
|
314
|
-
rule: string;
|
|
315
|
-
ttlMinutes: number;
|
|
316
|
-
placement: z.input<typeof WorkerPlacementSchema>;
|
|
317
|
-
}): Promise<{
|
|
318
|
-
code: string;
|
|
319
|
-
nodeId: string;
|
|
320
|
-
expiresAt: Date;
|
|
321
|
-
} | null>;
|
|
322
|
-
private issueEnrollment;
|
|
323
309
|
/**
|
|
324
310
|
* Worker: exchange a one-time code for a machine credential, registering
|
|
325
311
|
* the public key its operations will be sealed to (ADR 0207).
|
|
@@ -386,30 +372,29 @@ export declare class WorkWorkerRegistry {
|
|
|
386
372
|
offer: WorkerOffer;
|
|
387
373
|
publicKey: string;
|
|
388
374
|
}): Promise<void>;
|
|
389
|
-
/**
|
|
390
|
-
* One enrolled worker's placement policy, as its connection is checked
|
|
391
|
-
* against: a released machine takes no new work (ADR 0205), so it serves
|
|
392
|
-
* nobody whatever access it keeps.
|
|
393
|
-
*/
|
|
375
|
+
/** One enrolled worker's placement, as its connection is checked against. */
|
|
394
376
|
placement(nodeId: string): Promise<WorkerPlacement>;
|
|
377
|
+
/** Placement of every machine, by node, for the scheduler. */
|
|
378
|
+
placements(): Promise<Map<string, ScheduledPlacement>>;
|
|
395
379
|
/**
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
* it
|
|
400
|
-
*
|
|
380
|
+
* Operator: change whom a machine enrolled by hand is for, its labels and
|
|
381
|
+
* whether those it serves trust each other. A machine the machines hook
|
|
382
|
+
* made follows its plan instead. Work on it is not moved: change whom it
|
|
383
|
+
* is for while it holds none, or leave that to the plan, which resets a
|
|
384
|
+
* machine before someone new may use it.
|
|
401
385
|
*/
|
|
402
|
-
placements(): Promise<Map<string, ScheduledPlacement>>;
|
|
403
|
-
/** Operator: change whose work a worker takes and how it is labeled. */
|
|
404
386
|
setPlacement(args: {
|
|
405
387
|
name: string;
|
|
406
388
|
placement: Partial<z.input<typeof WorkerPlacementSchema>>;
|
|
407
389
|
}): Promise<WorkerPlacement>;
|
|
408
390
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
391
|
+
* Operator: disable a machine, or enable it again (ADR 0190). Disabled,
|
|
392
|
+
* it takes no work and its work waits for it; it is never called lost.
|
|
411
393
|
*/
|
|
412
|
-
|
|
394
|
+
setDisabled(args: {
|
|
395
|
+
name: string;
|
|
396
|
+
disabled: boolean;
|
|
397
|
+
}): Promise<boolean>;
|
|
413
398
|
/**
|
|
414
399
|
* Retire workspaces of ended allocations on every connected worker,
|
|
415
400
|
* through the worker, and drop abandoned queue rows. Any replica runs it:
|
|
@@ -419,95 +404,90 @@ export declare class WorkWorkerRegistry {
|
|
|
419
404
|
*/
|
|
420
405
|
maintain(): Promise<void>;
|
|
421
406
|
private cleaning;
|
|
407
|
+
/** A machine enrolled by hand whose code expired unused is known no more. */
|
|
408
|
+
private forgetNeverEnrolled;
|
|
409
|
+
/**
|
|
410
|
+
* Retire the work of machines that are gone (ADR 0348), on any replica:
|
|
411
|
+
* a revoked worker's, when the process that revoked it stopped before
|
|
412
|
+
* retiring it, and a lost machine's, whoever enrolled it. Its chats are
|
|
413
|
+
* admitted again on a machine open to their owner, or wait for one; the
|
|
414
|
+
* plan replaces a machine it still names, and a machine enrolled by hand
|
|
415
|
+
* that comes back removes the sandboxes whose Allocations are gone. A
|
|
416
|
+
* machine an operator disabled, or one Work stopped, is never lost.
|
|
417
|
+
*/
|
|
418
|
+
private retireGone;
|
|
419
|
+
private retireRevoked;
|
|
420
|
+
/**
|
|
421
|
+
* Retire what a machine held, through core's one retirement (ADR 0348).
|
|
422
|
+
* Safe to call again, from any replica.
|
|
423
|
+
*/
|
|
424
|
+
private retire;
|
|
422
425
|
private cleanup;
|
|
423
426
|
/** Waits for a cleanup pass in progress (shutdown). */
|
|
424
427
|
settle(): Promise<void>;
|
|
425
428
|
/**
|
|
426
429
|
* Operator: end a worker's authority now. Its credential, any rotated one
|
|
427
|
-
* still pending, and its key stop working.
|
|
430
|
+
* still pending, and its key stop working. A machine enrolled by hand is
|
|
431
|
+
* known no more; one the machines hook made is destroyed by the next
|
|
432
|
+
* pass, and made again if the plan still names it.
|
|
428
433
|
*/
|
|
429
434
|
revoke(args: {
|
|
430
435
|
name: string;
|
|
431
436
|
}): Promise<boolean>;
|
|
432
437
|
/**
|
|
433
|
-
* Take a machine out of service for good, unless work landed on it (
|
|
434
|
-
* 0258): under its node's row lock, which creating an Allocation
|
|
435
|
-
* too, it is revoked and disabled
|
|
436
|
-
* capacity, so nothing is placed on a
|
|
437
|
-
* machine
|
|
438
|
-
*
|
|
439
|
-
* when it was kept, or was not enrolled.
|
|
438
|
+
* Take a machine out of service for good, unless work landed on it (ADRs
|
|
439
|
+
* 0258, 0349): under its node's row lock, which creating an Allocation
|
|
440
|
+
* takes too, it is revoked and disabled and becomes `destroying` only
|
|
441
|
+
* while no Allocation holds its capacity, so nothing is placed on a
|
|
442
|
+
* machine about to be destroyed. One whose worker an operator revoked,
|
|
443
|
+
* and one that never enrolled, hold nothing. False when it was kept.
|
|
440
444
|
*/
|
|
441
|
-
|
|
445
|
+
retireMachine(args: {
|
|
442
446
|
name: string;
|
|
443
|
-
unseenForMs: number;
|
|
444
447
|
}): Promise<boolean>;
|
|
445
448
|
/**
|
|
446
|
-
*
|
|
447
|
-
*
|
|
449
|
+
* A machine has been unseen for `unseenForMs` (ADR 0348): take it out of
|
|
450
|
+
* service for good and retire what it held, so its chats continue from
|
|
451
|
+
* their last save and its plan may replace it. Under its node's row
|
|
452
|
+
* lock, and only while it is still unseen: a machine that called again
|
|
453
|
+
* meanwhile is kept. False when it was kept.
|
|
448
454
|
*/
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
ref: string;
|
|
454
|
-
}): Promise<void>;
|
|
455
|
+
declareLost(args: {
|
|
456
|
+
name: string;
|
|
457
|
+
unseenForMs: number;
|
|
458
|
+
}): Promise<boolean>;
|
|
455
459
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
* ({@link forgetMachine}), whether or not its reference was recorded.
|
|
460
|
+
* Revoke and disable a machine under its node's row lock and make it
|
|
461
|
+
* `destroying`. Retiring what it held follows once this commits:
|
|
462
|
+
* disabled, it takes nothing new.
|
|
460
463
|
*/
|
|
461
|
-
|
|
462
|
-
/** Every pooled machine still enrolled, free or held (ADR 0205). */
|
|
463
|
-
pooledMachines(): Promise<PooledMachine[]>;
|
|
464
|
+
private takeOutOfService;
|
|
464
465
|
/**
|
|
465
|
-
*
|
|
466
|
-
*
|
|
466
|
+
* Begin stopping a machine (ADR 0350): under its node's row lock, only
|
|
467
|
+
* while no Allocation holds its capacity, it takes no new work and
|
|
468
|
+
* becomes `stopping`. It keeps its worker, its credential and its disk.
|
|
469
|
+
* False when it holds something, or is not serving.
|
|
467
470
|
*/
|
|
468
|
-
|
|
471
|
+
beginStop(args: {
|
|
469
472
|
name: string;
|
|
470
|
-
|
|
471
|
-
holder: {
|
|
472
|
-
member: string;
|
|
473
|
-
} | {
|
|
474
|
-
slot: number;
|
|
475
|
-
};
|
|
476
|
-
placement: WorkerPlacement;
|
|
477
|
-
retainDays: number;
|
|
473
|
+
at?: string;
|
|
478
474
|
}): Promise<boolean>;
|
|
479
475
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
476
|
+
* Begin resuming a stopped machine (ADR 0350): it becomes `resuming`,
|
|
477
|
+
* and its worker, which kept its credential and data directory, may
|
|
478
|
+
* connect again under a new epoch.
|
|
483
479
|
*/
|
|
484
|
-
|
|
480
|
+
beginResume(args: {
|
|
485
481
|
name: string;
|
|
486
|
-
|
|
487
|
-
}): Promise<
|
|
488
|
-
/**
|
|
489
|
-
* A released machine's person or group is back within its retention: it
|
|
490
|
-
* is theirs again, with the placement its rule gives it now.
|
|
491
|
-
*/
|
|
492
|
-
reassign(args: {
|
|
493
|
-
name: string;
|
|
494
|
-
placement: WorkerPlacement;
|
|
495
|
-
retainDays: number;
|
|
496
|
-
}): Promise<void>;
|
|
497
|
-
/** Keep the retention a machine's rule gives it, for after the rule. */
|
|
498
|
-
setRetainDays(args: {
|
|
499
|
-
name: string;
|
|
500
|
-
retainDays: number;
|
|
501
|
-
}): Promise<void>;
|
|
482
|
+
at: string;
|
|
483
|
+
}): Promise<boolean>;
|
|
502
484
|
/**
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
* its access until then, so the chats still on it reach their workspaces
|
|
506
|
-
* and give them back when they idle.
|
|
485
|
+
* Allocations still holding a machine's capacity: live workspaces, and
|
|
486
|
+
* ones given back whose sandboxes are not destroyed yet.
|
|
507
487
|
*/
|
|
508
|
-
|
|
488
|
+
holding(args: {
|
|
509
489
|
name: string;
|
|
510
|
-
}): Promise<
|
|
490
|
+
}): Promise<number>;
|
|
511
491
|
/**
|
|
512
492
|
* Workspaces still active on a worker: chats keep theirs until they idle
|
|
513
493
|
* and give it back, saved to their session branch (ADR 0173).
|
|
@@ -520,74 +500,45 @@ export declare class WorkWorkerRegistry {
|
|
|
520
500
|
name: string;
|
|
521
501
|
}): Promise<boolean>;
|
|
522
502
|
/**
|
|
523
|
-
* A member's
|
|
524
|
-
* queue: the worker runs
|
|
503
|
+
* A member's harness sign-in on a worker (ADRs 0213, 0342), through the
|
|
504
|
+
* operation queue: the worker runs the harness's own login and answers.
|
|
525
505
|
* Fails at once while the worker is not connected.
|
|
526
506
|
*/
|
|
527
|
-
|
|
507
|
+
harnessSignIn(args: {
|
|
528
508
|
nodeId: string;
|
|
529
|
-
request:
|
|
509
|
+
request: HarnessSignInRequest;
|
|
530
510
|
}): Promise<unknown>;
|
|
531
|
-
/**
|
|
532
|
-
|
|
533
|
-
* every sandbox it holds and deletes members' volumes and sign-ins.
|
|
534
|
-
* Resolves once its receipt arrived; fails while it is not connected,
|
|
535
|
-
* and once `timeoutMs` passed without a receipt.
|
|
536
|
-
*/
|
|
537
|
-
resetPooled(args: {
|
|
511
|
+
/** A drained worker can be wiped without handing its disk to two owners. */
|
|
512
|
+
resetPlacement(args: {
|
|
538
513
|
name: string;
|
|
539
514
|
timeoutMs?: number;
|
|
540
|
-
}): Promise<
|
|
541
|
-
/** A reset pooled machine is free in its pool again, serving nobody. */
|
|
542
|
-
freePooled(args: {
|
|
543
|
-
name: string;
|
|
544
|
-
}): Promise<void>;
|
|
515
|
+
}): Promise<"busy" | "offline" | "done">;
|
|
545
516
|
/**
|
|
546
|
-
*
|
|
547
|
-
*
|
|
517
|
+
* Reset a machine through the operation queue (ADRs 0205, 0349): the
|
|
518
|
+
* worker destroys every sandbox it holds and deletes members' volumes
|
|
519
|
+
* and sign-ins. Resolves once its receipt arrived; fails while it is not
|
|
520
|
+
* connected, and once `timeoutMs` passed without a receipt.
|
|
548
521
|
*/
|
|
549
|
-
|
|
522
|
+
resetMachine(args: {
|
|
550
523
|
name: string;
|
|
551
|
-
|
|
524
|
+
timeoutMs?: number;
|
|
552
525
|
}): Promise<void>;
|
|
553
526
|
/**
|
|
554
|
-
*
|
|
555
|
-
* the
|
|
556
|
-
* its destruction succeeds.
|
|
527
|
+
* Every machine Work knows, for the operator and administrators: its
|
|
528
|
+
* facts as the plan reads them, and its worker's credential standing.
|
|
557
529
|
*/
|
|
558
|
-
|
|
559
|
-
name: string;
|
|
560
|
-
}): Promise<void>;
|
|
561
|
-
/** Invalidate every unused enrollment code for a name. */
|
|
562
|
-
cancelEnrollments(args: {
|
|
563
|
-
name: string;
|
|
564
|
-
}): Promise<void>;
|
|
565
|
-
list(): Promise<Array<{
|
|
566
|
-
name: string;
|
|
567
|
-
nodeId: string;
|
|
568
|
-
enrolledAt: string;
|
|
569
|
-
lastSeenAt: string | null;
|
|
570
|
-
revoked: boolean;
|
|
571
|
-
/** Enrolled into a pool rules draw on (ADR 0205). */
|
|
572
|
-
pool: boolean;
|
|
573
|
-
state: WorkerState;
|
|
574
|
-
/** Since when it serves nobody, and for how many days it is kept. */
|
|
575
|
-
released: {
|
|
576
|
-
at: string;
|
|
577
|
-
retainDays: number | null;
|
|
578
|
-
} | null;
|
|
579
|
-
/** When its current credential was issued (ADR 0207). */
|
|
580
|
-
credentialIssuedAt: string;
|
|
581
|
-
/** The operator asked for a rotation the worker has not made yet. */
|
|
582
|
-
rotationRequested: boolean;
|
|
583
|
-
placement: WorkerPlacement;
|
|
584
|
-
machine: {
|
|
585
|
-
rule: string;
|
|
586
|
-
ref: string | null;
|
|
587
|
-
member?: string;
|
|
588
|
-
slot?: number;
|
|
589
|
-
} | null;
|
|
590
|
-
}>>;
|
|
530
|
+
list(): Promise<WorkerListing[]>;
|
|
591
531
|
}
|
|
532
|
+
/** A machine in the operator's and administrators' listing. */
|
|
533
|
+
export type WorkerListing = MachineFacts & {
|
|
534
|
+
nodeId: string;
|
|
535
|
+
connected: boolean;
|
|
536
|
+
/** When its worker enrolled; null before it did. */
|
|
537
|
+
enrolledAt: string | null;
|
|
538
|
+
/** When its current credential was issued (ADR 0207). */
|
|
539
|
+
credentialIssuedAt: string | null;
|
|
540
|
+
/** The operator asked for a rotation the worker has not made yet. */
|
|
541
|
+
rotationRequested: boolean;
|
|
542
|
+
};
|
|
592
543
|
export declare function isWorkerNode(nodeId: string): boolean;
|
|
593
544
|
//# sourceMappingURL=worker-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-registry.d.ts","sourceRoot":"","sources":["../../src/workers/worker-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker-registry.d.ts","sourceRoot":"","sources":["../../src/workers/worker-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EASL,4BAA4B,EAQ5B,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAML,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAE3B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAM9B,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqD5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAI9B,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD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M,EAAE,MAAM,GAAG,OAAO,CAEpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-routes.d.ts","sourceRoot":"","sources":["../../src/workers/worker-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker-routes.d.ts","sourceRoot":"","sources":["../../src/workers/worker-routes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAM7E,OAAO,EAQL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;AAkB9B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,kBAAkB,GAC3B,IAAI,CAqKN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-runtime.d.ts","sourceRoot":"","sources":["../../src/workers/worker-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker-runtime.d.ts","sourceRoot":"","sources":["../../src/workers/worker-runtime.ts"],"names":[],"mappings":"AAUA,OAAO,EAIL,uBAAuB,EAExB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,wBAAwB,CAAC;AAmBhC,KAAK,KAAK,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,qBAAqB,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAmBD;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB,CAAC,CA6iBD;AA2JD;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,uBAAuB;IACrE,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF"}
|