@nodii/dev 0.6.61 → 0.6.63
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/README.md +56 -0
- package/dist/cli.js +92 -2
- package/dist/core.js +2 -2
- package/dist/design.js +30 -0
- package/dist/devops-openapi.json +1 -1
- package/dist/doctor.js +21 -0
- package/dist/flags.js +3 -1
- package/dist/host.js +27 -0
- package/dist/lanes.js +118 -17
- package/dist/starting.js +8 -1
- package/package.json +1 -1
package/dist/doctor.js
CHANGED
|
@@ -7,6 +7,7 @@ import { inferGitContext, repoName } from "./lanes.js";
|
|
|
7
7
|
import { figmaFileKey, figmaLockCheck, holdsSet, notRegisteredHint, scopeText } from "./figma.js";
|
|
8
8
|
import { EMBED_MODEL, EMBED_MODEL_DIGEST, EMBED_PIN, PICKER_CONTEXT, PICKER_MODEL, PICKER_MODEL_DIGEST, STALE_PIN_HINT, inspectOllama } from "./gather.js";
|
|
9
9
|
import { hookDiagnostics } from "./hook-doctor.js";
|
|
10
|
+
import { hostBootedAt } from "./host.js";
|
|
10
11
|
import { listAccounts } from "./accounts.js";
|
|
11
12
|
import { LANE_ENV_FIX, agentProcesses, laneConfigName, laneEnvProblem, laneEnvReport } from "./lane-env.js";
|
|
12
13
|
|
|
@@ -367,6 +368,26 @@ export async function doctorCommand(deps = {}) {
|
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
|
|
371
|
+
// After a reboot (AGENT-HARNESS-67): the coordinator clears this check. A
|
|
372
|
+
// lane reads ok here, because its own work is not what is stuck.
|
|
373
|
+
if (!agent?.machineId) checks.push(cannot("host_restart", "needs a machine"));
|
|
374
|
+
else if (agent.role !== "coordinator") checks.push(ok("host_restart", "the machine's coordinator clears a restart"));
|
|
375
|
+
else {
|
|
376
|
+
try {
|
|
377
|
+
const bootedAt = (deps.bootedAt ?? hostBootedAt)();
|
|
378
|
+
const machine = (await request("GET", `/api/v1/machines/${encode(agent.machineId)}`)).data;
|
|
379
|
+
const page = await request("GET", `/api/v1/lanes${query({ machine: agent.machineId, "host-lost": "true", limit: 200 })}`);
|
|
380
|
+
const lost = (page.data ?? []).map((x) => x.key);
|
|
381
|
+
// The boot time is read to the second from uptime, so allow it to drift.
|
|
382
|
+
const recorded = machine.bootedAt && Date.parse(bootedAt) - Date.parse(machine.bootedAt) < 60_000;
|
|
383
|
+
if (!recorded) checks.push(missing("host_restart", `this machine booted at ${bootedAt}, but Dev last recorded ${machine.bootedAt ?? "no boot"}: its liveness records may be stale`, `nodii-dev coordinator start --machine ${machine.name}`, { bootedAt }));
|
|
384
|
+
else if (lost.length) checks.push(missing("host_restart", `host_lost lanes: ${lost.join(", ")}`, "nodii-dev lane resume --host-lost", { bootedAt, lanes: lost }));
|
|
385
|
+
else checks.push(ok("host_restart", `boot of ${bootedAt} is recorded; no host_lost lanes`, { bootedAt }));
|
|
386
|
+
} catch (error) {
|
|
387
|
+
checks.push(cannot("host_restart", error?.code ? devReason(error) : (error?.message ?? String(error))));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
370
391
|
const ready = checks.every((x) => x.status === "ok");
|
|
371
392
|
const width = Math.max(...checks.map((x) => x.key.length));
|
|
372
393
|
const human = (p) => [
|
package/dist/flags.js
CHANGED
|
@@ -13,6 +13,7 @@ const SUBMIT_MODE = ["sync", "async"];
|
|
|
13
13
|
const WAIT = ["wait", "wait-minutes"];
|
|
14
14
|
|
|
15
15
|
export const COMMAND_FLAGS = {
|
|
16
|
+
"figma transfer": ["to", "reason"],
|
|
16
17
|
"coordinator start": ["machine", "account", "heartbeat-seconds"],
|
|
17
18
|
"coordinator heartbeat": ["machine", "run", "pid", "pid-started-at", "interval"],
|
|
18
19
|
"issues create": ["service", ...ISSUE_FIELDS],
|
|
@@ -32,7 +33,8 @@ export const COMMAND_FLAGS = {
|
|
|
32
33
|
"lane evidence": ["pr", "commit", "figma", "deploy", "dev-check"],
|
|
33
34
|
"lane done-check": ["evidence"],
|
|
34
35
|
"lane heartbeat": ["note"],
|
|
35
|
-
"lane resume": ["override", "reason"],
|
|
36
|
+
"lane resume": ["override", "reason", "host-lost", "min-free-gb", "stagger-seconds"],
|
|
37
|
+
"lane transfer": ["reason", "to-agent"],
|
|
36
38
|
"lane stop": ["reason"],
|
|
37
39
|
"lane land": [],
|
|
38
40
|
"lane review": ["file", "not-required", "decision", "question", "quote", "at"],
|
package/dist/host.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// What this machine says about itself: its boot time and its free memory
|
|
2
|
+
// (AGENT-HARNESS-67).
|
|
3
|
+
import { execFile as execFileCallback } from "node:child_process";
|
|
4
|
+
import { freemem, platform, uptime } from "node:os";
|
|
5
|
+
import { promisify } from "node:util";
|
|
6
|
+
|
|
7
|
+
const execFile = promisify(execFileCallback);
|
|
8
|
+
|
|
9
|
+
/** The machine's boot time, to the second, as an ISO timestamp. */
|
|
10
|
+
export const hostBootedAt = ({ now = Date.now, up = uptime } = {}) =>
|
|
11
|
+
new Date(Math.floor((now() - up() * 1000) / 1000) * 1000).toISOString();
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Memory a new process can have, in bytes. macOS counts reclaimable pages as
|
|
15
|
+
* used, so `os.freemem` understates it; vm_stat's free, inactive and
|
|
16
|
+
* speculative pages are what the kernel can hand out. Purgeable pages are
|
|
17
|
+
* already inside those counts.
|
|
18
|
+
*/
|
|
19
|
+
export async function availableMemoryBytes({ os = platform(), free = freemem, execute = execFile } = {}) {
|
|
20
|
+
if (os !== "darwin") return free();
|
|
21
|
+
const { stdout } = await execute("vm_stat", [], { encoding: "utf8" });
|
|
22
|
+
const pageSize = Number(/page size of (\d+) bytes/.exec(stdout)?.[1]);
|
|
23
|
+
const pages = ["free", "inactive", "speculative"]
|
|
24
|
+
.map((name) => Number(new RegExp(`Pages ${name}:\\s+(\\d+)`).exec(stdout)?.[1] ?? 0));
|
|
25
|
+
if (!pageSize) return free();
|
|
26
|
+
return pages.reduce((sum, count) => sum + count, 0) * pageSize;
|
|
27
|
+
}
|
package/dist/lanes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFile } from "node:child_process";
|
|
2
|
-
import { readFile, realpath } from "node:fs/promises";
|
|
2
|
+
import { readFile, realpath, writeFile } from "node:fs/promises";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import { CliError, encode, devRequest, query, readConfig, requireFlag } from "./core.js";
|
|
5
5
|
import { launchRecovery } from "./runtime-launcher.js";
|
|
@@ -7,6 +7,7 @@ import { recordReviewReceipt, reviewCommitContext } from "./safety.js";
|
|
|
7
7
|
import { GATHER_TIMEOUT_MS, PICKER_FIRST_PICK_TIMEOUT_MS, PICKER_MODEL, agentFallbackReason, gatherDeadline, gatherText, pickDocuments, pickTimingLine, pickTimingStats, readPickTimings, recordPickTiming, warmPicker, withPickLock } from "./gather.js";
|
|
8
8
|
import { storeGatherFreeze } from "./freeze.js";
|
|
9
9
|
import { doneCheckRecorded } from "./lane-supervisor.js";
|
|
10
|
+
import { availableMemoryBytes } from "./host.js";
|
|
10
11
|
import { SWAP_BOUNDARIES, componentsForScope, guidelineLookup, laneFigmaScope, loadDsCatalog } from "./figma-scope.js";
|
|
11
12
|
import { designCheck } from "./design.js";
|
|
12
13
|
import { LANE_ENV_FIX, laneEnvProblem, laneEnvReport } from "./lane-env.js";
|
|
@@ -292,8 +293,82 @@ async function localPick(lane, warming, pick, { budgetMs, timings }) {
|
|
|
292
293
|
return { ...picked, timing, stats };
|
|
293
294
|
}
|
|
294
295
|
|
|
296
|
+
/** Point the lane's config at the agent Dev moved the lane to. */
|
|
297
|
+
async function rebindLaneConfig(path, agentId) {
|
|
298
|
+
const config = JSON.parse(await readFile(path, "utf8"));
|
|
299
|
+
await writeFile(path, `${JSON.stringify({ ...config, agentId }, null, 2)}\n`, { mode: 0o600 });
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
const GIB = 1024 ** 3;
|
|
303
|
+
const HOST_LOST_MIN_FREE_GB = 4;
|
|
304
|
+
const HOST_LOST_STAGGER_SECONDS = 15;
|
|
305
|
+
|
|
306
|
+
const positiveNumber = (value, flag, fallback) => {
|
|
307
|
+
if (value === undefined) return fallback;
|
|
308
|
+
const number = Number(value);
|
|
309
|
+
if (!Number.isFinite(number) || number < 0) throw new CliError("USAGE", `${flag} needs a number, 0 or more.`, 2);
|
|
310
|
+
return number;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Bring back every host_lost lane on this machine, highest priority first
|
|
315
|
+
* (AGENT-HARNESS-67). Each start waits out the stagger so the last lane's
|
|
316
|
+
* memory shows, and the run stops at the memory floor: the lanes it holds stay
|
|
317
|
+
* host_lost, so running it again carries on.
|
|
318
|
+
*/
|
|
319
|
+
async function resumeHostLost(flags, deps, { request, config }) {
|
|
320
|
+
if (flags.override || flags.reason !== undefined)
|
|
321
|
+
throw new CliError("USAGE", "lane resume --host-lost needs no --override: a restart is not a death.", 2);
|
|
322
|
+
const floor = positiveNumber(flags["min-free-gb"], "--min-free-gb", HOST_LOST_MIN_FREE_GB) * GIB;
|
|
323
|
+
const stagger = positiveNumber(flags["stagger-seconds"], "--stagger-seconds", HOST_LOST_STAGGER_SECONDS) * 1000;
|
|
324
|
+
const { memory = availableMemoryBytes, sleep = (ms) => new Promise((done) => setTimeout(done, ms)) } = deps;
|
|
325
|
+
const agent = (await request("GET", `/api/v1/agents/${encode((await config()).agentId)}`)).data;
|
|
326
|
+
if (!agent.machineId) throw new CliError("MACHINE_REQUIRED", "The current agent is not assigned to a machine.", 1);
|
|
327
|
+
const lanes = [];
|
|
328
|
+
let cursor;
|
|
329
|
+
do {
|
|
330
|
+
const page = await request("GET", `/api/v1/lanes${query({ machine: agent.machineId, "host-lost": "true", cursor, limit: 200 })}`);
|
|
331
|
+
lanes.push(...(page.data ?? []));
|
|
332
|
+
cursor = page.nextCursor ?? undefined;
|
|
333
|
+
} while (cursor);
|
|
334
|
+
const resumed = [];
|
|
335
|
+
const failed = [];
|
|
336
|
+
const held = [];
|
|
337
|
+
let memoryError = null;
|
|
338
|
+
for (const [index, lane] of lanes.entries()) {
|
|
339
|
+
if (index) await sleep(stagger);
|
|
340
|
+
let free;
|
|
341
|
+
try { free = await memory(); }
|
|
342
|
+
catch (error) { memoryError = error?.message ?? String(error); }
|
|
343
|
+
if (memoryError || free < floor) {
|
|
344
|
+
held.push(...lanes.slice(index).map(({ key }) => key));
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
try {
|
|
348
|
+
const result = await laneCommand("resume", [lane.key], {}, deps);
|
|
349
|
+
resumed.push({ key: lane.key, runId: result.payload.data.run.id });
|
|
350
|
+
} catch (error) {
|
|
351
|
+
failed.push({ key: lane.key, code: error?.code ?? "RESUME_FAILED", message: error?.message ?? String(error) });
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
return {
|
|
355
|
+
payload: { data: { resumed, failed, held, minFreeGb: floor / GIB, ...(memoryError ? { memoryError } : {}) } },
|
|
356
|
+
exitCode: failed.length || held.length ? 1 : 0,
|
|
357
|
+
human: () => [
|
|
358
|
+
lanes.length ? `host_lost lanes: ${lanes.length}` : "No host_lost lanes on this machine.",
|
|
359
|
+
...resumed.map(({ key, runId }) => `resumed ${key} as run ${runId}`),
|
|
360
|
+
...failed.map(({ key, code, message }) => `refused ${key}: ${code} ${message}`),
|
|
361
|
+
...(held.length ? [`${memoryError ? `held, free memory unreadable (${memoryError})` : `held at the ${floor / GIB} GiB memory floor`}: ${held.join(", ")}; run lane resume --host-lost again${memoryError ? "" : " once memory frees"}`] : []),
|
|
362
|
+
].join("\n"),
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
|
|
295
366
|
export async function laneCommand(action, args, flags, deps = {}) {
|
|
296
|
-
const { request = devRequest, config = readConfig, gitContext = inferGitContext, commitsOf = branchCommits, read = (path) => readFile(path, "utf8"), reviewContext = reviewCommitContext, reviewReceipt = recordReviewReceipt, picker = pickDocuments, warm = warmPicker, firstPickTimeoutMs = PICKER_FIRST_PICK_TIMEOUT_MS, timings = { record: recordPickTiming, read: readPickTimings }, changedPaths = laneChangedPaths, gatherTimeoutMs = GATHER_TIMEOUT_MS, deadline: outerDeadline, storeFreeze = storeGatherFreeze, launch = launchRecovery, catalog = loadDsCatalog, pickLock = withPickLock, check: checkDeps = {} } = deps;
|
|
367
|
+
const { request = devRequest, config = readConfig, gitContext = inferGitContext, commitsOf = branchCommits, read = (path) => readFile(path, "utf8"), reviewContext = reviewCommitContext, reviewReceipt = recordReviewReceipt, picker = pickDocuments, warm = warmPicker, firstPickTimeoutMs = PICKER_FIRST_PICK_TIMEOUT_MS, timings = { record: recordPickTiming, read: readPickTimings }, changedPaths = laneChangedPaths, gatherTimeoutMs = GATHER_TIMEOUT_MS, deadline: outerDeadline, storeFreeze = storeGatherFreeze, launch = launchRecovery, rebind = rebindLaneConfig, catalog = loadDsCatalog, pickLock = withPickLock, check: checkDeps = {} } = deps;
|
|
368
|
+
if (action === "resume" && flags["host-lost"]) {
|
|
369
|
+
if (args[0]) throw new CliError("USAGE", "lane resume --host-lost takes no <key>: it resumes every host_lost lane on this machine.", 2);
|
|
370
|
+
return resumeHostLost(flags, deps, { request, config });
|
|
371
|
+
}
|
|
297
372
|
if (action === "list") {
|
|
298
373
|
const c = flags.mine ? await config() : null;
|
|
299
374
|
const payload = await request("GET", `/api/v1/lanes${query({ kind: flags.kind, status: flags.status, machine: flags.machine, agent: flags.mine ? c.agentId : flags.agent, "waiting-on": flags["waiting-on"], stuck: flags.stuck, cursor: flags.cursor, limit: flags.limit })}`);
|
|
@@ -725,6 +800,46 @@ export async function laneCommand(action, args, flags, deps = {}) {
|
|
|
725
800
|
);
|
|
726
801
|
return { payload, human: `${ref}: subagent quota set to ${quota}.` };
|
|
727
802
|
}
|
|
803
|
+
const launchReserved = async (payload, before = async () => {}) => {
|
|
804
|
+
try {
|
|
805
|
+
await before();
|
|
806
|
+
return await launch(payload);
|
|
807
|
+
} catch (error) {
|
|
808
|
+
const reason = `local recovery launch failed: ${error instanceof Error ? error.message : String(error)}`.slice(0, 2_000);
|
|
809
|
+
const runId = payload?.data?.run?.id;
|
|
810
|
+
if (runId) {
|
|
811
|
+
await request(
|
|
812
|
+
"POST",
|
|
813
|
+
`/api/v1/lanes/${encode(id)}/resume/${encode(runId)}/launch-failed`,
|
|
814
|
+
{ reason, ...via },
|
|
815
|
+
).catch(() => {});
|
|
816
|
+
}
|
|
817
|
+
throw new CliError("RECOVERY_LAUNCH_FAILED", reason, 1);
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
if (action === "transfer") {
|
|
821
|
+
const reason = requireFlag(flags, "reason");
|
|
822
|
+
const toAgentId = flags["to-agent"] ?? (await config()).agentId;
|
|
823
|
+
if (!toAgentId) throw new CliError("USAGE", "lane transfer needs a registered agent, or --to-agent ID.", 2);
|
|
824
|
+
const payload = await request("POST", `/api/v1/lanes/${encode(id)}/transfer`, { toAgentId, reason, ...via });
|
|
825
|
+
// The fresh run acts as the recovering agent, so the lane's config names it.
|
|
826
|
+
const launched = await launchReserved(payload, async () => {
|
|
827
|
+
const owner = payload.data.run.ownerAgentId;
|
|
828
|
+
if (owner && owner !== toAgentId) throw new Error(`Dev gave the fresh run to ${owner}, not ${toAgentId}`);
|
|
829
|
+
await rebind(payload.data.launch.devConfigPath, toAgentId);
|
|
830
|
+
});
|
|
831
|
+
return {
|
|
832
|
+
payload,
|
|
833
|
+
human: (response) => {
|
|
834
|
+
const { fromAgentId, changeSetIds, changeSetsLeft } = response.data.transfer;
|
|
835
|
+
return [
|
|
836
|
+
`${ref}: moved from agent ${fromAgentId} to ${toAgentId}; fresh run ${response.data.run.id} as PID ${launched.pid}.`,
|
|
837
|
+
...(changeSetIds.length ? [`change sets moved: ${changeSetIds.join(", ")}`] : []),
|
|
838
|
+
...(changeSetsLeft.length ? [`change sets left with ${fromAgentId}, which has another active lane: ${changeSetsLeft.join(", ")}; move one with nodii-dev figma transfer`] : []),
|
|
839
|
+
].join("\n");
|
|
840
|
+
},
|
|
841
|
+
};
|
|
842
|
+
}
|
|
728
843
|
if (action === "resume") {
|
|
729
844
|
// AGENT-HARNESS-46: --override resumes a lane the two-deaths rule stopped;
|
|
730
845
|
// Dev allows it only after a `lane amend`, and keeps the reason on the run.
|
|
@@ -741,21 +856,7 @@ export async function laneCommand(action, args, flags, deps = {}) {
|
|
|
741
856
|
`/api/v1/lanes/${encode(id)}/resume`,
|
|
742
857
|
flags.override ? { override: true, reason: overrideReason, ...via } : via,
|
|
743
858
|
);
|
|
744
|
-
|
|
745
|
-
try {
|
|
746
|
-
launched = await launch(payload);
|
|
747
|
-
} catch (error) {
|
|
748
|
-
const reason = `local recovery launch failed: ${error instanceof Error ? error.message : String(error)}`.slice(0, 2_000);
|
|
749
|
-
const runId = payload?.data?.run?.id;
|
|
750
|
-
if (runId) {
|
|
751
|
-
await request(
|
|
752
|
-
"POST",
|
|
753
|
-
`/api/v1/lanes/${encode(id)}/resume/${encode(runId)}/launch-failed`,
|
|
754
|
-
{ reason, ...via },
|
|
755
|
-
).catch(() => {});
|
|
756
|
-
}
|
|
757
|
-
throw new CliError("RECOVERY_LAUNCH_FAILED", reason, 1);
|
|
758
|
-
}
|
|
859
|
+
const launched = await launchReserved(payload);
|
|
759
860
|
return {
|
|
760
861
|
payload,
|
|
761
862
|
human: (response) => {
|
package/dist/starting.js
CHANGED
|
@@ -8,6 +8,7 @@ import { assertKnownSets, checkComponentSetKey, checkFileKey, loadDsCatalog, mer
|
|
|
8
8
|
import { GATHER_TIMEOUT_MS, gatherDeadline } from "./gather.js";
|
|
9
9
|
import { laneCommand, nextCommand } from "./lanes.js";
|
|
10
10
|
import { laneConfigName } from "./lane-env.js";
|
|
11
|
+
import { hostBootedAt } from "./host.js";
|
|
11
12
|
import { accountFlags, listAccounts, profilePath, registerAccount, reportUsage, usageLine } from "./accounts.js";
|
|
12
13
|
|
|
13
14
|
const execFile = promisify(execFileCallback);
|
|
@@ -320,7 +321,7 @@ async function coordinatorCapacity(machineId, flags, { request, readers }) {
|
|
|
320
321
|
|
|
321
322
|
export async function coordinatorCommand(action, flags, {
|
|
322
323
|
request = devRequest, config = readConfig, save = saveJson, watch = watchCoordinator, readers, heartbeater = spawnHeartbeater,
|
|
323
|
-
heartbeatLoop = coordinatorHeartbeatLoop, findRun = findCoordinatorRun, now = Date.now,
|
|
324
|
+
heartbeatLoop = coordinatorHeartbeatLoop, findRun = findCoordinatorRun, now = Date.now, bootedAt = hostBootedAt,
|
|
324
325
|
isAlive = async (pid, startedAt) => (await import("./watchdog.js")).isProcessAlive(pid, startedAt),
|
|
325
326
|
sessionPid = coordinatorRuntimePid,
|
|
326
327
|
existingHeartbeater = runningHeartbeater,
|
|
@@ -341,6 +342,9 @@ export async function coordinatorCommand(action, flags, {
|
|
|
341
342
|
const startBody = {
|
|
342
343
|
machine,
|
|
343
344
|
expectedHeartbeatSeconds: flags["heartbeat-seconds"] ? Number(flags["heartbeat-seconds"]) : 60,
|
|
345
|
+
// AGENT-HARNESS-67: Dev marks what a restart killed before it looks for a
|
|
346
|
+
// live coordinator, so the first start after a reboot takes over.
|
|
347
|
+
bootedAt: bootedAt(),
|
|
344
348
|
...via,
|
|
345
349
|
};
|
|
346
350
|
const c = await config();
|
|
@@ -422,6 +426,9 @@ export async function coordinatorCommand(action, flags, {
|
|
|
422
426
|
`orphans: ${p.data.orphanedRuns.length}`,
|
|
423
427
|
`unclaimed results: ${p.data.unclaimedResults.length}`,
|
|
424
428
|
...(p.data.takeoverOfRunId ? [`takeover recorded from ${p.data.takeoverOfRunId}`] : []),
|
|
429
|
+
...((p.data.hostLostLanes ?? []).length
|
|
430
|
+
? [`host_lost lanes: ${p.data.hostLostLanes.map((lane) => lane.key).join(", ")}; bring them back with nodii-dev lane resume --host-lost`]
|
|
431
|
+
: []),
|
|
425
432
|
heartbeaterPid
|
|
426
433
|
? `heartbeater ${heartbeaterPid} keeps the run alive while session ${watched.pid} lives`
|
|
427
434
|
: `heartbeater not started${heartbeaterError ? ` (${heartbeaterError})` : ""}: the run goes quiet without heartbeats`,
|