Repository navigation
π fix(sandbox): take PR title/body from the workspace or HEAD commit - #14700
Conversation
Every sandbox-opened PR was titled "[<agent>] sandbox changes" with the body "Sandboxed credential-free execution result ... Part of #2804" β a placeholder that also cross-referenced hive's own issue number in the target repo (torch-spyre/spyre-inference#1402 is a live example). The agent inside the Job cannot open the PR itself, so its description had no path to the PR. Resolve title/body in order: .hive/pr-title.txt (first line) and .hive/pr-body.md written by the agent, then the HEAD commit subject/body, then a neutral placeholder. Bounded to 200 / 60000 runes. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of No conflicting open PRs or same-file overlaps were found. |
|
@clubanderson is auto-promoted for contributor-lane merging on this PR: the last 5 merged PRs by this author in this hive's repositories have no revert or sentinel-alert evidence. CI, reviewer verdict, diff fences, soak, holds and branch protection still apply. |
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at 78b8a11. |
Why
Every PR opened by the sandbox executor is titled
[<agent>] sandbox changeswith bodySandboxed credential-free execution result for agent ... Part of #2804.β a fixed placeholder that also drops hive's own tracker number into the target repo. Live example: torch-spyre/spyre-inference#1402, where the agent had written a full description (PR_torch_spyre_bump.md) that never reached the PR because the Job holds no GitHub credential and only the executor can open it.What
sandboxPRTextresolves, in order:.hive/pr-title.txt(first line) and.hive/pr-body.mdwritten by the agent in the workspace;#2804).Title bounded to 200 runes, body to 60k. Doc line added to
sandbox-isolation.mdstep 5 so kick templates know to write the two files. Tests cover all three tiers and the bound.Follow-up from #14662 / #14691 (a1-vllm-spyre spoke).
Test
cd src/crux && go test ./agent/β ok.