feat(agent): a GPU-bound scenario's size by this PC's GPU (4K on the biggest cards), and no job while the game files are gone #173

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:feat/gpu-output-size into main 2026-11-30 02:51:41 +00:00
Owner

What

Two agent changes, and the prompt line that goes with the first.

A GPU-bound scenario's size by this PC's GPU

  • The token: a plan's HOS_OUTPUT_RES = "gpu" now means "this tester's size for loading its GPU", chosen by the agent from its own GPU (OutputSizes.ForGpu).

  • Sizes:

    GPU Output size
    RTX 3090, 4080, 4090, 5080 or 5090; Titan RTX; RTX (Pro) 6000; RX 7900 XT or XTX; RX 9070 XT (desktop cards) 3840x2160
    An integrated GPU or a handheld 1920x1080
    Every other GPU 2560x1440
  • Fairness: main and the PR run at the same size on each tester, so each comparison stays fair.

  • In the report: each run's switches show the size used (run.Switches), not the word "gpu".

  • The prompt (#172's step 4) now asks for "gpu" on GPU-side code, so the farm planner uses it. Explicit sizes ("1280x720" for CPU-side code and non-performance plans) are kept as they are.

  • Old agents (nightly-292 and before): they pass gpu to Longshot, which can't read it and falls back to its default output (2560x1440, or the screen if that is smaller). That is about what #172 asked for, so nothing breaks while testers update.

No job while the game files are gone

  • The failure: a tester (agent-65553b) failed 70+ tries in two days. Its .nup was set but not reachable: first permission errors, then game_not_found, then "Could not access your .nup file". The agent checked only that game files were set, so it went on taking jobs that each failed at their first step.
  • The fix: each pass of the main loop now checks that the .nup (or the dump's two folders) is there (GameFiles.Unreachable). While it isn't:
    • The agent takes no job.
    • Its window shows the trouble in plain words: connect the drive, or choose the file again, and a local drive is best.
    • It tells the coordinator trouble with a short reason, which shows on its Testers page.
    • It logs the reason once.
  • Recovery: when the files come back, it takes jobs again.

Tests

  • GameFileChecks: a reachable .nup, a gone one, and a dump with one folder gone.
  • ScenarioIsolationChecks: the size table, including a laptop 4090 at 1440p, and that only HOS_OUTPUT_RES = "gpu" is resolved.
  • Three runner tests used a made-up .nup path. They now write an empty one in their own folder, since an unreachable .nup now takes no job.

Not run locally

Nothing built or run on this PC (no local Beanstalk runs). CI's "Agent build and checks" and coordinator tests are the check.

🤖 Generated with Claude Code

## What Two agent changes, and the prompt line that goes with the first. ### A GPU-bound scenario's size by this PC's GPU - **The token:** a plan's `HOS_OUTPUT_RES = "gpu"` now means "this tester's size for loading its GPU", chosen by the agent from its own GPU (`OutputSizes.ForGpu`). - **Sizes:** | GPU | Output size | |---|---| | RTX 3090, 4080, 4090, 5080 or 5090; Titan RTX; RTX (Pro) 6000; RX 7900 XT or XTX; RX 9070 XT (desktop cards) | 3840x2160 | | An integrated GPU or a handheld | 1920x1080 | | Every other GPU | 2560x1440 | - **Fairness:** main and the PR run at the same size on each tester, so each comparison stays fair. - **In the report:** each run's switches show the size used (`run.Switches`), not the word "gpu". - **The prompt** (#172's step 4) now asks for `"gpu"` on GPU-side code, so the farm planner uses it. Explicit sizes (`"1280x720"` for CPU-side code and non-performance plans) are kept as they are. - **Old agents (nightly-292 and before):** they pass `gpu` to Longshot, which can't read it and falls back to its default output (2560x1440, or the screen if that is smaller). That is about what #172 asked for, so nothing breaks while testers update. ### No job while the game files are gone - **The failure:** a tester (`agent-65553b`) failed 70+ tries in two days. Its `.nup` was set but not reachable: first permission errors, then `game_not_found`, then "Could not access your .nup file". The agent checked only that game files were *set*, so it went on taking jobs that each failed at their first step. - **The fix:** each pass of the main loop now checks that the `.nup` (or the dump's two folders) is there (`GameFiles.Unreachable`). While it isn't: - The agent takes no job. - Its window shows the trouble in plain words: connect the drive, or choose the file again, and a local drive is best. - It tells the coordinator `trouble` with a short reason, which shows on its Testers page. - It logs the reason once. - **Recovery:** when the files come back, it takes jobs again. ## Tests - `GameFileChecks`: a reachable `.nup`, a gone one, and a dump with one folder gone. - `ScenarioIsolationChecks`: the size table, including a laptop 4090 at 1440p, and that only `HOS_OUTPUT_RES = "gpu"` is resolved. - Three runner tests used a made-up `.nup` path. They now write an empty one in their own folder, since an unreachable `.nup` now takes no job. ## Not run locally Nothing built or run on this PC (no local Beanstalk runs). CI's "Agent build and checks" and coordinator tests are the check. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(agent): a GPU-bound scenario's size by this PC's GPU (4K on the biggest cards), and no job while the game files are gone
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 11s
CI / Workflow lint (actionlint) (pull_request) Successful in 11s
CI / Coordinator tests (pull_request) Failing after 1m30s
CI / Coordinator image (pull_request) Successful in 16s
CI / Agent build and checks (pull_request) Successful in 2m20s
5a3da35178
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!173
No description provided.