Skip to content

feat: add DeepSeek Harness BYO integration - #3195

Draft
Jacob953 wants to merge 9 commits into
kagent-dev:mainfrom
Jacob953:feat/dsh-byo
Draft

Jacob953 wants to merge 9 commits into
kagent-dev:mainfrom
Jacob953:feat/dsh-byo

Conversation

@Jacob953

Copy link
Copy Markdown

No description provided.

Run pinned DSH over ACP using the existing BYO payload and A2A executor.
Preserve native conversation state, cancellation and one-shot permissions.
Proxy HTTP MCP bindings to honor headers, timeouts and session termination.

Include the runtime image, dependency lock, deployment example and tests.
AI-assisted development with Codex; human review is required before upstream submission.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Close the ACP input stream when a blocked write is canceled and bound cancellation messages by a deadline. Cover blocked prompt, setup and permission writes, plus real DSH tool errors, permission decisions and resumed MCP calls.

AI-assisted development with Codex; human review is required before upstream submission.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
@github-actions github-actions Bot added the enhancement New feature or request label Oct 14, 2026
Handle invalid remote tool schemas as startup errors and reject repeated pagination cursors. Verify remote session and DSH process cleanup.

AI assistance: implementation and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
AI assistance: audit and documentation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Use a per-turn Linux subreaper and a lifetime pipe to clean up detached and orphaned tools before returning. Preserve non-object ACP input in JSON-compatible tool events so DSH can return validation errors to the model.

Validate forced and normal teardown, adapter death, unrelated process survival, non-object arguments, and the existing runtime suite under the race detector. Runtime execution now requires Linux.

AI assistance: implementation, regression tests, and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Pin MCP requests and binding headers to the configured origin. Preserve
same-origin redirects with a bounded chain and reject cross-origin hops.

Use nested Linux subreapers and private cleanup confirmation to recover
when either supervisor dies during payload execution. Avoid inherited
stderr copy hangs. Keep the task unsettled if cleanup cannot be confirmed.

Verify redirect isolation, forced supervisor death, detached tool cleanup,
unrelated process survival, and missing confirmation. Run host runtime
race tests, the Linux DSH race suite, Go and Linux lint, and container checks.

AI assistance: implementation, regression tests, and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Exercise the production TaskStore wrapper over gRPC, require native process cleanup before settlement, and verify file and conversation recovery with the pinned DSH runtime. Document the completed clean-cluster lifecycle acceptance and remaining coverage limits.

AI assistance: implementation and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Document upstream dependencies and the guarantees needed to replace local process supervision, pending approvals and MCP origin checks. Clarify that replacing an Actor does not reconcile an orphaned controller task.

AI assistance: implementation and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
Return an explicit cancellation error when the shared executor emits no result. Reject lost task continuations before SDK history writes can mutate or settle the waiting task. Keep unknown cleanup fail-closed and document that these DSH-only mitigations do not provide automatic task or approval recovery.

AI assistance: implementation and validation assisted by OpenAI Codex.

Signed-off-by: Junfeng Yu <64075563+Jacob953@users.noreply.github.com>
@EItanya

EItanya commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Hey there! Thanks so much for the PR. I don't think we plan to add more harnesses in core, but would definitely be open to starting a community harness repo, would you be interested in contributing there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants