Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
A Spec run runs several ready Tickets at once.
- The limit.
[spec] parallelin the User config: a positive integer, default 3. It is a new known section and key; anything else in[spec]is an unknown key, as for other sections.thirdshift setupwrites it at its default with a comment, like every other setting, and doesn't ask about it. - The flag.
parallel <n>/--parallel <n>, in any position, takes the next token as the number, follows the flag-once rule, and wins over the config.0, a negative number or a non-number is an argument error (exit 2, with the help).parallelon an issue that turns out not to be a Spec stops at preflight before any work. - Scheduling. Whenever a Ticket's Run ends, the Spec run starts ready Tickets (lowest number first) until the limit is reached.
- Concurrency safety. Child Runs share the Launch directory. Creating worktrees, fetching and choosing Issue branches there at the same time must not fail on git's lock files (e.g. serialise worktree creation, or retry on a lock).
- Harness. The fake
ghtakes a file lock around every read and write of its state, since parallel child Runs call it at once.
Help and the README document parallel and spec.parallel.
Acceptance criteria
- With two independent Tickets, both Ticket sessions start before either Ticket lands, and a Ticket blocked by both starts only after both land
-
parallel 1runs the same Tickets one at a time -
spec.parallel = 1in the User config does the same, and--parallel 2wins over it - Without either, at most 3 Tickets run at once
-
parallel 0,parallel -1andparallel xexit 2 with the help; a repeatedparallelexits 2 -
spec.parallel = 0, a non-integer, and an unknown key in[spec]are User config errors before any work -
parallel 2on an issue with no sub-issues stops before any work, naming the flag - Two Tickets starting together in one Launch directory both get their worktrees
-
thirdshift setupwritesspec.parallel = 3with a comment - Help and README document
parallelandspec.parallel
Blocked by
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Merge origin/main into issue-147