Repository navigation
Conversation
…tage Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
…tage Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
…tage Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In ARTEX_SANDBOX=required mode, a standalone chat agent (e.g. the built-in Penetration Testing agent) has no SandboxRunInfo on its context, so every Bash call fails closed. Correct behavior - but the error is "sandbox runner unavailable: missing task sandbox context", wrapping ErrRunnerUnavailable. The runner is healthy and was never called; the misclassification sends operators debugging their Docker/runner install, and the model retries Bash, burning LLM turns (both called out in the issue).
Behavior change
Error-reporting slice only; no execution semantics change, fail-closed preserved:
Out of scope by design: Option A (standalone sandbox execution lifecycle), hiding execution-capable tools from standalone agents - both are maintainer decisions named in the issue.
What was tested
New agent/sandbox_missing_context_test.go (unit, no PG needed):
Fail-first evidence: on the clean tree the tests fail to build (undefined sandbox.ErrMissingSandboxContext). With the implementation they pass. Mutating ExecInSandbox back to wrapping ErrRunnerUnavailable makes both tests fail with exactly the old misleading text; restored, green.
Validation run locally (Go): go test ./agent/ ./sandbox/ -count=1 all pass; go vet ./agent/ ./sandbox/ ./server/ clean; go build ./... clean; patch applies cleanly on a pristine worktree of e38f58d.
Contributes to #805.