harnery 0.45.1 → 0.45.2
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/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +6 -45
- package/dist/core/agents/coord-client.d.ts.map +1 -1
- package/dist/core/agents/coord-client.js +0 -18
- package/dist/core/agents/state/pidmap.js +2 -2
- package/dist/core/agents/state/proc-start.d.ts +20 -31
- package/dist/core/agents/state/proc-start.d.ts.map +1 -1
- package/dist/core/agents/state/proc-start.js +37 -70
- package/dist/core/agents/state/service-process.d.ts +61 -0
- package/dist/core/agents/state/service-process.d.ts.map +1 -0
- package/dist/core/agents/state/service-process.js +143 -0
- package/dist/core/context/index.d.ts +6 -4
- package/dist/core/context/index.d.ts.map +1 -1
- package/dist/core/context/index.js +194 -256
- package/dist/core/context/observation.d.ts +9 -9
- package/dist/core/context/observation.d.ts.map +1 -1
- package/dist/core/context/observation.js +37 -6
- package/dist/core/events/v3/runtime-build.d.ts +14 -0
- package/dist/core/events/v3/runtime-build.d.ts.map +1 -1
- package/dist/core/events/v3/runtime-build.js +44 -0
- package/dist/core/governor/index.d.ts +2 -1
- package/dist/core/governor/index.d.ts.map +1 -1
- package/dist/core/governor/index.js +2 -1
- package/dist/core/governor/service-read.d.ts +3 -10
- package/dist/core/governor/service-read.d.ts.map +1 -1
- package/dist/core/governor/service-read.js +10 -94
- package/dist/core/governor/service.d.ts +3 -7
- package/dist/core/governor/service.d.ts.map +1 -1
- package/dist/core/governor/service.js +17 -182
- package/dist/core/hooks/resolve/owner.js +2 -2
- package/dist/core/resources/sampler.js +2 -2
- package/dist/core/resources/service-status.d.ts +2 -14
- package/dist/core/resources/service-status.d.ts.map +1 -1
- package/dist/core/resources/service-status.js +3 -23
- package/dist/core/resources/service.d.ts +3 -7
- package/dist/core/resources/service.d.ts.map +1 -1
- package/dist/core/resources/service.js +12 -101
- package/dist/core/resources/status.d.ts.map +1 -1
- package/dist/core/resources/status.js +3 -2
- package/dist/core/semantic/service.d.ts.map +1 -1
- package/dist/core/semantic/service.js +9 -2
- package/dist/core/servers/index.d.ts +0 -2
- package/dist/core/servers/index.d.ts.map +1 -1
- package/dist/core/servers/index.js +3 -18
- package/dist/core/supervisor/service.d.ts +4 -7
- package/dist/core/supervisor/service.d.ts.map +1 -1
- package/dist/core/supervisor/service.js +23 -122
- package/dist/core/supervisor/services.js +2 -2
- package/dist/core/supervisor/status.d.ts +3 -17
- package/dist/core/supervisor/status.d.ts.map +1 -1
- package/dist/core/supervisor/status.js +7 -70
- package/dist/core/workflow/engine.js +2 -1
- package/dist/core/workflow/index.d.ts +3 -4
- package/dist/core/workflow/index.d.ts.map +1 -1
- package/dist/core/workflow/index.js +2 -2
- package/dist/core/workflow/proof.d.ts.map +1 -1
- package/dist/core/workflow/proof.js +30 -74
- package/dist/core/workflow/resume-lock.d.ts +17 -0
- package/dist/core/workflow/resume-lock.d.ts.map +1 -0
- package/dist/core/workflow/resume-lock.js +158 -0
- package/dist/core/workflow/run-state.d.ts +0 -21
- package/dist/core/workflow/run-state.d.ts.map +1 -1
- package/dist/core/workflow/run-state.js +3 -174
- package/dist/core/workflow/workspaces/leases.d.ts +4 -0
- package/dist/core/workflow/workspaces/leases.d.ts.map +1 -1
- package/dist/core/workflow/workspaces/leases.js +1 -1
- package/dist/core/workflow/workspaces/local-git.js +91 -210
- package/dist/core/workflow/workspaces/ownership.d.ts +0 -7
- package/dist/core/workflow/workspaces/ownership.d.ts.map +1 -1
- package/dist/core/workflow/workspaces/ownership.js +3 -130
- package/dist/core/workflow/workspaces/reclaim.d.ts +4 -7
- package/dist/core/workflow/workspaces/reclaim.d.ts.map +1 -1
- package/dist/core/workflow/workspaces/reclaim.js +0 -4
- package/dist/core/workflow/workspaces/recovery.d.ts +1 -1
- package/dist/core/workflow/workspaces/recovery.d.ts.map +1 -1
- package/dist/core/workflow/workspaces/recovery.js +1 -1
- package/dist/core/workflow/workspaces/state.d.ts.map +1 -1
- package/dist/core/workflow/workspaces/state.js +1 -4
- package/package.json +1 -1
- package/src/commands/workflow.ts +8 -58
- package/src/core/agents/coord-client.ts +0 -20
- package/src/core/agents/state/pidmap.ts +2 -2
- package/src/core/agents/state/proc-start.ts +41 -69
- package/src/core/agents/state/service-process.ts +217 -0
- package/src/core/context/index.ts +207 -272
- package/src/core/context/observation.ts +40 -9
- package/src/core/events/v3/runtime-build.ts +62 -0
- package/src/core/governor/index.ts +1 -2
- package/src/core/governor/service-read.ts +15 -114
- package/src/core/governor/service.ts +36 -220
- package/src/core/hooks/resolve/owner.ts +2 -2
- package/src/core/resources/sampler.ts +3 -2
- package/src/core/resources/service-status.ts +6 -35
- package/src/core/resources/service.ts +23 -133
- package/src/core/resources/status.ts +3 -2
- package/src/core/semantic/service.ts +8 -2
- package/src/core/servers/index.ts +3 -23
- package/src/core/supervisor/service.ts +33 -155
- package/src/core/supervisor/services.ts +2 -2
- package/src/core/supervisor/status.ts +10 -85
- package/src/core/workflow/engine.ts +1 -1
- package/src/core/workflow/index.ts +2 -13
- package/src/core/workflow/proof.ts +35 -83
- package/src/core/workflow/resume-lock.ts +179 -0
- package/src/core/workflow/run-state.ts +3 -207
- package/src/core/workflow/workspaces/leases.ts +1 -1
- package/src/core/workflow/workspaces/local-git.ts +120 -239
- package/src/core/workflow/workspaces/ownership.ts +3 -158
- package/src/core/workflow/workspaces/reclaim.ts +3 -9
- package/src/core/workflow/workspaces/recovery.ts +1 -1
- package/src/core/workflow/workspaces/state.ts +1 -5
- package/dist/core/agents/state/process-handle.d.ts +0 -26
- package/dist/core/agents/state/process-handle.d.ts.map +0 -1
- package/dist/core/agents/state/process-handle.js +0 -121
- package/dist/core/workflow/recovery-audit.d.ts +0 -30
- package/dist/core/workflow/recovery-audit.d.ts.map +0 -1
- package/dist/core/workflow/recovery-audit.js +0 -116
- package/src/core/agents/state/process-handle.ts +0 -165
- package/src/core/workflow/recovery-audit.ts +0 -181
|
@@ -5,7 +5,7 @@ import { basename, join } from "node:path";
|
|
|
5
5
|
import { performance } from "node:perf_hooks";
|
|
6
6
|
import { readLiveCoordinationRows } from "../agents/state/live-coordination-view.js";
|
|
7
7
|
import { parsePidmapRow } from "../agents/state/pidmap.js";
|
|
8
|
-
import {
|
|
8
|
+
import { verifyProcessGeneration } from "../agents/state/proc-start.js";
|
|
9
9
|
import { RESOURCE_SNAPSHOT_SCHEMA_VERSION, } from "./contract.js";
|
|
10
10
|
import { collectWindowsHost, collectWindowsHostInBackground, sampleNativeResources, } from "./native.js";
|
|
11
11
|
import { collectSystemResources } from "./system.js";
|
|
@@ -266,7 +266,7 @@ function readOwnershipAnchors(coordRoot, procRoot, readings, services, liveSessi
|
|
|
266
266
|
continue;
|
|
267
267
|
try {
|
|
268
268
|
const row = parsePidmapRow(readFileSync(join(directory, entry), "utf8"));
|
|
269
|
-
if (!row.instanceId ||
|
|
269
|
+
if (!row.instanceId || verifyProcessGeneration(pid, row.startToken) === "different")
|
|
270
270
|
continue;
|
|
271
271
|
anchors.set(pid, { kind: "agent", id: row.instanceId, source: "pid-map" });
|
|
272
272
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ServiceProcessDependencies } from "../agents/state/service-process.js";
|
|
2
2
|
import { type ResourceServiceStatus } from "./contract.js";
|
|
3
|
-
export
|
|
4
|
-
readToken?: (pid: number) => string | null;
|
|
5
|
-
probePid?: (pid: number) => unknown;
|
|
6
|
-
}
|
|
7
|
-
export declare function readResourceServiceStatus(coordRoot: string, nowMs?: number, dependencies?: ResourceProcessDependencies): ResourceServiceStatus;
|
|
8
|
-
export declare function resourceProcessLiveness(owner: {
|
|
9
|
-
pid: number;
|
|
10
|
-
host: string;
|
|
11
|
-
start_token?: string;
|
|
12
|
-
}, dependencies?: ResourceProcessDependencies): {
|
|
13
|
-
generation: ProcessGenerationVerdict;
|
|
14
|
-
liveness: ResourceServiceStatus["liveness"];
|
|
15
|
-
};
|
|
3
|
+
export declare function readResourceServiceStatus(coordRoot: string, nowMs?: number, dependencies?: ServiceProcessDependencies): ResourceServiceStatus;
|
|
16
4
|
//# sourceMappingURL=service-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-status.d.ts","sourceRoot":"","sources":["../../../src/core/resources/service-status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service-status.d.ts","sourceRoot":"","sources":["../../../src/core/resources/service-status.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,eAAe,CAAC;AAKvB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,KAAK,SAAa,EAClB,YAAY,GAAE,0BAA+B,GAC5C,qBAAqB,CAyBvB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
|
-
import {
|
|
3
|
-
import { verifyProcessGeneration, } from "../agents/state/proc-start.js";
|
|
2
|
+
import { observeServiceProcess, } from "../agents/state/service-process.js";
|
|
4
3
|
import { RESOURCE_SERVICE_STATUS_SCHEMA_VERSION, } from "./contract.js";
|
|
5
4
|
import { readResourceServiceRecord, resourcePaths } from "./storage.js";
|
|
6
5
|
const STALE_HEARTBEAT_MS = 15_000;
|
|
@@ -19,12 +18,11 @@ export function readResourceServiceStatus(coordRoot, nowMs = Date.now(), depende
|
|
|
19
18
|
}
|
|
20
19
|
const heartbeatAt = Date.parse(record.heartbeat_at);
|
|
21
20
|
const stale = !Number.isFinite(heartbeatAt) || nowMs - heartbeatAt > STALE_HEARTBEAT_MS;
|
|
22
|
-
const
|
|
23
|
-
const liveness = owner.generation === "same" && record.state === "stopped" ? "stopped" : owner.liveness;
|
|
21
|
+
const { generation, liveness } = observeServiceProcess(record, dependencies);
|
|
24
22
|
return {
|
|
25
23
|
running: liveness === "running" && !stale,
|
|
26
24
|
stale,
|
|
27
|
-
generation
|
|
25
|
+
generation,
|
|
28
26
|
liveness,
|
|
29
27
|
record,
|
|
30
28
|
status_path: paths.service,
|
|
@@ -38,21 +36,3 @@ function validRecord(value) {
|
|
|
38
36
|
typeof value.host === "string" &&
|
|
39
37
|
typeof value.heartbeat_at === "string");
|
|
40
38
|
}
|
|
41
|
-
export function resourceProcessLiveness(owner, dependencies = {}) {
|
|
42
|
-
if (owner.host !== hostname())
|
|
43
|
-
return { generation: "unknown", liveness: "unknown" };
|
|
44
|
-
try {
|
|
45
|
-
(dependencies.probePid ?? ((pid) => process.kill(pid, 0)))(owner.pid);
|
|
46
|
-
}
|
|
47
|
-
catch (error) {
|
|
48
|
-
return {
|
|
49
|
-
generation: "unknown",
|
|
50
|
-
liveness: error.code === "ESRCH" ? "stopped" : "unknown",
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const generation = verifyProcessGeneration(owner.pid, owner.start_token, dependencies.readToken);
|
|
54
|
-
return {
|
|
55
|
-
generation,
|
|
56
|
-
liveness: generation === "same" ? "running" : generation === "different" ? "stopped" : "unknown",
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ServiceProcessDependencies, type ServiceStopFields } from "../agents/state/service-process.js";
|
|
2
2
|
import { type ResourceServiceStatus, type ResourceServiceStatusRecord } from "./contract.js";
|
|
3
3
|
import { sampleResources } from "./sampler.js";
|
|
4
|
-
import { type ResourceProcessDependencies } from "./service-status.js";
|
|
5
4
|
export declare const RESOURCE_SERVICE_DEFAULT_INTERVAL_MS = 2000;
|
|
6
5
|
export interface RunResourceServiceInput {
|
|
7
6
|
coordRoot: string;
|
|
@@ -11,10 +10,7 @@ export interface RunResourceServiceInput {
|
|
|
11
10
|
sample?: typeof sampleResources;
|
|
12
11
|
wait?: (milliseconds: number) => Promise<void>;
|
|
13
12
|
}
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
signal_verdict: ProcessGenerationVerdict;
|
|
17
|
-
}
|
|
18
|
-
export declare function requestResourceServiceStop(coordRootRaw: string, dependencies?: ResourceProcessDependencies & ProcessGenerationSignalDependencies): ResourceServiceStopResult;
|
|
13
|
+
export type ResourceServiceStopResult = ResourceServiceStatus & ServiceStopFields;
|
|
14
|
+
export declare function requestResourceServiceStop(coordRootRaw: string, dependencies?: ServiceProcessDependencies): ResourceServiceStopResult;
|
|
19
15
|
export declare function runResourceService(input: RunResourceServiceInput): Promise<ResourceServiceStatusRecord>;
|
|
20
16
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/core/resources/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/core/resources/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EAEvB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,eAAO,MAAM,oCAAoC,OAAQ,CAAC;AAI1D,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,eAAe,CAAC;IAChC,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAElF,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,YAAY,GAAE,0BAA+B,GAC5C,yBAAyB,CAI3B;AAED,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,uBAAuB,GAC7B,OAAO,CAAC,2BAA2B,CAAC,CA0FtC"}
|
|
@@ -1,49 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, rmSync, unlinkSync, writeFileSync, } from "node:fs";
|
|
1
|
+
import { existsSync, rmSync } from "node:fs";
|
|
3
2
|
import { hostname } from "node:os";
|
|
4
3
|
import { resolve } from "node:path";
|
|
5
|
-
import { processStartToken
|
|
4
|
+
import { processStartToken } from "../agents/state/proc-start.js";
|
|
5
|
+
import { acquireServiceLease, requestServiceStop, serviceStartRefusal, } from "../agents/state/service-process.js";
|
|
6
6
|
import { resolveBinName } from "../config.js";
|
|
7
7
|
import { closeProcessLoggers, legacyLogFields, processLogger } from "../storage/logger.js";
|
|
8
|
-
import { stateDirMode, stateFileMode } from "../storage/modes.js";
|
|
9
8
|
import { RESOURCE_SERVICE_STATUS_SCHEMA_VERSION, } from "./contract.js";
|
|
10
9
|
import { sampleResources } from "./sampler.js";
|
|
11
|
-
import { readResourceServiceStatus
|
|
10
|
+
import { readResourceServiceStatus } from "./service-status.js";
|
|
12
11
|
import { resourcePaths, writePrivateJsonAtomic } from "./storage.js";
|
|
13
12
|
export const RESOURCE_SERVICE_DEFAULT_INTERVAL_MS = 2_000;
|
|
14
13
|
const RESOURCE_SERVICE_MIN_INTERVAL_MS = 500;
|
|
15
14
|
const RESOURCE_SERVICE_MAX_INTERVAL_MS = 60_000;
|
|
16
15
|
export function requestResourceServiceStop(coordRootRaw, dependencies = {}) {
|
|
17
16
|
const coordRoot = resolve(coordRootRaw);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
mkdirSync(paths.root, { recursive: true, mode: stateDirMode() });
|
|
21
|
-
writePrivateJsonAtomic(paths.stop, {
|
|
22
|
-
requested_at: new Date().toISOString(),
|
|
23
|
-
requested_by_pid: process.pid,
|
|
24
|
-
});
|
|
25
|
-
const signal = status.liveness === "running" && status.record?.host === hostname()
|
|
26
|
-
? signalIfSameGeneration(status.record.pid, status.record.start_token, "SIGTERM", dependencies)
|
|
27
|
-
: { sent: false, verdict: status.generation };
|
|
28
|
-
return {
|
|
29
|
-
...readResourceServiceStatus(coordRoot, Date.now(), dependencies),
|
|
30
|
-
signal_sent: signal.sent,
|
|
31
|
-
signal_verdict: signal.verdict,
|
|
32
|
-
};
|
|
17
|
+
const read = () => readResourceServiceStatus(coordRoot, Date.now(), dependencies);
|
|
18
|
+
return requestServiceStop(read(), read, resourcePaths(coordRoot).stop, dependencies);
|
|
33
19
|
}
|
|
34
20
|
export async function runResourceService(input) {
|
|
35
21
|
const coordRoot = resolve(input.coordRoot);
|
|
36
22
|
const current = readResourceServiceStatus(coordRoot);
|
|
37
|
-
if (current.liveness
|
|
38
|
-
throw
|
|
39
|
-
if (current.liveness === "running")
|
|
40
|
-
throw new Error(`resource observer is already running under pid ${current.record?.pid}`);
|
|
23
|
+
if (current.liveness !== "stopped")
|
|
24
|
+
throw startRefusal(current.record?.pid, current.liveness);
|
|
41
25
|
const paths = resourcePaths(coordRoot);
|
|
42
26
|
const intervalMs = normalizeInterval(input.intervalMs);
|
|
43
27
|
const now = input.now ?? (() => new Date());
|
|
44
28
|
const sample = input.sample ?? sampleResources;
|
|
45
29
|
const wait = input.wait ?? delay;
|
|
46
|
-
const lease =
|
|
30
|
+
const lease = acquireServiceLease(paths.lease, startRefusal);
|
|
47
31
|
rmSync(paths.stop, { force: true });
|
|
48
32
|
const startedAt = now().toISOString();
|
|
49
33
|
const daemonStartToken = processStartToken(process.pid);
|
|
@@ -121,86 +105,13 @@ export async function runResourceService(input) {
|
|
|
121
105
|
await closeProcessLoggers();
|
|
122
106
|
}
|
|
123
107
|
finally {
|
|
124
|
-
|
|
108
|
+
lease.release();
|
|
125
109
|
}
|
|
126
110
|
}
|
|
127
111
|
return status;
|
|
128
112
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
mkdirSync(paths.root, { recursive: true, mode: stateDirMode() });
|
|
132
|
-
for (let attempt = 0; attempt < 2; attempt++) {
|
|
133
|
-
const daemonStartToken = processStartToken(process.pid);
|
|
134
|
-
const lease = {
|
|
135
|
-
pid: process.pid,
|
|
136
|
-
...(daemonStartToken ? { start_token: daemonStartToken } : {}),
|
|
137
|
-
host: hostname(),
|
|
138
|
-
nonce: randomUUID(),
|
|
139
|
-
created_at: now.toISOString(),
|
|
140
|
-
};
|
|
141
|
-
try {
|
|
142
|
-
const fd = openSync(paths.lease, "wx", stateFileMode());
|
|
143
|
-
try {
|
|
144
|
-
writeFileSync(fd, `${JSON.stringify(lease)}\n`, "utf8");
|
|
145
|
-
}
|
|
146
|
-
finally {
|
|
147
|
-
closeSync(fd);
|
|
148
|
-
}
|
|
149
|
-
return lease;
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
if (error.code !== "EEXIST")
|
|
153
|
-
throw error;
|
|
154
|
-
const existing = readLease(paths.lease);
|
|
155
|
-
const liveness = existing ? leaseIsLive(existing) : "unknown";
|
|
156
|
-
if (liveness === "unknown")
|
|
157
|
-
throw unknownResourceOwnerError();
|
|
158
|
-
if (existing && liveness === "running") {
|
|
159
|
-
throw new Error(`resource observer lease is held by pid ${existing.pid}`);
|
|
160
|
-
}
|
|
161
|
-
try {
|
|
162
|
-
unlinkSync(paths.lease);
|
|
163
|
-
}
|
|
164
|
-
catch {
|
|
165
|
-
// A concurrent starter may have replaced or removed the stale lease.
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
throw new Error("resource observer could not acquire its singleton lease");
|
|
170
|
-
}
|
|
171
|
-
function releaseLease(path, nonce) {
|
|
172
|
-
const current = readLease(path);
|
|
173
|
-
if (current?.nonce !== nonce)
|
|
174
|
-
return;
|
|
175
|
-
try {
|
|
176
|
-
unlinkSync(path);
|
|
177
|
-
}
|
|
178
|
-
catch {
|
|
179
|
-
// A missing lease is already released.
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function readLease(path) {
|
|
183
|
-
try {
|
|
184
|
-
const value = JSON.parse(readFileSync(path, "utf8"));
|
|
185
|
-
return value &&
|
|
186
|
-
Number.isSafeInteger(value.pid) &&
|
|
187
|
-
value.pid > 0 &&
|
|
188
|
-
typeof value.host === "string" &&
|
|
189
|
-
value.host.length > 0 &&
|
|
190
|
-
typeof value.nonce === "string" &&
|
|
191
|
-
value.nonce.length > 0
|
|
192
|
-
? value
|
|
193
|
-
: undefined;
|
|
194
|
-
}
|
|
195
|
-
catch {
|
|
196
|
-
return undefined;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
function leaseIsLive(lease) {
|
|
200
|
-
return resourceProcessLiveness(lease).liveness;
|
|
201
|
-
}
|
|
202
|
-
function unknownResourceOwnerError() {
|
|
203
|
-
return new Error(`resource observer process identity is unknown; run ${resolveBinName()} supervisor stop to write the durable stop request before starting again`);
|
|
113
|
+
function startRefusal(pid, liveness) {
|
|
114
|
+
return serviceStartRefusal("resource observer", `${resolveBinName()} supervisor stop`, pid, liveness);
|
|
204
115
|
}
|
|
205
116
|
function log(coordRoot, event, fields, error) {
|
|
206
117
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/core/resources/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/core/resources/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAEL,KAAK,kBAAkB,EAC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,IAAI,CAAC;IAC9B,EAAE,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,KAAK,CACf,IAAI,CACF,qBAAqB,EACrB,KAAK,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CACzE,CACF,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC3D,cAAc,CA8HhB;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAsBpE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CA6EhF;AAaD,eAAO,MAAM,yBAAyB,QAAa,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,kBAAkB,CAAC;IAC/B,gBAAgB,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACjD,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,KAAK,SAAa,EAClB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,GAChC,iBAAiB,CAkFnB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { closeSync, fstatSync, openSync, readSync, statSync } from "node:fs";
|
|
2
2
|
import { unknownPressureAssessment } from "../diagnostics/advice.js";
|
|
3
3
|
import { PRESSURE_ASSESSMENT_SCHEMA_VERSION, PRESSURE_POLICY, } from "../diagnostics/contract.js";
|
|
4
|
+
import { installedHarneryBuild } from "../events/v3/runtime-build.js";
|
|
4
5
|
import { SUPERVISOR_PRESSURE_SCHEMA_VERSION, } from "../supervisor/contract.js";
|
|
5
|
-
import {
|
|
6
|
+
import { readSupervisorStatus } from "../supervisor/status.js";
|
|
6
7
|
import { supervisorPaths } from "../supervisor/storage.js";
|
|
7
8
|
import { RESOURCE_SNAPSHOT_SCHEMA_VERSION, } from "./contract.js";
|
|
8
9
|
import { resourcePaths } from "./storage.js";
|
|
@@ -313,7 +314,7 @@ function unknownWriterState() {
|
|
|
313
314
|
generation: "unknown",
|
|
314
315
|
liveness: "unknown",
|
|
315
316
|
running_build: null,
|
|
316
|
-
installed_build:
|
|
317
|
+
installed_build: installedHarneryBuild(),
|
|
317
318
|
restart_needed: true,
|
|
318
319
|
build_status: "running build unknown; restart needed",
|
|
319
320
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/core/semantic/service.ts"],"names":[],"mappings":"AAoBA,OAAO,EAGL,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EACjC,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EACL,yBAAyB,EACzB,sCAAsC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,oCAAoC,OAAQ,CAAC;AAC1D,eAAO,MAAM,gCAAgC,OAAQ,CAAC;AACtD,eAAO,MAAM,qCAAqC,OAAQ,CAAC;AAK3D,eAAO,MAAM,yCAAyC,QAAS,CAAC;AA2BhE,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB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CAAC,CA8MtC;AAED,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,IAAI,CAuC5E;AAmID,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,QAAQ,GAAG,QAAQ,CAerB"}
|
|
@@ -132,13 +132,20 @@ export async function ensureSemanticServiceRunning(coordRootRaw, overrides = {})
|
|
|
132
132
|
}
|
|
133
133
|
export function requestSemanticServiceStop(coordRootRaw) {
|
|
134
134
|
const coordRoot = resolve(coordRootRaw);
|
|
135
|
+
const status = readSemanticServiceStatus(coordRoot);
|
|
135
136
|
mkdirSync(semanticPaths(coordRoot).root, { recursive: true, mode: stateDirMode() });
|
|
136
137
|
writePrivateJsonAtomic(semanticPaths(coordRoot).stop, {
|
|
137
138
|
requested_at: new Date().toISOString(),
|
|
138
139
|
requested_by_pid: process.pid,
|
|
139
140
|
});
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
if (status.running && status.record?.host === hostname()) {
|
|
142
|
+
try {
|
|
143
|
+
process.kill(status.record.pid, "SIGTERM");
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
// The durable stop request remains for a racing or restarted daemon.
|
|
147
|
+
}
|
|
148
|
+
}
|
|
142
149
|
return readSemanticServiceStatus(coordRoot);
|
|
143
150
|
}
|
|
144
151
|
export async function runSemanticServiceDaemon(input) {
|
|
@@ -185,8 +185,6 @@ export interface StopResult {
|
|
|
185
185
|
}
|
|
186
186
|
export interface ServerProcessDependencies extends ProcessGenerationSignalDependencies {
|
|
187
187
|
probePid?: (pid: number) => boolean;
|
|
188
|
-
/** Numeric signal, used for the process group and in tests. */
|
|
189
|
-
kill?: (pid: number, signal: NodeJS.Signals) => void;
|
|
190
188
|
}
|
|
191
189
|
/**
|
|
192
190
|
* Stop a verified server with SIGTERM, then SIGKILL after the grace period.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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AG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;KAC5C,CAAC;CACH;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,CAsC7E;AAED,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI1D"}
|
|
@@ -428,21 +428,6 @@ export function planServerGc(views, policy) {
|
|
|
428
428
|
};
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
|
-
/** Recheck the generation, then signal. A supplied `kill` replaces the handle path. */
|
|
432
|
-
function signalVerified(pid, token, name, dependencies) {
|
|
433
|
-
if (!dependencies.kill)
|
|
434
|
-
return signalIfSameGeneration(pid, token, name, dependencies);
|
|
435
|
-
const verdict = verifyProcessGeneration(pid, token, dependencies.readToken);
|
|
436
|
-
if (verdict !== "same")
|
|
437
|
-
return { sent: false, verdict };
|
|
438
|
-
try {
|
|
439
|
-
dependencies.kill(pid, name);
|
|
440
|
-
return { sent: true, verdict };
|
|
441
|
-
}
|
|
442
|
-
catch {
|
|
443
|
-
return { sent: false, verdict };
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
431
|
/**
|
|
447
432
|
* Stop a verified server with SIGTERM, then SIGKILL after the grace period.
|
|
448
433
|
* Each signal, including the process group and auxiliary processes, requires
|
|
@@ -498,7 +483,7 @@ export async function stopServer(record, options) {
|
|
|
498
483
|
return refuse(target.pid, "unknown");
|
|
499
484
|
const result = target.pid === record.pid
|
|
500
485
|
? signalServerLeader(target.pid, target.token, name, dependencies)
|
|
501
|
-
:
|
|
486
|
+
: signalIfSameGeneration(target.pid, target.token, name, dependencies);
|
|
502
487
|
if (result.verdict !== "same")
|
|
503
488
|
return refuse(target.pid, result.verdict);
|
|
504
489
|
}
|
|
@@ -520,13 +505,13 @@ function signalServerLeader(pid, token, name, dependencies) {
|
|
|
520
505
|
// The leader's generation authorizes its group. A failed group signal must
|
|
521
506
|
// not reuse that observation for the direct-PID fallback.
|
|
522
507
|
const kill = dependencies.kill ?? process.kill;
|
|
523
|
-
const group =
|
|
508
|
+
const group = signalIfSameGeneration(pid, token, name, {
|
|
524
509
|
readToken: dependencies.readToken,
|
|
525
510
|
kill: (leader, signal) => kill(-leader, signal),
|
|
526
511
|
});
|
|
527
512
|
return group.sent || group.verdict !== "same"
|
|
528
513
|
? group
|
|
529
|
-
:
|
|
514
|
+
: signalIfSameGeneration(pid, token, name, dependencies);
|
|
530
515
|
}
|
|
531
516
|
async function waitForExit(targets, waitMs, dependencies) {
|
|
532
517
|
const deadline = Date.now() + waitMs;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ServiceProcessDependencies, type ServiceStopFields } from "../agents/state/service-process.js";
|
|
2
2
|
import { type SupervisorServiceStatusRecord, type SupervisorStatus } from "./contract.js";
|
|
3
|
-
import { type SupervisorProcessDependencies } from "./status.js";
|
|
4
3
|
export declare const SUPERVISOR_DEFAULT_INTERVAL_MS = 2000;
|
|
5
4
|
export declare const SUPERVISOR_DEFAULT_IDLE_EXIT_MS: number;
|
|
6
5
|
export interface RunSupervisorInput {
|
|
@@ -26,10 +25,8 @@ export declare function spawnSupervisor(coordRootRaw: string, options?: {
|
|
|
26
25
|
keepAlive?: boolean;
|
|
27
26
|
}): Promise<SupervisorStatus>;
|
|
28
27
|
export declare function ensureSupervisorRunning(coordRoot: string): Promise<EnsureSupervisorResult>;
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
export declare function requestSupervisorStop(coordRootRaw: string, dependencies?: SupervisorProcessDependencies & ProcessGenerationSignalDependencies): SupervisorStopResult;
|
|
28
|
+
export type SupervisorStopResult = SupervisorStatus & ServiceStopFields;
|
|
29
|
+
/** Windows has no graceful SIGTERM, so the durable request alone stops it there. */
|
|
30
|
+
export declare function requestSupervisorStop(coordRootRaw: string, dependencies?: ServiceProcessDependencies): SupervisorStopResult;
|
|
34
31
|
export declare function runSupervisor(input: RunSupervisorInput): Promise<SupervisorServiceStatusRecord>;
|
|
35
32
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/core/supervisor/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/core/supervisor/service.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EAGvB,MAAM,oCAAoC,CAAC;AAgB5C,OAAO,EAML,KAAK,6BAA6B,EAElC,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AAsBvB,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AACpD,eAAO,MAAM,+BAA+B,QAAa,CAAC;AAO1D,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED,MAAM,MAAM,sBAAsB,GAC9B;IAAE,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAC1D;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,wBAAsB,eAAe,CACnC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAA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