Skip to content

feat(selfHosted): add self-hosted worker runtime - #9

Merged
ark-hand[bot] merged 1 commit into
mainfrom
sync/handfix-0ddb2d1b45
Aug 26, 2026
Merged

feat(selfHosted): add self-hosted worker runtime#9
ark-hand[bot] merged 1 commit into
mainfrom
sync/handfix-0ddb2d1b45

Conversation

@ark-hand

@ark-hand ark-hand Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Hand-written change from the internal SDK repository — not produced by make vendor.

  • source subject: feat(selfHosted): add self-hosted worker runtime
  • attributed to ark-apis commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185
  • reason: Self-hosted worker runtime implementation based on ark-apis self-hosted contracts through 1ae6acad.

简述

为 Ark Runtime Java SDK 增加 Managed Agents Self-Hosted worker 能力,使客户可以在自有运行环境中 poll work、维护 lease、执行 session tool call 并安装 skill。

改动

  • 增加 SelfHostedClient、WorkPoller、EnvironmentWorker、SessionToolRunner 和默认本地工具。
  • 对齐 Go SDK 与 MA 的 poll/ack/heartbeat/stop、event stream、idle 生命周期和 skill 语义。
  • 加固 ACK 所有权、lease lost、工具取消、环境变量隔离、路径及压缩包安全。
  • 增加同构单测和 Self-Hosted worker example。
  • 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。

验证

  • mvn test -q:29 passed。
  • mvn checkstyle:check -q 通过。
  • mvn package -q -DskipTests 通过。
  • STG Java worker 命令执行、SkillHub 和私有 skill E2E 通过。
  • test/run.sh --all 通过。

See merge request: !86

Sync-Source-Commit: 0ddb2d1b45a5c1c836b288c4a5dd9878a924b6ce
Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185
Hand-Written-Reason: Self-hosted worker runtime implementation based on ark-apis self-hosted contracts through 1ae6acad.
Release-Version: 0.4.0

Created by ark-hand.

## 简述

为 Ark Runtime Java SDK 增加 Managed Agents Self-Hosted worker 能力,使客户可以在自有运行环境中 poll work、维护 lease、执行 session tool call 并安装 skill。

## 改动

- 增加 SelfHostedClient、WorkPoller、EnvironmentWorker、SessionToolRunner 和默认本地工具。
- 对齐 Go SDK 与 MA 的 poll/ack/heartbeat/stop、event stream、idle 生命周期和 skill 语义。
- 加固 ACK 所有权、lease lost、工具取消、环境变量隔离、路径及压缩包安全。
- 增加同构单测和 Self-Hosted worker example。
- 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。

## 验证

- mvn test -q:29 passed。
- mvn checkstyle:check -q 通过。
- mvn package -q -DskipTests 通过。
- STG Java worker 命令执行、SkillHub 和私有 skill E2E 通过。
- test/run.sh --all 通过。

See merge request: !86

Sync-Source-Commit: 0ddb2d1b45a5c1c836b288c4a5dd9878a924b6ce
Ark-APIs-Commit: 1ae6acad4ff5d332748b13c47c120ecb01f1f185
Hand-Written-Reason: Self-hosted worker runtime implementation based on ark-apis self-hosted contracts through 1ae6acad.
Release-Version: 0.4.0
@ark-hand
ark-hand Bot merged commit 7f886f6 into main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants