feat(coordinator): the planner holds a request the farm can't answer, and says so first #126

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:feat/planner-holds into main 2026-11-20 21:07:03 +00:00
Owner

Longshot #1574 asked for RX_VK_ACQUIRE_AHEAD "in a window (not full screen) ... not headless". The planner noted in its prose that the farm can't exercise the present path, then queued a 6-target run of about 10 hours anyway. That run compared the same code on both sides and failed on the log lines it had said would be missing. #1681's plan had the same limit.

What changes

  • A request for a window is held at once. Words such as "in a window", "windowed" or "not headless" hold the commit before the model is asked, while no tester online has the window tag. Nothing is built or run. Words containing "anyway" (@Beanstalk test it anyway) run it regardless.
  • The model can hold a request, and add notes. Its answer gains two fields:
    • blocked: why no plan can answer the request. The commit is held the same way, and the plan's summary is shown as what it could test instead.
    • up to 3 notes, shown first on the sticky, on a manual run's reply and on the dashboard.
  • New prompt facts:
    • The game runs headless, so present and swapchain code never runs.
    • Read what a switch's unset value means on each target before comparing against it. #1574 makes unset mean on with AMD's Windows driver: note that, and compare =0 against unset there.
    • Never make a pass rule of a log line the run can't reach.
  • The sticky opens with Not run: the farm can't test this as asked and the reason. beanstalk/approval fails with "can't be tested as asked".
  • Migration 0024 adds plan_notes to commits and runs.

Real windowed runs, hidden from the tester's screen, follow in a separate PR (plan schema 10, a window tag). Once testers have that tag, the hold no longer applies.

What the sticky says now

Beanstalk test · ⛔ can't be tested as asked

Not run: the farm can't test this as asked, so nothing is built or run:

the request asks for the game 'in a window', but the farm runs every game headless (no window and no swapchain), so code that acts only when the game presents to a window never runs on either side and its log lines never appear. Ask for what a headless run can show, or say to run it anyway.

A member of BigBeans can comment @Beanstalk <new words> to ask for something else, or @Beanstalk test it anyway to run the plan regardless.

A note on a plan that runs:

⚠️ Note: On windows+amd unset already means on: compared =0 against unset.

Tests

The coordinator suite on a throwaway container: 603 passed, 1 skipped. New tests:

  • test_a_request_for_a_window_is_held_before_the_model
  • test_the_model_can_hold_a_request_and_note_what_it_leaves_out
  • test_blocked_and_notes_are_checked

Also in this round: #1860 and #1880 were never waiting for a second approval. Those comments came from farm versions before v60. Both were rebuilding all 556 lifted files, because they change the translated code.

🤖 Generated with Claude Code

Longshot #1574 asked for `RX_VK_ACQUIRE_AHEAD` "in a window (not full screen) ... not headless". The planner noted in its prose that the farm can't exercise the present path, then queued a 6-target run of about 10 hours anyway. That run compared the same code on both sides and failed on the log lines it had said would be missing. #1681's plan had the same limit. ## What changes - **A request for a window is held at once.** Words such as "in a window", "windowed" or "not headless" hold the commit before the model is asked, while no tester online has the `window` tag. Nothing is built or run. Words containing "anyway" (`@Beanstalk test it anyway`) run it regardless. - **The model can hold a request, and add notes.** Its answer gains two fields: - `blocked`: why no plan can answer the request. The commit is held the same way, and the plan's summary is shown as what it could test instead. - up to 3 `notes`, shown first on the sticky, on a manual run's reply and on the dashboard. - **New prompt facts:** - The game runs headless, so present and swapchain code never runs. - Read what a switch's unset value means on each target before comparing against it. #1574 makes unset mean on with AMD's Windows driver: note that, and compare `=0` against unset there. - Never make a pass rule of a log line the run can't reach. - **The sticky** opens with **Not run: the farm can't test this as asked** and the reason. `beanstalk/approval` fails with "can't be tested as asked". - **Migration 0024** adds `plan_notes` to `commits` and `runs`. Real windowed runs, hidden from the tester's screen, follow in a separate PR (plan schema 10, a `window` tag). Once testers have that tag, the hold no longer applies. ## What the sticky says now > ## Beanstalk test · ⛔ can't be tested as asked > > **Not run: the farm can't test this as asked**, so nothing is built or run: > > > the request asks for the game 'in a window', but the farm runs every game headless (no window and no swapchain), so code that acts only when the game presents to a window never runs on either side and its log lines never appear. Ask for what a headless run can show, or say to run it anyway. > > A member of BigBeans can comment `@Beanstalk <new words>` to ask for something else, or `@Beanstalk test it anyway` to run the plan regardless. A note on a plan that runs: > ⚠️ **Note:** On windows+amd unset already means on: compared =0 against unset. ## Tests The coordinator suite on a throwaway container: 603 passed, 1 skipped. New tests: - `test_a_request_for_a_window_is_held_before_the_model` - `test_the_model_can_hold_a_request_and_note_what_it_leaves_out` - `test_blocked_and_notes_are_checked` Also in this round: #1860 and #1880 were never waiting for a second approval. Those comments came from farm versions before v60. Both were rebuilding all 556 lifted files, because they change the translated code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(coordinator): the planner holds a request the farm can't answer, and says so first
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 17s
CI / Workflow lint (actionlint) (pull_request) Successful in 18s
CI / Coordinator tests (pull_request) Failing after 1m21s
CI / Agent build and checks (pull_request) Successful in 40s
CI / Coordinator image (pull_request) Successful in 16s
4b5de6618d
Longshot #1574 asked for RX_VK_ACQUIRE_AHEAD "in a window (not full screen),
not headless". The planner wrote in its prose that the farm can't run the
present path, then queued a 6-target, ~10 h run that compared the same code on
both sides and failed on the log lines it said would be missing.

- Words that ask for a window ("in a window", "windowed", "not headless") hold
  the commit before the model is asked, while no tester online has the window
  tag: nothing is built or run. "anyway" in the words runs it.
- The model's answer gains blocked (why the plan can't answer the request: held
  the same way, its plan's summary shown as what it could test instead) and up
  to 3 notes, shown first on the sticky, the run's reply and the dashboard.
- FACTS: the game is headless, so present/swapchain code never runs; check what
  a switch's unset value means on each target before comparing against it
  (#1574 made unset mean on with AMD's Windows driver), note it and compare =0
  there; never a pass rule on a log line the run can't reach.
- The sticky opens with "Not run: the farm can't test this as asked" and the
  reason; beanstalk/approval fails with "can't be tested as asked".
- Migration 0024: commits.plan_notes and runs.plan_notes.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: feat(coordinator): the planner holds a request the farm can't answer, and says so first to feat(coordinator): the planner holds a request the farm can't answer, and says so first 2026-11-20 21:06:59 +00:00
HumanBean deleted branch feat/planner-holds 2026-11-20 21:07:04 +00:00
BeanBot left a comment

Recommendation: Request changes. The hold can be bypassed by an ordinary volunteer tag, and a model-detected blocker can be discarded when its alternative plan is invalid. The window matcher also holds unrelated requests, and the required dashboard screenshots are missing.

The change aims to prevent misleading headless runs and surface planning limits before results. That would save tester time, but the current checks can both run a request the farm cannot answer and hold one it can answer; the dashboard changes also lack the screenshots required by the repository.

Does it help: Unproven: the PR reports 603 tests passed and one skipped, but provides no recorded run demonstrating the behavior against the reported Longshot requests. This is not a performance change.
Other systems: The planner is shared by PRs and manual runs, so the hold and fallback issues affect both. Volunteer-defined tags can include window today; all current game runs remain headless. Dashboard rendering changes also need desktop and phone-width review.
Switches: No switches added, changed, or removed.

Reviewed: 4b5de6618d against 59dd514c72: Read AGENTS.md, CONTRIBUTING.md, the complete diff and commit message, the changed migration and templates, and the relevant planner, reporter, run, tag-validation and scheduling paths. The full changed Python files, tests and documentation were only partially read because the combined output was truncated. No review checklist or pull request template was found. No prior comments or reviews were supplied.; nothing run (a code review).
Checked and fine:

  • The hold writes no plan and returns before job creation, with round and state guards against a superseded planning result.
  • Notes are bounded and mentions are broken before display.
  • The migration supplies defaults for existing commits and runs.

Blocking (to change before merge)

  1. coordinator/beanstalk/planner.py:808: Any volunteer can already set the extra tag window, so one online headless tester with that tag disables the deterministic hold for the whole farm. The model may then queue the same unanswerable run. Keep the hold until a real, reserved window capability exists, and require the planned targets to use that capability.
  2. coordinator/beanstalk/planner.py:626: The alternative plan is parsed and validated before blocked is read. If the model correctly reports a present-path blocker but produces an invalid alternative twice, write_plan falls back to the default plan and queues it. Preserve a valid blocked verdict independently of alternative-plan validation and test this failure path.
  3. coordinator/beanstalk/planner.py:285: The expression also matches ordinary timing language such as 'measure in a window of 10 seconds', holding a headless test that the farm can perform. Distinguish a game window from a time window and cover this wording in a behavioral test.
  4. coordinator/beanstalk/templates/pr.html:51: The PR changes dashboard pages but its description contains no desktop or 390 px screenshots, contrary to CONTRIBUTING.md. Add the required before and after screenshots for the affected pages.

Suggestions (the author may take or leave)

  • coordinator/beanstalk/planner.py:626: A correct blocked verdict is lost if the alternative TOML is invalid: after two refusals the default plan runs. Preserve the hold independently of validating the alternative, and test that case.

Testing: No commands that execute project code or tests were run, as requested. The reported coordinator suite result is from the PR description.
Overlaps and merge order: Not checked; the network is closed. The description mentions a future windowed-run PR but does not identify it.


Automated code review by BeanBot (gpt-6.1-terra), on the pull request's opening. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The hold can be bypassed by an ordinary volunteer tag, and a model-detected blocker can be discarded when its alternative plan is invalid. The window matcher also holds unrelated requests, and the required dashboard screenshots are missing. The change aims to prevent misleading headless runs and surface planning limits before results. That would save tester time, but the current checks can both run a request the farm cannot answer and hold one it can answer; the dashboard changes also lack the screenshots required by the repository. **Does it help:** Unproven: the PR reports 603 tests passed and one skipped, but provides no recorded run demonstrating the behavior against the reported Longshot requests. This is not a performance change. **Other systems:** The planner is shared by PRs and manual runs, so the hold and fallback issues affect both. Volunteer-defined tags can include window today; all current game runs remain headless. Dashboard rendering changes also need desktop and phone-width review. **Switches:** No switches added, changed, or removed. **Reviewed:** 4b5de6618d65 against 59dd514c728d: Read AGENTS.md, CONTRIBUTING.md, the complete diff and commit message, the changed migration and templates, and the relevant planner, reporter, run, tag-validation and scheduling paths. The full changed Python files, tests and documentation were only partially read because the combined output was truncated. No review checklist or pull request template was found. No prior comments or reviews were supplied.; nothing run (a code review). **Checked and fine:** - The hold writes no plan and returns before job creation, with round and state guards against a superseded planning result. - Notes are bounded and mentions are broken before display. - The migration supplies defaults for existing commits and runs. **Blocking** (to change before merge) 1. coordinator/beanstalk/planner.py:808: Any volunteer can already set the extra tag window, so one online headless tester with that tag disables the deterministic hold for the whole farm. The model may then queue the same unanswerable run. Keep the hold until a real, reserved window capability exists, and require the planned targets to use that capability. 2. coordinator/beanstalk/planner.py:626: The alternative plan is parsed and validated before blocked is read. If the model correctly reports a present-path blocker but produces an invalid alternative twice, write_plan falls back to the default plan and queues it. Preserve a valid blocked verdict independently of alternative-plan validation and test this failure path. 3. coordinator/beanstalk/planner.py:285: The expression also matches ordinary timing language such as 'measure in a window of 10 seconds', holding a headless test that the farm can perform. Distinguish a game window from a time window and cover this wording in a behavioral test. 4. coordinator/beanstalk/templates/pr.html:51: The PR changes dashboard pages but its description contains no desktop or 390 px screenshots, contrary to CONTRIBUTING.md. Add the required before and after screenshots for the affected pages. **Suggestions** (the author may take or leave) - `coordinator/beanstalk/planner.py:626`: A correct `blocked` verdict is lost if the alternative TOML is invalid: after two refusals the default plan runs. Preserve the hold independently of validating the alternative, and test that case. **Testing:** No commands that execute project code or tests were run, as requested. The reported coordinator suite result is from the PR description. **Overlaps and merge order:** Not checked; the network is closed. The description mentions a future windowed-run PR but does not identify it. --- <sub>Automated code review by BeanBot (gpt-6.1-terra), on the pull request's opening. Nothing was run; a maintainer decides.</sub>
@ -254,2 +282,4 @@
# A request for a real window: the farm's games are headless (FACTS), so it is held before the model is asked
WINDOW_ASK = re.compile(r"\b(?:not|non|no|without)[- ]?headless\b|\bheadful\b|\bwindowed\b|\b(?:in|with|into|on)\s+(?:a|an|the)"
Member

This also matches “measure in a window of 10 seconds”, so a valid headless request is held. Distinguish timing windows and add a behavioral test for this phrasing.

This also matches “measure in a window of 10 seconds”, so a valid headless request is held. Distinguish timing windows and add a behavioral test for this phrasing.
@ -739,0 +805,4 @@
async def plan_or_hold(farm: Farm, inputs: Inputs) -> Planned:
"""The model's plan, or a hold without asking it: words that ask for a window (window_held) while no tester online
can run the game in one (the window tag)"""
windows = any("window" in pc[0] for pc in inputs.live or {})
Member

The window tag is currently available as a volunteer-defined extra tag. One online headless PC with that tag disables this hold for every request; keep the hold until a real reserved capability exists and ensure the plan targets it.

The `window` tag is currently available as a volunteer-defined extra tag. One online headless PC with that tag disables this hold for every request; keep the hold until a real reserved capability exists and ensure the plan targets it.
@ -48,6 +48,7 @@
{% else %}
<p class="dim">Not planned yet.</p>
{% endif %}
{% for n in c.plan_notes or [] %}<p class="prose">⚠️ <strong>Note:</strong> {{ n }}</p>{% endfor %}
Member

This changes the dashboard, but the PR description has no desktop or 390 px screenshots. CONTRIBUTING.md requires before and after screenshots for screen changes.

This changes the dashboard, but the PR description has no desktop or 390 px screenshots. CONTRIBUTING.md requires before and after screenshots for screen changes.
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!126
No description provided.