fix(agent): a scenario with a start that ran out of time is judged on its other starts when each side has enough #134

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/judge-past-timeouts into main 2026-11-21 18:03:22 +00:00
Owner

Summary

Rules.Result gave error (could not be judged) to any report with a scenario of status timeout, which a single start that ran out of time at a step causes. On the farm that is mostly a teleport from the Kokiri checkpoint that the game holds for an event that never ends ("cheats: teleport waits until the current event ends"), on main and PRs alike: 53 scenarios in 4 days had a step run out of time. So adding starts, to get more samples (#133), only added chances to lose the report.

  • Rules.JudgedDespiteTimeouts: a timeout scenario is judged on its other starts when each side has at least 2 usable starts (the frame-time comparison's own minimum), more usable starts than timed-out ones, and no start crashed, hung or failed otherwise. A PR that breaks a load times out every start and still gets error; a PR crash still fails first.
  • ScenarioResult.Median leaves out a side's timed-out starts when it has others: a start stuck at a teleport measured the wait, not the place (its run_frametime_max_ms was 2 s).
  • Rules.Usable names the existing usable-start test, now shared.
  • docs/report-schema.md says so. The scenario's note still says what ran out of time.

Nothing on screen changes.

Testing

Tested on the farm's server, in a container (dotnet/sdk:10.0): build, then test_agent_core.py --strict: 2363 checks passed. New checks in ProbeChecks: 2 good starts a side plus one stuck PR start is judged and passes, with the stuck start's 9000 MB left out of the median (4050, not 4100); one good PR start is too few; a hang besides is never left out; as many timed-out PR starts as good ones stays error.

Still to test: the farm's reports after the next nightly.

🤖 Generated with Claude Code

## Summary `Rules.Result` gave `error` (could not be judged) to any report with a scenario of status `timeout`, which a single start that ran out of time at a step causes. On the farm that is mostly a teleport from the Kokiri checkpoint that the game holds for an event that never ends ("cheats: teleport waits until the current event ends"), on main and PRs alike: 53 scenarios in 4 days had a step run out of time. So adding starts, to get more samples (#133), only added chances to lose the report. - `Rules.JudgedDespiteTimeouts`: a `timeout` scenario is judged on its other starts when each side has at least 2 usable starts (the frame-time comparison's own minimum), more usable starts than timed-out ones, and no start crashed, hung or failed otherwise. A PR that breaks a load times out every start and still gets `error`; a PR crash still fails first. - `ScenarioResult.Median` leaves out a side's timed-out starts when it has others: a start stuck at a teleport measured the wait, not the place (its `run_frametime_max_ms` was 2 s). - `Rules.Usable` names the existing usable-start test, now shared. - `docs/report-schema.md` says so. The scenario's `note` still says what ran out of time. Nothing on screen changes. ## Testing **Tested** on the farm's server, in a container (`dotnet/sdk:10.0`): build, then `test_agent_core.py --strict`: 2363 checks passed. New checks in `ProbeChecks`: 2 good starts a side plus one stuck PR start is judged and passes, with the stuck start's 9000 MB left out of the median (4050, not 4100); one good PR start is too few; a hang besides is never left out; as many timed-out PR starts as good ones stays `error`. **Still to test:** the farm's reports after the next nightly. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): a scenario with a start that ran out of time is judged on its other starts when each side has enough
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 22s
CI / Workflow lint (actionlint) (pull_request) Successful in 19s
CI / Coordinator image (pull_request) Successful in 14s
CI / Agent build and checks (pull_request) Successful in 58s
CI / Coordinator tests (pull_request) Failing after 1m43s
285b1e45aa
Any start of a scenario that ran out of time at a step (a teleport the game holds for an event that never ends, on main
and PRs alike: 53 scenarios in 4 days) made the whole report "could not be judged", whatever the other starts measured.
More starts a side then only meant more chances of one. Now such a scenario is judged on the rest when each side still
has two usable starts, more of them than ran out of time, and no start failed otherwise. A PR that breaks a load still
runs out of time in every start, and a crash or a hang still counts as before. A side's medians leave out its starts
that ran out of time, which measured the wait, not the place.

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

Possibly related, for context:

  • issue #112 Scenarios time out at the first map wait because the teleport right after a save loads doesn't take — Same map-wait timeout symptom; this PR changes report judgment, not the teleport cause.
  • PR #94 fix(rules): mark under-sampled frame-time comparisons inconclusive — Merged two-usable-start threshold this PR extends with timeout handling.
Possibly related, for context: - issue #112 Scenarios time out at the first map wait because the teleport right after a save loads doesn't take — Same map-wait timeout symptom; this PR changes report judgment, not the teleport cause. - PR #94 fix(rules): mark under-sampled frame-time comparisons inconclusive — Merged two-usable-start threshold this PR extends with timeout handling.
HumanBean changed title from WIP: fix(agent): a scenario with a start that ran out of time is judged on its other starts when each side has enough to fix(agent): a scenario with a start that ran out of time is judged on its other starts when each side has enough 2026-11-21 18:03:12 +00:00
HumanBean deleted branch fix/judge-past-timeouts 2026-11-21 18:03:23 +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!134
No description provided.