feat: plan schema 10 runs a scenario in a hidden window, and a log line may be unjudged when missing #127
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!127
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/hidden-window-runs"
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?
Follows #126. This change lets a plan run the game in a real window and swapchain, so present, swapchain and acquire switches such as Longshot #1574's
RX_VK_ACQUIRE_AHEADcan be measured. The window is never shown to the tester.Plan schema 10
window = trueon a scenario:HOS_HEADLESS=0,HOS_WINDOW_NOACTIVATE=1andHOS_WINDOW_SIZE=1920x1080.window.log_matchmissing = "unjudged": an expected line that never appears makes the rule "couldn't be judged" instead of a PR failure. It's for a line printed on a path the run may not reach.coordinator/beanstalk/plan.pyandagent/Core/Plan.cs. Seven new shared fixtures test them.Agent
In the AppContainer sandbox, the game of a window scenario starts on a private desktop that Windows never shows. The agent creates it before the game starts and closes it after.
Only Windows with the AppContainer gets the
windowtag:A window scenario on a PC that can't run one is an error ("couldn't be judged"), never a fail.
The agent reads plan schema 10.
Not known until a real tester runs it
The first check is an A/B of
RX_VK_ACQUIRE_AHEAD=0against unset on windows+amd, once the nightly is out. Until a tester has thewindowtag, #126 still holds requests for a window.Tests
On throwaway containers:
There are no screenshots: nothing on screen changes except the plan's words ("in a hidden window (the present path runs)").
🤖 Generated with Claude Code
WIP: feat: plan schema 10 runs a scenario in a hidden window, and a log line may be unjudged when missingto feat: plan schema 10 runs a scenario in a hidden window, and a log line may be unjudged when missingRecommendation: Request changes. A hidden-desktop driver stall can be reported as a PR failure even though the PR says that case is unjudged. The new missing-line handling also gives an incorrect result for valid minimum rules.
The change adds hidden-window scenarios and an option to treat missing expected log lines as unjudged. It could let the farm measure presentation paths, but that behavior is not yet demonstrated on a tester, and the failure classification and review requirements need correction.
Does it help: Unproven. The PR reports 609 coordinator tests passed with one skipped and 2,300 agent checks passed, but no real tester has demonstrated desktop access, swapchain creation, acquisition or presentation. This is a feature change, not a claimed performance gain.
Other systems: The window tag is limited to Windows AppContainer agents; Linux, the Windows runner account and no-sandbox mode cannot run window scenarios. AMD and NVIDIA driver behavior and the desktop access list remain unverified. Existing stall detection can turn an unsupported hidden presentation path into a failure.
Switches: Scenario window defaults to false; log_match missing defaults to fail. Window scenarios set HOS_HEADLESS=0, HOS_WINDOW_NOACTIVATE=1 and HOS_WINDOW_SIZE=1920x1080. These defaults are documented, but the window configuration needs a real Windows run before its suitability is established.
Reviewed:
02ff1c354dagainst98bb71e670: Read repository rules, the commit, production diffs, changed tests and fixtures, and relevant environment, rule evaluation and Windows process-lifetime code. The larger changed production files and their callers were inspected selectively rather than read in full. Skimmed documentation changes. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Blocking (to change before merge)
Suggestions (the author may take or leave)
Testing: No commands from the project or tests were run, as requested. The reported test counts are from the PR description; Windows driver and desktop access checks remain outstanding.
Overlaps and merge order: The PR says it follows Beanstalk #126; its contents and merge order could not be verified in the offline checkout.
Automated code review by BeanBot (gpt-6.1-terra), on the pull request's opening. Nothing was run; a maintainer decides.
@ -299,1 +302,4 @@var fails = rule.Kind == "max" ? p > rule.Limit : p < rule.Limit;// (log_match's missing = "unjudged", schema 10: a line printed only on a path the run may not reach; its// absence says the run didn't get there, not that the PR broke it)if (fails && rule.Metric == "log_expected_missing" && plan.Probe("log_match")?.Missing == "unjudged")This also catches a failing
log_expected_missing.minwhen no lines are missing, and reports that a line never appeared. Please restrict the conversion to failures caused by missing lines and cover minimum and delta rules.@ -402,3 +412,3 @@ReadOnly = readOnly.Concat(view.ReadOnly).ToList(),Writable = socketDir == null ? new[] { gameDir, dir } : new[] { gameDir, dir, socketDir },Mounts = view.Mounts, Env = runEnv, Gpu = true,Mounts = view.Mounts, Env = runEnv, Gpu = true, HiddenWindow = sc.Window,A driver that blocks presenting on this desktop can reach the existing stall-to-hang path, which marks the run crashed and fails the PR. The description promises that this limitation is unjudged. Please distinguish that case and cover it with a behavioral check.
@ -1560,6 +1591,8 @@ def describe_plan(plan: dict) -> list[str]:extra.append("switches " + ", ".join("`%s=%s`" % kv for kv in sc["env"].items()))if sc.get("cache"):extra.append(CACHE_WORDS_SC[sc["cache"]] + ", Linux only for now")if sc.get("window"):This adds text visible in the plan description. CONTRIBUTING.md requires screenshots for on-screen changes; please add the dashboard screenshots at desktop and phone widths to the PR.