Skip to content

refactor(agent): align miniSWE with pre-decoupling data flow - #3680

Merged
bxyu-nvidia merged 12 commits into
mainfrom
flafrance/miniswe-sandbox-responses-20260924
Sep 29, 2026
Merged

bxyu-nvidia merged 12 commits into
mainfrom
flafrance/miniswe-sandbox-responses-20260924

Conversation

@lafrancef

@lafrancef lafrancef commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Align miniswe sandboxed agent to pre-decoupling data flow, following OpenCode sandboxed impl.

  • Move agent execution from /run into session-backed /v1/responses; /run seeds the sandbox, stores session state, calls responses(), and verifies.
  • Move miniSWE’s agent loop and shell execution fully inside the sandbox. Observability is maintained by obtaining logs after the run.

@lafrancef lafrancef added feature New capabilities, enhancements, or enablement work area:agent Agent harnesses and Responses API agent behavior labels Sep 24, 2026
@copy-pr-bot

copy-pr-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

lafrancef added a commit that referenced this pull request Sep 24, 2026
Adapt PR #3680 to borrowed resource sessions with setup before activation and verified process cleanup before grading.

Signed-off-by: Frederic Lafrance <[email protected]>
@lafrancef

Copy link
Copy Markdown
Contributor Author

/ok to test 0e7d452

Preserve the MLflow dependency-slimming default from #727, while allowing miniSWE to opt in through its existing server override. A hard exclusion drops wcwidth even when overrides.txt requests it, preventing the native CLI from starting in a clean server environment.

Signed-off-by: Frederic Lafrance <[email protected]>
@lafrancef
lafrancef force-pushed the flafrance/miniswe-sandbox-responses-20260924 branch from 84b4455 to 1d7c0da Compare September 27, 2026 21:28
@lafrancef

Copy link
Copy Markdown
Contributor Author

/ok to test 1d7c0da

Let /run connect and release the borrowed sandbox transport. Make
/v1/responses own config, harness setup, and execution, with retries
sharing the entire message operation and cleanup preceding verification.

Signed-off-by: Frederic Lafrance <[email protected]>
@lafrancef

Copy link
Copy Markdown
Contributor Author

/ok to test c6d6494

@lafrancef
lafrancef marked this pull request as ready for review September 28, 2026 22:21
@lafrancef
lafrancef requested a review from a team as a code owner September 28, 2026 22:21
@yaoyu-33 yaoyu-33 added complexity:high Cross-component or shared-contract change with a large review surface needs-review PR is ready for code review and waiting on a reviewer labels Sep 28, 2026
@bxyu-nvidia
bxyu-nvidia merged commit 6d7cbb3 into main Sep 29, 2026
45 checks passed
@bxyu-nvidia
bxyu-nvidia deleted the flafrance/miniswe-sandbox-responses-20260924 branch September 29, 2026 20:54
lafrancef added a commit that referenced this pull request Sep 30, 2026
…r stack

Rebase the TB4 full-swapping integration onto main 17add3c, including
mini-SWE refactor #3680 and the merged EnvironmentServer replacement stack
#3717, #3718, #3720, #3721, and #3722.

Adapt native OpenCode session support from #3639 (dce7f83) and Hermes
session hardening from #3554 (6dc9c53). Keep existing legacy entrypoints.

Add optional resource-resolved task context, caller-assigned native TB4
sessions, a generic swappable profile, and lifecycle-audited CPU/GPU/Compose
smokes. Preserve the mini-SWE CLI/Responses flow while supervising all
agent descendants before verification. Honor task users and limits, select
sandbox-compatible bootstrap binaries, and avoid an unnecessary root UID
switch when preparing the already-executable TB4 verifier.

Bind native TB4 close to the merged HTTP hook and confirm destruction,
allowing retries after provider deletion failures. Route Hermes iteration-limit
summaries through its regular request formatter, preserving reasoning, history,
and request settings without leaking internal Responses IDs into chat requests.

Signed-off-by: Frederic Lafrance <[email protected]>

This branch was previously deployed

1 inactive deployment
public — c6d64946 Deployed Sep 28, 2026 by copy-pr-bot[bot] via release / finalize / notify #3800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants