spur-board 0.171.2 → 0.171.3

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/daemon.mjs CHANGED
@@ -19186,6 +19186,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19186
19186
  const tasks = await trx.selectFrom("task").selectAll().where("membership", "!=", "archived").execute();
19187
19187
  const taskById = new Map(tasks.map((task) => [task.id, task]));
19188
19188
  const endedHolders = await endedTurnItems(trx, taskById, candidates, new Date(now), sourceById.get("spur")?.last_complete_at ?? null);
19189
+ const confirmedIssueMisses = /* @__PURE__ */ new Map();
19189
19190
  const misses = await trx.selectFrom("source_miss").selectAll().execute();
19190
19191
  for (const miss of misses) {
19191
19192
  if (miss.gone !== 1) continue;
@@ -19213,6 +19214,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19213
19214
  continue;
19214
19215
  }
19215
19216
  if (ref.kind !== "ticket") continue;
19217
+ if (miss.confirmed_missing_at !== null) confirmedIssueMisses.set(miss.ref_key, miss.confirmed_missing_at);
19216
19218
  const task = tasks.find((entry) => entry.key === ref.key);
19217
19219
  if (task === void 0) continue;
19218
19220
  candidates.push({
@@ -19294,19 +19296,21 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19294
19296
  "pr_snapshot.state",
19295
19297
  "pr_snapshot.source",
19296
19298
  "pr_snapshot.observed_at",
19299
+ "pr_snapshot.merged_seen_at",
19297
19300
  "pr_snapshot.detail"
19298
19301
  ]).where("link.entity", "=", "pr").where("link.banned", "=", 0).where(pastReopenFloor).execute();
19299
- const tickets = await trx.selectFrom("ticket_snapshot").select([
19302
+ const tickets = new Map((await trx.selectFrom("ticket_snapshot").select([
19300
19303
  "task_id",
19301
19304
  "status",
19302
19305
  "detail",
19303
19306
  "source",
19304
- "observed_at"
19305
- ]).execute();
19307
+ "observed_at",
19308
+ "last_read_at"
19309
+ ]).execute()).map((ticket) => [ticket.task_id, ticket]));
19306
19310
  const taskPrs = {};
19307
19311
  for (const task of tasks) {
19308
19312
  const project = config.projects.find((entry) => entry.id === task.project);
19309
- const ticket = tickets.find((entry) => entry.task_id === task.id);
19313
+ const ticket = tickets.get(task.id);
19310
19314
  taskPrs[String(task.id)] = {
19311
19315
  hasOpenPr: false,
19312
19316
  hasMergedPr: false,
@@ -19319,6 +19323,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19319
19323
  return facts === null ? NaN : Date.parse(facts.closedAt ?? facts.updatedAt);
19320
19324
  };
19321
19325
  const mergedAt = /* @__PURE__ */ new Map();
19326
+ const mergedSeenAt = /* @__PURE__ */ new Map();
19322
19327
  const newestMerge = /* @__PURE__ */ new Map();
19323
19328
  const judged = /* @__PURE__ */ new Map();
19324
19329
  const mergedByTask = /* @__PURE__ */ new Map();
@@ -19327,6 +19332,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19327
19332
  if (state === void 0) continue;
19328
19333
  if (pr.state === "open") state.hasOpenPr = true;
19329
19334
  if (pr.state !== "merged") continue;
19335
+ mergedSeenAt.set(pr.task_id, latest$1([mergedSeenAt.get(pr.task_id), pr.merged_seen_at]));
19330
19336
  const facts = parsePr(pr.detail ?? void 0);
19331
19337
  const at = facts === null ? null : facts.mergedAt ?? facts.updatedAt;
19332
19338
  const newest = mergedAt.get(pr.task_id) ?? null;
@@ -19368,7 +19374,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19368
19374
  const closedAt = Math.max(...closed.map((pr) => pr.closedAt));
19369
19375
  const key = `pr-closed:${String(task.id)}`;
19370
19376
  const project = config.projects.find((entry) => entry.id === task.project);
19371
- if (Number.isFinite(mergedSince) && project !== void 0 && !seenOpenSince(project, config, tickets.find((entry) => entry.task_id === task.id), task.manual_include === 1, mergedSince) || state.prCompleteAt === null || !(state.prCompleteAt >= closedAt)) {
19377
+ if (Number.isFinite(mergedSince) && project !== void 0 && !seenOpenSince(project, config, tickets.get(task.id), task.manual_include === 1, mergedSince) || state.prCompleteAt === null || !(state.prCompleteAt >= closedAt)) {
19372
19378
  prClosed.set(task.id, {
19373
19379
  held: true,
19374
19380
  key
@@ -19398,7 +19404,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19398
19404
  const task = taskById.get(taskId);
19399
19405
  if (state === void 0 || task === void 0) continue;
19400
19406
  const project = config.projects.find((entry) => entry.id === task.project);
19401
- const ticket = tickets.find((entry) => entry.task_id === taskId);
19407
+ const ticket = tickets.get(taskId);
19402
19408
  const storedMerge = latest$1([facts?.mergedAt, newestMerge.get(taskId)]);
19403
19409
  const judgement = facts === null || project === void 0 ? "unconfirmed" : mergedTicket(project, config, ticket, task.manual_include === 1, {
19404
19410
  ...facts,
@@ -19424,7 +19430,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19424
19430
  for (const task of tasks) {
19425
19431
  const state = taskPrs[String(task.id)];
19426
19432
  const project = config.projects.find((entry) => entry.id === task.project);
19427
- const ticket = tickets.find((entry) => entry.task_id === task.id);
19433
+ const ticket = tickets.get(task.id);
19428
19434
  const closedWhileLive = state !== void 0 && project !== void 0 && ticket !== void 0 && ticketDone(project, ticket.status) && (state.hasOpenPr || liveSessionTasks.has(String(task.id))) && !state.hasMergedPr && !prs.some((pr) => pr.task_id === task.id && pr.state === "merged");
19429
19435
  if (task.membership === "out_of_filter" && !closedWhileLive) candidates.push({
19430
19436
  key: `filter:${String(task.id)}`,
@@ -19598,7 +19604,7 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19598
19604
  value: toJson(episodeSchema, health.episode)
19599
19605
  }).onConflict((oc) => oc.column("key").doUpdateSet({ value: toJson(episodeSchema, health.episode) })).execute();
19600
19606
  const resting = await restingHolders(trx, config, now);
19601
- const restingIdle = (flag) => flag.kind === "worker_idle" && resting.has(`${flag.taskId}:${flag.sessionId}`);
19607
+ const skipIdle = (task, flag) => flag.kind === "worker_idle" && (task.column === "done" || resting.has(`${flag.taskId}:${flag.sessionId}`));
19602
19608
  const turnTasks = new Set(turns.map((turn) => turn.task_id));
19603
19609
  const latestDoneTurns = new Map((await trx.selectFrom("turn").innerJoin("task", "task.id", "turn.task_id").select([
19604
19610
  "turn.task_id",
@@ -19616,9 +19622,20 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19616
19622
  const stoppedInDone = new Set(subjects.filter((subject) => subject.role === "worker" && subject.lifecycle === "stopped" && subject.endedAt === null && addressed.has(`${subject.taskId}:${subject.id}`)).map((subject) => `${subject.taskId}:${subject.id}`));
19617
19623
  const stoppedRetained = (flag) => ["stuck_worker", "needs_input"].includes(flag.kind) && stoppedInDone.has(`${flag.taskId}:${flag.sessionId}`);
19618
19624
  for (const flag of health.flags) {
19619
- if (endedHolders.has(`${flag.taskId}:${flag.sessionId}`) || restingIdle(flag) || stoppedRetained(flag)) continue;
19620
19625
  const task = taskById.get(Number(flag.taskId));
19621
- if (task === void 0) continue;
19626
+ if (task === void 0 || endedHolders.has(`${flag.taskId}:${flag.sessionId}`) || skipIdle(task, flag) || stoppedRetained(flag)) continue;
19627
+ if (flag.kind === "worker_idle" && task.tracker_kind === "github-issues") {
19628
+ const merged = mergedSeenAt.get(task.id);
19629
+ if (merged != null && now < Date.parse(merged) + 2 * config.adapters.githubIssues.intervalMs) {
19630
+ const project = config.projects.find((entry) => entry.id === task.project);
19631
+ const miss = project === void 0 ? void 0 : confirmedIssueMisses.get(`ticket:${trackerSourceId(project)}:${task.tracker_id ?? task.key}`);
19632
+ const checked = latest$1([tickets.get(task.id)?.last_read_at, miss]);
19633
+ if (checked === null || Date.parse(checked) <= Date.parse(merged)) {
19634
+ heldKeys.push(healthKey(task.id, flag));
19635
+ continue;
19636
+ }
19637
+ }
19638
+ }
19622
19639
  const fact = subjects.find((subject) => subject.taskId === flag.taskId && subject.id === flag.sessionId);
19623
19640
  if ([
19624
19641
  "stuck_worker",
@@ -19677,9 +19694,9 @@ async function reconcileItems(trx, config, now, spurComplete, warnSkipped, spurC
19677
19694
  const ordered = orderItems(candidates);
19678
19695
  const seen = /* @__PURE__ */ new Set([...ordered.map((item) => item.key), ...heldKeys]);
19679
19696
  for (const flag of health.held) {
19680
- if (endedHolders.has(`${flag.taskId}:${flag.sessionId}`) || restingIdle(flag) || stoppedRetained(flag)) continue;
19681
19697
  const task = taskById.get(Number(flag.taskId));
19682
- if (task !== void 0 && !stalled.has(`${flag.taskId}:${flag.sessionId}`)) seen.add(healthKey(task.id, flag));
19698
+ if (task === void 0 || endedHolders.has(`${flag.taskId}:${flag.sessionId}`) || skipIdle(task, flag) || stoppedRetained(flag)) continue;
19699
+ if (!stalled.has(`${flag.taskId}:${flag.sessionId}`)) seen.add(healthKey(task.id, flag));
19683
19700
  }
19684
19701
  const existing = await trx.selectFrom("operator_item").selectAll().where("kind", "in", RECONCILED_KINDS).where("cleared_at", "is", null).execute();
19685
19702
  const stillInError = new Set(health.hostLoad === null ? [] : subjects.filter((subject) => subject.endedAt === null && subject.health === "error" && subject.role !== "other" && !stalled.has(`${subject.taskId}:${subject.id}`) && !stoppedInDone.has(`${subject.taskId}:${subject.id}`)).map((subject) => healthKey(Number(subject.taskId), {
@@ -25535,13 +25552,15 @@ async function ticket(trx, config, fact, at, source) {
25535
25552
  assignee: fact.assignee,
25536
25553
  detail: toJson(ticketFactsSchema, fact),
25537
25554
  source,
25538
- observed_at: at
25555
+ observed_at: at,
25556
+ last_read_at: at
25539
25557
  }).onConflict((oc) => oc.column("task_id").doUpdateSet({
25540
25558
  status: fact.status,
25541
25559
  assignee: fact.assignee,
25542
25560
  detail: toJson(ticketFactsSchema, fact),
25543
25561
  source,
25544
- observed_at: at
25562
+ observed_at: at,
25563
+ last_read_at: at
25545
25564
  })).execute();
25546
25565
  if (previousFact === null || comparableFacts(previousFact, "updatedAt") !== comparableFacts(fact, "updatedAt")) {
25547
25566
  if (previousFact?.status !== fact.status) {
@@ -25577,7 +25596,7 @@ function comparableFacts(facts, timestamp) {
25577
25596
  * counted check's run (`countedChecks`, by name and completion time) with the checks unchanged
25578
25597
  * still writes one, with `from` equal to `to`.
25579
25598
  */
25580
- async function pr(trx, config, fact, at, source, scheduled, reviewRule) {
25599
+ async function pr(trx, config, fact, at, acceptedAt, source, scheduled, reviewRule) {
25581
25600
  await trx.deleteFrom("source_miss").where("source", "=", source).where("ref_key", "=", refKey({
25582
25601
  kind: "pr",
25583
25602
  repo: fact.repo,
@@ -25585,6 +25604,7 @@ async function pr(trx, config, fact, at, source, scheduled, reviewRule) {
25585
25604
  })).execute();
25586
25605
  const old = await trx.selectFrom("pr_snapshot").selectAll().where(sql`lower(repo) = ${fact.repo.toLowerCase()}`).where("number", "=", fact.number).executeTakeFirst();
25587
25606
  const previous = old === void 0 ? null : parseJson(prFactsSchema, old.detail);
25607
+ const mergedSeenAt = fact.state !== "merged" ? null : old?.state === "merged" ? old.merged_seen_at : acceptedAt;
25588
25608
  const recheckAt = fact.state === "closed" ? new Date(Date.parse(at) + 216e5).toISOString() : null;
25589
25609
  if (old !== void 0 && previous !== null && old.source !== source) await savePrPolling(trx, old.source, previous, old.closed_recheck_at, true);
25590
25610
  await savePrPolling(trx, source, fact, recheckAt);
@@ -25601,9 +25621,11 @@ async function pr(trx, config, fact, at, source, scheduled, reviewRule) {
25601
25621
  detail: toJson(prFactsSchema, fact),
25602
25622
  source,
25603
25623
  observed_at: at,
25604
- closed_recheck_at: recheckAt
25624
+ closed_recheck_at: recheckAt,
25625
+ merged_seen_at: mergedSeenAt
25605
25626
  }).onConflict((oc) => oc.columns(["repo", "number"]).doUpdateSet({
25606
25627
  closed_recheck_at: recheckAt,
25628
+ merged_seen_at: mergedSeenAt,
25607
25629
  head_sha: fact.headSha,
25608
25630
  head_branch: fact.headBranch,
25609
25631
  state: fact.state,
@@ -26062,7 +26084,9 @@ function createObservationCore(deps) {
26062
26084
  async observe(source, observation) {
26063
26085
  const { batch } = observation;
26064
26086
  const now = clock.now();
26087
+ let acceptedAt;
26065
26088
  await transact(async (trx) => {
26089
+ acceptedAt ??= new Date(clock.now()).toISOString();
26066
26090
  const wasBlind = await blindReason(trx, source);
26067
26091
  const previousSpur = source === "spur" ? await trx.selectFrom("source_state").select("last_complete_at").where("source", "=", source).executeTakeFirst() : void 0;
26068
26092
  const spurGap = previousSpur?.last_complete_at != null && Date.parse(batch.observedAt) > Date.parse(previousSpur.last_complete_at) + config.adapters.spur.intervalMs * config.thresholds.staleMultiplier;
@@ -26087,19 +26111,25 @@ function createObservationCore(deps) {
26087
26111
  }, recheckAt);
26088
26112
  await trx.updateTable("pr_snapshot").set({ closed_recheck_at: recheckAt }).where("source", "=", source).where(sql`lower(repo) = ${probe.ref.repo.toLowerCase()}`).where("number", "=", probe.ref.number).where("state", "=", "closed").execute();
26089
26113
  }
26114
+ const project = config.projects.find((entry) => trackerSourceId(entry) === source);
26090
26115
  for (const outcome of observation.outcomes) {
26091
- const answer = batch.entities.find((entity) => refKey(entity.ref) === refKey(outcome.ref));
26116
+ const ref = outcome.ref;
26117
+ const answer = batch.entities.find((entity) => refKey(entity.ref) === refKey(ref));
26118
+ const confirmedMissingAt = project?.tracker.type === "github-issues" && ref.kind === "ticket" && ref.trackerId === source && batch.complete && outcome.gone && answer?.status === "not_found" ? batch.observedAt : null;
26092
26119
  await trx.insertInto("source_miss").values({
26093
26120
  source,
26094
- ref_key: refKey(outcome.ref),
26095
- ref: toJson(entityRefSchema, outcome.ref),
26121
+ ref_key: refKey(ref),
26122
+ ref: toJson(entityRefSchema, ref),
26096
26123
  misses: outcome.misses,
26097
26124
  gone: outcome.gone ? 1 : 0,
26098
- outcome: answer?.status ?? null
26125
+ outcome: answer?.status ?? null,
26126
+ confirmed_missing_at: confirmedMissingAt
26099
26127
  }).onConflict((oc) => oc.columns(["source", "ref_key"]).doUpdateSet({
26100
26128
  misses: outcome.misses,
26101
26129
  gone: outcome.gone ? 1 : 0,
26102
- outcome: answer?.status ?? null
26130
+ outcome: answer?.status ?? null,
26131
+ ...answer?.status === "ok" && { confirmed_missing_at: null },
26132
+ ...confirmedMissingAt !== null && { confirmed_missing_at: sql`max(coalesce(source_miss.confirmed_missing_at, ${confirmedMissingAt}), ${confirmedMissingAt})` }
26103
26133
  })).execute();
26104
26134
  }
26105
26135
  const branchCounts = /* @__PURE__ */ new Map();
@@ -26112,7 +26142,7 @@ function createObservationCore(deps) {
26112
26142
  const confirmedCancels = [];
26113
26143
  for (const item of orderedItems) if (item.kind === "ticket") await ticket(trx, config, item.facts, batch.observedAt, source);
26114
26144
  else if (item.kind === "pr") {
26115
- if (await pr(trx, config, item.facts, batch.observedAt, source, observation.effectiveComplete, item.reviewRule)) confirmedCancels.push(item.facts);
26145
+ if (await pr(trx, config, item.facts, batch.observedAt, acceptedAt, source, observation.effectiveComplete, item.reviewRule)) confirmedCancels.push(item.facts);
26116
26146
  await holdContinuation(trx, source, item);
26117
26147
  await recordApprovalPairs(trx, item.facts, item.approvalPairs);
26118
26148
  } else await session(trx, config, item.facts, batch.observedAt, source, ambiguous, batch.sessionTransitions !== void 0);
@@ -26143,7 +26173,6 @@ function createObservationCore(deps) {
26143
26173
  }
26144
26174
  if (observation.effectiveComplete) await trx.updateTable("session_snapshot").set({ absent_since: batch.observedAt }).where("source", "=", source).where("absent_since", "is", null).where("last_seen", "<", batch.observedAt).execute();
26145
26175
  if (observation.effectiveComplete) {
26146
- const project = config.projects.find((entry) => trackerSourceId(entry) === source);
26147
26176
  if (project !== void 0) {
26148
26177
  const seen = new Set(batch.items.flatMap((item) => item.kind === "ticket" && item.facts.inFilter ? [item.facts.id] : []));
26149
26178
  const unresolved = new Set(batch.entities.flatMap((entity) => entity.ref.kind === "ticket" && entity.status !== "ok" && !observation.outcomes.some((outcome) => refKey(outcome.ref) === refKey(entity.ref) && outcome.gone) ? [entity.ref.id ?? entity.ref.key] : []));
@@ -0,0 +1,3 @@
1
+ -- Poll start times can predate accepting a merge, and inferred absence is not a ticket read.
2
+ ALTER TABLE pr_snapshot ADD COLUMN merged_seen_at TEXT;
3
+ ALTER TABLE ticket_snapshot ADD COLUMN last_read_at TEXT;
@@ -0,0 +1 @@
1
+ ALTER TABLE source_miss ADD COLUMN confirmed_missing_at TEXT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.171.2",
3
+ "version": "0.171.3",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"
@@ -25,6 +25,13 @@ Reopening a ticket finished without a PR returns the task to To Do.
25
25
 
26
26
  ## Merged PR alerts
27
27
 
28
+ When the Board first observes a linked PR as merged on a GitHub Issue task, it waits to raise a
29
+ new worker idle alert. The usual idle rules resume once a poll started after that observation
30
+ reads the issue or confirms it is missing, or after two GitHub Issues poll intervals have elapsed
31
+ since the observation, whichever comes first. An existing idle alert can stay open during the wait.
32
+ Entering Done clears any worker idle alert, even while the wrap-up turn is open. PRs already
33
+ recorded as merged at upgrade keep their prior idle alert timing.
34
+
28
35
  An agent holding the current open non-Done turn raises an `ended-turn:` item (`worker_ended`) when
29
36
  it ends, whatever its PRs; it has no `health:` item (see the [inbox](how-board-works-inbox.md)).
30
37
  Without a turn, a worker that completed, was killed or vanished raises its `health:` item
@@ -24,8 +24,8 @@ Kinds of [operator inbox](how-board-works-blocks.md#operator-inbox) entries: wha
24
24
  | `board_observation` `operator-block:` | a block waits for you | not listed: shown as its block | attention | the block closes, also via Close on its feed line | stored target |
25
25
  | `board_observation` `block:` | a block waits for its addressee | answer `B<n>` if it is a question, or close it with a reason; listed only when the block is not addressed to you; otherwise shown as its block | attention | the block closes | stored target |
26
26
  | `board_observation` `filter:` | the ticket left the tracker filter but work is live | return the ticket to the filter, or finish or unlink the linked work (`board unlink <task> --pr <pr> --reason <reason>`) | attention | the ticket is back in the filter or no linked open PR or live session is left | stored target |
27
- | `board_observation` `health:` | a session health flag | check session `<session>` in Spur; a vanished worker: start a new one or archive the task | attention | the flag ends; for a vanished worker also when the ticket is done | stored target |
28
- | `board_observation` `no-session:` | a named-orchestrator column's untaken turns have no live session to ring for its `noRecipientAfterMs` (default 10 min), timed from the later of the ring and the first end, absence or finished state (stopped, killed, errored, completed) of the last recipient session of the column's Spur project or the task's linked orchestrator; one item per project and column, on the oldest waiting turn's task, with the waiting count and minutes without a live session; doctor check `orchestrator.sessions` also warns `no live session` | start a session in Spur project `<spur>`, or take over its turns with an inbox ack | attention | a live session appears or the turns are taken or closed; a later full-length gap raises it again; once closed, it stays closed while the same oldest turn waits | stored target |
27
+ | `board_observation` `health:` | health flag. A newly observed merge can defer new idle alerts. Open alerts can remain. [Timing](how-board-works-done.md#merged-pr-alerts) | check Spur; replace a vanished worker or archive the task | attention | flag ends, vanished worker's ticket is done, or idle task enters Done | stored target |
28
+ | `board_observation` `no-session:` | untaken turns in a named-orchestrator column have no recipient for `noRecipientAfterMs` (default 10 min), measured from the later of the ring and when the last eligible recipient became unavailable. Recipients include the column's Spur project sessions and linked orchestrators. One item per project and column on the oldest waiting turn's task, with the count and minutes without a live session. Doctor's `orchestrator.sessions` warns `no live session` | start a session in `<spur>` or ack its turns | attention | a recipient appears or the turns are taken or closed. A later full gap raises it again. Closing it holds while the same oldest turn waits | stored target |
29
29
  | `board_observation` `review-rule:` | under `github-rules`, an External Review task whose head GitHub left undecided 30 min (unknown or behind merge state, unreadable rule), or blocks with every thread resolved, approval in place, no reviewer awaited, column unbound (at once; threads return it to Dev); one per task, PR, head stretch, naming the cause, raw `mergeStateStatus`, `mergeable`, `reviewDecision` (undecided: first raise per cause; blocked: current). Undecided time elsewhere counts; a closed item stays closed in its stretch until its text (not raw values) changes. Drafts, conflicts, changes requested (GitHub's too), unmet required checks have own reasons; `awaiting_required_reviewers` waits (set `quietAfterMs`) | check the PR and rules: update the branch, let the token read rules or wait, then close it | attention | the head is decided otherwise, gets its own reason or is replaced, or the task leaves | stored target |
30
30
  | `board_observation` `external-quiet:` | a task with an open PR sat in External Review past its `quietAfterMs` with no new external review round; held while GitHub is blind or stale | request a new external review round or approve the PR by hand | attention | a new external review or head, or the task leaves | stored target |
31
31
  | `worker_ended` | an agent holding the current open non-Done turn ended for any reason, PRs or links aside; also a killed worker without a PR whose ticket is not done; a new item posts a feed line with Close; each complete Spur poll moves its fact time | start a new worker or archive the task; an operator turn: retake it (`board inbox ack`) | attention | the turn closes, its holder changes, the task leaves the column visit or is archived; a turnless worker: the health flag ends or the ticket is done | stored target |