agent-coord-mcp 0.26.17 → 0.26.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/package.json +1 -1
  2. package/src/server.ts +2 -2
  3. package/src/tools/admin.ts +8 -1
  4. package/src/tools/away.ts +48 -4
  5. package/src/tools/records.ts +274 -18
  6. package/src/tools/rooms.ts +2 -1
  7. package/src/tools/shared.ts +18 -0
  8. package/src/tools/stall.ts +29 -1
  9. package/src/tools/transport.ts +12 -4
  10. package/src/tools/work.ts +70 -4
  11. package/src/tools/worktrees.ts +64 -2
  12. package/src/work.ts +4 -0
  13. package/dist/build.js +0 -113
  14. package/dist/build.js.map +0 -1
  15. package/dist/capabilities.js +0 -158
  16. package/dist/capabilities.js.map +0 -1
  17. package/dist/prefix.js +0 -64
  18. package/dist/prefix.js.map +0 -1
  19. package/dist/roles.js +0 -132
  20. package/dist/roles.js.map +0 -1
  21. package/dist/server-identity.js +0 -82
  22. package/dist/server-identity.js.map +0 -1
  23. package/dist/server.js +0 -646
  24. package/dist/server.js.map +0 -1
  25. package/dist/store.js +0 -553
  26. package/dist/store.js.map +0 -1
  27. package/dist/tools/admin.js +0 -317
  28. package/dist/tools/admin.js.map +0 -1
  29. package/dist/tools/attention.js +0 -73
  30. package/dist/tools/attention.js.map +0 -1
  31. package/dist/tools/away.js +0 -243
  32. package/dist/tools/away.js.map +0 -1
  33. package/dist/tools/board-ref.js +0 -208
  34. package/dist/tools/board-ref.js.map +0 -1
  35. package/dist/tools/event-kinds.js +0 -39
  36. package/dist/tools/event-kinds.js.map +0 -1
  37. package/dist/tools/events.js +0 -234
  38. package/dist/tools/events.js.map +0 -1
  39. package/dist/tools/index.js +0 -14
  40. package/dist/tools/index.js.map +0 -1
  41. package/dist/tools/logwatch.js +0 -85
  42. package/dist/tools/logwatch.js.map +0 -1
  43. package/dist/tools/messaging.js +0 -706
  44. package/dist/tools/messaging.js.map +0 -1
  45. package/dist/tools/record-events.js +0 -380
  46. package/dist/tools/record-events.js.map +0 -1
  47. package/dist/tools/records.js +0 -778
  48. package/dist/tools/records.js.map +0 -1
  49. package/dist/tools/registry.js +0 -500
  50. package/dist/tools/registry.js.map +0 -1
  51. package/dist/tools/render.js +0 -2
  52. package/dist/tools/render.js.map +0 -1
  53. package/dist/tools/rooms.js +0 -210
  54. package/dist/tools/rooms.js.map +0 -1
  55. package/dist/tools/rotate.js +0 -143
  56. package/dist/tools/rotate.js.map +0 -1
  57. package/dist/tools/scopes.js +0 -126
  58. package/dist/tools/scopes.js.map +0 -1
  59. package/dist/tools/shared.js +0 -86
  60. package/dist/tools/shared.js.map +0 -1
  61. package/dist/tools/stall.js +0 -387
  62. package/dist/tools/stall.js.map +0 -1
  63. package/dist/tools/transport.js +0 -1871
  64. package/dist/tools/transport.js.map +0 -1
  65. package/dist/tools/work.js +0 -319
  66. package/dist/tools/work.js.map +0 -1
  67. package/dist/tools/worktrees.js +0 -339
  68. package/dist/tools/worktrees.js.map +0 -1
  69. package/dist/typed-records.js +0 -174
  70. package/dist/typed-records.js.map +0 -1
  71. package/dist/work.js +0 -2
  72. package/dist/work.js.map +0 -1
@@ -1,387 +0,0 @@
1
- /*
2
- * `stall_check` — a predicate over the board and the bus, plus a HALT flag.
3
- *
4
- * Stall has been "notice the room" until now, which means it is noticed when
5
- * somebody happens to look. The measured cost elsewhere: ~42 hours of dead merge
6
- * path across four incidents in three days, with `main` advancing throughout so
7
- * every commit-based liveness check read green.
8
- *
9
- * A MISS IS SILENT TO THE DUTY OFFICER AND NEVER SILENT TO THE RECORD.
10
- *
11
- * This is the whole design constraint (3.3b). "HIT DMs, MISS silent" answers the
12
- * noise question and makes a DEAD CLOCK look exactly like a healthy fleet — the
13
- * absence-read-as-evidence rule, inside the verb built to watch for absence. So
14
- * every run leaves a mark, HIT or MISS, and "no alert" becomes distinguishable
15
- * from "nothing ran". A check that only speaks when it fires cannot be told from
16
- * a broken one.
17
- */
18
- import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
19
- import { execFileSync } from "node:child_process";
20
- import path from "node:path";
21
- import { z } from "zod";
22
- import { parseWorkDoc, workstreamsV1RowsOf } from "@davidbalzan/groundwork-seam";
23
- import { ROOT, AGENTS_FILE, readJson } from "../store.js";
24
- import { classifyBoardRef, refInCell } from "./board-ref.js";
25
- import { loadLiveTransports } from "./registry.js";
26
- const BOARD_DOC = "docs/WORKSTREAMS.md";
27
- const STALL_MS = 30 * 60 * 1000;
28
- const runFile = () => path.join(ROOT, "stall-check.json");
29
- const haltFile = () => path.join(ROOT, "halt.json");
30
- // ---------- halt ----------
31
- export const setHaltSchema = {
32
- reason: z.string().min(1),
33
- by: z.string().min(1),
34
- clear: z.boolean().optional(),
35
- };
36
- /**
37
- * A NAMED state, never a mood.
38
- *
39
- * "Production feels down" is not a halt: a halt blocks every claim in the fleet,
40
- * so the thing that sets it must be nameable and therefore arguable — a board
41
- * cutover, a cited `BLOCKER:`, a documented red pipeline. The reason is required
42
- * for that reason, not for the log.
43
- */
44
- export async function setHaltTool(args) {
45
- mkdirSync(ROOT, { recursive: true });
46
- if (args.clear) {
47
- writeFileSync(haltFile(), JSON.stringify({ halted: false, clearedBy: args.by, clearedAt: Date.now(), lastReason: args.reason }, null, 2));
48
- return { ok: true, halted: false, clearedBy: args.by };
49
- }
50
- const state = { halted: true, reason: args.reason, by: args.by, at: Date.now() };
51
- writeFileSync(haltFile(), JSON.stringify(state, null, 2));
52
- return { ok: true, ...state };
53
- }
54
- export function haltState() {
55
- try {
56
- const raw = JSON.parse(readFileSync(haltFile(), "utf8"));
57
- return raw?.halted ? raw : { halted: false };
58
- }
59
- catch {
60
- return { halted: false };
61
- }
62
- }
63
- // ---------- the run mark ----------
64
- /** Every run leaves this, HIT or MISS. It is what makes a dead clock visible. */
65
- /**
66
- * Record a run that FAILED.
67
- *
68
- * Acceptance from the queue item, and the clause most easily skipped: "a
69
- * scheduled check reports its FETCH FAILURES, or a broken check is
70
- * indistinguishable from a quiet registry". Without this, a clock that fires
71
- * every 30 minutes and throws every time leaves NO marks at all — identical on
72
- * disk to a clock that was never installed.
73
- */
74
- export function markRunFailure(reason) {
75
- mkdirSync(ROOT, { recursive: true });
76
- let history = [];
77
- try {
78
- history = JSON.parse(readFileSync(runFile(), "utf8")).history ?? [];
79
- }
80
- catch {
81
- /* first run */
82
- }
83
- history.push({ at: Date.now(), hits: 0, checked: 0, failed: reason });
84
- writeFileSync(runFile(), JSON.stringify({ history: history.slice(-200) }, null, 2));
85
- }
86
- function markRun(result) {
87
- mkdirSync(ROOT, { recursive: true });
88
- let history = [];
89
- try {
90
- history = JSON.parse(readFileSync(runFile(), "utf8")).history ?? [];
91
- }
92
- catch {
93
- /* first run */
94
- }
95
- // COVERAGE IS RECORDED WITH THE RUN, because a status tool that cannot
96
- // express its own blindness is worse than no status tool. Measured: the clock
97
- // reported `runs 8, failures 0` — all green — while every one of those runs
98
- // had covered 0 of 3 agents. Nothing in the mark could say so, and this is the
99
- // instrument meant to cover an absence.
100
- history.push({ at: Date.now(), hits: result.hits.length, checked: result.checked, measurable: result.measurable ?? 0 });
101
- // A RUN OF MISSES MUST BE VISIBLE AS RUNS, not as absence — so the marks are a
102
- // list, not a single timestamp. "Ten quiet checks" and "one check ten hours ago"
103
- // are different states and only the first is a healthy fleet.
104
- writeFileSync(runFile(), JSON.stringify({ history: history.slice(-200) }, null, 2));
105
- }
106
- export const lastRanSchema = { maxAgeMinutes: z.number().optional() };
107
- /**
108
- * Is the clock alive? Readable by a human or another check, which is the point —
109
- * MISS is silent to the WATCHER, not to the record.
110
- */
111
- export async function stallClockStatusTool(args) {
112
- const maxAge = (args.maxAgeMinutes ?? 60) * 60 * 1000;
113
- let history = [];
114
- try {
115
- history = JSON.parse(readFileSync(runFile(), "utf8")).history ?? [];
116
- }
117
- catch {
118
- return {
119
- ok: false,
120
- error: "stall_check has NEVER run — no run mark exists. That is not a quiet fleet, it is an unwatched one: a check that only speaks when it fires cannot be told from a broken one.",
121
- };
122
- }
123
- const last = history[history.length - 1];
124
- // A RUN THAT FAILED IS NOT A RUN THAT PASSED. Without this the clock reads
125
- // "fresh" off a mark it wrote while erroring — the age is honest and the
126
- // health is not, which is the same shape as a fresh heartbeat from a stuck
127
- // agent.
128
- const failures = history.filter((h) => h.failed);
129
- const lastFailed = last?.failed;
130
- const age = Date.now() - (last?.at ?? 0);
131
- // `>=`, NOT `>`, AND THE DIFFERENCE IS A REAL RACE RATHER THAN PEDANTRY.
132
- //
133
- // With `>`, a window of 0 and a mark written in the SAME MILLISECOND gives
134
- // `0 > 0` = false: the clock reads FRESH at the instant it was asked to treat
135
- // everything as stale. It passed locally and on one CI run and failed on
136
- // another — green in two environments, red in one — because it depended on at
137
- // least a millisecond elapsing.
138
- //
139
- // The window having ELAPSED is the condition, so equality is inside it: a
140
- // 0-minute window means nothing is ever fresh, which is what a caller asking
141
- // for one means.
142
- const stale = age >= maxAge;
143
- const misses = history.filter((h) => !h.failed && h.hits === 0).length;
144
- const hits = history.filter((h) => !h.failed && h.hits > 0).length;
145
- // A RUN THAT COVERED NOTHING IS NOT A RUN THAT FOUND NOTHING. Marks written
146
- // before coverage was recorded carry no `measurable` field: they are reported
147
- // as UNKNOWN rather than assumed covered, because assuming is what produced
148
- // the green this exists to correct.
149
- const graded = history.filter((h) => !h.failed && typeof h.measurable === "number");
150
- const blindRuns = graded.filter((h) => h.checked > 0 && h.measurable === 0).length;
151
- const ungraded = history.filter((h) => !h.failed && typeof h.measurable !== "number").length;
152
- const lastBlind = last && !last.failed && (last.checked ?? 0) > 0 && last.measurable === 0;
153
- return {
154
- // A FAILING CLOCK IS NOT A HEALTHY ONE. It writes marks on schedule, so the
155
- // age looks fresh while nothing is being measured — a fresh heartbeat from
156
- // a stuck agent, one level up.
157
- ok: !stale && !lastFailed && !lastBlind,
158
- ...(stale
159
- ? {
160
- error: `stall_check last ran ${Math.round(age / 60000)}m ago, past the ${args.maxAgeMinutes ?? 60}m window — THE CLOCK IS STOPPED. No alerts is not the same as no stalls.`,
161
- }
162
- : lastFailed
163
- ? {
164
- error: `the clock is RUNNING but its last run FAILED: ${lastFailed}. It is firing on schedule and measuring nothing, which reads as fresh and is not.`,
165
- }
166
- : lastBlind
167
- ? {
168
- error: `the clock is RUNNING and BLIND: its last run checked ${last?.checked} in-flight row(s) and could measure ${last?.measurable} of them. ` +
169
- `It fires on schedule, reports no hits, and that "no hits" is not evidence of a healthy fleet — it is evidence of nothing. ` +
170
- `Read stall_check's own 'unmeasurable' list for the cause; the usual one is a board 'Branch · Worktree' cell holding a PATH rather than a branch ref.`,
171
- }
172
- : {}),
173
- lastRanMinutesAgo: Math.round(age / 60000),
174
- runs: history.length,
175
- misses,
176
- hits,
177
- failures: failures.length,
178
- // The number the old shape could not express.
179
- coverage: {
180
- lastRun: last && !last.failed ? { checked: last.checked, measurable: last.measurable ?? null } : null,
181
- blindRuns,
182
- ungraded,
183
- note: "blindRuns are runs that checked rows and measured none of them — green by every other field. " +
184
- "ungraded are marks written before coverage was recorded: UNKNOWN, never assumed covered.",
185
- },
186
- };
187
- }
188
- // ---------- the predicate ----------
189
- export const stallCheckSchema = { repo: z.string().optional(), stallMinutes: z.number().optional() };
190
- export async function stallCheckTool(args) {
191
- const repo = args.repo ?? process.cwd();
192
- const limit = (args.stallMinutes ?? 30) * 60 * 1000;
193
- const board = path.join(repo, BOARD_DOC);
194
- if (!existsSync(board))
195
- return { ok: false, error: `no ${BOARD_DOC} under '${repo}'` };
196
- const liveTransports = await loadLiveTransports();
197
- const rows = workstreamsV1RowsOf(parseWorkDoc(readFileSync(board, "utf8")));
198
- const inFlight = rows.filter((r) => /🚧/.test(r.status));
199
- const reg = await readJson(AGENTS_FILE, {});
200
- const now = Date.now();
201
- const hits = [];
202
- /** Rows whose VCS activity could not be measured. NOT stall claims. */
203
- const unmeasurable = [];
204
- /**
205
- * Rows a predicate actually reached a VERDICT about — hit or clean.
206
- *
207
- * Tracked explicitly rather than inferred from "2 predicates minus the
208
- * unmeasurable ones", because a predicate that is SKIPPED pushes no
209
- * unmeasurable entry and the arithmetic then counts it as having measured.
210
- * That is the same defect as the `continue` above, one level up: a silent
211
- * skip and a clean pass produce the same number.
212
- */
213
- const measured = new Set();
214
- for (const row of inFlight) {
215
- const agentId = row.owner.replace(/[`*]/g, "").trim();
216
- const entry = reg[agentId];
217
- if (!entry) {
218
- // NOT SKIPPED IN SILENCE. An owner with no registry entry has no
219
- // heartbeat to read, which is a missing signal and must be reported as
220
- // one — a row whose owner the bus has never heard of is exactly the row
221
- // you would want named before going away.
222
- unmeasurable.push({ agentId, value: "", why: "no registry entry for this owner — there is no heartbeat to read, and the name may not be an agent id at all" });
223
- }
224
- if (entry) {
225
- const age = now - entry.lastHeartbeat;
226
- // A HEARTBEAT IS ONLY EVIDENCE WHERE SOMETHING WRITES ONE.
227
- //
228
- // `heartbeat` is called by the PUSHER, never by the agent. Only
229
- // `coord-pusher.mjs` (the REMOTE pusher) calls it, and it must: a remote
230
- // marker cannot be pid-probed across machines, so its liveness IS the
231
- // heartbeat. `hooks/tmux-pusher.mjs` — what this fleet actually runs —
232
- // never calls it, because a LOCAL marker's liveness is `isPidAlive`.
233
- //
234
- // So for a local transport there is no heartbeat SOURCE at all. Before
235
- // kit#137, `list_agents` stamped these agents and that fabrication was
236
- // the only thing keeping the field moving; removing it left the field
237
- // honest and empty. Measured: three attached, working agents at an
238
- // IDENTICAL 44.7m — the uniform signature of one shared cause, not three
239
- // stalls.
240
- //
241
- // WHY NOT JUST MAKE tmux-pusher HEARTBEAT: because the signal would mean
242
- // "the pusher process is alive", which `isPidAlive` already answers for
243
- // local markers. During the 17-hour stall every transport was live the
244
- // whole time, so a pusher heartbeat would have read FRESH for all 17
245
- // hours. It would restore a field without restoring a detector — and the
246
- // case this verb exists for is exactly the one it would miss. The vcs
247
- // half is what catches "alive and not progressing"; saying so is more
248
- // honest than a green field.
249
- //
250
- // Unknown is not stalled (kit#138). This does NOT narrow Task 3.5: an
251
- // agent with no transport, or a REMOTE one where the heartbeat genuinely
252
- // is the liveness mechanism, still HITs on a dead heartbeat.
253
- const marker = liveTransports.get(agentId);
254
- if (age > limit && marker && marker.transport === "tmux-push") {
255
- unmeasurable.push({
256
- agentId,
257
- value: marker.transport,
258
- why: `heartbeat is ${Math.round(age / 60000)}m old, but nothing writes heartbeats for a local 'tmux-push' transport — hooks/tmux-pusher.mjs does not call heartbeat, and this marker's liveness is its pid. There is no heartbeat SOURCE here, so the age measures nothing about this agent`,
259
- });
260
- // FALL THROUGH TO THE VCS PREDICATE — do not `continue`.
261
- //
262
- // This used to skip the row entirely, and the consequence was total: on
263
- // this fleet, 3 of 3 in-flight rows were local tmux-push agents, so
264
- // EVERY row exited here and the check reported `checked 3 · measurable
265
- // 0`. The half that was blind (heartbeat, deliberately, for the reason
266
- // above) was taking the half that works (vcs activity) down with it.
267
- //
268
- // The two predicates answer different questions and only one of them is
269
- // unanswerable for a local transport. "Is it alive" has no source here;
270
- // "is its branch moving" has a perfectly good one, and it is the half
271
- // that catches the case this verb exists for — alive and not
272
- // progressing. An unmeasurable heartbeat is a missing signal, not a
273
- // reason to stop measuring the signal that is present.
274
- }
275
- else if (age > limit) {
276
- hits.push({ kind: "no-heartbeat", agentId, stream: row.stream.slice(0, 60), minutes: Math.round(age / 60000) });
277
- measured.add(agentId);
278
- continue;
279
- }
280
- // A FRESH HEARTBEAT IS *NOT* A VERDICT, AND THIS IS A CORRECTION TO WHAT
281
- // THIS CODE CLAIMED WHEN IT MERGED.
282
- //
283
- // It read "a fresh heartbeat IS a verdict — alive" and credited coverage
284
- // for it. Measured since, by reading agents.json directly (`list_agents`
285
- // refreshes the CALLER's mark, so it cannot be used to measure the
286
- // caller): an agent's mark aged from 9611s to 9623s across a `post_status`
287
- // call. BUS TOOL CALLS DO NOT WRITE HEARTBEATS.
288
- //
289
- // `heartbeat` age is TIME SINCE JOIN. Not activity, and not even
290
- // time-since-restart — a server can restart mid-session without the mark
291
- // moving, because nothing rejoined. So freshness says "recently joined",
292
- // and crediting it as coverage lets `/coord-away` arm on a fleet whose
293
- // only evidence is that somebody reconnected.
294
- //
295
- // The inverse is worse and is why this is not merely tidiness: reading
296
- // age as activity marks the two most CONTINUOUSLY ACTIVE agents on a bus
297
- // as stale at 2.6h, while a freshly-rejoined idle agent reads healthy —
298
- // a false-stall generator aimed at exactly the agents that must not be
299
- // false-stalled while nobody is watching.
300
- //
301
- // The HIT above is kept: for an agent with no transport at all, "has not
302
- // rejoined and has no live marker" is still the death signal Task 3.5
303
- // specifies. What is removed is the coverage credit for freshness, which
304
- // leaves coverage resting on the vcs predicate — the one that measures
305
- // something the agent DID.
306
- }
307
- // A FRESH HEARTBEAT IS NOT PROGRESS. An agent can be alive and stuck, which is
308
- // the case "notice the room" never catches: the pane is responsive, so nobody
309
- // looks. Ask the branch instead.
310
- //
311
- // RESOLVE A REF, AND SAY SO WHEN THE VALUE IS NOT ONE.
312
- //
313
- // `git log -1 <value>` accepts a PATHSPEC exactly as readily as a ref, and
314
- // the old guard only required a `/` — which every path has. So the board's
315
- // `Branch · Worktree` cells, which hold PATHS, were fed to git and silently
316
- // measured as paths: the aide was reported at 2,271 minutes, the age of
317
- // `docs/phases/phase5`'s last commit, not of any activity by that agent.
318
- // Verified: `docs/phases/phase5` does not resolve as a ref, yet
319
- // `git log -1 --format=%cI docs/phases/phase5` returns a date.
320
- //
321
- // Other rows read plausibly only by coincidence — a path that happens to be
322
- // committed often looks like an active branch.
323
- //
324
- // UNKNOWN IS NOT STALLED, which this verb already gets right for
325
- // heartbeats. An unresolvable value is REPORTED as unmeasurable rather than
326
- // skipped in silence: a silent `continue` and a healthy agent produce the
327
- // same output, which is the failure this whole verb exists to avoid.
328
- // ONE CLASSIFIER, SHARED WITH `claim` (board-ref.ts). The old block asked
329
- // only "does it resolve", and three of the four ways this cell has been
330
- // wrong resolved cleanly — a shared ref, a local-only ref, and a merged
331
- // ref. Resolution was never the property; the property is whether the ref's
332
- // movement is THIS AGENT'S WORK.
333
- const verdict = classifyBoardRef(repo, agentId, row.branchWorktree);
334
- if (verdict.kind === "merged") {
335
- // A VERDICT, NOT AN ABSENCE — and it counts as coverage, because the check
336
- // did learn something about this lane: its work landed and its row is
337
- // stale. Reported as its own kind rather than as a stall, which is what
338
- // the frozen ref was reporting it as.
339
- hits.push({ kind: "stale-row", agentId, branch: refInCell(row.branchWorktree), why: verdict.why });
340
- measured.add(agentId);
341
- continue;
342
- }
343
- if (verdict.kind !== "measurable") {
344
- unmeasurable.push({ agentId, value: refInCell(row.branchWorktree), why: verdict.why });
345
- continue;
346
- }
347
- try {
348
- // The resolved SHA, and `--`: a ref can then never be re-read as a
349
- // pathspec, which is the ambiguity that produced the wrong number.
350
- const sha = execFileSync("git", ["rev-parse", "--verify", "--quiet", `${verdict.ref}^{commit}`], {
351
- cwd: repo, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"],
352
- }).trim();
353
- const iso = execFileSync("git", ["log", "-1", "--format=%cI", sha, "--"], {
354
- cwd: repo, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"],
355
- }).trim();
356
- const age = now - Date.parse(iso);
357
- measured.add(agentId);
358
- if (age > limit) {
359
- hits.push({ kind: "no-vcs-activity", agentId, branch: verdict.ref, minutes: Math.round(age / 60000) });
360
- }
361
- }
362
- catch {
363
- unmeasurable.push({ agentId, value: verdict.ref, why: "resolved as a ref but its log could not be read" });
364
- }
365
- }
366
- // COVERAGE, not "did it run". A row is COVERED when a predicate produced a
367
- // verdict about it; a row where every predicate came back unmeasurable was
368
- // looked at and not measured, and counting it as checked is how "the clock
369
- // ran" gets mistaken for "the fleet is observed".
370
- const owners = inFlight.map((r) => r.owner.replace(/[`*]/g, "").trim()).filter(Boolean);
371
- const blind = [...new Set(owners)].filter((id) => !measured.has(id));
372
- const measurable = Math.max(0, inFlight.length - blind.length);
373
- const result = { hits, checked: inFlight.length, unmeasurable, measurable, blind };
374
- markRun({ hits, checked: inFlight.length, measurable });
375
- return {
376
- ok: true,
377
- ...result,
378
- halted: haltState().halted,
379
- // MISS is silent to the DUTY OFFICER — the caller decides whether to DM — and
380
- // never silent to the record, which markRun just wrote.
381
- dm: hits.length > 0,
382
- note: hits.length === 0
383
- ? `MISS — ${inFlight.length} in-flight row(s), none stalled${unmeasurable.length ? `; ${unmeasurable.length} row(s) UNMEASURABLE for VCS activity (${unmeasurable.map((u) => u.agentId).join(", ")}) — reported, not counted as healthy` : ""}. No DM. The run IS recorded: read it with stall_clock_status, because no alert and nothing running look identical from here.`
384
- : undefined,
385
- };
386
- }
387
- //# sourceMappingURL=stall.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stall.js","sourceRoot":"","sources":["../../src/tools/stall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,SAAS,GAAG,qBAAqB,CAAC;AACxC,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEhC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC1D,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,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