@tablation/crew 0.168.0 → 0.169.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +150 -87
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -3640,7 +3640,7 @@ var VERSIONINGS = ["auto", "none"];
3640
3640
  var CI_KEYS = /* @__PURE__ */ new Set(["provider", "ref"]);
3641
3641
  var VERIFY_KEYS = /* @__PURE__ */ new Set(["match", "timeoutSeconds", "intervalSeconds"]);
3642
3642
  var ISOLATE_KEYS = /* @__PURE__ */ new Set(["maxCandidates"]);
3643
- var DEFAULT_ISOLATE_MAX_CANDIDATES = 4;
3643
+ var DEFAULT_ISOLATE_MAX_CANDIDATES = 8;
3644
3644
  var DEFAULT_RIGHT_OF_WAY_MINUTES = 60;
3645
3645
  function parseRebuildPrimary(raw, fail2) {
3646
3646
  if (raw === void 0 || raw === null) return void 0;
@@ -23072,9 +23072,13 @@ async function runRelease(o) {
23072
23072
  const movedPast2 = [];
23073
23073
  const localRefSkips = [];
23074
23074
  const rightOfWay = { deferrals: [], lapsed: [] };
23075
- const out = await runReleaseCycle(o, movedPast2, localRefSkips, rightOfWay);
23075
+ const batch = { deferred: [], reason: "capped" };
23076
+ const out = await runReleaseCycle({ ...o, batch }, movedPast2, localRefSkips, rightOfWay);
23077
+ const gateFailed = out.stopped === "tests failed" || out.stopped === "build failed";
23076
23078
  return {
23077
23079
  ...out,
23080
+ ...batch.deferred.length ? { batchDeferral: batch } : {},
23081
+ ...gateFailed && !out.buildCulprits?.length && out.merged.length ? { unisolatedFailure: true } : {},
23078
23082
  ...movedPast2.length ? { movedPast: movedPast2 } : {},
23079
23083
  ...localRefSkips.length ? { localRefSkips } : {},
23080
23084
  ...rightOfWay.deferrals.length || rightOfWay.lapsed.length ? { rightOfWay } : {}
@@ -23165,7 +23169,7 @@ async function runReleaseCycle(o, movedPast2, localRefSkips, rightOfWay) {
23165
23169
  const { remote, base } = o.repo.branch;
23166
23170
  const inPlace = o.dryRun || !!o.mergeOnly || !remoteBranchExists(o.cwd, remote, base);
23167
23171
  const remoteRef = `${remote}/${base}`;
23168
- const decision = decideRelease(o.cwd, releasable, o.contract, {
23172
+ const decided = decideRelease(o.cwd, releasable, o.contract, {
23169
23173
  tagPattern,
23170
23174
  base,
23171
23175
  blockerInfo: o.blockerInfo,
@@ -23175,6 +23179,13 @@ async function runReleaseCycle(o, movedPast2, localRefSkips, rightOfWay) {
23175
23179
  // A dry run only looks.
23176
23180
  branchFor: (t) => o.dryRun ? locateBranchForTicket(o.cwd, o.repo, t)?.branch ?? null : materializeBranchForTicket(o.cwd, o.repo, t)
23177
23181
  });
23182
+ let decision = decided;
23183
+ if (o.batchCapped && !o.dryRun && !o.mergeOnly && !o.force) {
23184
+ const cap = isolateCap(o);
23185
+ const trimmed = trimBatch(decided, cap);
23186
+ decision = trimmed.decision;
23187
+ noteDeferred(o, trimmed.left, "capped", cap);
23188
+ }
23178
23189
  reportHeld(o, decision.held);
23179
23190
  if (!fresh.ok) {
23180
23191
  o.emit.error(scoped(`refusing to release \u2014 ${fresh.why}; a person has to reconcile the two`));
@@ -23267,24 +23278,36 @@ async function runReleaseCycle(o, movedPast2, localRefSkips, rightOfWay) {
23267
23278
  }
23268
23279
  return rebuild ? { ...outcome, primaryRebuild: rebuild } : outcome;
23269
23280
  }
23270
- var MAX_ISOLATE_PAIRS = 10;
23271
- function pairOrder(n, max = MAX_ISOLATE_PAIRS) {
23272
- const pairs = [];
23273
- let truncated = false;
23274
- outer: for (let j = 1; j < n; j++) {
23275
- for (let i = 0; i < j; i++) {
23276
- if (pairs.length >= max) {
23277
- truncated = true;
23278
- break outer;
23279
- }
23280
- pairs.push([i, j]);
23281
- }
23282
- }
23283
- return { pairs, truncated };
23281
+ var MAX_ISOLATE_ROUNDS = 2;
23282
+ var BATCH_CAPPED_EVENT = "release_capped";
23283
+ var BATCH_CAP_CLEARED_EVENT = "release_cap_cleared";
23284
+ function batchCapActive(events, scope) {
23285
+ const at = (e) => Date.parse(e.occurred_at ?? e.created_at ?? "") || 0;
23286
+ const mine = events.filter((e) => e.metadata?.scope === scope && (e.event_type === BATCH_CAPPED_EVENT || e.event_type === BATCH_CAP_CLEARED_EVENT));
23287
+ if (!mine.length) return false;
23288
+ const newest = mine.reduce((a, b) => at(b) > at(a) ? b : a);
23289
+ return newest.event_type === BATCH_CAPPED_EVENT;
23290
+ }
23291
+ var isMergeable = (c) => !!c.branch && !c.mergedSha;
23292
+ function trimBatch(decision, cap) {
23293
+ const mergeable = decision.merges.filter(isMergeable);
23294
+ if (cap <= 0 || mergeable.length <= cap) return { decision, left: [] };
23295
+ const left = mergeable.slice(cap);
23296
+ return { decision: { ...decision, merges: decision.merges.filter((c) => !left.includes(c)) }, left };
23297
+ }
23298
+ function noteDeferred(o, left, reason, limit) {
23299
+ if (!left.length) return;
23300
+ const why = reason === "capped" ? `the last release failed its gate and was not isolated, so a batch is capped at ${limit}` : `the gate failed on a batch over release.isolateFailures.maxCandidates (${limit}), so the oldest ${limit} are tried first`;
23301
+ o.emit.warn(
23302
+ `${left.length} verified branch${left.length === 1 ? "" : "es"} left for a later cycle: ${why}`,
23303
+ { step: "release", data: { deferred: left.length, reason, limit } }
23304
+ );
23305
+ o.batch?.deferred.push(...left.map((c) => c.ticket));
23306
+ if (o.batch) o.batch.reason = reason;
23284
23307
  }
23285
23308
  function selfRepairLine(maxCandidates) {
23286
23309
  const cap = maxCandidates ?? DEFAULT_ISOLATE_MAX_CANDIDATES;
23287
- return cap === 0 ? "culprit isolation is off (release.isolateFailures.maxCandidates: 0); a failed gate files an alert" : `culprit isolation up to ${cap} merged branches, ${MAX_ISOLATE_PAIRS} pairs before bisecting; a ticket handed back twice after a push escalates with an alert`;
23310
+ return cap === 0 ? "culprit isolation is off (release.isolateFailures.maxCandidates: 0); a failed gate files an alert" : `culprit isolation bisects up to ${cap} merged branches (a larger failing batch is shrunk to the oldest ${cap}, and the next batch is capped at ${cap} until a release ships); a ticket handed back twice after a push escalates with an alert`;
23288
23311
  }
23289
23312
  var isolateCap = (o) => o.repo.release.isolateFailures?.maxCandidates ?? DEFAULT_ISOLATE_MAX_CANDIDATES;
23290
23313
  async function redBase(o, name, applied, cap, preMerge, head, decision, fresh, releaseBranch) {
@@ -23313,14 +23336,71 @@ async function redBase(o, name, applied, cap, preMerge, head, decision, fresh, r
23313
23336
  o.emit.emit(`${keep.map((c) => c.branch).join(", ")} make the ${name} hook pass on a red ${base} \u2014 releasing ${keep.length === 1 ? "it" : "them"}, the rest stay verified`);
23314
23337
  gitOk(o.cwd, ["reset", "--hard", preMerge]);
23315
23338
  const rest = decision.merges.filter((c) => !applied.includes(c) || keep.includes(c));
23316
- const retried = await mergeAndRelease(o, { ...decision, merges: rest }, fresh, releaseBranch, true);
23339
+ const retried = await mergeAndRelease(o, { ...decision, merges: rest }, fresh, releaseBranch, MAX_ISOLATE_ROUNDS);
23317
23340
  return retried.isolation ? retried : { ...retried, isolation: tried };
23318
23341
  }
23319
- async function isolateAndRetry(o, name, output, merged, preMerge, decision, fresh, releaseBranch) {
23342
+ async function bisectCulprit(o, name, applied, output, preMerge) {
23343
+ const gate = async (group) => {
23344
+ gitOk(o.cwd, ["reset", "--hard", preMerge]);
23345
+ for (const c of group) if (mergeFailed(mergeOne(o, c))) return { failed: false, output: "" };
23346
+ const r = await hook(o, name);
23347
+ return { failed: !!r && r.code !== 0, output: r?.output ?? "" };
23348
+ };
23349
+ let lo = 1, hi = applied.length, tail3 = output;
23350
+ while (lo < hi) {
23351
+ const mid = Math.floor((lo + hi) / 2);
23352
+ const g = await gate(applied.slice(0, mid));
23353
+ if (g.failed) {
23354
+ hi = mid;
23355
+ tail3 = g.output;
23356
+ } else lo = mid + 1;
23357
+ }
23358
+ const owner = applied[hi - 1];
23359
+ if (hi === 1) return { c: owner, how: "solo", output: tail3 };
23360
+ const alone = await gate([owner]);
23361
+ if (alone.failed) return { c: owner, how: "solo", output: alone.output };
23362
+ const earlier = applied.slice(0, hi - 1);
23363
+ let from = 1, to = earlier.length;
23364
+ while (from < to) {
23365
+ const mid = Math.floor((from + to) / 2);
23366
+ const g = await gate([...earlier.slice(0, mid), owner]);
23367
+ if (g.failed) {
23368
+ to = mid;
23369
+ tail3 = g.output;
23370
+ } else from = mid + 1;
23371
+ }
23372
+ const sibling = earlier[to - 1];
23373
+ if (earlier.length > 1) {
23374
+ const pair = await gate([sibling, owner]);
23375
+ if (!pair.failed) return null;
23376
+ tail3 = pair.output;
23377
+ }
23378
+ return { c: owner, how: "pair", sibling, output: tail3 };
23379
+ }
23380
+ async function isolateAndRetry(o, name, output, merged, preMerge, decision, fresh, releaseBranch, rounds) {
23320
23381
  const applied = merged.filter((c) => c.sha && c.branch);
23321
23382
  const cap = isolateCap(o);
23322
23383
  if (o.dryRun || !preMerge || applied.length < 1 || cap === 0) return null;
23323
23384
  const head = headSha(o.cwd);
23385
+ if (applied.length > cap) {
23386
+ const named = failingPaths(output, o.cwd);
23387
+ const changed2 = (c) => new Set(
23388
+ (gitOk(o.cwd, ["diff", "--name-only", `${preMerge}...${c.branch}`]) ?? "").split("\n").filter(Boolean)
23389
+ );
23390
+ if (!culpritByFiles(applied.map((c) => ({ c, changed: changed2(c) })), named)) {
23391
+ const { decision: smaller, left } = trimBatch(decision, cap);
23392
+ noteDeferred(o, left, "shrunk", cap);
23393
+ for (const c of left) {
23394
+ if (!o.onUnclaim || o.dryRun) break;
23395
+ try {
23396
+ await o.onUnclaim(c.ticket);
23397
+ } catch {
23398
+ }
23399
+ }
23400
+ gitOk(o.cwd, ["reset", "--hard", preMerge]);
23401
+ return mergeAndRelease(o, smaller, fresh, releaseBranch, rounds);
23402
+ }
23403
+ }
23324
23404
  gitOk(o.cwd, ["reset", "--hard", preMerge]);
23325
23405
  const baseRun = await hook(o, name);
23326
23406
  if (baseRun && baseRun.code !== 0) {
@@ -23341,75 +23421,29 @@ async function isolateAndRetry(o, name, output, merged, preMerge, decision, fres
23341
23421
  const only = applied[0];
23342
23422
  o.emit.warn(`${name} failed with only ${only.branch} merged and passes without it \u2014 treating it as the culprit`, { ticket: only.ticket.issue_id });
23343
23423
  culprits.push({ c: only, how: "solo", output, paths: failingPaths(output, o.cwd) });
23344
- } else if (applied.length > cap) {
23345
- o.emit.warn(`${name} failed with ${applied.length} branches merged, over release.isolateFailures.maxCandidates (${cap}) \u2014 not isolating`);
23346
- return { tried: `Isolation was skipped: ${applied.length} branches were merged, over release.isolateFailures.maxCandidates (${cap}).` };
23347
23424
  } else {
23348
- o.emit.warn(`${name} failed with ${applied.length} branches merged \u2014 building each alone to find the culprit`);
23349
- for (const c of applied) {
23350
- gitOk(o.cwd, ["reset", "--hard", preMerge]);
23351
- const m = mergeOne(o, c);
23352
- if (mergeFailed(m)) continue;
23353
- const r = await hook(o, name);
23354
- if (r && r.code !== 0) {
23355
- o.emit.warn(`${c.branch} fails the ${name} hook on its own`, { ticket: c.ticket.issue_id });
23356
- culprits.push({ c, how: "solo", output: r.output, paths: failingPaths(r.output, o.cwd) });
23357
- }
23358
- }
23359
- if (culprits.length === 0) {
23360
- const { pairs, truncated } = pairOrder(applied.length);
23361
- for (const [i, j] of pairs) {
23362
- gitOk(o.cwd, ["reset", "--hard", preMerge]);
23363
- const a = mergeOne(o, applied[i]);
23364
- const b = mergeFailed(a) ? a : mergeOne(o, applied[j]);
23365
- if (mergeFailed(b)) continue;
23366
- const r = await hook(o, name);
23367
- if (r && r.code !== 0) {
23368
- o.emit.warn(`${applied[j].branch} fails the ${name} hook together with ${applied[i].branch}`, { ticket: applied[j].ticket.issue_id });
23369
- culprits.push({ c: applied[j], how: "pair", sibling: applied[i], output: r.output, paths: failingPaths(r.output, o.cwd) });
23370
- break;
23371
- }
23372
- }
23373
- if (culprits.length === 0 && truncated) {
23374
- let lo = 2, hi = applied.length;
23375
- let tailOut = output;
23376
- let paths = failingPaths(output, o.cwd);
23377
- while (lo < hi) {
23378
- const mid = Math.floor((lo + hi) / 2);
23379
- gitOk(o.cwd, ["reset", "--hard", preMerge]);
23380
- let clean = true;
23381
- for (const c of applied.slice(0, mid)) {
23382
- const m = mergeOne(o, c);
23383
- if (mergeFailed(m)) {
23384
- clean = false;
23385
- break;
23386
- }
23387
- }
23388
- const r = clean ? await hook(o, name) : null;
23389
- if (r && r.code !== 0) {
23390
- hi = mid;
23391
- tailOut = r.output;
23392
- paths = failingPaths(r.output, o.cwd);
23393
- } else lo = mid + 1;
23394
- }
23395
- const owner = applied[hi - 1];
23396
- o.emit.warn(`${owner.branch} is the first branch whose prefix fails the ${name} hook (bisected over ${applied.length})`, { ticket: owner.ticket.issue_id });
23397
- culprits.push({ c: owner, how: "pair", sibling: applied[hi - 2], output: tailOut, paths });
23398
- }
23425
+ o.emit.warn(`${name} failed with ${applied.length} branches merged \u2014 bisecting to find the culprit`);
23426
+ const found = await bisectCulprit(o, name, applied, output, preMerge);
23427
+ if (found) {
23428
+ o.emit.warn(
23429
+ found.how === "solo" ? `${found.c.branch} fails the ${name} hook on its own` : `${found.c.branch} fails the ${name} hook together with ${found.sibling.branch}`,
23430
+ { ticket: found.c.ticket.issue_id }
23431
+ );
23432
+ culprits.push({ ...found, paths: failingPaths(found.output, o.cwd) });
23399
23433
  }
23400
23434
  }
23401
23435
  gitOk(o.cwd, ["reset", "--hard", preMerge]);
23402
23436
  if (culprits.length === 0) {
23403
23437
  o.emit.warn("no single branch could be blamed \u2014 failing the release as a whole");
23404
23438
  gitOk(o.cwd, ["reset", "--hard", head]);
23405
- return { tried: `Isolation found no culprit: each of the ${applied.length} merged branches passes the ${name} hook alone and no pair among them fails it.` };
23439
+ return { tried: `Isolation found no culprit: bisecting the ${applied.length} merged branches named no single branch, and no pair among them, that fails the ${name} hook.` };
23406
23440
  }
23407
23441
  const out = new Set(culprits.map((x) => x.c.ticket.id));
23408
23442
  const rest = decision.merges.filter((c) => !out.has(c.ticket.id));
23409
- const retried = await mergeAndRelease(o, { ...decision, merges: rest }, fresh, releaseBranch, true);
23443
+ const retried = await mergeAndRelease(o, { ...decision, merges: rest }, fresh, releaseBranch, rounds + 1);
23410
23444
  return {
23411
23445
  ...retried,
23412
- buildCulprits: culprits.map((x) => {
23446
+ buildCulprits: [...culprits.map((x) => {
23413
23447
  const ex = failureExcerpt(x.output, x.paths, HOOK_FAILURE_TAIL_LINES);
23414
23448
  const tip = gitOk(o.cwd, ["rev-parse", x.c.branch])?.trim();
23415
23449
  const logPath = saveGateOutput(x.c.ticket.issue_tag ?? x.c.ticket.issue_id, name, x.output);
@@ -23427,15 +23461,15 @@ async function isolateAndRetry(o, name, output, merged, preMerge, decision, fres
23427
23461
  inBranch: x.paths.length === 0 ? null : x.paths.some((p) => withFiles.find((w) => w.c === x.c)?.changed.has(p) ?? false),
23428
23462
  ...x.sibling ? { sibling: { key: x.sibling.ticket.issue_tag ?? x.sibling.ticket.issue_id, branch: x.sibling.branch } } : {}
23429
23463
  };
23430
- })
23464
+ }), ...retried.buildCulprits ?? []]
23431
23465
  };
23432
23466
  }
23433
- async function mergeAndRelease(o, decision, fresh, releaseBranch, isolated = false) {
23467
+ async function mergeAndRelease(o, decision, fresh, releaseBranch, isolationRounds = 0) {
23434
23468
  const flakeLog = o.flakeLog ?? [];
23435
- const outcome = await mergeAndReleaseBody({ ...o, flakeLog }, decision, fresh, releaseBranch, isolated);
23469
+ const outcome = await mergeAndReleaseBody({ ...o, flakeLog }, decision, fresh, releaseBranch, isolationRounds);
23436
23470
  return flakeLog.length ? { ...outcome, flakes: [...flakeLog] } : outcome;
23437
23471
  }
23438
- async function mergeAndReleaseBody(o, decision, fresh, releaseBranch, isolated = false) {
23472
+ async function mergeAndReleaseBody(o, decision, fresh, releaseBranch, isolationRounds = 0) {
23439
23473
  o.emit.enter("merge");
23440
23474
  const preMerge = o.dryRun ? "" : headSha(o.cwd);
23441
23475
  const merged = [];
@@ -23614,8 +23648,8 @@ async function mergeAndReleaseBody(o, decision, fresh, releaseBranch, isolated =
23614
23648
  const settleTest = async (first) => {
23615
23649
  let r = first;
23616
23650
  if (r && r.code !== 0 && !o.dryRun) r = await rerunOnce(o, "test", r);
23617
- if (r && r.code !== 0 && !isolated) {
23618
- const out = await isolateAndRetry(o, "test", r.output, merged, preMerge, decision, fresh, releaseBranch);
23651
+ if (r && r.code !== 0 && isolationRounds < MAX_ISOLATE_ROUNDS) {
23652
+ const out = await isolateAndRetry(o, "test", r.output, merged, preMerge, decision, fresh, releaseBranch, isolationRounds);
23619
23653
  if (out && "tried" in out) isolation = out.tried;
23620
23654
  else if (out) return out;
23621
23655
  }
@@ -23647,8 +23681,8 @@ async function mergeAndReleaseBody(o, decision, fresh, releaseBranch, isolated =
23647
23681
  const settleBuild = async (first) => {
23648
23682
  let r = first;
23649
23683
  if (r && r.code !== 0) r = await rerunOnce(o, "build", r);
23650
- if (r && r.code !== 0 && !isolated) {
23651
- const out = await isolateAndRetry(o, "build", r.output, merged, preMerge, decision, fresh, releaseBranch);
23684
+ if (r && r.code !== 0 && isolationRounds < MAX_ISOLATE_ROUNDS) {
23685
+ const out = await isolateAndRetry(o, "build", r.output, merged, preMerge, decision, fresh, releaseBranch, isolationRounds);
23652
23686
  if (out && "tried" in out) isolation = out.tried;
23653
23687
  else if (out) return out;
23654
23688
  }
@@ -23681,7 +23715,7 @@ async function mergeAndReleaseBody(o, decision, fresh, releaseBranch, isolated =
23681
23715
  o.emit.emit(`would run: ${hookLabel(o.repo, "build")}`);
23682
23716
  if (applied >= 1) {
23683
23717
  o.emit.emit(
23684
- `if it fails, would find the one of ${applied} merged branches that broke it (by the files it names, else by building each alone, up to ${isolateCap(o)}), hand that back to the dev lane and ship the rest`
23718
+ `if it fails, would find the one of ${applied} merged branches that broke it (by the files it names, else by bisecting up to ${isolateCap(o)} branches), hand that back to the dev lane and ship the rest`
23685
23719
  );
23686
23720
  }
23687
23721
  } else {
@@ -29788,7 +29822,7 @@ import { dirname as dirOf2, resolve as resolvePath } from "path";
29788
29822
  import { existsSync as existsSync56, readdirSync as readdirSync18, statSync as statSync17 } from "fs";
29789
29823
  import { join as join61 } from "path";
29790
29824
  function builtVersion() {
29791
- return true ? "0.168.0" : null;
29825
+ return true ? "0.169.0" : null;
29792
29826
  }
29793
29827
  var REBUILD_HINT = "rebuild with npm run build";
29794
29828
  function newestMtime(path) {
@@ -33607,11 +33641,21 @@ ${changed2.map((c) => ` - ${c}
33607
33641
  remit.warn(`could not read hand-back events; not deferring any branch: ${e.message}`);
33608
33642
  }
33609
33643
  }
33644
+ let capEvents = [];
33645
+ if (verifiedTickets.length >= 1 && repo.release.mode !== "external") {
33646
+ try {
33647
+ capEvents = [...await tracker.events(BATCH_CAPPED_EVENT), ...await tracker.events(BATCH_CAP_CLEARED_EVENT)];
33648
+ } catch (e) {
33649
+ remit.warn(`could not read the release cap from the board; not capping this batch: ${e.message}`);
33650
+ }
33651
+ }
33652
+ const batchCapped = batchCapActive(capEvents, scope);
33610
33653
  const claimed = /* @__PURE__ */ new Map();
33611
33654
  const outcome = await runRelease({
33612
33655
  cwd: target.dir,
33613
33656
  repo,
33614
33657
  rightOfWayEvents,
33658
+ batchCapped,
33615
33659
  reloadRepo: (dir) => resolveRepoConfig(loadRepoConfig(dir), {
33616
33660
  hooks: { ...c.hooks, ...o?.hooks },
33617
33661
  labels: { ...c.labels, ...o?.labels },
@@ -33758,6 +33802,25 @@ ${changed2.map((c) => ` - ${c}
33758
33802
  remit.warn(`could not note the red test gate on the board: ${e.message}`, { step: "merge" });
33759
33803
  }
33760
33804
  }
33805
+ if (!dryRun) {
33806
+ const shipped = outcome.deployed || outcome.integrated;
33807
+ const note = outcome.merged[0]?.ticket ?? outcome.batchDeferral?.deferred[0];
33808
+ try {
33809
+ if (outcome.unisolatedFailure && !batchCapped && note) {
33810
+ await tracker.postEvent(
33811
+ note.id,
33812
+ `${scope}: the release gate failed and no branch was isolated \u2014 the next release takes at most ${repo.release.isolateFailures?.maxCandidates ?? DEFAULT_ISOLATE_MAX_CANDIDATES} branches until one ships`,
33813
+ releaseSeat(c),
33814
+ BATCH_CAPPED_EVENT,
33815
+ { scope }
33816
+ );
33817
+ } else if (shipped && batchCapped && note) {
33818
+ await tracker.postEvent(note.id, `${scope}: a release shipped \u2014 the batch cap is lifted`, releaseSeat(c), BATCH_CAP_CLEARED_EVENT, { scope });
33819
+ }
33820
+ } catch (e) {
33821
+ remit.warn(`could not record the release batch cap on the board: ${e.message}`, { step: "release" });
33822
+ }
33823
+ }
33761
33824
  if (outcome.localRefSkips?.length && !dryRun) {
33762
33825
  try {
33763
33826
  const reported2 = await tracker.events("local_ref_skip");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tablation/crew",
3
- "version": "0.168.0",
3
+ "version": "0.169.0",
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",