A bead's workflow is split across Workers when a pool has more than one session #19

Merged
city-root merged 1 commit from fix/5wz-one-worker-per-bead into main 2026-11-11 20:46:01 +00:00
Contributor

gc pins a workflow's later steps to the session that claims its first only for steps that declare gc.continuation_group, and extends cannot add metadata to a parent's step, so mol-worker-work declares its six steps itself instead of extending mol-polecat-base. A step held by a session is neither demand for a new seat nor claimable by another, so a pool of five with one routed bead starts one session.

Every step after workspace-setup runs gc roles worktree check before anything else: pre-flights that pass on a stale tree are worse than a halt. gc roles worktree branch and the halt's git switch --detach free a branch a dead run's worktree still holds, which otherwise kept every other slot off the bead.

Verified: tests/formula.sh compiles the formula with gc in a throwaway city and checks every executable step carries the group and the check; tests/worktree.sh drives the two commands across three slot worktrees. gc lint . and the existing tests pass. Not verified against a live pool: that is root-0m1, which puts the rig pools back to 5 once this is released.

Bead: gascitypacks-5wz

gc pins a workflow's later steps to the session that claims its first only for steps that declare `gc.continuation_group`, and `extends` cannot add metadata to a parent's step, so `mol-worker-work` declares its six steps itself instead of extending `mol-polecat-base`. A step held by a session is neither demand for a new seat nor claimable by another, so a pool of five with one routed bead starts one session. Every step after `workspace-setup` runs `gc roles worktree check` before anything else: pre-flights that pass on a stale tree are worse than a halt. `gc roles worktree branch` and the halt's `git switch --detach` free a branch a dead run's worktree still holds, which otherwise kept every other slot off the bead. Verified: `tests/formula.sh` compiles the formula with gc in a throwaway city and checks every executable step carries the group and the check; `tests/worktree.sh` drives the two commands across three slot worktrees. `gc lint .` and the existing tests pass. Not verified against a live pool: that is `root-0m1`, which puts the rig pools back to 5 once this is released. Bead: gascitypacks-5wz
mol-worker-work: one Worker per bead in a pool of any size (gascitypacks-5wz)
All checks were successful
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Successful in 13s
test / scripts (pull_request) Successful in 24s
45f4edf324
gc pins a workflow's later steps to the session that claims its first only
for steps that declare gc.continuation_group, and `extends` cannot add
metadata to a parent's step, so the formula declares its six steps itself
instead of extending mol-polecat-base.

Every step after workspace-setup runs `worktree check` before anything else:
pre-flights that pass on a stale tree are worse than a halt. `worktree
branch` and the halt's detach free a branch a dead run's worktree still
holds, which otherwise kept every other slot off the bead.

Assisted-By: Claude <noreply@anthropic.com>
city-root referenced this pull request from a commit 2026-11-11 20:47:14 +00:00
city-root referenced this pull request from a commit 2026-11-11 20:48:07 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/gascitypacks!19
No description provided.