feat(coordinator): a smarter planning prompt: uncapped measurement, CPU- or GPU-bound scenarios, cleaned up #172
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!172
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/planner-prompt"
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?
What
A rewrite of the AI planner's prompt (
coordinator/beanstalk/planner.py) so plans measure what the change actually affects. It changes only the prompt and the test assertions that quote it.Why
At the game's default 60 fps cap every PC reports about 16.7 ms a frame on both sides, so frame-time comparisons can't show a change. On Longshot #2839 (a GPU-side page-table lookup), a maintainer had to spell out "uncapped, vsync off, so the GPU is the limit". The planner should do that unasked.
The new measurement step (METHOD step 4)
frame_rate_cap = 6andvsync = 2, unless the change is about the cap, pacing, vsync or dynamic resolution.quality_preset = 0(never Auto),resolutionnever 0 (Auto is dynamic resolution),RX_VK_AUTO_TUNE = "0".HOS_OUTPUT_RES = "2560x1440".HOS_OUTPUT_RES = "1280x720".resolution = 4) with a live option step, so it costs no extra game start.gpu_passes/gpu_total_msare offered to show a run really was GPU-bound.HOS_OUTPUT_REStakes effect headless: Longshot'shost/nn_applet.c:169-171reads it at boot, and only the handheld profile skips it. The headless present image is fixed at 1920x1080 (vk_main.cpp:2111), but that is not the size the game renders at. Without it the output is the game's 2560x1440, or the tester's screen when that is smaller, so pinning it also makes testers alike.Cleanup
schema = 11, always:check_planaccepts 11 for any plan and lowers it itself.RX_VK_GPU_PROFILEis forbidden.driver_warmcount toward the time estimate.The whole prompt is about the same length.
Not run locally
Written by a Claude agent and checked by another; nothing run on this PC (no local Beanstalk runs). CI's coordinator tests run
test_planner.py.docs/test-plan.mdlines 273 and 591 are now slightly stale (the method steps, the 1920x1080 claim), left for a docs follow-up.🤖 Generated with Claude Code
Possibly related, for context:
cc03a99d4e617531e4b2