fleetd #226: reserve architect slots before launch #228
Reference in New Issue
Block a user
Delete Branch "worker/cb226-architect-slot-race-cd3aa8-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes fleetd #226.
Production change
Tests
Charter receipt correction
I dropped the claim that CharterReceipt.role proves charter delivery. That field echoes the request. The no-agent.start contention test is the criterion 4 proof.
Reservation release
I counted two acquire branches: normal and worktree. In the normal branch, one RuntimeException catch covers launcher.spawn and later setup before return; it releases an unbound reservation. In the worktree branch, the outer RuntimeException catch releases the reservation for worktree setup, launcher.spawn, and setup after launch. A successful bind removes the reservation and creates the live terminal binding, so it must not be released. The failed-readiness-then-retry test covers the launcher exception path.
Build
mvn clean install
Tests run: 1092, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS