Repository navigation
Backlog
Backlog
Copy link
Milestone
Description
Parent
Ticket LF4 of spec #3028 (0.1.2): the boat.dev driver's cap, OPENWIZ_BOAT_MAX, and boat's own limits answered as full. Size: S.
What to build
adapters/boat/driver: readOPENWIZ_BOAT_MAX, a whole number from 1 to 1000, and leave it uncapped when unset. Any other value is refused under D3 before a sandbox is made.- Before a start makes a sandbox, count this driver's runs in
$OPENWIZ_BOAT_STATEthat are starting, or whose sandbox boat shows as not stopped. Use one read of boat's sandbox list (boat's CLI reference), not oneboat infoper run. A sandbox boat stopped for idleness frees its place. A list that can't be read counts as full, never as room. - At the cap, refuse with driver v1's full refusal (0.1.2 LF1: driver v1 says a host is full, and the host setting lists hosts in order #3029):
nextexactlythis host is full: start on the next host, or wait for a free place, anderrorlikeboat is full: 40 of 40 agents are running. No sandbox is made. - When
boat new(or the first prompt) is refused because the plan's concurrent sandboxes are used up, or because of its start-rate limit (boat never queues a start), stop anything made and answer the same full refusal. Recognise these by boat's documented error codes, never by its text. - One driver-wide lock file covers the count and the save, so two starts at once never both take the last place.
wakeandstopnever check the cap.adapters/boat/fixtures/bin/boat: the fake lists sandboxes and can answer the limit errors.adapters/boat/README.md: aCap:line underEffort:, plus a sentence that boat's own plan limits answer full too.changes/3033.md: oneaddedline (the fleet's standing supporting-edit rule covers it).
Owned paths
adapters/boat/driveradapters/boat/README.mdadapters/boat/test_driver.pyadapters/boat/fixtures/bin/boatadapters/boat/evidence/(shared: this ticket's red-first receipt only)changes/3033.md(new)
Relies on: kernel/driver.v1.md
Links
- 0.1.2 LF1: driver v1 says a host is full, and the host setting lists hosts in order #3029 real: the full refusal's exact text and the start-only rule this driver answers with
Acceptance criteria
- With
OPENWIZ_BOAT_MAX=1and one sandbox running, a start answers the exact full refusal and makes no sandbox - Once the fake shows that sandbox stopped, the next start goes ahead
- boat's concurrency-limit and start-rate refusals each answer full, and the sandbox made is stopped
- An unreadable sandbox list answers full
- A wake at the cap runs
- Unset keeps every existing test passing
-
python3 -I adapters/boat/test_driver.pypasses, red first inadapters/boat/evidence/
Proof
P2 (drivers): the fixture tests, red first.
Metadata
Metadata
Assignees
Labels
No labels
Activity