fix(planner): a plan is made by a method, a performance change is tested on every GPU maker, and pictures are judged against main's nearest #139

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/planner-method into main 2026-11-22 16:59:00 +00:00
Owner

Summary

Planning was too narrow and too short. Longshot #2194 (a perf change to the ASTC decoder, whose description asks for NVIDIA, Intel and RADV) was planned on one any target. #2193 (a Vulkan pipeline-cache perf change) got linux+radv alone, one start a side and only absolute limits, with a note that Windows was left out "to keep the run short". The prompt opened with "Keep it short: a few minutes per tester is better than thirty", told the model to use one target for "most renderer work", and gave it a time to aim for that it read as covering every target.

The prompt (planner.system_text) is restructured:

  • A method first (METHOD, before the reference): 1 the claim and the risk, 2 the hardware, 3 the places, 4 the samples, 5 the rules, 6 the checks. The target rules leave the schema's tag syntax for step 2. The schema keeps syntax and accounting only.
  • A performance change gets one target per GPU maker online, split by OS where the drivers' code paths differ, plus every GPU, driver or OS the PR names (including "pending the Test Farm"). It is judged against main (max_delta_pct, min_delta_pct) on 3 starts a side, and may use 50 minutes a tester (PERF_AIM_MIN; others 30).
  • Targets add no time: they run on different PCs at once, said wherever the time is.
  • Linux-only cache scenarios give Windows targets an as_is scenario rather than drop Windows.
  • No more contradiction on starts (a repository save when one fits), no duplicated time rule. The schema text is no longer %-formatted, so its percent signs read as such.

Pictures failed on the scene alone. 146 picture rules failed in 4 days. Main's own pictures differ by 0.11 at the median between game starts (0.74 at p90). 86 of the failures had one start a side, so no measure of that noise, with limits of 0.02 to 0.05. Some pictures were taken after a stick's movement. Recomputing the stored failing pairs at 8x and 16x downscale barely changed them (most are 0.8 to 0.95 at any scale): they are different views, not small shifts.

  • ScenarioRunner.Nearest: each PR picture is judged against the nearest of main's pictures, and main's noise is measured the same way (each from the nearest of its others). Pairing start k with start k counted the scene's drift as the PR's.
  • plan.py and Plan.cs: a scenario whose pictures pass.screenshot compares needs runs = 2 or more (fixture bad-shot-one-start.toml).
  • The prompt asks for pictures where the scene stands still (after the map wait and 2 to 3 s), compare = "none" after movement, and max_diff 0.15 to 0.3. The docs' example (and example*.toml) said 0.02.

Nothing on screen changes.

Testing

Tested on the farm's server, in containers:

  • the coordinator suite (python:3.13-alpine, Postgres 17): 628 passed, 1 skipped; then test_plan.py and test_planner.py again after the last test was added (239 passed, the database tests left out). The rendered prompt was read whole.
  • the agent (dotnet/sdk:10.0): build, then test_agent_core.py --strict: 2433 checks passed. New: Nearest (two main views and PR pictures that match one each: no change; a black PR picture: over main's noise; one main picture: no noise).

Still to test: the next performance PRs' plans, and their picture rules.

πŸ€– Generated with Claude Code

## Summary **Planning was too narrow and too short.** Longshot #2194 (a perf change to the ASTC decoder, whose description asks for NVIDIA, Intel and RADV) was planned on one `any` target. #2193 (a Vulkan pipeline-cache perf change) got `linux+radv` alone, one start a side and only absolute limits, with a note that Windows was left out "to keep the run short". The prompt opened with "Keep it short: a few minutes per tester is better than thirty", told the model to use one target for "most renderer work", and gave it a time to aim for that it read as covering every target. The prompt (`planner.system_text`) is restructured: - **A method first** (`METHOD`, before the reference): 1 the claim and the risk, 2 the hardware, 3 the places, 4 the samples, 5 the rules, 6 the checks. The target rules leave the schema's tag syntax for step 2. The schema keeps syntax and accounting only. - **A performance change** gets one target per GPU maker online, split by OS where the drivers' code paths differ, plus every GPU, driver or OS the PR names (including "pending the Test Farm"). It is judged against main (`max_delta_pct`, `min_delta_pct`) on 3 starts a side, and may use 50 minutes a tester (`PERF_AIM_MIN`; others 30). - **Targets add no time**: they run on different PCs at once, said wherever the time is. - Linux-only cache scenarios give Windows targets an `as_is` scenario rather than drop Windows. - No more contradiction on starts (a repository save when one fits), no duplicated time rule. The schema text is no longer %-formatted, so its percent signs read as such. **Pictures failed on the scene alone.** 146 picture rules failed in 4 days. Main's own pictures differ by 0.11 at the median between game starts (0.74 at p90). 86 of the failures had one start a side, so no measure of that noise, with limits of 0.02 to 0.05. Some pictures were taken after a stick's movement. Recomputing the stored failing pairs at 8x and 16x downscale barely changed them (most are 0.8 to 0.95 at any scale): they are different views, not small shifts. - `ScenarioRunner.Nearest`: each PR picture is judged against the **nearest** of main's pictures, and main's noise is measured the same way (each from the nearest of its others). Pairing start k with start k counted the scene's drift as the PR's. - `plan.py` and `Plan.cs`: a scenario whose pictures `pass.screenshot` compares needs `runs = 2` or more (fixture `bad-shot-one-start.toml`). - The prompt asks for pictures where the scene stands still (after the map wait and 2 to 3 s), `compare = "none"` after movement, and `max_diff` 0.15 to 0.3. The docs' example (and `example*.toml`) said 0.02. Nothing on screen changes. ## Testing **Tested** on the farm's server, in containers: - the coordinator suite (python:3.13-alpine, Postgres 17): 628 passed, 1 skipped; then `test_plan.py` and `test_planner.py` again after the last test was added (239 passed, the database tests left out). The rendered prompt was read whole. - the agent (`dotnet/sdk:10.0`): build, then `test_agent_core.py --strict`: 2433 checks passed. New: `Nearest` (two main views and PR pictures that match one each: no change; a black PR picture: over main's noise; one main picture: no noise). **Still to test:** the next performance PRs' plans, and their picture rules. πŸ€– Generated with [Claude Code](https://claude.com/claude-code)
fix(planner): a plan is made by a method, a performance change is tested on every GPU maker, and pictures are judged against main's nearest
Some checks failed
CI / Coordinator image (pull_request) Successful in 14s
CI / Conventional Commit title (pull_request) Successful in 18s
CI / Workflow lint (actionlint) (pull_request) Successful in 18s
CI / Coordinator tests (pull_request) Failing after 1m23s
CI / Agent build and checks (pull_request) Successful in 1m26s
d3f2b2e052
Longshot #2194 (a perf change to the ASTC decoder, its description asking for NVIDIA, Intel and RADV) was planned on
one "any" target, and #2193 (a Vulkan pipeline-cache perf change) on linux+radv alone with one start a side and only
absolute limits, its note saying Windows was left out "to keep the run short". The prompt told the model to keep a
plan short ("a few minutes per tester is better than thirty"), to use one target for most renderer work, and gave it
a time to aim for that it read as covering every target.

- The prompt opens with a method, before the reference: the claim and the risk, the hardware, the places, the
  samples, the rules, the checks. The target rules leave the schema's tag syntax for step 2.
- A performance change gets one target per GPU maker online, split by OS where the drivers differ, plus every GPU or
  driver the PR names; it is judged against main (max_delta_pct, min_delta_pct) on 3 starts a side, and may use 50
  minutes a tester (PERF_AIM_MIN; others 30). Targets run on different PCs at once: they add no time a tester.
- A plan with Linux-only cache scenarios gives its Windows targets an as_is scenario rather than leave Windows out.
- No more contradiction on starts (a repository save when one fits), no duplicated time rule, and the schema text's
  percent signs no longer escaped (it is not formatted any more).
- Pictures: 146 picture rules failed in 4 days, most of them on the scene alone. Main's own pictures differ by 0.11
  at the median between game starts (0.74 at p90); 86 of the failures had one start a side (no measure of that) and
  limits of 0.02 to 0.05, some after a stick's movement. Now each PR picture is judged against the nearest of main's,
  main's noise the same way (ScenarioRunner.Nearest); a scenario whose pictures are compared needs runs = 2 or more
  (plan.py and Plan.cs); the prompt asks for pictures where the scene stands still, compare = "none" after movement,
  and max_diff 0.15 to 0.3. The docs' example (and its fixture) said 0.02.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #87 fix(rules): a picture is judged against main's own noise, not the limit alone β€” Earlier screenshot-noise baseline implementation; this changes its pairing method
  • issue #2 Spec: commit pins for test requests exist as Longshot pull request 71; two risks in the planned /beanstalk flow β€” Open spec issue discusses planner hardware-coverage safeguards
  • issue #88 The frame-time rule fails and passes PRs by chance, and the farm cannot see whether frame generation ran β€” Open issue proposes broader frame-time noise handling; adjacent planning context
Possibly related, for context: - PR #87 fix(rules): a picture is judged against main's own noise, not the limit alone β€” Earlier screenshot-noise baseline implementation; this changes its pairing method - issue #2 Spec: commit pins for test requests exist as Longshot pull request 71; two risks in the planned /beanstalk flow β€” Open spec issue discusses planner hardware-coverage safeguards - issue #88 The frame-time rule fails and passes PRs by chance, and the farm cannot see whether frame generation ran β€” Open issue proposes broader frame-time noise handling; adjacent planning context
HumanBean changed title from WIP: fix(planner): a plan is made by a method, a performance change is tested on every GPU maker, and pictures are judged against main's nearest to fix(planner): a plan is made by a method, a performance change is tested on every GPU maker, and pictures are judged against main's nearest 2026-11-22 16:58:22 +00:00
HumanBean deleted branch fix/planner-method 2026-11-22 16:59:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!139
No description provided.