fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobs #176
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!176
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/offer-window-tag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A tester reported that their AppContainer PC (Windows, RTX 5070 Ti, nightly-296) drops every
windowoffer:The loop built
hardwarewithoutWithSandbox, so thewindowability 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.HiddenWindowChecksalready checks that awindowtarget matchesWithSandbox("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
Possibly related, for context:
ab80a1446675e1fd4e3975e1fd4e395f79baada4WIP: fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobsto fix(agent): an offer is matched against this PC's sandbox abilities, so an AppContainer PC takes window jobsRecommendation: 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.
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.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.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.
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)
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.@fixcan 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:
5f79baada4againstf382fc2056: 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:
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.
@ -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);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.
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)}");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.
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.