@feigi/fleet-ctl 3.42.1 → 3.42.2
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/package.json +1 -1
- package/scripts/fleet-tick.mjs +16 -13
- package/skills/run-team/SKILL.md +6 -3
package/package.json
CHANGED
package/scripts/fleet-tick.mjs
CHANGED
|
@@ -1240,14 +1240,14 @@ function premiseState(noun, target, label) {
|
|
|
1240
1240
|
// An Exclusion whose premise sends the tick to a refresh. Lifted, for a
|
|
1241
1241
|
// ticket the current file does not already carry (if it does, the refresh
|
|
1242
1242
|
// that lifted it has run): a `behind-pr:#M` reads off the open list already
|
|
1243
|
-
// in hand; a `behind-issue:#M` costs one `gh issue view`; a
|
|
1244
|
-
// `behind-pr` costs one `gh pr view`, whose MERGED or CLOSED
|
|
1245
|
-
// before its PR exists, "no open PR" is not "merged". Standing,
|
|
1246
|
-
// branch-named `behind-pr`
|
|
1247
|
-
// file may predate the exclusion, and
|
|
1248
|
-
// the ticket from it, so any answer
|
|
1249
|
-
// unanswered probe included, asks for that
|
|
1250
|
-
// never lifts an exclusion.
|
|
1243
|
+
// in hand; a numeric `behind-issue:#M` costs one `gh issue view`; a
|
|
1244
|
+
// branch-named `behind-pr` costs one `gh pr view`, whose MERGED or CLOSED
|
|
1245
|
+
// lifts it — before its PR exists, "no open PR" is not "merged". Standing,
|
|
1246
|
+
// for a branch-named `behind-pr` or a numeric `behind-issue:#M` whose ticket
|
|
1247
|
+
// the current file still carries: the file may predate the exclusion, and
|
|
1248
|
+
// only the refresh's own probe can drop the ticket from it, so any answer
|
|
1249
|
+
// short of MERGED or CLOSED, an unanswered probe included, asks for that
|
|
1250
|
+
// refresh. An unanswered probe never lifts an exclusion.
|
|
1251
1251
|
function liftedPremise(excluded, entries, prs) {
|
|
1252
1252
|
const inFile = new Set(entries.map((e) => e.n));
|
|
1253
1253
|
const open = new Set(prs.map((p) => p.number));
|
|
@@ -1260,12 +1260,15 @@ function liftedPremise(excluded, entries, prs) {
|
|
|
1260
1260
|
if (!lifted && inFile.has(n)) return `behind-pr:#${target} not merged, #${n} still on the shortlist`;
|
|
1261
1261
|
continue;
|
|
1262
1262
|
}
|
|
1263
|
-
if (
|
|
1264
|
-
if (kind === "pr" && !open.has(Number(target))) return `behind-pr:#${target} no longer open`;
|
|
1265
|
-
if (kind === "issue") {
|
|
1263
|
+
if (kind === "issue" && isDigits(target)) {
|
|
1266
1264
|
const st = premiseState("issue", target, `behind-issue:#${target}`);
|
|
1267
|
-
|
|
1265
|
+
const lifted = st === "CLOSED" || st === "MERGED";
|
|
1266
|
+
if (lifted && !inFile.has(n)) return `behind-issue:#${target} ${st}`;
|
|
1267
|
+
if (!lifted && inFile.has(n)) return `behind-issue:#${target} not closed, #${n} still on the shortlist`;
|
|
1268
|
+
continue;
|
|
1268
1269
|
}
|
|
1270
|
+
if (inFile.has(n) || !isDigits(target)) continue;
|
|
1271
|
+
if (kind === "pr" && !open.has(Number(target))) return `behind-pr:#${target} no longer open`;
|
|
1269
1272
|
}
|
|
1270
1273
|
}
|
|
1271
1274
|
return null;
|
|
@@ -1409,7 +1412,7 @@ function main() {
|
|
|
1409
1412
|
}
|
|
1410
1413
|
|
|
1411
1414
|
// Pull from the current file first; refresh when it is short, absent, an
|
|
1412
|
-
// exclusion has lifted, or a branch-named one still names a ticket on it.
|
|
1415
|
+
// exclusion has lifted, or a branch-named or issue one still names a ticket on it.
|
|
1413
1416
|
// A refresh that succeeds replaces the heads outright: the PULL is read off
|
|
1414
1417
|
// what shortlist.mjs just probed, never merged with the file's own heads,
|
|
1415
1418
|
// or a ticket the refresh dropped would be pulled anyway.
|
package/skills/run-team/SKILL.md
CHANGED
|
@@ -671,7 +671,8 @@ phase, or in any later one, asks the maintainer which tickets to take.
|
|
|
671
671
|
`shortlist.mjs` itself when unclaimed entries fall below the implementer
|
|
672
672
|
cap, when the file is missing or empty, when an `excluded` premise has
|
|
673
673
|
lifted, and when a branch-named `behind-pr` exclusion whose PR is not yet
|
|
674
|
-
MERGED or CLOSED
|
|
674
|
+
MERGED or CLOSED, or a `behind-issue` exclusion whose issue is not yet
|
|
675
|
+
closed, names a ticket the file still carries, and prints
|
|
675
676
|
`REFRESHED shortlist: <n> entries; <k> lifted`. Phase 0 runs it by hand
|
|
676
677
|
once because a dead run's shortlist is stale by definition.
|
|
677
678
|
|
|
@@ -1862,8 +1863,10 @@ review units (in-flight `review=` tokens plus unsettled `fix-pr-` ones), the
|
|
|
1862
1863
|
merge bot, merge holds, tier mismatches and the drain marker come off
|
|
1863
1864
|
`.fleet/ledger.md`; the unclaimed heads and the supply come off
|
|
1864
1865
|
`.fleet/shortlist.json`, which it refreshes itself when the unclaimed count is
|
|
1865
|
-
below the implementer cap, when the file is missing or empty,
|
|
1866
|
-
Exclusion's premise has lifted
|
|
1866
|
+
below the implementer cap, when the file is missing or empty, when an
|
|
1867
|
+
Exclusion's premise has lifted, or when a branch-named `behind-pr` or a
|
|
1868
|
+
`behind-issue` Exclusion still not lifted names a ticket the file carries; the
|
|
1869
|
+
open PRs come off `gh`. A ledger token it
|
|
1867
1870
|
cannot read, it refuses rather than guessing — a member counted live or gone on
|
|
1868
1871
|
a guess is the over- or under-dispatch it exists to prevent — so correct that
|
|
1869
1872
|
row with `ledger.mjs row` and tick again. The caps default to 2 implementers
|