Skip to content

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

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

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

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: 644ae285bd16f965668c33400bf6dcce54261f62
  • reason: Manual self-hosted worker implementation; no ark-apis regeneration involved.

简述

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

改动

  • 增加 self-hosted work API、WorkPoller、EnvironmentWorker 和 HandleItem。
  • 增加 SessionToolRunner、bash/file/search 工具和 skill 初始化。
  • 对齐 MA poll/ack/heartbeat/stop 与 event 契约。
  • 加固 ACK 所有权、heartbeat lease、idle 退出、SSE 恢复、进程取消、路径隔离和压缩包安全。
  • 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。

验证

  • test/run.sh --all 通过。
  • test/run.sh --contract 通过。
  • test/run.sh --docker 通过,覆盖宿主 poll/ack + Docker HandleItem、kill/SIGTERM、idle、stop_requested、skill 和凭证隔离。
  • Go/Python/Java STG 命令执行与 SkillHub/私有 skill E2E 通过。

See merge request: !84

Sync-Source-Commit: 74391730e0fdc8a21a6fc0519c5fe372d3d6fbb1
Ark-APIs-Commit: 644ae285bd16f965668c33400bf6dcce54261f62
Hand-Written-Reason: Manual self-hosted worker implementation; no ark-apis regeneration involved.
Release-Version: 0.4.0

Created by ark-hand.

## 简述

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

## 改动

- 增加 self-hosted work API、WorkPoller、EnvironmentWorker 和 HandleItem。
- 增加 SessionToolRunner、bash/file/search 工具和 skill 初始化。
- 对齐 MA poll/ack/heartbeat/stop 与 event 契约。
- 加固 ACK 所有权、heartbeat lease、idle 退出、SSE 恢复、进程取消、路径隔离和压缩包安全。
- 增加 THIRD_PARTY_NOTICES.md,保留所参考 Anthropic MIT 实现的归属声明,项目主许可证仍为 Apache-2.0。

## 验证

- test/run.sh --all 通过。
- test/run.sh --contract 通过。
- test/run.sh --docker 通过,覆盖宿主 poll/ack + Docker HandleItem、kill/SIGTERM、idle、stop_requested、skill 和凭证隔离。
- Go/Python/Java STG 命令执行与 SkillHub/私有 skill E2E 通过。

See merge request: !84

Sync-Source-Commit: 74391730e0fdc8a21a6fc0519c5fe372d3d6fbb1
Ark-APIs-Commit: 644ae285bd16f965668c33400bf6dcce54261f62
Hand-Written-Reason: Manual self-hosted worker implementation; no ark-apis regeneration involved.
Release-Version: 0.4.0
@ark-hand
ark-hand Bot merged commit 545df4a into main Aug 26, 2026
1 check passed
@ark-hand
ark-hand Bot deleted the sync/handfix-74391730e0 branch August 26, 2026 08:52
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