Repository navigation
Backlog
Milestone
Description
Parent
Ticket LF5 of spec #3028 (0.1.2): launch-fleet starts on the first host with room, in the order Host: lists them, and waits when all are full. Size: S.
What to build
In openwizdev/WizSkills, skills/launch-fleet/scripts/host.py, for a project without a Roster:
chosen()reads the oneHost:line as records v1 section 6 now allows (0.1.2 LF1: driver v1 says a host is full, and the host setting lists hosts in order #3029): 1 to 8 comma-separated names with no repeats. Anything else is exit 2, as a bad line is today.whichprintshost: local, boat.starttries each host in order. A refusal in exactly driver v1's full shape (nextis exactlythis host is full: start on the next host, or wait for a free place) is never retried and never reported. It is logged to the owner-only driver log, and the next host is tried.- Any other refusal keeps today's path (0.1.0 KN11: a failed driver start or wake retries twice, then shows on the ticket with the driver's next text #1446): three tries, then the failure note and comment. It never moves on to the next host.
- The run is saved with the host that took it, so
wakeandstopreach it (H2, unchanged). - When every host answers full, exit 1 with one line:
waits: every host is full (local, boat); the start is tried again on the next wake. No status note, no failure comment, nothing saved. skills/launch-fleet/SKILL.md: one sentence where host starts are described. Awaits:start is left for the next wake, like a ready ticket without a run..changeset/3034-host-overflow.md: the WizSkills changeset.- If 0.1.2 polish H2: host.py's role-named token requests and quoted versions #2453 or 0.1.1 KN21: launch-fleet picks who starts a ticket from the Roster #1854 merged first, rebase over them. Both edit
host.py.
Owned paths
skills/launch-fleet/scripts/host.pyinopenwizdev/WizSkillsskills/launch-fleet/scripts/test-host.pyinopenwizdev/WizSkillsskills/launch-fleet/SKILL.mdinopenwizdev/WizSkills(shared: the one host-start sentence).changeset/3034-host-overflow.mdinopenwizdev/WizSkills(new)
Relies on: kernel/driver.v1.md in openwizdev/OpenWiz, kernel/records.v1.md in openwizdev/OpenWiz
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 ordered host line this reader parses
Acceptance criteria
- With
Host: local, boatand a fake local driver that answers full, the start goes to boat, and the runs file savesboat - Both full: the
waits:line, exit 1, no note, no comment, nothing saved, and no retry - A non-full refusal on local is retried and reported as today, and boat is never called
-
Host: localalone behaves exactly as before, with every existing test green - Repeats, more than 8 names, or a bad name: exit 2, nothing started
- A wake goes to the saved host whatever the line says now
-
python3 -I skills/launch-fleet/scripts/test-host.pypasses, red first
Proof
P3 (routing): test-host.py on fake drivers, red first.
Metadata
Metadata
Assignees
Labels
No labels
Activity