fix(agent-runner): harden state and event APIs

This commit is contained in:
huanghuoguoguo
2026-06-10 13:30:29 +08:00
parent d45406fa20
commit d2acf8e511
5 changed files with 216 additions and 85 deletions

View File

@@ -612,6 +612,7 @@ Runner 失败使用 `run.failed`
- Host 在 `ctx.runtime.deadline_at` 下发总 deadlineSDK proxy 必须用该 deadline 限制单次 action timeout。
- Host 可以取消 active runRuntime 应尽力中断 runner。
- Protocol v1 的 run 绑定当前 Host 进程和当前 runtime channel不保证跨 Host 重启恢复。Host 重启、runtime channel 断开或 run session 丢失时Runtime / remote daemon 必须 fail-fast 并尽力取消仍在执行的 runner不得继续使用旧 `run_id` 调用 Host API。
- Runner 支持中断时应返回或触发 `run.failed`code 为 `cancelled`
- Host 必须 unregister active run session。