Skip to content

0.1.2 LF4: the boat.dev driver caps agents at OPENWIZ_BOAT_MAX and answers full #3033

Backlog

Description

@jparker2006

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: read OPENWIZ_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_STATE that are starting, or whose sandbox boat shows as not stopped. Use one read of boat's sandbox list (boat's CLI reference), not one boat info per 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): next exactly this host is full: start on the next host, or wait for a free place, and error like boat 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.
  • wake and stop never check the cap.
  • adapters/boat/fixtures/bin/boat: the fake lists sandboxes and can answer the limit errors.
  • adapters/boat/README.md: a Cap: line under Effort:, plus a sentence that boat's own plan limits answer full too.
  • changes/3033.md: one added line (the fleet's standing supporting-edit rule covers it).

Owned paths

  • adapters/boat/driver
  • adapters/boat/README.md
  • adapters/boat/test_driver.py
  • adapters/boat/fixtures/bin/boat
  • adapters/boat/evidence/ (shared: this ticket's red-first receipt only)
  • changes/3033.md (new)

Relies on: kernel/driver.v1.md

Links

Acceptance criteria

  • With OPENWIZ_BOAT_MAX=1 and 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.py passes, red first in adapters/boat/evidence/

Proof

P2 (drivers): the fixture tests, red first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions