agent-coord-mcp 0.26.12 → 0.26.14

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/server.js CHANGED
@@ -203,7 +203,7 @@ function buildServer(initialBound, opts = {}) {
203
203
  addTool("quit", "Clean shutdown: unregister this agent (detach transport, leave rooms, remove registry entry) then exit the MCP process. Only callable by the session's bound identity. Use this to cleanly hand off before a restart with a new name.", quitSchema, gate("agentId", quitTool));
204
204
  addTool("status", "Introspect this agent's coord state: registration, attached transport, inbox depth and unread count, and whether this MCP server is running inside tmux. Useful for debugging 'why isn't my DM landing'. Read-only — naming an agentId here never binds this session's identity.", statusSchema, gate("agentId", statusTool, { bindOnClaim: false }));
205
205
  addTool("heartbeat", "Refresh this agent's lastHeartbeat timestamp.", heartbeatSchema, gate("agentId", heartbeatTool));
206
- addTool("ping", "Liveness probe for another agent, answered entirely from server-side state (registry entry, transport marker, pusher pid, tmux pane) — it never touches the target's session, so a fleet-wide sweep costs zero model tokens on the targets. Returns alive (fresh heartbeat or live transport), reachable (a DM pushed now would land), granular checks, and latencyMs. Distinct from heartbeat, which is an agent refreshing its OWN activity timestamp. Pass echo:true (default off) to additionally drop a PING DM into the target's inbox — that wakes the target's model, so use it sparingly and only when you need an agent-level acknowledgement. 'from' is enforced against the session's bound identity, but read-only — naming 'from' here never binds this session's identity.", pingSchema, gate("from", pingTool, { bindOnClaim: false }));
206
+ addTool("ping", "Liveness probe for another agent, answered entirely from server-side state (registry entry, transport marker, pusher pid, tmux pane) — it never touches the target's session, so a fleet-wide sweep costs zero model tokens on the targets. Returns alive (live transport, or a fresh heartbeat ONLY where something writes one — never a local tmux-push transport's, whose heartbeat measures time since it joined rather than activity), reachable (a DM pushed now would land), granular checks including heartbeatValid (whether heartbeatFresh next to it is real evidence for this transport), and latencyMs. Distinct from heartbeat, which is an agent refreshing its OWN activity timestamp. Pass echo:true (default off) to additionally drop a PING DM into the target's inbox — that wakes the target's model, so use it sparingly and only when you need an agent-level acknowledgement. 'from' is enforced against the session's bound identity, but read-only — naming 'from' here never binds this session's identity.", pingSchema, gate("from", pingTool, { bindOnClaim: false }));
207
207
  addTool("list_agents", "List all known agents and whether they appear online (heartbeat <5min). Also reports the prose-only exemptions from the typed-record rule — who holds one, since when, and the count over the total, so a rising exempt share is visible rather than inferred.", listAgentsSchema, gate(null, listAgentsTool));
208
208
  addTool("send_message", "Send a message. If 'to' is set, goes to that agent's inbox (DM); otherwise to a channel — pass 'room' (e.g. 'seo' or '#seo') to target a specific channel, or omit it for the default 'general' channel. For channel posts, tag 'kind': 'decision' for GOs/verdicts/agreements that must outlive routine cleanup (kept ~30 days, quoted verbatim in digests), 'status' for progress notes, omit for ordinary chatter. Optional 'inReplyTo' is a parent message uuid (a reply that resolves a DAVID_DECISION); malformed id is refused, unknown id is stored with a warning. The 'from' field is enforced against the session's bound identity when binding is configured. EVERY AGENT→AGENT MESSAGE MUST CARRY 'record' with a typed 'type' (decision · verdict · done · blocker · risk · fyi · action · go · scope): a typed multi-line message is delivered as ONE attributed line plus a retrieve_message handle, while an untyped one arrives in full in every reader's context. 'fyi' is the honest catch-all — use it rather than forcing a false 'decision'/'risk'. Untyped sends WARN today and are REFUSED from 2026-09-15. Messages TO a human are exempt (David-facing traffic stays prose), as is a sender that declared proseOnly:true at join.", sendMessageSchema, gate("from", sendMessageTool));
209
209
  addTool("send_command", "Inject a context-management slash command (/clear, /compact or /reload-skills) directly into a sub-agent's live tmux session — delivered RAW with no banner or prefix, so the agent's CLI runs it as a real slash command. Target one agent with 'to' or broadcast to a channel's tmux-attached members with 'room' (never the sender). Hard-gated to tmux: returns ok:false if the target has no live tmux-push(-remote) transport. By default BLOCKS until the receiving pusher confirms it actually typed the command into the pane (out-of-band delivery receipt, no added agent context) and returns delivery:'confirmed' with deliveredAt, or delivery:'pending'+warning if no receipt arrived within deliveryTimeoutMs (default 8000) — a stale/wedged pusher. Pass waitForDelivery:false for fire-and-forget. Intended for a lead agent to clear/compact sub-agent context and save tokens. The command allowlist is locked to /clear, /compact and /reload-skills; nothing else is accepted. 'from' is enforced against the session's bound identity.", sendCommandSchema, gate("from", sendCommandTool));
@@ -254,17 +254,17 @@ function buildServer(initialBound, opts = {}) {
254
254
  addTool("doctor", "Bus-wide health check: inspects the whole state dir and reports drift, leaks, and corruption (orphan transport markers / memberships / inboxes, cursor offsets past EOF, malformed JSONL, stale agents, oversized files, stale locks, channel/registry mismatches, environment). Read-only by default; pass fix=true to apply the safe, reversible repairs (malformed-line rewrites are backed up to .bak first). A clean report (healthy=true) means the bus is internally consistent.", doctorSchema, gate(null, doctorTool));
255
255
  addTool("list_scopes", "Read the declared write scopes for managed documents (~/agent-coord/scopes.json). Call it with 'path' (and your 'agentId') to ask \"may I write this?\" BEFORE editing a shared doc like docs/QUEUE.md; call it bare to list every declared document and its owning role. ADVISORY ONLY: the bus does not mediate file writes, so this answers who owns a document, it does not stop anyone — enforcement arrives when work state moves into the store. Absent scopes.json means nothing is owned and nothing warns (opt-in).", listScopesSchema, gate(null, listScopesTool));
256
256
  addTool("import_work", "Read a project's work documents (docs/QUEUE.md + docs/DONE.md, or the legacy docs/BACKLOG.md, plus docs/WORKSTREAMS.md and optional docs/FACTS.md) into typed records: queue items {priority,text,done}, done entries {text,ref,date}, board rows, and facts {id,claim,verified,by,method}. The markdown stays authoritative — this store is a derived index, and export_work renders queue/done/board back byte-identically (FACTS is not an export write target).", importWorkSchema, gate(null, importWorkTool));
257
- addTool("list_work", "Query a project's work state as records instead of parsing markdown: open queue items (filter by priority), done entries with their ref and date as separate fields, the board's lane rows, and facts. Falls back to reading the documents directly when nothing has been imported, so it works with no store at all.", listWorkSchema, gate(null, listWorkTool));
257
+ addTool("list_work", "A re-parsing VIEW over a project's work state, not an index: it re-reads the documents (or the last import_work snapshot, reported as source:\"store\" vs \"markdown\") rather than answering from a maintained store, so treat repeated calls as costing what a fresh parse costs. Queue items come back as IDENTITY ONLY — id, priority, a bounded headline (truncated:true when cut, never silently), blockedBy — never the full body; pass id back on a second call to fetch one item's or one DONE entry's record whole. Done entries, board lane rows, and facts are returned in full. Filter queue by priority; falls back to reading the documents directly when nothing has been imported, so it works with no store at all.", listWorkSchema, gate(null, listWorkTool));
258
258
  addTool("stall_check", "The stall predicate over the board and the bus: a 🚧 row whose agent's heartbeat is older than the window, or whose claimed branch has no commits in it. HIT returns the hits for the caller to DM; MISS returns none and sends nothing — but EVERY run, hit or miss, leaves a mark, because a check that only speaks when it fires cannot be told from a broken one. Read the mark with stall_clock_status.", stallCheckSchema, gate(null, stallCheckTool));
259
259
  addTool("stall_clock_status", "Is the stall clock alive? Reports when stall_check last ran, how many runs, and how many were misses — so 'no alerts' is distinguishable from 'nothing ran'. Never having run is an ERROR, not a quiet fleet.", lastRanSchema, gate(null, stallClockStatusTool));
260
260
  addTool("set_halt", "Set or clear a NAMED halt. While set, `claim` and `next_unblocked` refuse. The reason is required because a halt blocks every lane in the fleet: it must name a board cutover, a cited BLOCKER: or a documented red pipeline — 'production feels down' is not a halt.", setHaltSchema, gate(null, setHaltTool));
261
261
  addTool("ensure_worktree", "Create or reuse an isolated git worktree for an agent, cut from origin/<base> (never a local branch of the same name, which is whatever the last person left there). Refuses to hand back the PRIMARY checkout as a slice tree — that is the path everyone already has, so it is the one two agents end up editing at once. Idempotent: an existing tree is reported as found, and if it sits on a different branch that is said rather than re-pointed.", ensureWorktreeSchema, gate(null, ensureWorktreeTool));
262
262
  addTool("refresh_worktrees", "Fast-forward IDLE worktrees onto origin/<base>. Never --force and never a mid-slice tree: dirty or holding commits the base does not is REFUSED per tree and named, because staleness is visible in a diff and a clobbered work-in-progress is not. Reports by default; pass apply:true to move them.", refreshWorktreesSchema, gate(null, refreshWorktreesTool));
263
- addTool("next_unblocked", "The next queue item to work: re-reads docs/QUEUE.md via the seam, orders P1>P2>P3 with document order breaking ties, and SKIPS a blocked item rather than stalling the lane on a reorder (returning the board hunk to record the skip). Also reports items NOTHING WAITS ON as their own axis: an item that blocks nothing announces nothing when it stalls, so its absence is silent and needs an explicit check at a stage boundary.", nextUnblockedSchema, gate(null, nextUnblockedTool));
263
+ addTool("next_unblocked", "The next queue item a WORKER can claim: re-reads docs/QUEUE.md via the seam, orders P1>P2>P3 with document order breaking ties, and SKIPS a blocked item rather than stalling the lane on a reorder (returning the board hunk to record the skip). Also skips — as its own reported axis, `notClaimable`, never silently — canon prose (`[SWEEP:canon]`/`[SWEEP:canon.N]`) that the aide/coordinator author directly and no worker takes as code work. Also reports items NOTHING WAITS ON as their own axis: an item that blocks nothing announces nothing when it stalls, so its absence is silent and needs an explicit check at a stage boundary.", nextUnblockedSchema, gate(null, nextUnblockedTool));
264
264
  addTool("claim", "Bind a queue item to an agent and produce the 🚧 board row. With no itemId it takes next_unblocked. WARNS LOUDLY while `ensure_worktree` (Phase 5 Task 1) does not exist: the claim binds the item and the row only, and creating an isolated worktree at origin/<base> is still yours. The warning is conditional on that verb's absence, so it stops once Task 1 lands.", claimSchema, gate(null, claimTool));
265
265
  addTool("land", "Record a merged PR: refuses without a cited PR number, and refuses unless the PR is on the TARGET TIP (origin/<base>) rather than a merge base — an item merged after your branch was cut is missing from the base too, so the base cannot answer 'what does the thing I am merging into have that I do not?'. Closes the queue item STATUS ONLY (priority and body bytes unchanged), proposes the DONE entry, and reports by default: pass write:true to apply.", landSchema, gate(null, landTool));
266
266
  addTool("merge", "Merge a PR ONLY as the consequence of its check verdict: reads the status rollup and merges in the same call, so there is no ordering in which the check runs and the merge ignores it. Refuses on any failing check, on any check not yet terminal, on a CONFLICTING base, and on ZERO checks \u2014 no checks is not passing checks, an empty rollup has zero failures and evidences nothing. Every return carries the POPULATION it judged. Reports by default; pass write:true to merge.", mergeSchema, gate(null, mergeTool));
267
- addTool("coord_away", "Declare the coordinator AWAY with a named duty officer, or RELEASE it. While ON, the duty officer is restricted to an ALLOWLIST (next_unblocked, claim, land, stall_check, and reporting) \u2014 an allowlist rather than a denylist, so a tool added tomorrow is refused by default instead of silently granted. Refuses ON without a dutyOfficerId (an unnamed stand-in reports the lane covered while leaving it uncovered), refuses a self-appointed officer, and refuses RELEASE by anyone but the coordinator who set it \u2014 a stand-in that can lift its own limits does not have any. While ON, a SECOND coordinator cannot join until released.", coordAwaySchema, gate("coordinatorId", coordAwayTool));
267
+ addTool("coord_away", "Declare that DAVID IS AWAY and the aide LEADS, or RELEASE it. (Redefined 2026-08-30; the old duty-officer meaning is RETIRED, not deprecated \u2014 one label, one meaning.) The lead DECIDES planning, priority, queue curation, roadmap, canon and releases under standing authorisation; NEVER merges, gates, or takes a code lane (enforced: `merge` and `land` are refused with their reason); and PARKS licence, funding, public-vs-private, credentials, anything altering scope or authority, and destructive machine actions \u2014 those are not the aide's to decide and an absence is not a transfer of that authority. Requires a `leadId` (an unnamed lead reports the fleet as led while leaving it unled) and a `decisionLog` path, so David returns to a diff rather than a transcript. THE PRECONDITION IS MEASURED COVERAGE, NOT A CLOCK RUN: it reads `stall_check`'s own unmeasurable list \u2014 never `stall_clock_status`'s green, which cannot express its own blindness \u2014 and REFUSES when the clock would run and see nothing, unless `acknowledgeBlindFleet:true` records that the promise is being made anyway.", coordAwaySchema, gate("agentId", coordAwayTool));
268
268
  addTool("rotate", "Build a handover-to-self packet from LIVE state (git + gh), never chat memory \u2014 memory is the one source that cannot be re-derived after the reset it is meant to survive. REFUSES while the tree is dirty: uncommitted work is the one thing a packet cannot carry, and after /clear nothing can discover it existed. Jobs are an allowlist (reseed-only | phase-boundary); 'archive-done' is deliberately absent. Reports by default; write:true persists the packet.", rotateSchema, gate("agentId", rotateTool));
269
269
  addTool("rotate_reconcile", "FIRST ACT AFTER A RESEED. Re-checks every packet claim against live state and REFUSES to report ready on any divergence \u2014 a PR that merged during the reset is the dangerous direction, because the agent resumes a branch already in main and every next step is coherent and wrong. 'missionHint' is reported as UNVERIFIABLE rather than counted as reconciled.", rotateReconcileSchema, gate("agentId", rotateReconcileTool));
270
270
  addTool("subscribe", "Register for a record event: `task` (a phase checkbox newly ticked), `phase` (the last open box in a phase ticked), `item` (a queue item closed), or `pr` (a PR recorded in DONE.md). Events are DERIVED from the record and refused if the ref is not in it, so the stream can never claim something the authoritative markdown does not \u2014 but the TRIGGER is the record's COMMITTED CHANGE (`scan_record_events`), not any one verb, so a hand-edited DONE.md fires exactly like `land` does. Every offered kind has an emitter: the wire enum is generated from the emitter registry, so an unsatisfiable subscription cannot be registered. Re-subscribing returns the existing registration rather than a duplicate.", subscribeSchema, gate("agentId", subscribeTool));
@@ -325,6 +325,25 @@ async function main() {
325
325
  }
326
326
  const server = buildServer(boundAgent, { trackSession: true });
327
327
  const transport = new StdioServerTransport();
328
+ // StdioServerTransport only wires `data`/`error` on stdin — it never
329
+ // observes EOF. A client that ends the pipe (Claude Code's `/mcp`
330
+ // reconnect calls `stdin.end()` on the child) leaves this process with
331
+ // nothing listening for it, so it idles forever: measured as 25 live
332
+ // servers against 15 registered agents, one pane holding 3 generations.
333
+ // React to the session ending from EITHER direction — the read side
334
+ // closing (client done talking to us) or the write side breaking
335
+ // (client stopped listening, so a reply would EPIPE) — rather than
336
+ // waiting on the SDK client's own SIGTERM escalation to reach us.
337
+ const exitOnSessionEnd = (reason) => {
338
+ console.error(`[agent-coord-mcp] stdio session ended (${reason}) — exiting`);
339
+ process.exit(0);
340
+ };
341
+ process.stdin.on("end", () => exitOnSessionEnd("stdin end"));
342
+ process.stdin.on("close", () => exitOnSessionEnd("stdin close"));
343
+ process.stdout.on("error", (err) => {
344
+ if (err.code === "EPIPE")
345
+ exitOnSessionEnd("stdout EPIPE");
346
+ });
328
347
  await server.connect(transport);
329
348
  }
330
349
  }
@@ -378,6 +397,56 @@ async function startHttp(port) {
378
397
  // Which bound agent each session id belongs to, so a session can't be driven
379
398
  // by a *different* bearer that merely presents its id (session hijack).
380
399
  const sessionAgents = new Map();
400
+ // Session-orphan reap (docs/DECISIONS.md ADR-015 gate #2, QUEUE.md:175 part
401
+ // 2). Design history, kept because the rejected shape is as load-bearing as
402
+ // the shipped one:
403
+ //
404
+ // `transport.onclose` — the SDK's only cleanup hook — fires exclusively from
405
+ // an explicit DELETE (webStandardStreamableHttp.js, "Handles DELETE requests
406
+ // to terminate sessions"). Measured: `Client.close()` never sends one —
407
+ // `StreamableHTTPClientTransport.close()` only aborts locally, and the
408
+ // separate `terminateSession()` method that DOES send DELETE is never
409
+ // called anywhere in the generic client path (shared/protocol.js). So a
410
+ // client that reconnects the ordinary way (close + new client, the same
411
+ // shape as the stdio leak fixed one level up) orphans its session here
412
+ // forever — confirmed live: a session answered 200 after `client.close()`.
413
+ //
414
+ // FIRST DESIGN WAS IDLE-TIMEOUT, AND IT WAS WRONG — kept as the cautionary
415
+ // case, not deleted: the stdio sibling of this fix (#169) shipped the same
416
+ // shape and was HELD after a live test proved the failure mode. Killing a
417
+ // session's process out from under a still-attached client produces
418
+ // SILENT, NON-RECOVERABLE loss — no transparent respawn, confirmed by
419
+ // killing this repo's own coord-mcp subprocess and watching every
420
+ // `mcp__agent-coord__*` tool vanish with no automatic recovery. Idle is not
421
+ // abandoned: an agent can sit quiet for 128 minutes while working normally.
422
+ // A timer cannot tell those apart; it was never going to be safe as the
423
+ // sole signal, on the daemon or on stdio.
424
+ //
425
+ // WHAT ACTUALLY DISTINGUISHES ABANDONED FROM QUIET: whether a NEWER session
426
+ // for the same bound agent already exists. If it does, the OLD session's
427
+ // own client already reconnected — the exact shape measured live (a fresh
428
+ // `client.connect()` after `client.close()`) — and closing the superseded
429
+ // session costs that client nothing, because it already moved on. This
430
+ // needs no timer and no guess: `agentSessions` tracks the current session
431
+ // per bound agent, and a session that stops being current is provably
432
+ // orphaned the instant it is superseded.
433
+ //
434
+ // Unbound (TOFU/advisory) sessions have no agent identity to key
435
+ // supersession on, so they get none of this — deliberately: a mechanism
436
+ // that cannot tell "superseded" from "just another session" must not guess.
437
+ const agentSessions = new Map();
438
+ async function reapSuperseded(agentId, supersededId) {
439
+ const transport = sessions.get(supersededId);
440
+ if (!transport)
441
+ return; // already gone
442
+ console.error(`[agent-coord-mcp] reaping session ${supersededId} for agent '${agentId}' — superseded by a newer session`);
443
+ try {
444
+ await transport.close();
445
+ }
446
+ catch (err) {
447
+ console.error(`[agent-coord-mcp] reap FAILED for session ${supersededId}:`, err);
448
+ }
449
+ }
381
450
  async function makeSessionTransport(boundAgent) {
382
451
  // `let` + explicit type lets the SDK callbacks close over the binding
383
452
  // before it's assigned — they only fire after construction completes.
@@ -387,12 +456,25 @@ async function startHttp(port) {
387
456
  onsessioninitialized: (id) => {
388
457
  sessions.set(id, transport);
389
458
  sessionAgents.set(id, boundAgent);
459
+ if (boundAgent) {
460
+ const superseded = agentSessions.get(boundAgent);
461
+ agentSessions.set(boundAgent, id);
462
+ if (superseded && superseded !== id) {
463
+ reapSuperseded(boundAgent, superseded).catch((err) => console.error("[agent-coord-mcp] supersession reap threw:", err));
464
+ }
465
+ }
390
466
  },
391
467
  });
392
468
  transport.onclose = () => {
393
469
  if (transport.sessionId) {
394
470
  sessions.delete(transport.sessionId);
395
471
  sessionAgents.delete(transport.sessionId);
472
+ // Only clear the agent's CURRENT pointer if it still points here — a
473
+ // superseded session closing after its successor already claimed the
474
+ // slot must not erase the successor's own entry.
475
+ if (boundAgent && agentSessions.get(boundAgent) === transport.sessionId) {
476
+ agentSessions.delete(boundAgent);
477
+ }
396
478
  }
397
479
  };
398
480
  const server = buildServer(boundAgent);
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAmC,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,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EAAE,GAAG,CAAC,CAAC;YAC7D,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;gBACrB,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;gBACrD,GAAG,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,cAAc,WAAW,EAAE,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/E,OAAO,CAAC,KAAK,CAAC,uCAAuC,QAAQ,IAAI,IAAI,eAAe,IAAI,EAAE,CAAC,CAAC;QAC5F,IAAI,QAAQ,KAAK,WAAW,IAAI,QAAQ,KAAK,WAAW,EAAE,CAAC;YACzD,OAAO,CAAC,KAAK,CACX,uCAAuC,QAAQ,+CAA+C;gBAC5F,uFAAuF,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;IAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -1,37 +1,76 @@
1
1
  /*
2
- * `coord_away` — Phase 5 Task 4.1/4.2.
2
+ * `coord_away` — DAVID IS AWAY AND THE AIDE LEADS.
3
3
  *
4
- * WHAT THIS IS NOT: a way to hand the coordinator's judgement to someone else.
5
- * A duty officer keeps the lane MOVING while the coordinator is away; it does
6
- * not inherit the authority to decide what the lane is for. The distinction is
7
- * the whole point, so it is enforced as an ALLOWLIST rather than a denylist:
8
- * a new tool added tomorrow is refused by default, and someone must decide, in
9
- * writing, that a duty officer may call it.
4
+ * REDEFINED (David, 2026-08-30). The verb used to mean "the coordinator stepped
5
+ * out and a duty officer keeps its seat warm". That meaning is RETIRED, not
6
+ * deprecated: same skill label, one meaning. A verb with two meanings is read
7
+ * as whichever one the reader already had in mind, and the two differ on who
8
+ * holds authority the most expensive thing to be ambiguous about.
10
9
  *
11
- * A denylist would have the opposite failure every tool anyone forgets to
12
- * list is silently granted which is the same shape as an empty check rollup
13
- * scoring green (kit#125): absence read as permission.
10
+ * WHAT IT NOW MEANS: David is away, and the aide LEADS in his absence. That is
11
+ * a grant of DECISION authority, not of execution authority, and the boundary
12
+ * is the feature:
14
13
  *
15
- * ENFORCEMENT LIVES IN `addTool`, THE SINGLE PATH EVERY TOOL IS REGISTERED
16
- * THROUGH, for the reason kit#125 folded the check into the merge call: a
17
- * guard repeated at call sites is a guard someone forgets at one call site,
18
- * and the forgotten one looks identical to the guarded ones from outside.
14
+ * DECIDES planning · priority · queue curation · roadmap · canon · releases
15
+ * under standing publish authorisation.
16
+ * NEVER merges, gates, or takes a code lane. Unchanged by the grant a
17
+ * lead is not a second worker, and the aide's nevers are what keep
18
+ * the gate non-author.
19
+ * PARKS licence · funding · public-vs-private · credentials · anything
20
+ * altering scope or authority · destructive machine actions.
21
+ *
22
+ * WHY PARK RATHER THAN REFUSE-AND-FORGET: a parked decision is one David
23
+ * returns to. The whole point of leading in an absence is that the absence ends,
24
+ * and the fleet should hand back a DIFF rather than a transcript — which is why
25
+ * `decisionLog` is required to turn this on rather than being a nice-to-have.
26
+ *
27
+ * THE PRECONDITION IS MEASURED COVERAGE, NOT A RUN. Going away is a promise
28
+ * that the fleet is observed while nobody is watching, and the fleet was
29
+ * measured making that promise with a stall clock that had been stopped for
30
+ * eight hours — and then, once started, reporting `checked 3 · measurable 0`.
31
+ * "The clock ran" and "the fleet is observed" are different facts. So the
32
+ * precondition asks what the clock could actually SEE, and going away blind is
33
+ * a deliberate, recorded act rather than a silent default.
19
34
  */
20
35
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
21
36
  import path from "node:path";
22
37
  import { z } from "zod";
23
38
  import { ROOT } from "../store.js";
39
+ import { stallCheckTool } from "./stall.js";
24
40
  const awayFile = () => path.join(ROOT, "coord-away.json");
25
41
  /**
26
- * WHAT A DUTY OFFICER MAY DO: move claimed work along and report.
42
+ * WHAT THE LEAD MAY NOT DO, enforced rather than trusted to a card line.
43
+ *
44
+ * ALLOWLIST FOR THE OLD MEANING, DENYLIST FOR THIS ONE — and the asymmetry is
45
+ * deliberate rather than a relaxation. A duty officer's grant was NARROW ("keep
46
+ * claimed work moving"), so absence had to mean refusal or every unlisted tool
47
+ * was a silent grant. A lead's grant is WIDE by design: it decides planning,
48
+ * priority, curation, roadmap, canon and releases, which is most of the bus. An
49
+ * allowlist over a wide grant would have to enumerate nearly every tool, and the
50
+ * one someone forgets would refuse legitimate work in the middle of an absence —
51
+ * failing in the direction that leaves the fleet stuck with nobody to ask.
27
52
  *
28
- * Deliberately absent, each for its own reason rather than by omission:
29
- * `merge` merging is a judgement about whether work is DONE.
30
- * `register`/`join` w/ coordinator role see `secondCoordinatorRefusal`.
31
- * grow-fleet verbs — a stand-in does not get to change the fleet's shape.
32
- * CANON writes — canon outlives the absence that created the stand-in.
53
+ * What is refused is small, closed, and named for its reason: the aide's
54
+ * `never merges / never gates` rule. That rule does not widen when David leaves;
55
+ * it is load-bearing precisely because the gate must stay non-author.
33
56
  */
34
- export const DUTY_OFFICER_ALLOWLIST = ["next_unblocked", "claim", "land", "stall_check", "stall_clock_status", "post_status", "send_message", "read_messages", "status", "heartbeat", "list_work"];
57
+ export const LEAD_REFUSED = {
58
+ merge: "merging is the gate acting. The aide never gates, and leading in David's absence does not change who may — a lead that merges is an author gating its own plan.",
59
+ land: "`land` writes docs/DONE.md, which is the coordinator's file. Leading does not transfer file ownership; ask the coordinator to record it.",
60
+ };
61
+ /**
62
+ * Decisions that WAIT for David. Not refused because they are dangerous to
63
+ * execute — refused because they are not the aide's to make, and an absence is
64
+ * not a transfer of that authority.
65
+ */
66
+ export const PARKED_CATEGORIES = [
67
+ "licence",
68
+ "funding",
69
+ "public-vs-private",
70
+ "credentials",
71
+ "anything altering scope or authority",
72
+ "destructive machine actions",
73
+ ];
35
74
  export function readAway() {
36
75
  const f = awayFile();
37
76
  if (!existsSync(f))
@@ -48,75 +87,157 @@ function writeAway(state) {
48
87
  writeFileSync(awayFile(), `${JSON.stringify(state, null, 2)}\n`);
49
88
  }
50
89
  /**
51
- * The refusal a duty officer gets, or null if the call is allowed.
90
+ * The refusal the LEAD gets, or null if the call is allowed.
52
91
  *
53
- * Only the DUTY OFFICER is constrained. Everyone else's lane is unchanged:
54
- * `coord-away` is not a freeze on the project, and a worker whose tools stop
55
- * working because the coordinator stepped out would simply stop calling them.
92
+ * Only the lead is constrained, and only on the two verbs above. Everyone
93
+ * else's lane is untouched: `coord_away` is not a freeze on the project, and a
94
+ * worker whose tools stopped working because David went out would simply stop
95
+ * calling them.
56
96
  */
57
97
  export function awayRefusal(state, agentId, tool) {
58
98
  if (!agentId)
59
99
  return null;
60
- const held = Object.values(state).find((s) => s.on && s.dutyOfficerId === agentId);
100
+ const held = Object.values(state).find((s) => s.on && s.leadId === agentId);
61
101
  if (!held)
62
102
  return null;
63
- if (DUTY_OFFICER_ALLOWLIST.includes(tool))
103
+ const why = LEAD_REFUSED[tool];
104
+ if (!why)
64
105
  return null;
65
- return `'${tool}' is not on the duty-officer allowlist. You are standing in for '${held.coordinatorId}' on '${held.project}' while coord-away is ON: a duty officer keeps the lane MOVING and does not inherit the authority to decide what it is for. Allowed: ${DUTY_OFFICER_ALLOWLIST.join(", ")}. If this genuinely needs doing, it needs ${held.coordinatorId} back or David — not a wider allowlist added in the moment.`;
106
+ return (`'${tool}' is refused while you LEAD on '${held.project}' in David's absence: ${why} ` +
107
+ `Leading grants DECISION authority — planning, priority, curation, roadmap, canon, releases — not execution authority. ` +
108
+ `If this genuinely needs doing, it needs the coordinator, or David back. Record it in ${held.decisionLog} either way.`);
66
109
  }
67
110
  /**
68
- * 4.2 a SECOND coordinator may not join while the first is away.
111
+ * RETIRED WITH THE OLD MEANING. Kept as a no-op so the call site in
112
+ * `registerTool` keeps compiling and the retirement is visible where the guard
113
+ * used to be, rather than as an absence someone re-derives later.
114
+ *
115
+ * Under the old meaning the coordinator was the one away, so a second
116
+ * coordinator joining was a fleet-shape change made behind its back. Under this
117
+ * one the coordinator is present and working, and blocking a second coordinator
118
+ * while DAVID is out would refuse a legitimate handoff at exactly the moment
119
+ * nobody can approve it.
69
120
  *
70
- * Not a lock for its own sake: two coordinators is the condition under which
71
- * two GOs can be issued for one lane, and the absent one cannot see the other
72
- * arrive. The duty officer exists precisely so the seat is not empty, so a
73
- * second claimant is a fleet-shape change, which is the category `coord_away`
74
- * refuses by construction.
121
+ * RECORDED GAP, deliberately not solved here: retiring the duty-officer meaning
122
+ * leaves COORDINATOR absence uncovered. If the coordinator goes down while David
123
+ * is away, nothing covers the seat. That is a decision, not an oversight — it is
124
+ * named so the next reader finds a choice rather than a hole.
75
125
  */
76
- export function secondCoordinatorRefusal(state, agentId, roleId) {
77
- if (roleId !== "coordinator")
78
- return null;
79
- const held = Object.values(state).find((s) => s.on && s.coordinatorId !== agentId);
80
- if (!held)
81
- return null;
82
- return `coord-away is HELD on '${held.project}' by '${held.coordinatorId}' (duty officer '${held.dutyOfficerId}'). A second coordinator cannot join until it is RELEASED — two coordinators is the condition under which one lane gets two GOs, and the absent one cannot see the second arrive.`;
126
+ export function secondCoordinatorRefusal(_state, _agentId, _roleId) {
127
+ return null;
83
128
  }
84
129
  export const coordAwaySchema = {
85
130
  project: z.string().min(1),
86
131
  on: z.boolean(),
87
- coordinatorId: z.string().min(1),
88
- dutyOfficerId: z.string().optional(),
132
+ /** The agent leading in David's absence — the aide. */
133
+ leadId: z.string().optional(),
134
+ /** Repo-relative path where decisions taken during the absence are written. */
135
+ decisionLog: z.string().optional(),
89
136
  until: z.string().optional(),
137
+ /** Repo to measure stall coverage against. */
138
+ repo: z.string().optional(),
139
+ /** Turn it on knowing the fleet is unobserved. Recorded in the state. */
140
+ acknowledgeBlindFleet: z.boolean().optional(),
141
+ /** Who is calling — the lead may turn it on and release it. */
142
+ agentId: z.string().optional(),
90
143
  };
144
+ async function measureCoverage(repo) {
145
+ if (!repo)
146
+ return null;
147
+ try {
148
+ const r = (await stallCheckTool({ repo }));
149
+ if (!r?.ok)
150
+ return null;
151
+ return { checked: r.checked ?? 0, measurable: r.measurable ?? 0, blind: r.blind ?? [], at: new Date().toISOString() };
152
+ }
153
+ catch {
154
+ return null;
155
+ }
156
+ }
91
157
  export async function coordAwayTool(args) {
92
158
  const state = readAway();
93
159
  const prior = state[args.project];
94
160
  if (args.on) {
95
- // A STAND-IN WITH NO NAME IS AN EMPTY SEAT DESCRIBED AS COVERED, which is
96
- // strictly worse than a seat everyone can see is empty.
97
- if (!args.dutyOfficerId)
98
- return { ok: false, error: `coord-away ON requires a dutyOfficerId. Turning it on without naming a stand-in reports the lane as covered while leaving it uncovered.` };
99
- if (args.dutyOfficerId === args.coordinatorId)
100
- return { ok: false, error: `'${args.coordinatorId}' cannot be its own duty officer.` };
101
- if (prior?.on && prior.coordinatorId !== args.coordinatorId)
102
- return { ok: false, error: `coord-away is already HELD on '${args.project}' by '${prior.coordinatorId}'. Release it first.` };
103
- state[args.project] = { on: true, project: args.project, coordinatorId: args.coordinatorId, dutyOfficerId: args.dutyOfficerId, until: args.until, at: new Date().toISOString() };
161
+ // A LEAD WITH NO NAME IS AN ABSENCE DESCRIBED AS COVERED, which is strictly
162
+ // worse than an absence everyone can see is uncovered.
163
+ if (!args.leadId) {
164
+ return { ok: false, error: `coord-away ON requires a leadId — the agent leading in David's absence. Turning it on without naming one reports the fleet as led while leaving it unled.` };
165
+ }
166
+ if (!args.decisionLog) {
167
+ return {
168
+ ok: false,
169
+ error: `coord-away ON requires a decisionLog path. The point of leading through an absence is that the absence ENDS: ` +
170
+ `David should return to a diff he can read, not a transcript he has to reconstruct. A log promised at the start ` +
171
+ `and written at the end is a log nobody wrote.`,
172
+ };
173
+ }
174
+ if (prior?.on) {
175
+ return { ok: false, error: `coord-away is already ON for '${args.project}' — '${prior.leadId}' leads since ${prior.at}. Release it before re-arming.` };
176
+ }
177
+ // THE PRECONDITION: what could the clock actually SEE?
178
+ const coverage = await measureCoverage(args.repo);
179
+ if (!coverage) {
180
+ return {
181
+ ok: false,
182
+ error: `cannot measure stall coverage for '${args.project}'${args.repo ? "" : " — pass 'repo'"}. ` +
183
+ `Going away is a promise that the fleet is watched while nobody is watching, and an UNMEASURED promise ` +
184
+ `is the one this verb exists to stop making. Fix the measurement, or pass acknowledgeBlindFleet:true to ` +
185
+ `record that the promise is being made anyway.`,
186
+ };
187
+ }
188
+ // `checked > 0` MATTERS: an empty board is an IDLE fleet, not a blind one.
189
+ // Without it, arming while nothing is in flight refuses with "the clock
190
+ // covers 0 of 0" — a refusal that reads as a fleet nobody can see when in
191
+ // fact there is nothing to see, and the only way past it would be to
192
+ // acknowledge a blindness that does not exist.
193
+ if (coverage.checked > 0 && coverage.measurable === 0 && !args.acknowledgeBlindFleet) {
194
+ return {
195
+ ok: false,
196
+ error: `REFUSING: the stall clock covers ${coverage.measurable} of ${coverage.checked} in-flight row(s). ` +
197
+ `It would RUN and see nothing${coverage.blind.length ? ` — blind on: ${coverage.blind.join(", ")}` : ""}. ` +
198
+ `"The clock ran" and "the fleet is observed" are different facts, and this verb must not treat the first as the second. ` +
199
+ `The usual cause is a board 'Branch · Worktree' cell holding a PATH rather than a branch ref: a path resolves for ` +
200
+ `git and measures the wrong thing, so the check reports it unmeasurable rather than guessing. Fix those cells and ` +
201
+ `coverage returns. If you mean to go anyway, pass acknowledgeBlindFleet:true — it is recorded in the state and in the announcement.`,
202
+ };
203
+ }
204
+ state[args.project] = {
205
+ on: true,
206
+ project: args.project,
207
+ away: "david",
208
+ leadId: args.leadId,
209
+ until: args.until,
210
+ at: new Date().toISOString(),
211
+ decisionLog: args.decisionLog,
212
+ coverage,
213
+ ...(coverage.checked > 0 && coverage.measurable === 0 ? { blindAcknowledged: true } : {}),
214
+ };
104
215
  writeAway(state);
105
216
  return {
106
217
  ok: true,
107
218
  state: state[args.project],
108
- allowlist: DUTY_OFFICER_ALLOWLIST,
109
- announce: `AGENT_ACTION: coord-away ON — '${args.coordinatorId}' away${args.until ? ` until ${args.until}` : ""}; '${args.dutyOfficerId}' is duty officer, limited to: ${DUTY_OFFICER_ALLOWLIST.join(", ")}. A second coordinator cannot join until released.`,
219
+ refused: LEAD_REFUSED,
220
+ parked: PARKED_CATEGORIES,
221
+ announce: `AGENT_ACTION: coord-away ON — David is away${args.until ? ` until ${args.until}` : ""}; '${args.leadId}' LEADS. ` +
222
+ `Decides: planning · priority · curation · roadmap · canon · releases under standing authorisation. ` +
223
+ `Never: merges, gates, or takes a code lane. Parks for David: ${PARKED_CATEGORIES.join(" · ")}. ` +
224
+ `Decisions logged to ${args.decisionLog}. ` +
225
+ `Stall coverage ${coverage.measurable}/${coverage.checked}${coverage.checked > 0 && coverage.measurable === 0 ? " — ACKNOWLEDGED BLIND: the clock runs and sees nothing" : ""}.`,
110
226
  };
111
227
  }
112
- // RELEASE IS THE COORDINATOR'S. A duty officer releasing its own limits is
113
- // the limit not existing — the one call it must not be able to make.
114
228
  if (!prior?.on)
115
229
  return { ok: false, error: `coord-away is not on for '${args.project}' — nothing to release.` };
116
- if (prior.coordinatorId !== args.coordinatorId)
117
- return { ok: false, error: `coord-away on '${args.project}' is held by '${prior.coordinatorId}' and only they can release it. A stand-in that can lift its own limits does not have any.` };
230
+ // RELEASE IS OBSERVING THAT DAVID IS BACK, not lifting a limit on yourself —
231
+ // which is why the lead may do it and a duty officer could not. The parked
232
+ // decisions are NOT unparked by it: they were never the lead's to make, and
233
+ // release does not retroactively authorise one.
118
234
  state[args.project] = { ...prior, on: false, at: new Date().toISOString() };
119
235
  writeAway(state);
120
- return { ok: true, state: state[args.project], announce: `AGENT_ACTION: coord-away RELEASED on '${args.project}' — '${prior.coordinatorId}' is back; '${prior.dutyOfficerId}' stands down.` };
236
+ return {
237
+ ok: true,
238
+ state: state[args.project],
239
+ announce: `AGENT_ACTION: coord-away RELEASED on '${args.project}' — David is back; '${prior.leadId}' stands down as lead. ` +
240
+ `Anything parked during the absence is still parked: release does not authorise it. Decisions taken: ${prior.decisionLog}.`,
241
+ };
121
242
  }
122
243
  //# sourceMappingURL=away.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"away.js","sourceRoot":"","sources":["../../src/tools/away.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;AAE1D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAU,CAAC;AAI5M,MAAM,UAAU,QAAQ;IACtB,MAAM,CAAC,GAAG,QAAQ,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IAC9B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAA8B,CAAC;IAC1E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,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