fix(agent): longshot-builder's protocol 2 command line, old nightlies' kept #167

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/builder-cli-v2 into main 2026-11-28 22:31:38 +00:00
Owner

Depends on Longshot #2762 (builder command line v2).

What

#2762 moves longshot-builder's stages under dev, takes the places from the environment (LONGSHOT_CACHE and others), drops update/self-update/steam-shortcut, and has info report "protocol": 2. The farm tests both old nightlies and new commits, so the agent now asks each builder its protocol and picks the command line:

  • New agent/Core/BuilderArgs.cs: the one place with both command lines (Info, ParseProtocol, Check, DevBuild). Protocol is read from info --output json. No info, no protocol field, or a failed run all count as protocol 1.
  • Workspace.BuilderProtocolAsync (WorkspaceBuilder.cs): runs info in the sandbox (read-only, no GPU), once for each builder file, and caches the answer.
  • CheckBuilderDumpAsync: on protocol 2 it runs check --game ... --output json with LONGSHOT_CACHE in the environment; on protocol 1 it keeps --cache.
  • TimedBuilderBuildAsync: on protocol 2 it runs dev build ... (same flags, which dev build still takes); on protocol 1 it runs build ....
  • Docs: architecture.md and test-plan.md now give the timed build's new command and the fallback.

I grepped the rest of the repo (agent, coordinator, scripts, deploy, docs) and found no other longshot-builder calls. The base and pack builds go through Longshot's dev.py packs and scripts/longshot_builder.py (build, game-rust), and #2762 leaves both unchanged.

Not run

  • dotnet build of agent/Core and agent/tests/agent_core passed. Nothing else ran:
  • No tests (unit or agent_core checks). The BuilderChecks timed-build check should still pass because its fake builder gives no protocol, so it gets protocol 1 and the old command line. I haven't confirmed this.
  • No farm job, game build or game run, against either an old nightly or a #2762 builder.

🤖 Generated with Claude Code

Depends on Longshot [#2762](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2762) (builder command line v2). ## What #2762 moves longshot-builder's stages under `dev`, takes the places from the environment (`LONGSHOT_CACHE` and others), drops `update`/`self-update`/`steam-shortcut`, and has `info` report `"protocol": 2`. The farm tests both old nightlies and new commits, so the agent now asks each builder its protocol and picks the command line: - New `agent/Core/BuilderArgs.cs`: the one place with both command lines (`Info`, `ParseProtocol`, `Check`, `DevBuild`). Protocol is read from `info --output json`. No `info`, no `protocol` field, or a failed run all count as protocol 1. - `Workspace.BuilderProtocolAsync` (WorkspaceBuilder.cs): runs `info` in the sandbox (read-only, no GPU), once for each builder file, and caches the answer. - `CheckBuilderDumpAsync`: on protocol 2 it runs `check --game ... --output json` with `LONGSHOT_CACHE` in the environment; on protocol 1 it keeps `--cache`. - `TimedBuilderBuildAsync`: on protocol 2 it runs `dev build ...` (same flags, which `dev build` still takes); on protocol 1 it runs `build ...`. - Docs: architecture.md and test-plan.md now give the timed build's new command and the fallback. I grepped the rest of the repo (agent, coordinator, scripts, deploy, docs) and found no other longshot-builder calls. The base and pack builds go through Longshot's `dev.py packs` and `scripts/longshot_builder.py` (`build`, `game-rust`), and #2762 leaves both unchanged. ## Not run - `dotnet build` of agent/Core and agent/tests/agent_core passed. Nothing else ran: - No tests (unit or agent_core checks). The `BuilderChecks` timed-build check should still pass because its fake builder gives no protocol, so it gets protocol 1 and the old command line. I haven't confirmed this. - No farm job, game build or game run, against either an old nightly or a #2762 builder. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): longshot-builder's protocol 2 command line (dev build, check with no --cache), old nightlies' kept
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 7s
CI / Workflow lint (actionlint) (pull_request) Successful in 7s
CI / Coordinator tests (pull_request) Failing after 1m52s
CI / Coordinator image (pull_request) Successful in 18s
CI / Agent build and checks (pull_request) Successful in 2m27s
3b227fe006
Longshot #2762 moves the stages under `dev` and takes the places from the
environment. The agent reads a builder's `info --output json` protocol and
uses BuilderArgs' old or new command line, so nightlies before it still test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: fix(agent): longshot-builder's protocol 2 command line, old nightlies' kept to fix(agent): longshot-builder's protocol 2 command line, old nightlies' kept 2026-11-28 22:28:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!167
No description provided.