Skip to content

Holds: Parking… and Draining… until the transition really finishes - #90

Merged
hhff merged 1 commit into
mainfrom
hold-transitions
Nov 4, 2026
Merged

hhff merged 1 commit into
mainfrom
hold-transitions

Conversation

@hhff

@hhff hhff commented Nov 4, 2026

Copy link
Copy Markdown
Member

What

  • scripts/devteam.mjs: a parked goal's sessions count as settled only once each is stopped (phase parked), its branch is on origin as it is locally, its worktree is clean, and its handoff is recorded (sessionSettled). Until then the goal's state is parking. draining is unchanged: it lasts until in-flight work stops.
  • dashboard:
    • The labels: parking and draining read Parking… and Draining… on goal cards, in the goal panel and on the Upkeep card.
    • The fleet strip: a goal held by a fleet op stays in its transition until fleet status says the fleet is ready to move. The strip reads Fleet parking… or Fleet draining… until then, and Fleet parked or Fleet drained after.
    • Polling: while a transition is under way, the dashboard re-checks fleet status every 2 minutes, and every 10 once the fleet is ready. It redraws the goal cards when readiness changes.
  • test: in the fleet park end to end, Upkeep reads parking after its worker stops but before it pushes its handoff, and parked after.

Why

During the Stacks park, the owner saw every goal say "Parked" while fleet status still said "not ready to move". The label claimed the transition had finished when it hadn't.

Migration

None.

Tested

41/41 on Node 18.20.4, 20.19.6 and 24.14.1.

🤖 Generated with Claude Code

… finish

The owner saw every goal say Parked while the fleet was still not ready
to move. A goal now parks only when each of its sessions has settled:
stopped, pushed, clean and handed off; until then it is parking. A goal
the fleet op holds stays Parking… or Draining… until fleet status says
the fleet is ready to move, and the fleet strip says Fleet parking… /
draining… until then too. The dashboard checks fleet status every two
minutes while a transition is under way, and redraws the goal cards when
the fleet becomes ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hhff
hhff merged commit 1bbc67c into main Nov 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant