@tablation/crew 0.164.2 → 0.164.4

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/cli.js CHANGED
@@ -10345,13 +10345,15 @@ var Tracker = class _Tracker {
10345
10345
  *
10346
10346
  * `ticketRecordId` is the ticket's own row id (`Ticket.id`), not its
10347
10347
  * `issue_id` label — the field it fills is a Reference, not text.
10348
- * Omitted (as on the idle transition) leaves the column alone, so it
10349
- * keeps reading as "current/last issue" rather than clearing to blank
10350
- * the moment a run ends.
10348
+ * An idle seat has no current issue (CREW-3689): the idle write clears
10349
+ * the column in the same patch, so a stale pointer never reads as a stuck
10350
+ * seat. The last ticket a seat worked stays in the agent log. A working
10351
+ * write with no id leaves the column alone.
10351
10352
  */
10352
10353
  async setCrewStatus(memberId, status2, ticketRecordId) {
10353
10354
  const patch2 = { status: status2, status_updated_at: (/* @__PURE__ */ new Date()).toISOString() };
10354
- if (ticketRecordId !== void 0) patch2.current_issue_id = ticketRecordId;
10355
+ if (status2 === "idle") patch2.current_issue_id = null;
10356
+ else if (ticketRecordId !== void 0) patch2.current_issue_id = ticketRecordId;
10355
10357
  await this.client.records.update(this.models.crew, memberId, patch2);
10356
10358
  }
10357
10359
  /**
@@ -15881,6 +15883,27 @@ async function settleRunEnd(o) {
15881
15883
  emit.warn(`could not beat ship idle: ${e.message}`, { step: "agent" });
15882
15884
  }
15883
15885
  }
15886
+ function staleIdleSeats(route2, crewRows, runs) {
15887
+ const slug2 = routeSlug(route2.route);
15888
+ const out = [];
15889
+ for (const [role, memberId] of Object.entries(route2.resolved?.seats ?? {})) {
15890
+ if (!memberId) continue;
15891
+ const row = crewRows.find((r) => r.id === memberId);
15892
+ if (!row?.current_issue_id || row.status === "working") continue;
15893
+ if (runs.some((r) => r.role === role && r.route === slug2)) continue;
15894
+ out.push({ role, memberId });
15895
+ }
15896
+ return out;
15897
+ }
15898
+ async function clearStaleIdleSeats(tracker, route2, crewRows, runs, emit) {
15899
+ for (const s of staleIdleSeats(route2, crewRows, runs)) {
15900
+ try {
15901
+ await tracker.setCrewStatus(s.memberId, "idle");
15902
+ } catch (e) {
15903
+ emit.warn(`could not clear ${s.role} seat's current issue: ${e.message}`, { step: "poll" });
15904
+ }
15905
+ }
15906
+ }
15884
15907
  function pidAlive2(pid) {
15885
15908
  try {
15886
15909
  process.kill(pid, 0);
@@ -20169,6 +20192,7 @@ async function decideCycle(o) {
20169
20192
  tracker.crewRows(),
20170
20193
  optional("project work modes", tracker.projectWorkModes(), /* @__PURE__ */ new Map())
20171
20194
  ]);
20195
+ await clearStaleIdleSeats(tracker, route2, crewRows, liveRuns(state.dir), emit);
20172
20196
  const scopeHolds = new Set(holdIds(buildRoster(configuredMembers(route2), crewRows)));
20173
20197
  const scope = {
20174
20198
  modes: projectModes,
@@ -20238,9 +20262,9 @@ async function decideCycle(o) {
20238
20262
  data: { sweepSkipped: skipped }
20239
20263
  });
20240
20264
  }
20241
- const blockedIssues = tickets.filter((t) => blocked.has(t.id)).map((t) => t.issue_id);
20265
+ const blockedIssues = tickets.filter((t) => blocked.has(t.id)).map(displayKey);
20242
20266
  emit.note(`${blockedIssues.length} ticket(s) parked as blocked`, { data: { blocked: blockedIssues } });
20243
- const qaHeld = tickets.filter((t) => t.status === tracker.contract.statuses.verifying).map((t) => t.issue_id);
20267
+ const qaHeld = tickets.filter((t) => t.status === tracker.contract.statuses.verifying).map(displayKey);
20244
20268
  emit.note(`${qaHeld.length} ticket(s) held in QA`, { data: { qaHeld } });
20245
20269
  const stranded = strandedNeedsInfo(tickets, blocked, holds2);
20246
20270
  for (const t of stranded) {
@@ -20279,7 +20303,7 @@ async function decideCycle(o) {
20279
20303
  (added.length ? emit.emit : emit.note).call(
20280
20304
  emit,
20281
20305
  `${unroutableTickets.length} open ticket(s) have no repository and are not routable (${added.length} new since last cycle)`,
20282
- { step: "sweep", data: { unroutable: unroutableTickets.map((t) => t.issue_id), newUnroutable: added.map((a) => a.ticket.issue_id) } }
20306
+ { step: "sweep", data: { unroutable: unroutableTickets.map(displayKey), newUnroutable: added.map((a) => displayKey(a.ticket)) } }
20283
20307
  );
20284
20308
  }
20285
20309
  const attentionCurrent = {};
@@ -20386,7 +20410,7 @@ function otherRunsRemoved(tickets, own) {
20386
20410
  return tickets.filter((t) => t.id === own.ticket.id || !own.inFlight(t.id));
20387
20411
  }
20388
20412
  function ownRunBanner(own) {
20389
- const banner = `**Your ticket for this run: ${own.ticket.issue_id}.** Work this one. Any other ticket a live run on this ship is already working has been left out of this digest: it belongs to that run.`;
20413
+ const banner = `**Your ticket for this run: ${own.ticket.issue_tag ?? own.ticket.issue_id}.** Work this one. Any other ticket a live run on this ship is already working has been left out of this digest: it belongs to that run.`;
20390
20414
  const block = acceptanceChecklistBlock(acceptanceLines(own.ticket.description));
20391
20415
  const withBlock = block ? `${banner}
20392
20416
 
@@ -20540,6 +20564,10 @@ async function stampResumption(tracker, t, affinity) {
20540
20564
  }
20541
20565
  return { outcome: "unknown" };
20542
20566
  }
20567
+ function namesOf(ids, tickets) {
20568
+ const byId = new Map(tickets.map((t) => [t.issue_id, displayKey(t)]));
20569
+ return ids.map((id) => byId.get(id) ?? id).join(", ");
20570
+ }
20543
20571
  async function resolveTopCandidate(tracker, candidates2, seat, approvedStatus, buildingStatus, isServable, affinity, ticketLock) {
20544
20572
  const contended = [];
20545
20573
  const unservable = [];
@@ -20702,12 +20730,12 @@ async function refreshUnknownRepos(o) {
20702
20730
  return added;
20703
20731
  }
20704
20732
  var repoUnservableKey = (route2, issueId) => `repo_unservable:${route2}:${issueId}`;
20705
- function repoUnservableItem(route2, issueId, repoLabel, nowIso = (/* @__PURE__ */ new Date()).toISOString()) {
20733
+ function repoUnservableItem(route2, issueId, repoLabel, nowIso = (/* @__PURE__ */ new Date()).toISOString(), tag = issueId) {
20706
20734
  return {
20707
20735
  kind: "repo_unservable",
20708
20736
  key: repoUnservableKey(route2, issueId),
20709
20737
  since: nowIso,
20710
- message: `${route2}: ${issueId} is skipped \u2014 this ship has no checkout for ${repoLabel}. Resumes automatically once the route lists that repository (\`crew repos add\`) or a Repos row for it exists`
20738
+ message: `${route2}: ${tag} is skipped \u2014 this ship has no checkout for ${repoLabel}. Resumes automatically once the route lists that repository (\`crew repos add\`) or a Repos row for it exists`
20711
20739
  };
20712
20740
  }
20713
20741
  function trackUnservable(streaks, unservable) {
@@ -20728,7 +20756,7 @@ function trackUnservable(streaks, unservable) {
20728
20756
  return { raise, recovered };
20729
20757
  }
20730
20758
  var streaksByRoute = /* @__PURE__ */ new Map();
20731
- async function reportUnservable(o, unservable, repoLabelOf) {
20759
+ async function reportUnservable(o, unservable, repoLabelOf, tagOf = (id) => id) {
20732
20760
  const streaks = streaksByRoute.get(o.route.route) ?? /* @__PURE__ */ new Map();
20733
20761
  streaksByRoute.set(o.route.route, streaks);
20734
20762
  const { raise, recovered } = trackUnservable(streaks, unservable);
@@ -20740,7 +20768,7 @@ async function reportUnservable(o, unservable, repoLabelOf) {
20740
20768
  }
20741
20769
  for (const id of raise) {
20742
20770
  try {
20743
- await raiseShipAttention(o, repoUnservableItem(o.route.route, id, repoLabelOf(id)));
20771
+ await raiseShipAttention(o, repoUnservableItem(o.route.route, id, repoLabelOf(id), void 0, tagOf(id)));
20744
20772
  } catch {
20745
20773
  }
20746
20774
  }
@@ -21105,18 +21133,19 @@ function planStrandedVerified(candidate, base, remote, events, look) {
21105
21133
  lastFlaggedAt: stamps.length ? Math.max(...stamps) : void 0
21106
21134
  };
21107
21135
  }
21136
+ var searchedNames = (t) => referenceKeys(t).map((k) => `\`${k}\``).join(" or ");
21108
21137
  function flagComment(s) {
21109
- const key = s.candidate.ticket.issue_id;
21138
+ const key = displayKey(s.candidate.ticket);
21110
21139
  return `${STRANDED_MARKER}
21111
21140
 
21112
21141
  **Verified, but nothing to merge \u2014 flagging before this repeats forever.**
21113
21142
 
21114
- \`${key}\` is \`verified\` with no branch on this ship, and its key names no commit anywhere in this ship's \`${s.base}\` history (searched all of it, local commits included, for a bounded \`${key}\` in a commit subject or body). One of three things is true: it landed under a commit that never named the key, the branch was deleted before it merged, or it was verified in error \u2014 the crew cannot tell these apart and will not guess.
21143
+ \`${key}\` is \`verified\` with no branch on this ship, and its key names no commit anywhere in this ship's \`${s.base}\` history (searched all of it, local commits included, for a bounded ${searchedNames(s.candidate.ticket)} in a commit subject or body). One of three things is true: it landed under a commit that never named the key, the branch was deleted before it merged, or it was verified in error \u2014 the crew cannot tell these apart and will not guess.
21115
21144
 
21116
21145
  If it is still unplaceable next cycle, this ticket is escalated to a person. If the work already landed, closing this ticket by hand now avoids that.${nearMissText(s)}`;
21117
21146
  }
21118
21147
  function escalateComment2(s) {
21119
- const key = s.candidate.ticket.issue_id;
21148
+ const key = displayKey(s.candidate.ticket);
21120
21149
  return `${STRANDED_MARKER}
21121
21150
 
21122
21151
  **Still nothing to merge \u2014 stopping rather than repeating.**
@@ -21266,7 +21295,7 @@ function platformAdmitters(dir, baseRef, ship, tickets, locate) {
21266
21295
  if (text2 === null) continue;
21267
21296
  try {
21268
21297
  const { platform: platform2 } = parseRepoConfig(text2, join45(dir, file));
21269
- if (satisfies(ship, platform2)) out.push({ issueId: t.issue_id, branch, platform: platform2 });
21298
+ if (satisfies(ship, platform2)) out.push({ issueId: t.issue_id, tag: displayKey(t), branch, platform: platform2 });
21270
21299
  } catch (e) {
21271
21300
  if (e instanceof RepoConfigError) continue;
21272
21301
  throw e;
@@ -21575,7 +21604,7 @@ function describeUnplaceable(unplaceable, verifiedStatus) {
21575
21604
  const stranded = unplaceable.filter((u) => u.ticket.status === verifiedStatus);
21576
21605
  if (stranded.length === 0) return [];
21577
21606
  const notes = [];
21578
- const keysFor = (r) => stranded.filter((u) => u.reason === r).map((u) => u.ticket.issue_id);
21607
+ const keysFor = (r) => stranded.filter((u) => u.reason === r).map((u) => displayKey(u.ticket));
21579
21608
  const noRepo = keysFor("no-repo");
21580
21609
  if (noRepo.length) {
21581
21610
  notes.push({
@@ -21595,7 +21624,7 @@ function describeUnplaceable(unplaceable, verifiedStatus) {
21595
21624
  const byRepoName = /* @__PURE__ */ new Map();
21596
21625
  for (const u of elsewhere) {
21597
21626
  const name = u.repo ?? "?";
21598
- byRepoName.set(name, [...byRepoName.get(name) ?? [], u.ticket.issue_id]);
21627
+ byRepoName.set(name, [...byRepoName.get(name) ?? [], displayKey(u.ticket)]);
21599
21628
  }
21600
21629
  notes.push({
21601
21630
  level: "info",
@@ -21634,7 +21663,7 @@ function heldByBlockers(tickets, verifiedStatus, info, resolved) {
21634
21663
  const opts = { mergeGated: false, resolved };
21635
21664
  return tickets.filter((t) => t.status === verifiedStatus && unresolvedBlockers(t, info, opts).length > 0).map((ticket) => ({ ticket, blockers: describeUnresolved(ticket, info, opts) }));
21636
21665
  }
21637
- var describeHeld = (held) => held.map((h) => `${h.ticket.issue_tag ?? h.ticket.issue_id} held: blocked by ${h.blockers}`);
21666
+ var describeHeld = (held) => held.map((h) => `${displayKey(h.ticket)} held: blocked by ${h.blockers}`);
21638
21667
  var CHANGELOG_LINE = /^Changelog:[ \t]*(.*)$/gm;
21639
21668
  var TICKET_REF_AT_START = /^([A-Z][A-Z0-9]*)-(\d+)\b/;
21640
21669
  function dedupeChangelogEntries(entries, ticket) {
@@ -21725,7 +21754,7 @@ function planMerge(cwd, tickets, contract, lastReleased, branchFor = (t) => bran
21725
21754
  return {
21726
21755
  ticket,
21727
21756
  branch,
21728
- entries: usedFallback ? [`${ticket.title || ticket.issue_id} (${ticket.issue_id})`] : entries,
21757
+ entries: usedFallback ? [`${ticket.title || displayKey(ticket)} (${displayKey(ticket)})`] : entries,
21729
21758
  usedFallback,
21730
21759
  bump: size,
21731
21760
  majorRequested
@@ -22472,7 +22501,7 @@ function deepenUntilMergeBase(o, branch) {
22472
22501
  }
22473
22502
  }
22474
22503
  function mergeOne(o, c) {
22475
- const subject = c.entries[0] ?? `${c.ticket.title ?? c.ticket.issue_id} (${c.ticket.issue_id})`;
22504
+ const subject = c.entries[0] ?? `${c.ticket.title ?? displayKey(c.ticket)} (${displayKey(c.ticket)})`;
22476
22505
  if (o.dryRun) {
22477
22506
  o.emit.emit(`would squash-merge ${c.branch} \u2014 "${subject}"`, { ticket: c.ticket.issue_id });
22478
22507
  return { applied: true };
@@ -22500,7 +22529,7 @@ function mergeOne(o, c) {
22500
22529
  ${BRANCH_TIP_TRAILER}: ${tip}` : "";
22501
22530
  git(o.cwd, ["commit", "-m", `${subject}
22502
22531
 
22503
- Closes ${c.ticket.issue_id}.${trailer}`]);
22532
+ Closes ${displayKey(c.ticket)}.${trailer}`]);
22504
22533
  const sha = headSha(o.cwd);
22505
22534
  o.emit.note(`merged ${c.branch}`, { ticket: c.ticket.issue_id });
22506
22535
  clearFailure();
@@ -25627,7 +25656,7 @@ async function skipUnrunnable(candidates2, ctx) {
25627
25656
  const out = [];
25628
25657
  for (const t of candidates2) {
25629
25658
  if (noopBackedOff(ship.stateDir, t.id)) {
25630
- backedOff.push(t.issue_id);
25659
+ backedOff.push(t);
25631
25660
  continue;
25632
25661
  }
25633
25662
  const target = repoTargetFor(route2, t.repo_id);
@@ -25635,14 +25664,14 @@ async function skipUnrunnable(candidates2, ctx) {
25635
25664
  if (!declares.has(target.name)) declares.set(target.name, Boolean((await repoContractFor(ship, route2, target))?.sandbox));
25636
25665
  if (sandboxImageMissing(state, target.name, declares.get(target.name))) {
25637
25666
  noImage.add(target.name);
25638
- imageSkipped.push(t.issue_id);
25667
+ imageSkipped.push(t);
25639
25668
  continue;
25640
25669
  }
25641
25670
  }
25642
25671
  out.push(t);
25643
25672
  }
25644
- if (backedOff.length) emit.emit(`skipped ${backedOff.join(", ")} \u2014 recent runs changed nothing, backing off`, { step: "select" });
25645
- if (imageSkipped.length) emit.emit(`skipped ${imageSkipped.join(", ")} \u2014 the sandbox image for their repo is not built yet`, { step: "select" });
25673
+ if (backedOff.length) emit.emit(`skipped ${backedOff.map(displayKey).join(", ")} \u2014 recent runs changed nothing, backing off`, { step: "select" });
25674
+ if (imageSkipped.length) emit.emit(`skipped ${imageSkipped.map(displayKey).join(", ")} \u2014 the sandbox image for their repo is not built yet`, { step: "select" });
25646
25675
  for (const repo of noImage) {
25647
25676
  if (openShipAttention(ctx.state).some((i) => i.key === sandboxFailedKey(repo))) continue;
25648
25677
  try {
@@ -25731,13 +25760,13 @@ async function runRoleAgentLocked(role, decision, ctx, hooks, held) {
25731
25760
  );
25732
25761
  held.release = result.releaseTicket;
25733
25762
  if (result.contended.length) {
25734
- emit.emit(`claim contended for ${result.contended.join(", ")} \u2014 moved to the next candidate`, {
25763
+ emit.emit(`claim contended for ${namesOf(result.contended, candidates2)} \u2014 moved to the next candidate`, {
25735
25764
  step: "select",
25736
25765
  role
25737
25766
  });
25738
25767
  }
25739
25768
  if (result.unservable.length) {
25740
- emit.emit(`skipped ${result.unservable.join(", ")} \u2014 no local checkout for their repo`, {
25769
+ emit.emit(`skipped ${namesOf(result.unservable, candidates2)} \u2014 no local checkout for their repo`, {
25741
25770
  step: "select",
25742
25771
  role
25743
25772
  });
@@ -25745,10 +25774,11 @@ async function runRoleAgentLocked(role, decision, ctx, hooks, held) {
25745
25774
  await reportUnservable(
25746
25775
  { state: ctx.state, emit, route: route2, ship },
25747
25776
  result.unservable,
25748
- (id) => repoLabelFor(route2, candidates2.find((c) => c.issue_id === id))
25777
+ (id) => repoLabelFor(route2, candidates2.find((c) => c.issue_id === id)),
25778
+ (id) => namesOf([id], candidates2)
25749
25779
  );
25750
25780
  if (result.held.length) {
25751
- emit.emit(`skipped ${result.held.join(", ")} \u2014 held by another live ship`, { step: "select", role });
25781
+ emit.emit(`skipped ${namesOf(result.held, candidates2)} \u2014 held by another live ship`, { step: "select", role });
25752
25782
  }
25753
25783
  await noteReaccepted(tracker, result, seat, ship.name);
25754
25784
  await noteTakeover(
@@ -28966,7 +28996,7 @@ async function applyWorktreeSweep(cwd, actions, dryRun, log, remote = "origin",
28966
28996
  const refused = [];
28967
28997
  const refuse2 = (a, reason, detail) => {
28968
28998
  refused.push(a.path);
28969
- const when = held ? noteHeldWorktree(held.state, { repo: held.repo, path: a.path, ticket: a.ticket.issue_id, status: a.ticket.status, reason }) : "first";
28999
+ const when = held ? noteHeldWorktree(held.state, { repo: held.repo, path: a.path, ticket: displayKey(a.ticket), status: a.ticket.status, reason }) : "first";
28970
29000
  if (when) {
28971
29001
  log.warn(
28972
29002
  `not removing worktree ${a.path} for ${displayKey(a.ticket)} (${a.ticket.status}): ${detail}`,
@@ -29330,7 +29360,7 @@ import { dirname as dirOf2, resolve as resolvePath } from "path";
29330
29360
  import { existsSync as existsSync56, readdirSync as readdirSync18, statSync as statSync17 } from "fs";
29331
29361
  import { join as join60 } from "path";
29332
29362
  function builtVersion() {
29333
- return true ? "0.164.2" : null;
29363
+ return true ? "0.164.4" : null;
29334
29364
  }
29335
29365
  var REBUILD_HINT = "rebuild with npm run build";
29336
29366
  function newestMtime(path) {
@@ -30184,7 +30214,7 @@ function contractFixers(dir, baseRef, tickets, locate) {
30184
30214
  if (e instanceof RepoConfigError) continue;
30185
30215
  throw e;
30186
30216
  }
30187
- out.push({ issueId: t.issue_id, branch, file });
30217
+ out.push({ issueId: t.issue_id, tag: displayKey(t), branch, file });
30188
30218
  }
30189
30219
  return out;
30190
30220
  }
@@ -32991,7 +33021,7 @@ ${changed2.map((c) => ` - ${c}
32991
33021
  try {
32992
33022
  await raiseShipAttention(
32993
33023
  { state, emit: remit, route: c, ship: cfg.ship },
32994
- repoPlatformUnreleasableItem(target.name, platformStuckNote(target.name, repo.platform, cfg.ship.platform, ids))
33024
+ repoPlatformUnreleasableItem(target.name, platformStuckNote(target.name, repo.platform, cfg.ship.platform, verifiedPre.map(displayKey)))
32995
33025
  );
32996
33026
  } catch {
32997
33027
  }
@@ -33008,7 +33038,7 @@ ${changed2.map((c) => ` - ${c}
33008
33038
  } catch {
33009
33039
  }
33010
33040
  remit.emit(
33011
- `${scope}: the base contract requires ${repo.platform}, but ${admitters.map((a) => a.issueId).join(", ")} change${admitters.length === 1 ? "s" : ""} platform to ${admitters[0].platform}, which this ship satisfies \u2014 releasing`,
33041
+ `${scope}: the base contract requires ${repo.platform}, but ${admitters.map((a) => a.tag).join(", ")} change${admitters.length === 1 ? "s" : ""} platform to ${admitters[0].platform}, which this ship satisfies \u2014 releasing`,
33012
33042
  { step: "release" }
33013
33043
  );
33014
33044
  }
@@ -33081,7 +33111,7 @@ ${changed2.map((c) => ` - ${c}
33081
33111
  );
33082
33112
  if (fixers.length === 0) throw refusal;
33083
33113
  remit.emit(
33084
- `${target.name}: the base contract is refused (${refusal.message}); ${fixers.map((f2) => f2.issueId).join(", ")} replace${fixers.length === 1 ? "s" : ""} ${fixers[0].file} \u2014 merging first`,
33114
+ `${target.name}: the base contract is refused (${refusal.message}); ${fixers.map((f2) => f2.tag).join(", ")} replace${fixers.length === 1 ? "s" : ""} ${fixers[0].file} \u2014 merging first`,
33085
33115
  { step: "release" }
33086
33116
  );
33087
33117
  }
@@ -33673,19 +33703,19 @@ ${f2.tail.trimEnd()}
33673
33703
  } };
33674
33704
  }
33675
33705
  if (result.contended.length) {
33676
- wemit.note(`claim contended for ${result.contended.join(", ")} \u2014 moved to the next candidate`, {
33706
+ wemit.note(`claim contended for ${namesOf(result.contended, candidates2)} \u2014 moved to the next candidate`, {
33677
33707
  step: "select",
33678
33708
  role: w.role
33679
33709
  });
33680
33710
  }
33681
33711
  if (result.unservable.length) {
33682
33712
  wemit.emit(
33683
- `skipped ${result.unservable.join(", ")} \u2014 no local checkout for their repo`,
33713
+ `skipped ${namesOf(result.unservable, candidates2)} \u2014 no local checkout for their repo`,
33684
33714
  { step: "select", role: w.role }
33685
33715
  );
33686
33716
  }
33687
33717
  if (result.held.length) {
33688
- wemit.emit(`skipped ${result.held.join(", ")} \u2014 held by another live ship`, { step: "select", role: w.role });
33718
+ wemit.emit(`skipped ${namesOf(result.held, candidates2)} \u2014 held by another live ship`, { step: "select", role: w.role });
33689
33719
  }
33690
33720
  await noteReaccepted(fleetTracker, result, seat, cfg.ship.name);
33691
33721
  await noteTakeover(
@@ -33889,19 +33919,19 @@ ${f2.tail.trimEnd()}
33889
33919
  } };
33890
33920
  }
33891
33921
  if (result.contended.length) {
33892
- emit.note(`claim contended for ${result.contended.join(", ")} \u2014 moved to the next candidate`, {
33922
+ emit.note(`claim contended for ${namesOf(result.contended, candidates2)} \u2014 moved to the next candidate`, {
33893
33923
  step: "select",
33894
33924
  role: current
33895
33925
  });
33896
33926
  }
33897
33927
  if (result.unservable.length) {
33898
33928
  emit.emit(
33899
- `skipped ${result.unservable.join(", ")} \u2014 no local checkout for their repo`,
33929
+ `skipped ${namesOf(result.unservable, candidates2)} \u2014 no local checkout for their repo`,
33900
33930
  { step: "select", role: current }
33901
33931
  );
33902
33932
  }
33903
33933
  if (result.held.length) {
33904
- emit.emit(`skipped ${result.held.join(", ")} \u2014 held by another live ship`, { step: "select", role: current });
33934
+ emit.emit(`skipped ${namesOf(result.held, candidates2)} \u2014 held by another live ship`, { step: "select", role: current });
33905
33935
  }
33906
33936
  await noteReaccepted(tracker2, result, seat, cfg.ship.name);
33907
33937
  await noteTakeover(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tablation/crew",
3
- "version": "0.164.2",
3
+ "version": "0.164.4",
4
4
  "description": "A standing team of headless agents that picks work off a Tablation board, does it on a machine you control, and reports back.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -395,7 +395,7 @@ before going further, and never change a ticket's `report_type` yourself.
395
395
  fix; minor for a larger feature or real implementation complexity;
396
396
  never `major`, which is the operator's call alone);
397
397
  - one or more `Changelog: <text>` lines, each worded exactly as the
398
- changelog entry should read, with the ticket's tag (e.g. `ISSUE-123`;
398
+ changelog entry should read, with the ticket's tag (e.g. `TABL-123`;
399
399
  the release phase matches it by number). The first one becomes the
400
400
  squash-merge subject. A ticket with no user-visible change still needs
401
401
  one saying so — a branch without a `Changelog:` line merges under a
@@ -388,7 +388,7 @@ before going further, and never change a ticket's `report_type` yourself.
388
388
  fix; minor for a larger feature or real implementation complexity;
389
389
  never `major`, which is the operator's call alone);
390
390
  - one or more `Changelog: <text>` lines, each worded exactly as the
391
- changelog entry should read, with the ticket's tag (e.g. `ISSUE-123`;
391
+ changelog entry should read, with the ticket's tag (e.g. `TABL-123`;
392
392
  the release phase matches it by number). The first one becomes the
393
393
  squash-merge subject. A ticket with no user-visible change still needs
394
394
  one saying so — a branch without a `Changelog:` line merges under a