Repository navigation
feat(workhub): bound coordinator result context - #26
Merged
Merged
Conversation
Keep full execution output at its source while bounding automatic and historical Coordination notifications. Preserve ordinary v2 continuation replay and migrate Coordination v3 claims compatibly. Generated-by: OpenAI Codex
8 of 56 tasks
sunrioa
marked this pull request as draft
October 13, 2026 22:48
sunrioa
marked this pull request as ready for review
October 13, 2026 22:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #8, next-phase E1 in the approved plan and E implementation plan.
Keep automatic coordinator notifications small without hiding the worker's full output from the user:
Compatibility and migration
Only the Coordination Session's provider projection moves from v2 to v3; ordinary Session continuation proofs stay on v2. Released v1/v2 facts remain decodable, but an old Coordination proof cannot silently authorize a changed v3 replay. Runtime Host compatibility epoch advances from 219 to 220.
SQLite runtime schema 21 extends the continuation-claim projection constraint to v3. It preserves existing claim rows/proofs, keys, foreign-key behavior and the fresh-Turn index; it does not rewrite old proof versions. The migration tests cover a real pre-upgrade v1/v2 database, v3 admission, v4 rejection and reopening.
Verification
55125ad267b1a23b3da145030877c87bae99d50a: no reportable P0–P3 findings. It independently reran all six suites below and 4,096 encoding probes (largest notification 5,920 bytes), plus replay/claim migration, fresh-Turn uniqueness and foreign-key cascade checks. This is AI review, not human approval.copilot-skipopt-out was then used and its new run skipped that request. No test workflow, secret or branch protection was changed.b4c359666Host persists a 17,489-byte historical notification; the updated Host replays 2,252 bytes. The raw legacy Run hash and full source output remain unchanged, with one source invocation and one new coordinator request, not a source wakeup.Earlier verification exposed the missing SQLite v3 constraint and clipped interaction IDs; both were fixed and the same recovery/interaction assertions pass. An earlier concurrent batch also failed an unchanged Storage lease-order case and two unchanged Host candidate-snapshot cases. Those cases and both full suites passed separately; a clean exact-base full run passed as well, so a deterministic main-branch reproduction or precise transient cause is not claimed. The final scoped run above passed without adding retries or relaxing deadlines. Those earlier results are retained in the local validation record.
The HTTP fixture reports input/cache usage to verify transport accounting, not real-provider cache savings. Its latency is local-only and price is unknown for the fixture model. No paid-provider cost improvement, new Windows execution capability, or new visual/Electron acceptance result is claimed by E1. Cold-work fresh-container continuation and final phase convergence remain the separate E2 work tracked in #8.
AI use
Tool(s) and scope: OpenAI Codex assisted with source inspection, implementation, tests and this description under the repository owner's automation request. Material commits carry
Generated-by: OpenAI Codex; independent Codex review is not presented as human approval.Checklist
Does this PR entail a change in behavior?
简体中文
摘要
关联 #8,完成已批准方案的 E1:精简自动送入协调模型的结果上下文,同时保留用户可查看的完整执行结果。
兼容和迁移
仅协调会话的 provider replay 从 v2 升至 v3,普通 Session 的续接证明仍使用 v2。旧 v1/v2 记录可读取,但旧协调会话证明不能冒充已变化的 v3 重放。Host 兼容 epoch 为 219 → 220。
SQLite schema 21 扩展续接 claim 的版本约束,保留旧记录、证明、键、外键行为和 fresh-Turn 索引,不改写旧证明版本;覆盖真实旧数据库升级、v3 写入、拒绝 v4 及再次打开。
验证
55125ad267b1a23b3da145030877c87bae99d50a,未发现可报告 P0–P3;独立重跑六套件,并验证 4,096 组编码极值(最大通知 5,920 字节)、重放/claim 升级、fresh-Turn 唯一性及外键级联。这是 AI 审查,不是人工批准。copilot-skip选项,新运行跳过该请求;没有修改测试工作流、密钥或分支保护。早期验证发现 v3 缺少 SQLite 约束支持、交互 ID 被裁掉,均已修复并通过原恢复/交互断言。早期并发批次还出现一个未修改的 Storage lease 顺序用例及两个未修改的 Host 候选快照用例失败;单独用例及完整套件随后通过,清洁精确基线的完整测试也通过,不能声称已证明主分支稳定复现或确定瞬时原因。最终范围的完整回归如上通过,未增加重试或放宽期限,早期记录保留在本地验证材料中。
HTTP 固定响应中的缓存用量和延迟仅用于本地链路验证,不代表真实供应商缓存/成本收益;测试模型没有已登记价格。E1 不宣称新的 Windows 执行能力或新的可视化/Electron 验收结果。冷任务新容器续接和最终收敛仍属于 #8 后续 E2,E 阶段尚未全部完成。
AI 说明同上:OpenAI Codex 在仓库所有者授权下参与实现、验证和描述;独立 AI 审查不冒充人工批准。