fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobs #176

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/offer-window-tag into main 2026-12-01 17:49:39 +00:00
Owner

A tester reported that their AppContainer PC (Windows, RTX 5070 Ti, nightly-296) drops every window offer:

offer jb_… is for windows+nvidia+window, this PC is windows+nvidia+nvidia-proprietary+dgpu: dropped

The loop built hardware without WithSandbox, so the window ability was missing from the tags that offers are matched against. The capabilities sent to the coordinator (Capabilities(..., sandbox.Name, ...)) and the ticket check (CheckTarget(ticket, hardware.WithSandbox(...))) both had it. The coordinator therefore kept offering window jobs that the agent kept dropping, every 6 s.

The fix: hardware = hardware.WithSandbox(sandbox.Name) once the sandbox is settled (after the stale-sandbox refresh), so offer matching, the dropped message, manual runs and the job all see the same tags as the capabilities. HiddenWindowChecks already checks that a window target matches WithSandbox("appcontainer") and not the bare hardware.

Also, in the same commit: a build tool that can't be fetched now reports its inner errors (WindowsTools.Why). A Steam Deck tester (McButt531) has failed every job since 01:22 UTC today with only "The SSL connection could not be established, see inner exception." on both git-cdn and git.magicbean.dev, whose certificates are fine (Google Trust Services WE1, valid to Feb 2027). The inner error will say whether it is the PC's clock, its CA store or something in between.

🤖 Generated with Claude Code

A tester reported that their AppContainer PC (Windows, RTX 5070 Ti, nightly-296) drops every `window` offer: ``` offer jb_… is for windows+nvidia+window, this PC is windows+nvidia+nvidia-proprietary+dgpu: dropped ``` The loop built `hardware` without `WithSandbox`, so the `window` ability was missing from the tags that offers are matched against. The capabilities sent to the coordinator (`Capabilities(..., sandbox.Name, ...)`) and the ticket check (`CheckTarget(ticket, hardware.WithSandbox(...))`) both had it. The coordinator therefore kept offering window jobs that the agent kept dropping, every 6 s. The fix: `hardware = hardware.WithSandbox(sandbox.Name)` once the sandbox is settled (after the stale-sandbox refresh), so offer matching, the dropped message, manual runs and the job all see the same tags as the capabilities. `HiddenWindowChecks` already checks that a `window` target matches `WithSandbox("appcontainer")` and not the bare hardware. Also, in the same commit: a build tool that can't be fetched now reports its inner errors (`WindowsTools.Why`). A Steam Deck tester (McButt531) has failed every job since 01:22 UTC today with only "The SSL connection could not be established, see inner exception." on both git-cdn and git.magicbean.dev, whose certificates are fine (Google Trust Services WE1, valid to Feb 2027). The inner error will say whether it is the PC's clock, its CA store or something in between. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobs
Some checks failed
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
ab80a14466
The loop matched offers against the hardware without WithSandbox, so the window
tag (sent in the capabilities, checked on the ticket) was missing there: every
windows+...+window offer was dropped and offered again every few seconds.

Reported by a tester (lolmelol).

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

Possibly related, for context:

  • PR #127 feat: plan schema 10 runs a scenario in a hidden window, and a log line may be unjudged when missing — Adds window capability and target matching this relies on
  • PR #126 feat(coordinator): the planner holds a request the farm can't answer, and says so first — Coordinator holds window requests until matching testers are available
Possibly related, for context: - PR #127 feat: plan schema 10 runs a scenario in a hidden window, and a log line may be unjudged when missing — Adds window capability and target matching this relies on - PR #126 feat(coordinator): the planner holds a request the farm can't answer, and says so first — Coordinator holds window requests until matching testers are available
HumanBean force-pushed fix/offer-window-tag from ab80a14466
Some checks failed
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
to 75e1fd4e39
Some checks failed
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
2026-12-01 17:18:49 +00:00
Compare
HumanBean force-pushed fix/offer-window-tag from 75e1fd4e39
Some checks failed
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
to 5f79baada4
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator tests (pull_request) Failing after 1m30s
CI / Coordinator image (pull_request) Successful in 14s
CI / Agent build and checks (pull_request) Successful in 2m18s
2026-12-01 17:19:00 +00:00
Compare
HumanBean changed title from WIP: fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobs to fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobs 2026-12-01 17:19:02 +00:00
BeanBot left a comment

Recommendation: Request changes. The offer fix addresses the reported mismatch, but neither change has a regression check, and the commit misses a required AI-assistance trailer. The unrelated download-diagnostics change also belongs in a separate pull request under the repository’s one-topic rule.

AppContainer agents include their window ability when matching offers, and failed tool downloads include nested exception messages. Both are small changes, but their behavior is not covered by checks.

Blocking (3): must change before merging.

  1. L1 agent/Core/JobRunner.cs:509: The offer-loop fix has no regression check, although the repository requires a check for every change. (more on the line) Do: Add an agent-loop check with AppContainer hardware and a window offer that verifies the offer is accepted, and verify a sandbox without the ability does not accept it.
  2. L2 agent/Core/WindowsTools.cs:168: The new nested-error reporting has no check for the download failure path. (more on the line) Do: Add a fake fetcher that throws a nested exception and assert that the logged and final failure messages include the inner cause.
  3. L4 agent/Core/WindowsTools.cs:168: The tool-download diagnostics are a second, unrelated topic in a repository that requires one topic per pull request. (more on the line) Do: Move the download-diagnostics change and its check to a separate pull request.

Should fix (1): not blocking, but worth doing before merging.

  • L3: The commit records a Co-Authored-By trailer but omits the required Assisted-by trailer for the stated AI assistance. When: The sole commit was generated with AI assistance, yet its trailers do not include Assisted-by as AGENTS.md requires. Do: Add the required Assisted-by trailer to the commit alongside its existing Co-Authored-By trailer.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L5 agent/Core/JobRunner.cs:509: The reported window-offer fix has not been shown working in an agent run. (more on the line) Do: Run an AppContainer agent with a window-targeted offer and record that it accepts the offer and passes the ticket target check.

@fix can do L1, L2, L3 and L4.

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the existing tag check confirms the matching primitive, but no recorded run or check shows the changed offer loop accepting a window offer. The nested-error output also has no check or recorded result.

Other systems: Offer matching affects automatic jobs on Windows and Linux; sandbox abilities currently add window only for Windows AppContainer. Tool downloads use the changed error formatting for both Windows tools and longshot-builder tools on Windows and Linux. No platform runs were provided.

Switches: None.

Reviewed: 5f79baada4 against f382fc2056: Read AGENTS.md, CONTRIBUTING.md, the commit, both diffs, JobRunner.cs and WindowsTools.cs, and the relevant hardware, fetcher and hidden-window check paths. Skimmed related callers and checks. No review checklist or pull request template was found; no recorded runs or generated files were changed.; nothing run (a code review).

Checked and fine:

  • WithSandbox preserves the other hardware fields and replaces abilities based on the settled sandbox.
  • The fetcher preserves the original HTTP exception as an inner exception, so the new formatter can reach its SSL cause.
  • No game-derived files, package changes, API version changes, or switches were introduced.

Testing: No commands from the project or tests were run, as requested. CI checks are still running.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The offer fix addresses the reported mismatch, but neither change has a regression check, and the commit misses a required AI-assistance trailer. The unrelated download-diagnostics change also belongs in a separate pull request under the repository’s one-topic rule. AppContainer agents include their window ability when matching offers, and failed tool downloads include nested exception messages. Both are small changes, but their behavior is not covered by checks. **Blocking (3)**: must change before merging. 1. **L1** `agent/Core/JobRunner.cs:509`: The offer-loop fix has no regression check, although the repository requires a check for every change. (more on the line) **Do:** Add an agent-loop check with AppContainer hardware and a window offer that verifies the offer is accepted, and verify a sandbox without the ability does not accept it. 2. **L2** `agent/Core/WindowsTools.cs:168`: The new nested-error reporting has no check for the download failure path. (more on the line) **Do:** Add a fake fetcher that throws a nested exception and assert that the logged and final failure messages include the inner cause. 3. **L4** `agent/Core/WindowsTools.cs:168`: The tool-download diagnostics are a second, unrelated topic in a repository that requires one topic per pull request. (more on the line) **Do:** Move the download-diagnostics change and its check to a separate pull request. **Should fix (1)**: not blocking, but worth doing before merging. - **L3**: The commit records a Co-Authored-By trailer but omits the required Assisted-by trailer for the stated AI assistance. *When:* The sole commit was generated with AI assistance, yet its trailers do not include Assisted-by as AGENTS.md requires. **Do:** Add the required Assisted-by trailer to the commit alongside its existing Co-Authored-By trailer. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L5** `agent/Core/JobRunner.cs:509`: The reported window-offer fix has not been shown working in an agent run. (more on the line) **Do:** Run an AppContainer agent with a window-targeted offer and record that it accepts the offer and passes the ticket target check. `@fix` can do L1, L2, L3 and L4. **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the existing tag check confirms the matching primitive, but no recorded run or check shows the changed offer loop accepting a window offer. The nested-error output also has no check or recorded result. **Other systems:** Offer matching affects automatic jobs on Windows and Linux; sandbox abilities currently add window only for Windows AppContainer. Tool downloads use the changed error formatting for both Windows tools and longshot-builder tools on Windows and Linux. No platform runs were provided. **Switches:** None. **Reviewed:** 5f79baada4d3 against f382fc205677: Read AGENTS.md, CONTRIBUTING.md, the commit, both diffs, JobRunner.cs and WindowsTools.cs, and the relevant hardware, fetcher and hidden-window check paths. Skimmed related callers and checks. No review checklist or pull request template was found; no recorded runs or generated files were changed.; nothing run (a code review). **Checked and fine:** - WithSandbox preserves the other hardware fields and replaces abilities based on the settled sandbox. - The fetcher preserves the original HTTP exception as an inner exception, so the new formatter can reach its SSL cause. - No game-derived files, package changes, API version changes, or switches were introduced. **Testing:** No commands from the project or tests were run, as requested. CI checks are still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -506,1 +506,4 @@
}
// (its sandbox's abilities among its tags, as its capabilities and the ticket's check have them: an offer for
// windows+...+window is this PC's when its AppContainer can show a hidden window)
hardware = hardware.WithSandbox(sandbox.Name);
Member

L1 (blocking): The offer-loop fix has no regression check, although the repository requires a check for every change.

When: Removing this line restores the reported behavior: an AppContainer PC drops a window offer. HiddenWindowChecks still passes because it calls WithSandbox directly and never exercises the loop.

Do: Add an agent-loop check with AppContainer hardware and a window offer that verifies the offer is accepted, and verify a sandbox without the ability does not accept it.

**L1** (blocking): The offer-loop fix has no regression check, although the repository requires a check for every change. *When:* Removing this line restores the reported behavior: an AppContainer PC drops a window offer. HiddenWindowChecks still passes because it calls WithSandbox directly and never exercises the loop. **Do:** Add an agent-loop check with AppContainer hardware and a window offer that verifies the offer is accepted, and verify a sandbox without the ability does not accept it.
Member

L5 (should fix): The reported window-offer fix has not been shown working in an agent run.

When: An AppContainer agent receiving a window-targeted offer should accept it instead of repeatedly dropping it; the supplied evidence only shows the failure before this change.

Do: Run an AppContainer agent with a window-targeted offer and record that it accepts the offer and passes the ticket target check.

**L5** (should fix): The reported window-offer fix has not been shown working in an agent run. *When:* An AppContainer agent receiving a window-targeted offer should accept it instead of repeatedly dropping it; the supplied evidence only shows the failure before this change. **Do:** Run an AppContainer agent with a window-targeted offer and record that it accepts the offer and passes the ticket target check.
@ -166,3 +166,3 @@
{
last = e;
say($" {e.Message}");
say($" {Why(e)}");
Member

L2 (blocking): The new nested-error reporting has no check for the download failure path.

When: If Why is removed from the catch or final exception, a FetchException wrapping the SSL error again reports only the outer message, while the existing failed-download checks still pass.

Do: Add a fake fetcher that throws a nested exception and assert that the logged and final failure messages include the inner cause.

**L2** (blocking): The new nested-error reporting has no check for the download failure path. *When:* If Why is removed from the catch or final exception, a FetchException wrapping the SSL error again reports only the outer message, while the existing failed-download checks still pass. **Do:** Add a fake fetcher that throws a nested exception and assert that the logged and final failure messages include the inner cause.
Member

L4 (blocking): The tool-download diagnostics are a second, unrelated topic in a repository that requires one topic per pull request.

When: The offer-matching fix changes which jobs an agent accepts; the download change alters build-tool failure reporting and can be reviewed and released independently.

Do: Move the download-diagnostics change and its check to a separate pull request.

**L4** (blocking): The tool-download diagnostics are a second, unrelated topic in a repository that requires one topic per pull request. *When:* The offer-matching fix changes which jobs an agent accepts; the download change alters build-tool failure reporting and can be reviewed and released independently. **Do:** Move the download-diagnostics change and its check to a separate pull request.
HumanBean deleted branch fix/offer-window-tag 2026-12-01 17:49:39 +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!176
No description provided.