diff --git a/docs/product/releases/v2.4.0.md b/docs/product/releases/v2.4.0.md index edd0519403..c786fdce19 100644 --- a/docs/product/releases/v2.4.0.md +++ b/docs/product/releases/v2.4.0.md @@ -21,7 +21,7 @@ loopx doctor ### Highlights - **Create a Goal from Chat and search loaded history.** Review a draft and confirm once to create the Goal and open its conversation when runtime and permissions are ready; search loaded conversations back to original messages, keep saved Research answers intact across Desktop reopenings, recover interrupted answers or pre-dispatch requests, diagnose lost workers, and preserve readable quoted Markdown. [#8676](https://github.com/loopx-project/loopx/pull/8676), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8863](https://github.com/loopx-project/loopx/pull/8863), [#8868](https://github.com/loopx-project/loopx/pull/8868), [#8880](https://github.com/loopx-project/loopx/pull/8880), [#8892](https://github.com/loopx-project/loopx/pull/8892), [#8983](https://github.com/loopx-project/loopx/pull/8983), [#9120](https://github.com/loopx-project/loopx/pull/9120), [#9125](https://github.com/loopx-project/loopx/pull/9125) -- **Steward monitors, exact-head PR review signals, and protected merge confirmations.** Generic probe-gated `continuous_monitor` Todos support `context_handoff` and bounded `steward_user_actions`, exact-head GitHub PR review screening powers `/confirm` `pr.merge` previews with head/review drift checks, report/queue/pre-dispatch recovery hardens cross-endpoint Steward reliability, and opt-in `steward_memory` adds isolated OpenViking memory scoped strictly to verified owner private Steward chats. [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9083](https://github.com/loopx-project/loopx/pull/9083), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159) +- **Steward monitors, exact-head PR review signals, and protected merge confirmations.** Generic probe-gated `continuous_monitor` Todos support `context_handoff` and bounded `steward_user_actions`, exact-head GitHub PR review screening powers `/confirm` `pr.merge` previews with head/review drift checks, report/queue/pre-dispatch recovery (including stopped/saved candidate recovery and minor JSON delimiter glitch tolerance) hardens cross-endpoint Steward reliability, and opt-in `steward_memory` adds isolated OpenViking memory scoped strictly to verified owner private Steward chats. [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9083](https://github.com/loopx-project/loopx/pull/9083), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159), [#9164](https://github.com/loopx-project/loopx/pull/9164) - **Recover original work with Complete Turn and `quota_settlement_plan_v2`.** Installed workspaces discover the Manager via the installed CLI and resume authorized Tasks on their original Turn, debit identity, and rebound hard-lease fence; Complete Turn / native host callers compose `loopx_turn_envelope_v1` with runtime-owned `quota_settlement_plan_v2` (`--settle-turn --settlement-receipt`), while ordinary unhosted JSON `quota should-run` retains `quota_packet` as the qualified public default. [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9158](https://github.com/loopx-project/loopx/pull/9158), [#9160](https://github.com/loopx-project/loopx/pull/9160), [#9161](https://github.com/loopx-project/loopx/pull/9161) - **Antigravity Carbon, per-endpoint preferences, and bidirectional Steward failover.** Registers Antigravity `Carbon` (`gemini-4-carbon-{high,medium,low}`) while keeping `Argon` as the product default, adds `endpoint_models` preferences in `steward_executor_machine_defaults_v1` (with JSON-mode editor guidance), enables bidirectional Codex/Antigravity flexible failover (`loopx-codex-provider-routing 0.15.9`) with Antigravity reasoning-effort capacity aliases and `flexible_primary_available` transitions, prevents truncated Codex API relay traffic, and preserves Codex session history across model switches. [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9134](https://github.com/loopx-project/loopx/pull/9134), [#9141](https://github.com/loopx-project/loopx/pull/9141), [#9145](https://github.com/loopx-project/loopx/pull/9145), [#9147](https://github.com/loopx-project/loopx/pull/9147) - **Multi-agent collaboration and hardened Lark group/private channels.** Peers read pending results via `read_peer_returns` and `consume_peer_result` without reopening the Manager Inbox, Goal lifetime guard locks batch per Goal, and Lark gains reconnect queue recovery, read-only Steward shortcuts, Turn-scoped native images, shared card callbacks, single-pass card escaping, international setup URL recognition, and input-aware noop backoff reset. [#8668](https://github.com/loopx-project/loopx/pull/8668), [#8695](https://github.com/loopx-project/loopx/pull/8695), [#8741](https://github.com/loopx-project/loopx/pull/8741), [#8871](https://github.com/loopx-project/loopx/pull/8871), [#8921](https://github.com/loopx-project/loopx/pull/8921), [#8990](https://github.com/loopx-project/loopx/pull/8990), [#9027](https://github.com/loopx-project/loopx/pull/9027), [#9085](https://github.com/loopx-project/loopx/pull/9085), [#9114](https://github.com/loopx-project/loopx/pull/9114), [#9117](https://github.com/loopx-project/loopx/pull/9117), [#9119](https://github.com/loopx-project/loopx/pull/9119) @@ -32,7 +32,7 @@ loopx doctor - Intentional watches remain in replan history so the next Turn sees what it was waiting for. [#8672](https://github.com/loopx-project/loopx/pull/8672) - When the only work in scope is blocked, the scheduler waits for its dependency; superseded heartbeat receipts are fenced before Python follow-up, and historical ACK admissions stay on their original receipt fenced by `GoalRef`. [#8511](https://github.com/loopx-project/loopx/pull/8511), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8708](https://github.com/loopx-project/loopx/pull/8708), [#8907](https://github.com/loopx-project/loopx/pull/8907), [#8975](https://github.com/loopx-project/loopx/pull/8975) - Same-second review-bound successors and whole-second historical ACKs resolve as post-admission, Monitor-streak and pure replan Turns preserve their receipt source and exact closeout commands, and invalid vision outcomes remain recoverable. [#8731](https://github.com/loopx-project/loopx/pull/8731), [#8804](https://github.com/loopx-project/loopx/pull/8804), [#8854](https://github.com/loopx-project/loopx/pull/8854), [#8855](https://github.com/loopx-project/loopx/pull/8855), [#8958](https://github.com/loopx-project/loopx/pull/8958) -- Explicit Goal resume and replan successor identity stay recoverable, warm deltas and saved C1 replans bind to the original capture digest, replan recovery stays within projection boundaries (`projected_ack` writeback and `monitor_poll` `lease_proof`), and zero-effect monitors plus cleared-replan Steward reports recover cleanly. [#8923](https://github.com/loopx-project/loopx/pull/8923), [#9016](https://github.com/loopx-project/loopx/pull/9016), [#9022](https://github.com/loopx-project/loopx/pull/9022), [#9046](https://github.com/loopx-project/loopx/pull/9046), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9160](https://github.com/loopx-project/loopx/pull/9160) +- Explicit Goal resume and replan successor identity stay recoverable, warm deltas and saved C1 replans bind to the original capture digest, native `captured_decision` replan openings keep bound Yardstick reversal cues inline (`nativeReplanPresentation`), replan recovery stays within projection boundaries (`projected_ack` writeback and `monitor_poll` `lease_proof`), and zero-effect monitors plus cleared-replan Steward reports recover cleanly. [#8923](https://github.com/loopx-project/loopx/pull/8923), [#9016](https://github.com/loopx-project/loopx/pull/9016), [#9022](https://github.com/loopx-project/loopx/pull/9022), [#9046](https://github.com/loopx-project/loopx/pull/9046), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9160](https://github.com/loopx-project/loopx/pull/9160), [#9165](https://github.com/loopx-project/loopx/pull/9165) ### Contributors @@ -72,8 +72,8 @@ loopx authority-archive upgrade --all-known --require-current - **Personal Workspace & Research continuity:** Conversational Goal creation uses a single draft confirmation with runtime readiness and workspace checks ([#8780](https://github.com/loopx-project/loopx/pull/8780)), loaded conversation search jumps back to original messages ([#8676](https://github.com/loopx-project/loopx/pull/8676)), review materials restore keyboard focus ([#8913](https://github.com/loopx-project/loopx/pull/8913)), manager read views disclose omitted records and recover oversized Todo details through bounded pages ([#8954](https://github.com/loopx-project/loopx/pull/8954), [#8959](https://github.com/loopx-project/loopx/pull/8959), [#8962](https://github.com/loopx-project/loopx/pull/8962)), saved Research results, case links, interrupted answers, lost-worker diagnostics, pre-dispatch requests, and quoted Markdown stay recoverable across Desktop and Lark channels ([#8863](https://github.com/loopx-project/loopx/pull/8863), [#8868](https://github.com/loopx-project/loopx/pull/8868), [#8880](https://github.com/loopx-project/loopx/pull/8880), [#8892](https://github.com/loopx-project/loopx/pull/8892), [#8983](https://github.com/loopx-project/loopx/pull/8983), [#9120](https://github.com/loopx-project/loopx/pull/9120), [#9125](https://github.com/loopx-project/loopx/pull/9125)). - **Steward monitors, exact-head PR review signals, and protected `pr.merge`:** - *User outcome:* Owners can declare natural-language `continuous_monitor` Todos over arbitrary portfolio/repository signals, triage exact-head GitHub PR reviews (including author-owned `COMMENTED` fallback verdicts and conflict detection), and confirm protected `pr.merge` previews with `/confirm` bound to PR head, approval URL, and bypassed gates. - - *Shipped layer:* TypeScript admission & probe gates (`steward_managed_mode.ts`), `github_pr_evidence.py`, `steward_pr_merge.py`, `steward_monitor.py`, and `steward_turn.py` (`#9074`, `#9081`, `#9093`, `#9143`), plus report validator drift/Python-upgrade tolerance, frozen report contract recovery, observation monitor queue preservation, pre-dispatch endpoint failure recovery with bounded receipt discovery, and mid-turn failed report cancellation (`#9077`, `#9155`, `#9157`, `#9159`). - - *Last-mile boundary:* Merge confirmations still require explicit owner `/confirm` and authorized repository scope; unavailable external probes fail closed without overwriting the last verified hash. [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159) + - *Shipped layer:* TypeScript admission & probe gates (`steward_managed_mode.ts`), `github_pr_evidence.py`, `steward_pr_merge.py`, `steward_monitor.py`, and `steward_turn.py` (`#9074`, `#9081`, `#9093`, `#9143`), plus report validator drift/Python-upgrade tolerance, frozen/stopped report contract recovery (`#9157`, `#9164`), minor JSON delimiter glitch tolerance in `host_candidate.py` (`#9164`), observation monitor queue preservation, pre-dispatch endpoint failure recovery with bounded receipt discovery (`#9159`), and mid-turn failed report cancellation (`#9155`). + - *Last-mile boundary:* Merge confirmations still require explicit owner `/confirm` and authorized repository scope; unavailable external probes fail closed without overwriting the last verified hash. [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159), [#9164](https://github.com/loopx-project/loopx/pull/9164) - **Isolated OpenViking Steward memory (`steward_memory`):** - *User outcome:* Private owner Steward conversations can recall standing preferences and past exchanges without leaking memory into group chats, project conversations, or worker Agents. - *Shipped layer:* Default-off `steward_memory` machine configuration namespace (`steward_memory_machine_defaults_v0`), TypeScript policy/normalization owner (`steward_memory.ts`), host adapter (`loopx/capabilities/steward_memory/`), Dashboard Settings UI, and `OPENVIKING_*` worker env scrubbing. @@ -410,7 +410,7 @@ loopx doctor ### 主要变化 - **一次确认创建 Goal 与对话历史检索。** 在 Chat 审核并确认一次草稿即可创建 Goal 并打开原会话;支持在已载入会话中搜索并跳回原消息,桌面重开后保留已保存研究回答、恢复中断回答及派发前请求、诊断失联 worker 与清晰引用 Markdown。 [#8676](https://github.com/loopx-project/loopx/pull/8676), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8863](https://github.com/loopx-project/loopx/pull/8863), [#8868](https://github.com/loopx-project/loopx/pull/8868), [#8880](https://github.com/loopx-project/loopx/pull/8880), [#8892](https://github.com/loopx-project/loopx/pull/8892), [#8983](https://github.com/loopx-project/loopx/pull/8983), [#9120](https://github.com/loopx-project/loopx/pull/9120), [#9125](https://github.com/loopx-project/loopx/pull/9125) -- **管家通用监控、精确 Head PR 审查信号与受保护合并确认。** 原生管家支持基于探针门控的自然语言 `continuous_monitor`(含 `context_handoff` 与受控 `steward_user_actions`)、精确 Head PR 审查筛选与 `/confirm` `pr.merge` 合并预览、跨端点派发前失败与报告/队列恢复,以及默认关闭的独立 OpenViking 管家长期记忆(仅限本人私聊)。 [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9083](https://github.com/loopx-project/loopx/pull/9083), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159) +- **管家通用监控、精确 Head PR 审查信号与受保护合并确认。** 原生管家支持基于探针门控的自然语言 `continuous_monitor`(含 `context_handoff` 与受控 `steward_user_actions`)、精确 Head PR 审查筛选与 `/confirm` `pr.merge` 合并预览、跨端点派发前失败与报告/队列恢复(含已停止或已保存报告候选恢复及轻微 JSON 分隔符容错)、以及默认关闭的独立 OpenViking 管家长期记忆(仅限本人私聊)。 [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9083](https://github.com/loopx-project/loopx/pull/9083), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159), [#9164](https://github.com/loopx-project/loopx/pull/9164) - **Complete Turn 与 `quota_settlement_plan_v2` 原任务恢复。** 已安装工作台经 CLI 发现 Manager 并沿原 Turn、扣额身份与重绑定硬租约护栏恢复已授权任务;Complete Turn 与原生宿主组合 `loopx_turn_envelope_v1` 与 `quota_settlement_plan_v2`(`--settle-turn --settlement-receipt`),普通未托管 JSON `quota should-run` 继续保留 `quota_packet` 公开默认。 [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9158](https://github.com/loopx-project/loopx/pull/9158), [#9160](https://github.com/loopx-project/loopx/pull/9160), [#9161](https://github.com/loopx-project/loopx/pull/9161) - **Antigravity Carbon、每端点模型偏好与双向容灾切换。** 注册 Antigravity `Carbon`(`gemini-4-carbon-{high,medium,low}`)并保留 `Argon` 默认,在 `steward_executor_machine_defaults_v1` 增加 `endpoint_models` JSON 模式配置说明,支持 Codex 与 Antigravity 双向 `flexible` 切换(配合 `loopx-codex-provider-routing 0.15.9`、`reasoning_effort` 容量别名与 `flexible_primary_available` 状态转换)及原生监控/周报回退对齐,修复 Codex API relay 请求/响应截断并在切换模型时保留 Codex 原会话历史。 [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9134](https://github.com/loopx-project/loopx/pull/9134), [#9141](https://github.com/loopx-project/loopx/pull/9141), [#9145](https://github.com/loopx-project/loopx/pull/9145), [#9147](https://github.com/loopx-project/loopx/pull/9147) - **多 Agent 协作与飞书群聊/私聊加固。** 对等体可通过 `read_peer_returns` 与 `consume_peer_result` 直接读回协作结果而无需重开 Manager Inbox,并按 Goal 批量加锁和缓存扫描;飞书连接器支持重连排队保留、只读管家快捷卡片、Turn 作用域原生图片、共享卡片回调、单趟卡片转义、国际版 Lark 配置识别及按输入重置退避。 [#8668](https://github.com/loopx-project/loopx/pull/8668), [#8695](https://github.com/loopx-project/loopx/pull/8695), [#8741](https://github.com/loopx-project/loopx/pull/8741), [#8871](https://github.com/loopx-project/loopx/pull/8871), [#8921](https://github.com/loopx-project/loopx/pull/8921), [#8990](https://github.com/loopx-project/loopx/pull/8990), [#9027](https://github.com/loopx-project/loopx/pull/9027), [#9085](https://github.com/loopx-project/loopx/pull/9085), [#9114](https://github.com/loopx-project/loopx/pull/9114), [#9117](https://github.com/loopx-project/loopx/pull/9117), [#9119](https://github.com/loopx-project/loopx/pull/9119) @@ -420,7 +420,7 @@ loopx doctor - 保留重规划历史中的主动监控事项;范围内唯一任务被阻塞时等待依赖,已被替换的 heartbeat 回执在 Python 后续路径前拦截,历史 ACK 准入与写回继续绑定原回执并按 `GoalRef` 护栏。 [#8511](https://github.com/loopx-project/loopx/pull/8511), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8672](https://github.com/loopx-project/loopx/pull/8672), [#8708](https://github.com/loopx-project/loopx/pull/8708), [#8907](https://github.com/loopx-project/loopx/pull/8907), [#8975](https://github.com/loopx-project/loopx/pull/8975) - 同秒评审后继与整秒历史 ACK 按准入后处理;Monitor 连续重规划及纯重规划 Turn 保留回执来源与精确结案命令,异常 Vision 结论保持可恢复。 [#8731](https://github.com/loopx-project/loopx/pull/8731), [#8804](https://github.com/loopx-project/loopx/pull/8804), [#8854](https://github.com/loopx-project/loopx/pull/8854), [#8855](https://github.com/loopx-project/loopx/pull/8855), [#8958](https://github.com/loopx-project/loopx/pull/8958) -- 显式 Goal 恢复与重规划后继身份保持可恢复,温增量与已保存 C1 重规划绑定原捕获摘要,重规划恢复限制在投影边界内(含 `projected_ack` 写回与 `monitor_poll` `lease_proof`),零效应监控与已清理重规划的管家报告可恢复。 [#8923](https://github.com/loopx-project/loopx/pull/8923), [#9016](https://github.com/loopx-project/loopx/pull/9016), [#9022](https://github.com/loopx-project/loopx/pull/9022), [#9046](https://github.com/loopx-project/loopx/pull/9046), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9160](https://github.com/loopx-project/loopx/pull/9160) +- 显式 Goal 恢复与重规划后继身份保持可恢复,温增量与已保存 C1 重规划绑定原捕获摘要,原生 `captured_decision` 重规划首屏继续内联保留绑定的 Yardstick 反转线索(`nativeReplanPresentation`),重规划恢复限制在投影边界内(含 `projected_ack` 写回与 `monitor_poll` `lease_proof`),零效应监控与已清理重规划的管家报告可恢复。 [#8923](https://github.com/loopx-project/loopx/pull/8923), [#9016](https://github.com/loopx-project/loopx/pull/9016), [#9022](https://github.com/loopx-project/loopx/pull/9022), [#9046](https://github.com/loopx-project/loopx/pull/9046), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9160](https://github.com/loopx-project/loopx/pull/9160), [#9165](https://github.com/loopx-project/loopx/pull/9165) ### 升级决策 @@ -446,7 +446,7 @@ loopx doctor ### 能力与工作流 - **个人工作台与研究连续性:** 打包工作台交付一次确认创建 Goal、已载入消息搜索、审阅材料键盘焦点恢复、截断记录披露及 Todo 分页读回;桌面与飞书通道下可保留并恢复原研究答案、中断回答、失联 worker 诊断、派发前请求、案例链接与清晰引用 Markdown。 [#8676](https://github.com/loopx-project/loopx/pull/8676), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8863](https://github.com/loopx-project/loopx/pull/8863), [#8868](https://github.com/loopx-project/loopx/pull/8868), [#8880](https://github.com/loopx-project/loopx/pull/8880), [#8892](https://github.com/loopx-project/loopx/pull/8892), [#8913](https://github.com/loopx-project/loopx/pull/8913), [#8954](https://github.com/loopx-project/loopx/pull/8954), [#8959](https://github.com/loopx-project/loopx/pull/8959), [#8962](https://github.com/loopx-project/loopx/pull/8962), [#8983](https://github.com/loopx-project/loopx/pull/8983), [#9120](https://github.com/loopx-project/loopx/pull/9120), [#9125](https://github.com/loopx-project/loopx/pull/9125) -- **管家通用监控、精确 Head PR 审查与受保护合并:** 用户成果为在私聊管家统一承接自然语言 `continuous_monitor`、精确 Head PR 审查判定与 `/confirm` 受保护合并;已交付 `steward_managed_mode.ts`、`github_pr_evidence.py`、`steward_pr_merge.py` 与 `steward_monitor.py`,并补齐跨 Python 升级的周报选择与冻结契约恢复、观察监控队列防误杀、失败取消及跨端点派发前恢复(含回执检索降噪 `#9159`);最终合并仍需明确授权与精确 Head 一致性。 [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159) +- **管家通用监控、精确 Head PR 审查与受保护合并:** 用户成果为在私聊管家统一承接自然语言 `continuous_monitor`、精确 Head PR 审查判定与 `/confirm` 受保护合并;已交付 `steward_managed_mode.ts`、`github_pr_evidence.py`、`steward_pr_merge.py` 与 `steward_monitor.py`,并补齐跨 Python 升级的周报选择与冻结/已停止报告候选恢复(含 `host_candidate.py` 轻微 JSON 分隔符容错 `#9164`)、观察监控队列防误杀、失败取消及跨端点派发前恢复(含回执检索降噪 `#9159`);最终合并仍需明确授权与精确 Head 一致性。 [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9077](https://github.com/loopx-project/loopx/pull/9077), [#9081](https://github.com/loopx-project/loopx/pull/9081), [#9093](https://github.com/loopx-project/loopx/pull/9093), [#9143](https://github.com/loopx-project/loopx/pull/9143), [#9155](https://github.com/loopx-project/loopx/pull/9155), [#9157](https://github.com/loopx-project/loopx/pull/9157), [#9159](https://github.com/loopx-project/loopx/pull/9159), [#9164](https://github.com/loopx-project/loopx/pull/9164) - **独立 OpenViking 管家长期记忆(`steward_memory`):** 用户成果为在本人私聊管家按说话人隔离召回与记忆偏好而不外泄到群聊、项目对话或 worker 进程;已交付默认关闭的 `steward_memory` 机器配置命名空间、TS 策略/规范化 owner、宿主适配与环境剥离;默认关闭且需由操作者在宿主环境配置 OpenViking 凭据。 [#9083](https://github.com/loopx-project/loopx/pull/9083) - **LooChat 工作台(试验):** 将 Calli 工作台迁入 `apps/workbench/`(`@loopx/loochat`)提供可选会话层、Goal 页面与 `/api/loopx/*` 代理;自动推进仍由 LoopX Core 负责。 [#8843](https://github.com/loopx-project/loopx/pull/8843), [#9113](https://github.com/loopx-project/loopx/pull/9113) - **材料分波排序与实验退役:** 材料生命周期提供无状态分波排序预览(`plan-wave-rerank`),应用排序仍需材料 owner 授权;Yardstick 延迟至显式启用,空队列不再进入普通 Worker 上下文,未通过验收的压缩工作记忆实验已退役(旧配置保留兼容读取且不生效)。 [#8579](https://github.com/loopx-project/loopx/pull/8579), [#8928](https://github.com/loopx-project/loopx/pull/8928), [#9034](https://github.com/loopx-project/loopx/pull/9034), [#9059](https://github.com/loopx-project/loopx/pull/9059), [#9060](https://github.com/loopx-project/loopx/pull/9060) diff --git a/loopx/control_plane/quota/turn_envelope.ts b/loopx/control_plane/quota/turn_envelope.ts index ca8a3f3a40..46f2c1d3db 100644 --- a/loopx/control_plane/quota/turn_envelope.ts +++ b/loopx/control_plane/quota/turn_envelope.ts @@ -2549,9 +2549,9 @@ function nativeReplanPresentation(request: JsonObject): JsonObject | undefined { if (projection.sha256 === undefined || request.surface !== "complete_turn" && (request.surface !== "quota_packet" || Object.hasOwn(source, "schema_version") || Object.hasOwn(source, "contract_binding"))) return undefined; - // Preserve a bound reversal in the opening, before candidate choice. - if (scopedReplanYardstickReversal(source)) return undefined; } + // Preserve a bound reversal in the opening, before candidate choice. + if (scopedReplanYardstickReversal(source)) return undefined; const packet = object(source.replan_action_packet); const review = object(object(source.autonomous_replan_obligation).replan_context); // Existing staged files are presentation inputs. Do not derive a new source diff --git a/tests/control_plane/test_goal_create_completion.py b/tests/control_plane/test_goal_create_completion.py index 4762457298..2b2d6bbcf5 100644 --- a/tests/control_plane/test_goal_create_completion.py +++ b/tests/control_plane/test_goal_create_completion.py @@ -379,6 +379,7 @@ def lose_claim_response(*args, **kwargs): @pytest.mark.parametrize("completion_surface", ["native-cli", "external-worker"]) def test_ordinary_goal_replans_after_first_todo_and_delivers_the_missing_section(environment, app, monkeypatch, provider, completion_surface): """Real creation, native CLI and authority; only the work decision is scripted.""" + monkeypatch.delenv("LOOPX_CONTEXT_DELIVERY", raising=False) configure, _, _, project, runtime = environment _, request, _ = app configure(provider, mode="soft_claim") @@ -425,10 +426,7 @@ def read_action(command): assert result.returncode == 0, result.stdout + result.stderr return json.loads(read_cli_context_for_oracle(result.stdout)[0]) - from loopx.control_plane.quota.turn_envelope import _turn_envelope_result - assert "review" not in decision["replan_action_packet"] - staged = _turn_envelope_result("replan_cli_view", payload=decision)["replan_action_packet"] - review = read_action(staged["review"]) + review = read_action(decision["replan_action_packet"]["review"]) writeback = read_action(review["next"]["writeback"]) stride = {**writeback["stride_control"]["minimal_example"], "basis": "unexplained_gap", "action": "verify", "axes": { diff --git a/tests/control_plane/test_quota_acceptance_references.py b/tests/control_plane/test_quota_acceptance_references.py index d19b65a5bd..38e861e5bd 100644 --- a/tests/control_plane/test_quota_acceptance_references.py +++ b/tests/control_plane/test_quota_acceptance_references.py @@ -212,7 +212,7 @@ def first_read(*args): chunks.extend(page["content"].encode()) if page["eof"]: assert len(chunks) == page["total_bytes"] - return view, selected_context_values(chunks) + return selected_context_values(chunks) page = run_reader(page["next_command"]) registry_path = tmp_path / "registry.json" @@ -230,23 +230,18 @@ def first_read(*args): "--document", str(document), "--expected-provider-revision", before["provider_revision"], "--operation-id", "source-requirements", "--execute") expected = call("goal-acceptance", "inspect", "--goal-id", GOAL)["goal_acceptance_contract"] - guard_view, guard = first_read("--turn-instance-id", "turn-acceptance-sharing") + guard = first_read("--turn-instance-id", "turn-acceptance-sharing") assert guard["/effective_action"] == "autonomous_replan_required" assert guard["/normal_delivery_allowed"] is False assert "/replan_action_packet/writeback" not in guard - assert "/replan_action_packet/review" not in guard - assert guard["/autonomous_replan_obligation/obligation_id"] == guard[ - "/heartbeat_receipt/semantic_replan_obligation_id" - ] - sources = "/interaction_contract/agent_channel/work_context/sources/" - guard_owner, = (path.removesuffix("/source") for path, value in guard.items() - if path.startswith(sources) and path.endswith("/source") and value == "goal_acceptance") - outcome_prefix = guard_owner + "/content/goal_acceptance_contract/outcome_requirements/outcomes/0" - assert guard[outcome_prefix + "/id"] == "export" - assert outcome_prefix + "/requirements" not in guard - command = guard_view["recovery"]["command"].split(" --offset ")[0] + f" --select {outcome_prefix}" + review = run_reader(guard["/replan_action_packet/review"]) + assert review["obligation_id"] == guard["/heartbeat_receipt/semantic_replan_obligation_id"] + acceptance = review["acceptance_index"] + row, = acceptance["outcomes"] + assert row["id"] == "export" + command = acceptance["read_action_template"].replace("{outcome_ref}", row["outcome_ref"]) original = expected["outcome_requirements"]["outcomes"][0] - assert selected_context_values(run_reader(command)["content"].encode())[outcome_prefix] == original + assert run_reader(command)["outcome"] == original # A later linked revision must reach the selected caller intact. index.write_text("") @@ -264,19 +259,20 @@ def first_read(*args): "--document", str(document), "--expected-provider-revision", revision, "--operation-id", "link-export", "--execute") expected = call("goal-acceptance", "inspect", "--goal-id", GOAL)["goal_acceptance_contract"] - _, planning = first_read("--turn-instance-id", "turn-export-planning") + planning = first_read("--turn-instance-id", "turn-export-planning") assert planning["/interaction_contract/agent_channel/delivery_allowed"] is False assert "/replan_action_packet/review" not in planning - _, selected = first_read("--todo-id", added["todo_id"], "--turn-instance-id", "turn-export-delivery") + selected = first_read("--todo-id", added["todo_id"], "--turn-instance-id", "turn-export-delivery") assert selected["/normal_delivery_allowed"] is True assert selected["/selected_todo/todo_id"] == added["todo_id"] assert "/replan_action_packet/review" not in selected + sources = "/interaction_contract/agent_channel/work_context/sources/" owner, = (path.removesuffix("/source") for path, value in selected.items() if path.startswith(sources) and path.endswith("/source") and value == "goal_acceptance") outcome = selected[owner + "/content/goal_acceptance_contract/outcome_requirements/outcomes/0"] assert outcome == expected["outcome_requirements"]["outcomes"][0] assert original["revision"] < outcome["revision"] - assert selected_context_values(run_reader(command)["content"].encode())[outcome_prefix] == original + assert run_reader(command)["outcome"] == original @pytest.mark.parametrize("provider", ["file", "sqlite"]) diff --git a/tests/control_plane/test_settlement_input_discovery_cli.py b/tests/control_plane/test_settlement_input_discovery_cli.py index 0a0fb7c00e..1dd816819e 100644 --- a/tests/control_plane/test_settlement_input_discovery_cli.py +++ b/tests/control_plane/test_settlement_input_discovery_cli.py @@ -215,6 +215,7 @@ def run(*args): @pytest.mark.parametrize("provider", ["file", "sqlite"]) def test_replan_authoring_example_links_actual_subsequent_work(tmp_path, monkeypatch, provider): """A caller following the delivered example must retain a real work link.""" + monkeypatch.delenv("LOOPX_CONTEXT_DELIVERY", raising=False) isolate_sqlite_runtime(tmp_path, monkeypatch) project, runtime, registry = _write_fixture(tmp_path) # Fund all three admitted Turns before execution; the shared fixture's @@ -244,12 +245,9 @@ def run(*args): rc, guard = _run_generated_cli(command, registry_path=registry) assert rc == 0, (stage, guard.get("error"), guard.get("reason")) if stage == "review": - from loopx.control_plane.quota.turn_envelope import _turn_envelope_result channel = guard["interaction_contract"]["agent_channel"] assert channel["must_attempt"] and not channel["delivery_allowed"] - assert "writeback" not in guard["replan_action_packet"] - staged_packet = _turn_envelope_result("replan_cli_view", payload=guard)["replan_action_packet"] - read_command = staged_packet["writeback"] + read_command = guard["replan_action_packet"]["writeback"] result = subprocess.run( shlex.split(read_command), cwd=project, capture_output=True, text=True, check=True, timeout=60, ) diff --git a/tests/control_plane_ts/turn_envelope.test.ts b/tests/control_plane_ts/turn_envelope.test.ts index 5da929e9c7..c4ca48e24a 100644 --- a/tests/control_plane_ts/turn_envelope.test.ts +++ b/tests/control_plane_ts/turn_envelope.test.ts @@ -477,6 +477,42 @@ test("both replan readers surface an opted-in reversal for the bound task only", Object.keys(explore.work_yardstick_reversal as JsonObject).map(field => prefix + field)); const detail = evaluateTurnEnvelope({operation: "replan_view", payload: captured, source_hash, stage: "explore"}); assert.deepEqual((detail.explore_basis as JsonObject).work_yardsticks, cues); + const nativeInput: JsonObject = { + operation: "context_delivery", + surface: "complete_turn", + scope: {goal_id: String(source.goal_id), agent_id: String(source.agent_id), + session_id: "session", context_epoch: "epoch"}, + capture_id: "c".repeat(64), + context: {...captured, replan_read_path: "/capture/original.json"}, + native_projection: { + path: "/capture/recovery.json", + sha256: "a".repeat(64), + source_path: "/capture/recovery.json", + command_template: "loopx --format json quota context-read --select ''", + captured_decision: {path: "/capture/original.json", sha256: "c".repeat(64)}, + }, + consumed_pointers: {}, + include_initial_read_plan: true, + observe_first_read: true, + }; + const nativeResult = structuredClone(nativeInput); + const resolvePath = (root: unknown, path: (string | number)[]) => path.reduce( + (row, key) => (row as Record)[key], root); + for (const change of evaluateTurnEnvelope(nativeInput).changes as JsonObject[]) { + const path = change.path as (string | number)[], key = path.at(-1)!; + const parent = resolvePath(nativeResult, path.slice(0, -1)) as Record; + if (change.remove) delete parent[key]; + else parent[key] = structuredClone( + change.from ? resolvePath(nativeInput, change.from as (string | number)[]) : change.value); + } + const planSelections = (((nativeResult.initial_read_plan as JsonObject) + .plan as JsonObject).selections as {pointer: string}[]); + assert.ok(planSelections.some(row => row.pointer === `${prefix}proxy_order_reversed`)); + assert.equal( + ((nativeResult.context as JsonObject).replan_action_packet as JsonObject).review, + undefined, + ); + assert.equal(nativeResult.projected, false); } else { assert.ok(!Object.hasOwn(explore, "work_yardstick_reversal")); assert.equal(cuesInOpening.length, 0);