Skip to content

[Experimental] Bounded read-only Orca Worker wait in current turn - #1

Draft
LonelyHerbivore wants to merge 14 commits into
mainfrom
feat/active-turn-worker-wait-20261014
Draft

LonelyHerbivore wants to merge 14 commits into
mainfrom
feat/active-turn-worker-wait-20261014

Conversation

@LonelyHerbivore

@LonelyHerbivore LonelyHerbivore commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

本分支的功能

  • 新增 orca_wait_workers:Native Plugin v1 标量参数 dispatchId、可选 dispatchId2、dispatchId3 和 waitSeconds(0–12 秒)。
  • 只读查询精确 Dispatch 的 worker-show,最多 3 个;不创建、停止、重试或回收 Worker。
  • 区分 all_settled、needs_attention、wait_elapsed 和 allSucceeded;防止 start_unknown、用户接管、异源 Dispatch 和不合法响应被当作任务成功。
  • 22 个 Native Plugin v1 工具,协议 schema 仅使用标量字段;新增 12 项 Worker wait 自动化测试,附 Host 唤醒边界文档和 GitHub Actions 双 Node 版本流水线。

验证

  • 2026-10-14,在 Windows 幻16通过 WebCodex Runner 的隔离 Git 克隆,Node v24.13.0,npm test 73/73 通过,核心文件 node --check 通过,验证 SHA c043dfd。
  • GitHub Actions(PR 代码提交,Node 18 + 22 均成功)。
  • GitHub PR 最新 23d77f2 相比验证 SHA 仅追加 README 测试数文字,CI 最终结果以 PR 检查为准。
  • 临时测试克隆位于 D:\webcodex-orca-plugin\.host-wake-validation-20261014,已删除;本机正式 D:\webcodex-orca-plugin 未修改。

Host 后台主动唤醒仍未实现

本 PR 是当前正在执行的模型回合内的限时等待方案,不是 Host 无人值守自动开启新模型回合。WebCodex Server 只保留了 #[cfg(test)] 的 Push Adapter 注入入口;ui/message 的 Host ACK 不等于 fresh_turn_started。请参见 Host diagnostic PR 和 边界说明。

保持 Draft,不合并、不部署。要称为真正后台主动唤醒,需要获得 Host 原生且经过授权的 turn-scheduling API,并通过 Agent/Job 六项真实 ChatGPT Host 验收矩阵。

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.

1 participant