@feigi/fleet-ctl 3.148.1 → 3.148.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/claim-ticket.sh +10 -3
- package/scripts/stranded.mjs +5 -4
package/package.json
CHANGED
package/scripts/claim-ticket.sh
CHANGED
|
@@ -8,9 +8,16 @@
|
|
|
8
8
|
# `.worktrees/<issue>-<slug>`. The fleet always calls it as
|
|
9
9
|
# `claim-ticket.sh <N> impl-<N> implementer` (run-team references/pull.md, **Claiming**),
|
|
10
10
|
# giving `implementer/<N>-impl-<N>` and `.worktrees/<N>-impl-<N>`, and releases
|
|
11
|
-
# with the same pair through release-ticket.sh.
|
|
12
|
-
#
|
|
13
|
-
#
|
|
11
|
+
# with the same pair through release-ticket.sh.
|
|
12
|
+
# The number appears twice because the slug is the member name of the ticket's
|
|
13
|
+
# first implementer. The claim belongs to the ticket, not to that member: a
|
|
14
|
+
# replacement (`impl-<N>-b`, …) works in it and never claims again, so every
|
|
15
|
+
# fleet release and the settle's head check rebuild the name from the number
|
|
16
|
+
# alone. The repeat carries nothing; the name stays because claims on disk
|
|
17
|
+
# carry it, and stranded.mjs and evict.mjs find claims by it.
|
|
18
|
+
# <slug> and <type> are free text — neither derived nor validated here — so a
|
|
19
|
+
# caller outside the fleet can pass its own shape, e.g. next-ticket's
|
|
20
|
+
# human-facing `fix/<N>-<slug>`.
|
|
14
21
|
#
|
|
15
22
|
# The Install step and the Test entrypoint are READ from the repository's
|
|
16
23
|
# proven Recipe cache through derive-testcmd.sh — never inferred, never
|
package/scripts/stranded.mjs
CHANGED
|
@@ -200,10 +200,11 @@ const real = (p) => {
|
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
// A claim's names, off claim-ticket.sh's shapes for an implementer:
|
|
203
|
-
// `.worktrees/<N>-impl-<N
|
|
204
|
-
//
|
|
205
|
-
//
|
|
206
|
-
//
|
|
203
|
+
// `.worktrees/<N>-impl-<N>` and `implementer/<N>-impl-<N>`. Both also accept a
|
|
204
|
+
// `-x` retry letter that no fleet path writes — a replacement works in the
|
|
205
|
+
// first implementer's claim and never claims again — so a claim made by hand
|
|
206
|
+
// under such a name is still reported. Each captures the number and the slug
|
|
207
|
+
// release-ticket.sh takes. evict.mjs judges its candidates by the same two.
|
|
207
208
|
export const CLAIM_WORKTREE = /^([1-9][0-9]*)-(impl-\1(?:-[a-z])?)$/;
|
|
208
209
|
export const CLAIM_BRANCH = /^implementer\/([1-9][0-9]*)-(impl-\1(?:-[a-z])?)$/;
|
|
209
210
|
const WAYS_OUT = "push the branch and open a PR, or release the claim by hand";
|