Repository navigation
Backlog
Milestone
Description
Parent
Ticket LF2 of spec #3028 (0.1.2): the Roster tries the next candidate when a host answers full. Contract and fixtures. Size: S.
What to build
Contract first: LF6 builds launch-fleet's Roster spill-over against this. The full refusal's exact text is fixed in spec #3028 (LF1 writes it into driver v1 in parallel).
contracts/roster.v1.md, pick rule 4. A picked entry whose driver answers with driver v1's full refusal (nextexactlythis host is full: start on the next host, or wait for a free place) isn't a failed start: the next candidate in table order is tried.- Any other refusal is retried and reported as today, and the next candidate is never tried in its place.
- When every candidate answers full, the start waits, and the fleet says exactly
roster: every entry for the <R> role is full; the start waits. - A wake or stop still goes through the driver that started the run.
- New fixture cases under
contracts/fixtures/roster/, each withfleet.mdandcase.json:full/: the first host entry is full and the second is picked.all-full/: the start waits, with the line above.full-then-failed/: a failure after a full answer is reported as a failure and isn't passed on.- Add each to the contract's case table. Each pick in
case.jsonmay carry one new optional field,full: the names of the entries whose driver answers full. Old cases carry none.
contracts/fixtures/roster/roster_contract.rs: the reference reader takes thefullnames and checks each new case.
Owned paths
contracts/roster.v1.md(shared: pick rule 4, the case table and the fixture field only)contracts/fixtures/roster/full/(new)contracts/fixtures/roster/all-full/(new)contracts/fixtures/roster/full-then-failed/(new)contracts/fixtures/roster/roster_contract.rs
Relies on: nothing
Links
none
Acceptance criteria
- Rule 4 passes a full answer to the next candidate and keeps every other refusal as today
- The all-full wait line is exactly as above
-
cargo test -p openwiz-tests --test cli-agent roster_contractpasses with the three new cases and every old case unchanged, red first on the old reader
Proof
P1 (contracts): the reference reader runs the new fixtures, red first.
Metadata
Metadata
Assignees
Labels
No labels
Activity