feat(agent): a save start loads the save with Longshot's HOS_BOOT_SAVE, with no presses (carries #91) #136
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!136
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/boot-save-rebased"
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?
Carries #91 (by dyst) onto current
main, unchanged but for the rebase. dyst's four commits apply with no conflict, and the switch is Longshot's current name,HOS_BOOT_SAVE(MagicBeanDev/Longshot#1577 renamed it fromHOS_OOT_BOOT_SAVE; #91's last commit already follows it). Opened from a fork because #91's branch couldn't be updated from here.Tested on the rebased head, on the farm's server in containers: the coordinator suite (python:3.13-alpine, Postgres 17), 619 passed, 1 skipped; the agent (
dotnet/sdk:10.0), build, thentest_agent_core.py --strict, 2420 checks passed.Longshot#1577 is still open, so no build has
status.boot_saveyet: until it merges, every save start presses through the title as now.#91's description:
A farm run that starts from a repository save gets into play by pressing A through the title screen and the save list
about once a second, which races the game's start. Longshot's new
HOS_BOOT_SAVE(MagicBeanDev/Longshot#1577) starts the game straight in the save with no title screen and no presses; this makes it
the agent's start for
save:<name>, and keeps the presses for builds that don't have it.What changed
ScenarioRunner.StartEnv: asave:<name>start setsHOS_BOOT_SAVE=slot_00for the game (the repository save isthe run's only slot). It is the agent's own: a plan may not set it (
Plan.cs's andplan.py's deny lists, theplanner's text,
docs/test-plan.md), so atitlestart stays a title start.ScenarioRunner.PressIntoPlay:IntoPlayAsyncpresses no A while the game's own start carries it, which its bridge'sstatus.boot_savesays (waiting,picked,loaded). A build without the switch has noboot_save(and reads nosuch switch), and one whose start let go says
off,refusedorfailed: A is pressed through the title asbefore. So both sides of an A/B get into play whichever has the switch, and
IntoPlayLimitstill bounds the wait.docs/test-plan.md: thesave:<name>start says how it gets into play.Nothing changes for
titleandnewstarts, the steps, the probes or the reports.How it was tested
python -I agent/tests/test_agent_core.py --strict(Windows): 1957 checks, with new ones in the scenario isolationchecks:
StartEnvfor each start,PressIntoPlayover eachboot_savevalue and with none.coordinator/tests/test_plan.py: 186 passed, with the new refusal ofHOS_BOOT_SAVEin a plan. The planner'sdatabase tests need Postgres on Linux and were not run here (only its prompt text changed).
In the game (Windows 11, RTX 3080, 621.14), the agent's rule driven through the control bridge with the
kokiri-startsave (HOS_BOOT_SAVE=slot_00, A only whenPressIntoPlaywould press), twice against each sideof an A/B packed over the same base:
status.boot_saveloadedAll four ended at the same position and facing. Time from the first frame to play: 12.5 and 18.8 s with the switch,
25.5 and 16.1 s pressed: no difference resolved, so this is about a start with no presses, not speed (the first run
with the switch also spent 71 s starting a freshly copied runtime before its first frame).
Two cold reviews by a second agent; their fixes are in
9537048and8f924b8:RunScenarioAsync;[scenario.env],[matrix]and[matrix.pr_only], and both readers must refuse each for that switch (removing the agent's deny entry now fails the checks);TryGetValue;boot_save"failed" ends the start with its own reason;boot_saveit ended in.With these the agent's checks pass: 1981.
Not run: a whole
beanstalk-agent run --pr(it builds both sides and wants 150 GB free; this PC had 59 GB).Depends on
MagicBeanDev/Longshot#1577 for the switch itself. Merged before it, this changes nothing a tester sees: no build has
boot_saveyet, so every start presses as now.🤖 Generated with Claude Code
WIP: feat(agent): a save start loads the save with Longshot's HOS_BOOT_SAVE, with no presses (carries #91)to feat(agent): a save start loads the save with Longshot's HOS_BOOT_SAVE, with no presses (carries #91)Possibly related, for context:
f2952bfc44d31838dfb7