diff --git a/docs/product/releases/v2.4.0.md b/docs/product/releases/v2.4.0.md index c786fdce19..9a7da73510 100644 --- a/docs/product/releases/v2.4.0.md +++ b/docs/product/releases/v2.4.0.md @@ -23,7 +23,7 @@ loopx doctor - **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 (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) +- **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, recovers Codex loopback relay `401` failures, 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), [#9167](https://github.com/loopx-project/loopx/pull/9167) - **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) - **Desktop App 2.4.0, `dsh-loopx-plugin 0.1.1-beta.7`, LooChat workbench, and remote task gateway.** Desktop App prepares updates before workspace teardown, bounds readiness probes, skips immutable-release frontend re-hashing, adds release/chat-bundle download retries, and verifies `default_contract` before caching macOS preview updates; `dsh-loopx-plugin 0.1.1-beta.7` requires LoopX 2.4.0+, qualifies DSH `0.2.2-rc.1..rc.3` (including `quota_settlement_plan_v2` closeout tests), surfaces GoalBar admission failures, and isolates hot uninstall; `apps/workbench/` introduces the experimental LooChat conversation layer; and the remote task gateway adds scoped read ACLs and a PostgreSQL/TLS Compose self-hosting bundle. [#8508](https://github.com/loopx-project/loopx/pull/8508), [#8675](https://github.com/loopx-project/loopx/pull/8675), [#8723](https://github.com/loopx-project/loopx/pull/8723), [#8739](https://github.com/loopx-project/loopx/pull/8739), [#8765](https://github.com/loopx-project/loopx/pull/8765), [#8843](https://github.com/loopx-project/loopx/pull/8843), [#8861](https://github.com/loopx-project/loopx/pull/8861), [#8879](https://github.com/loopx-project/loopx/pull/8879), [#8887](https://github.com/loopx-project/loopx/pull/8887), [#8899](https://github.com/loopx-project/loopx/pull/8899), [#9029](https://github.com/loopx-project/loopx/pull/9029), [#9089](https://github.com/loopx-project/loopx/pull/9089), [#9147](https://github.com/loopx-project/loopx/pull/9147) @@ -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, 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) +- 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`), `scoped_user_gate_fallback` excludes ready `deferred_successor_replan` lifecycle replans from execution-lease preparation, 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), [#9168](https://github.com/loopx-project/loopx/pull/9168) ### Contributors @@ -85,11 +85,11 @@ loopx authority-archive upgrade --all-known --require-current - **SQLite reliability & ENOSPC matrix:** Expanded regression coverage across lagging persisted-cursor consumers, backup/restore lineage, concurrent CAS and lost-response retries, and disk-full injection (`SQLITE_FULL` and real macOS `ENOSPC` sparse volume fail-closed recovery). [#8367](https://github.com/loopx-project/loopx/pull/8367), [#8482](https://github.com/loopx-project/loopx/pull/8482), [#8498](https://github.com/loopx-project/loopx/pull/8498), [#9126](https://github.com/loopx-project/loopx/pull/9126) - **Type safety, CLI modularization & test isolation:** Eliminated `Any` annotations with ratchet baselines across control-plane, quota, Lark, reward-memory, benchmark, and domain-pack modules (`#8971`–`#8993`, `#8013`), modularized large CLI, `issue-fix`, and Lark/Chat modules (`#8897`, `#8909`, `#8911`, `#8920`, `#8925`, `#8929`, `#8931`, `#8933`, `#8939`), pruned ceremonial/obsolete smoke stacks (`#8883`, `#8884`, `#9073`), pinned C1/Complete Turn output budgets, CLI help catalogs, architecture import guards, onboarding gates, UTF-8 host transports, and settlement tests (`#8940`, `#8994`, `#9010`, `#9019`, `#9025`, `#9042`, `#9044`, `#9048`, `#9052`, `#9102`, `#9104`, `#9152`, `#9154`, `#9156`, `#9158`, `#9160`, `#9161`), and bound `doctor` package update readback to its owning Python environment (`#9009`). [#8013](https://github.com/loopx-project/loopx/pull/8013), [#8897](https://github.com/loopx-project/loopx/pull/8897), [#8933](https://github.com/loopx-project/loopx/pull/8933), [#8940](https://github.com/loopx-project/loopx/pull/8940), [#8971](https://github.com/loopx-project/loopx/pull/8971), [#8994](https://github.com/loopx-project/loopx/pull/8994), [#9009](https://github.com/loopx-project/loopx/pull/9009), [#9044](https://github.com/loopx-project/loopx/pull/9044), [#9102](https://github.com/loopx-project/loopx/pull/9102), [#9104](https://github.com/loopx-project/loopx/pull/9104), [#9152](https://github.com/loopx-project/loopx/pull/9152), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#9156](https://github.com/loopx-project/loopx/pull/9156), [#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) -- **Canary & release qualification gates:** Strengthened base/head CLI probe and budget-baseline isolation (`#8948`, `#9103`), runtime snapshot qualification (`#8919`, `#8922`, `#8952`, `#9018`), canary timeout/incomplete diagnostics (`#9001`), Git pathname preservation (`#8426`, `#8429`, `#8558`, `#8585`, `#8645`, `#8678`), and local-first verification and public smoke workflows (`#9040`, `#9152`). [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8919](https://github.com/loopx-project/loopx/pull/8919), [#8922](https://github.com/loopx-project/loopx/pull/8922), [#8948](https://github.com/loopx-project/loopx/pull/8948), [#8952](https://github.com/loopx-project/loopx/pull/8952), [#9001](https://github.com/loopx-project/loopx/pull/9001), [#9018](https://github.com/loopx-project/loopx/pull/9018), [#9040](https://github.com/loopx-project/loopx/pull/9040), [#9103](https://github.com/loopx-project/loopx/pull/9103), [#9152](https://github.com/loopx-project/loopx/pull/9152) +- **Canary & release qualification gates:** Strengthened base/head CLI probe and budget-baseline isolation (`#8948`, `#9103`), runtime snapshot qualification (`#8919`, `#8922`, `#8952`, `#9018`), canary timeout/incomplete diagnostics (`#9001`), Git pathname preservation (`#8426`, `#8429`, `#8558`, `#8585`, `#8645`, `#8678`), and local-first verification and public smoke workflows (`#9040`, `#9152`), alongside `--max-workers` concurrent live portfolio qualification, an `8 KiB` host-tool error output cap preserving deep-path replan context recovery, digest consumer manifest & multi-goal bootstrap smoke alignment, and standalone `test_effect_turn_live_quota_decision` import qualification (`#9168`). [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8919](https://github.com/loopx-project/loopx/pull/8919), [#8922](https://github.com/loopx-project/loopx/pull/8922), [#8948](https://github.com/loopx-project/loopx/pull/8948), [#8952](https://github.com/loopx-project/loopx/pull/8952), [#9001](https://github.com/loopx-project/loopx/pull/9001), [#9018](https://github.com/loopx-project/loopx/pull/9018), [#9040](https://github.com/loopx-project/loopx/pull/9040), [#9103](https://github.com/loopx-project/loopx/pull/9103), [#9152](https://github.com/loopx-project/loopx/pull/9152), [#9168](https://github.com/loopx-project/loopx/pull/9168) ## Benchmarks & Integrations -- **Antigravity, Codex & Steward executor routing:** External hosts can opt into `--complete-turn` (`loopx_turn_envelope_v1`) with digest-bound `context-read` pagination and verified original capture recovery (`#8489`, `#8940`, `#9022`, `#9048`). Steward executor routing adds Antigravity `Carbon` (`gemini-4-carbon-{high,medium,low}`) while retaining `Argon` as default, optional `endpoint_models` preferences in `steward_executor_machine_defaults_v1` (with JSON-mode authoring notes in `configuration_ui.py`), bidirectional `codex` / `antigravity` flexible failover (`loopx-codex-provider-routing 0.15.9`) with `reasoning_effort` alias capacity resolution (`#9147`), `flexible_primary_available` conversation transitions (`#9145`), and native Steward monitor/report fallback parity; legacy session model preservation (`#8977`, `#8984`), Antigravity schedule patrol and Stop hooks (`#8874`), Codex API relay untruncated streaming/payload handling (`#8713`), UTF-8 Codex App stdout decoding (`#8485`), quiet completion receipts (`#8454`), failed-start Session adapter retention (`#9134`), and managed chat observer lock handoff (`#9130`) complete the host layer. [#8454](https://github.com/loopx-project/loopx/pull/8454), [#8485](https://github.com/loopx-project/loopx/pull/8485), [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8874](https://github.com/loopx-project/loopx/pull/8874), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9130](https://github.com/loopx-project/loopx/pull/9130), [#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) +- **Antigravity, Codex & Steward executor routing:** External hosts can opt into `--complete-turn` (`loopx_turn_envelope_v1`) with digest-bound `context-read` pagination and verified original capture recovery (`#8489`, `#8940`, `#9022`, `#9048`). Steward executor routing adds Antigravity `Carbon` (`gemini-4-carbon-{high,medium,low}`) while retaining `Argon` as default, optional `endpoint_models` preferences in `steward_executor_machine_defaults_v1` (with JSON-mode authoring notes in `configuration_ui.py`), bidirectional `codex` / `antigravity` flexible failover (`loopx-codex-provider-routing 0.15.9`) with `reasoning_effort` alias capacity resolution (`#9147`), `flexible_primary_available` conversation transitions (`#9145`), and native Steward monitor/report fallback parity; legacy session model preservation (`#8977`, `#8984`), Antigravity schedule patrol and Stop hooks (`#8874`), Codex API relay untruncated streaming/payload handling and loopback relay `401` recovery (`#8713`, `#9167`), UTF-8 Codex App stdout decoding (`#8485`), quiet completion receipts (`#8454`), failed-start Session adapter retention (`#9134`), and managed chat observer lock handoff (`#9130`) complete the host layer. [#8454](https://github.com/loopx-project/loopx/pull/8454), [#8485](https://github.com/loopx-project/loopx/pull/8485), [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8874](https://github.com/loopx-project/loopx/pull/8874), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9130](https://github.com/loopx-project/loopx/pull/9130), [#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), [#9167](https://github.com/loopx-project/loopx/pull/9167) - **Lark group & private channel hardening:** Private Lark replies stay off the main blocking path, preserve queued messages on reconnect, offer read-only Steward shortcut cards, deliver Turn-scoped native images and recover legacy captured images, steer mentions into frozen original Turns, share callback dispatch across query and operation cards, escape Goal Channel operation card text in a single pass, recognize international Lark setup URLs, coalesce listener snapshots, cache recovery lookups, and reset noop recovery backoff when Turn/session inputs change. [#8270](https://github.com/loopx-project/loopx/pull/8270), [#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), [#8858](https://github.com/loopx-project/loopx/pull/8858), [#8870](https://github.com/loopx-project/loopx/pull/8870), [#8871](https://github.com/loopx-project/loopx/pull/8871), [#8893](https://github.com/loopx-project/loopx/pull/8893), [#8903](https://github.com/loopx-project/loopx/pull/8903), [#8921](https://github.com/loopx-project/loopx/pull/8921), [#8990](https://github.com/loopx-project/loopx/pull/8990), [#8999](https://github.com/loopx-project/loopx/pull/8999), [#9041](https://github.com/loopx-project/loopx/pull/9041), [#9096](https://github.com/loopx-project/loopx/pull/9096), [#9098](https://github.com/loopx-project/loopx/pull/9098), [#9100](https://github.com/loopx-project/loopx/pull/9100), [#9114](https://github.com/loopx-project/loopx/pull/9114), [#9119](https://github.com/loopx-project/loopx/pull/9119) - **Desktop App 2.4.0 & `dsh-loopx-plugin 0.1.1-beta.7`:** Desktop App prepares updates before workspace teardown, bounds readiness probes, opens the usable workspace before optional updates, skips immutable-release frontend re-hashing (`#9089`), adds download retries to chat-bundle packaging and Desktop release/updater workflows (`#9147`), and checks signature-verified archives for supported runtime `default_contract` before preparing macOS preview updates (`#9029`). `dsh-loopx-plugin 0.1.1-beta.7` adds `DSH 0.2.2-rc.1..rc.3` compatibility, aligns integration closeout tests with `quota_settlement_plan_v2` (`#9147`), surfaces GoalBar `continuationAdmission` failures, isolates hot uninstalls from the shared Web server, fences Start/Pause with Core source fingerprints, preserves replacement cancellation/error pauses, and fixes Windows continuation paths. [#8504](https://github.com/loopx-project/loopx/pull/8504), [#8675](https://github.com/loopx-project/loopx/pull/8675), [#8723](https://github.com/loopx-project/loopx/pull/8723), [#8739](https://github.com/loopx-project/loopx/pull/8739), [#8879](https://github.com/loopx-project/loopx/pull/8879), [#8899](https://github.com/loopx-project/loopx/pull/8899), [#9029](https://github.com/loopx-project/loopx/pull/9029), [#9087](https://github.com/loopx-project/loopx/pull/9087), [#9089](https://github.com/loopx-project/loopx/pull/9089), [#9147](https://github.com/loopx-project/loopx/pull/9147) - **Windows & Benchmark tooling (no net long-horizon outcome claim):** Windows receives PowerShell settlement quoting, bounded error payloads, UTF-8 decoding, source lease clock-skew tolerance, file identity checks, and local NTFS `loopx-jev` capture (`#8599`, `#8620`, `#8641`, `#8643`, `#8761`). Benchmark adapters add `benchmark.runtime.planning_batch` initial task planning (`#9090`), idle-boundary staged CLI activation (`#8501`), governed single-worker Turn extraction (`#8499`), Codex resume restoration (`#9031`), Frontier shared task clocks (`#8875`), and restored frozen v1 archive and standalone benchmark import boundaries (`#9151`); no net long-horizon benchmark outcome or total-cost improvement is claimed in this release. [#8499](https://github.com/loopx-project/loopx/pull/8499), [#8501](https://github.com/loopx-project/loopx/pull/8501), [#8599](https://github.com/loopx-project/loopx/pull/8599), [#8620](https://github.com/loopx-project/loopx/pull/8620), [#8641](https://github.com/loopx-project/loopx/pull/8641), [#8643](https://github.com/loopx-project/loopx/pull/8643), [#8761](https://github.com/loopx-project/loopx/pull/8761), [#8875](https://github.com/loopx-project/loopx/pull/8875), [#9031](https://github.com/loopx-project/loopx/pull/9031), [#9090](https://github.com/loopx-project/loopx/pull/9090), [#9151](https://github.com/loopx-project/loopx/pull/9151) @@ -412,7 +412,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` 合并预览、跨端点派发前失败与报告/队列恢复(含已停止或已保存报告候选恢复及轻微 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) +- **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 请求/响应截断与回环中继 401 故障恢复,并在切换模型时保留 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), [#9167](https://github.com/loopx-project/loopx/pull/9167) - **多 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) - **Desktop App 2.4.0、`dsh-loopx-plugin 0.1.1-beta.7`、LooChat 工作台与远程任务网关。** Desktop App 在关闭工作区前准备更新、限制就绪探测耗时、跳过不可变发布包前端重哈希、为发布/ChatBundle 下载补齐重试,并在缓存 macOS preview 更新前核验 `default_contract`;`dsh-loopx-plugin 0.1.1-beta.7` 要求 Core 2.4.0+、兼容 DSH `0.2.2-rc.1..rc.3` 与 `quota_settlement_plan_v2` 结案回归、在 GoalBar 暴露准入失败并隔离热卸载;新增实验性 LooChat 工作台(`apps/workbench/`)及远程任务网关的逐资源读 ACL 与 PostgreSQL/TLS Compose 自托管示例。 [#8508](https://github.com/loopx-project/loopx/pull/8508), [#8675](https://github.com/loopx-project/loopx/pull/8675), [#8723](https://github.com/loopx-project/loopx/pull/8723), [#8739](https://github.com/loopx-project/loopx/pull/8739), [#8765](https://github.com/loopx-project/loopx/pull/8765), [#8843](https://github.com/loopx-project/loopx/pull/8843), [#8861](https://github.com/loopx-project/loopx/pull/8861), [#8879](https://github.com/loopx-project/loopx/pull/8879), [#8887](https://github.com/loopx-project/loopx/pull/8887), [#8899](https://github.com/loopx-project/loopx/pull/8899), [#9029](https://github.com/loopx-project/loopx/pull/9029), [#9089](https://github.com/loopx-project/loopx/pull/9089), [#9147](https://github.com/loopx-project/loopx/pull/9147) @@ -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 重规划绑定原捕获摘要,原生 `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) +- 显式 Goal 恢复与重规划后继身份保持可恢复,温增量与已保存 C1 重规划绑定原捕获摘要,原生 `captured_decision` 重规划首屏继续内联保留绑定的 Yardstick 反转线索(`nativeReplanPresentation`),`scoped_user_gate_fallback` 将就绪 `deferred_successor_replan` 生命周期重规划排除出执行租约准备检查(`#9168`),重规划恢复限制在投影边界内(含 `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), [#9168](https://github.com/loopx-project/loopx/pull/9168) ### 升级决策 @@ -455,11 +455,11 @@ loopx doctor - SQLite 回归矩阵覆盖落后消费者、备份 lineage、并发 CAS/响应丢失重试以及 `SQLITE_FULL` / 真实 macOS `ENOSPC` 磁盘满 fail-closed 与恢复。 [#8367](https://github.com/loopx-project/loopx/pull/8367), [#8482](https://github.com/loopx-project/loopx/pull/8482), [#8498](https://github.com/loopx-project/loopx/pull/8498), [#9126](https://github.com/loopx-project/loopx/pull/9126) - 控制面、配额、Lark、奖励记忆、基准与领域包消除 `Any` 并建立基线护栏,大体积 CLI、`issue-fix` 与 Lark/Chat 模块完成拆分,补齐 C1 规划/交付/结算与 UTF-8 传输/扩展/工作台回归,加固 CLI help 目录、架构导入守卫与新手引导选标门禁,精简冗余示例,并使 `doctor` 升级读回绑定所属 Python 环境。 [#8013](https://github.com/loopx-project/loopx/pull/8013), [#8897](https://github.com/loopx-project/loopx/pull/8897), [#8933](https://github.com/loopx-project/loopx/pull/8933), [#8940](https://github.com/loopx-project/loopx/pull/8940), [#8971](https://github.com/loopx-project/loopx/pull/8971), [#8994](https://github.com/loopx-project/loopx/pull/8994), [#9009](https://github.com/loopx-project/loopx/pull/9009), [#9044](https://github.com/loopx-project/loopx/pull/9044), [#9102](https://github.com/loopx-project/loopx/pull/9102), [#9104](https://github.com/loopx-project/loopx/pull/9104), [#9152](https://github.com/loopx-project/loopx/pull/9152), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#9156](https://github.com/loopx-project/loopx/pull/9156), [#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) -- 加固 base/head CLI 差分与预算基线隔离(`#8948`、`#9103`)、runtime snapshot 默认契约校验、canary 超时诊断与 Git 原始路径保留,并沉淀本地优先验证规范与公开 smoke 门禁修复(`#9152`)。 [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8919](https://github.com/loopx-project/loopx/pull/8919), [#8922](https://github.com/loopx-project/loopx/pull/8922), [#8948](https://github.com/loopx-project/loopx/pull/8948), [#8952](https://github.com/loopx-project/loopx/pull/8952), [#9001](https://github.com/loopx-project/loopx/pull/9001), [#9018](https://github.com/loopx-project/loopx/pull/9018), [#9040](https://github.com/loopx-project/loopx/pull/9040), [#9103](https://github.com/loopx-project/loopx/pull/9103), [#9152](https://github.com/loopx-project/loopx/pull/9152) +- 加固 base/head CLI 差分与预算基线隔离(`#8948`、`#9103`)、runtime snapshot 默认契约校验、canary 超时诊断与 Git 原始路径保留,并沉淀本地优先验证规范与公开 smoke 门禁修复(`#9152`),同时支持 `--max-workers` 并发真实模型行为评估、深路径重规划上下文恢复的 `8 KiB` 宿主工具错误输出上限,并对齐摘要消费者清单、多 Goal 引导 smoke 契约与 `test_effect_turn_live_quota_decision` 独立导入(`#9168`)。 [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8919](https://github.com/loopx-project/loopx/pull/8919), [#8922](https://github.com/loopx-project/loopx/pull/8922), [#8948](https://github.com/loopx-project/loopx/pull/8948), [#8952](https://github.com/loopx-project/loopx/pull/8952), [#9001](https://github.com/loopx-project/loopx/pull/9001), [#9018](https://github.com/loopx-project/loopx/pull/9018), [#9040](https://github.com/loopx-project/loopx/pull/9040), [#9103](https://github.com/loopx-project/loopx/pull/9103), [#9152](https://github.com/loopx-project/loopx/pull/9152), [#9168](https://github.com/loopx-project/loopx/pull/9168) ### 基准与集成 -- **Antigravity、Codex 与管家执行器路由:** 外部 Host 可显式使用 `--complete-turn` 与摘要绑定 `context-read`;管家配置新增 Antigravity `Carbon`(`gemini-4-carbon-{high,medium,low}`,默认仍为 `Argon`)、每端点 `endpoint_models` JSON 模式偏好说明、Codex 与 Antigravity 双向 `flexible` 容灾切换(配合 `loopx-codex-provider-routing 0.15.9`、`reasoning_effort` 容量别名与 `flexible_primary_available` 状态转换)及回退路径的原生监控/周报支持,同时修复 Codex API relay 请求/响应截断、Codex 模型切换历史保留、UTF-8 输出解码、静默完成回执、失败重试 Session 适配器保留及受管观察锁交接。 [#8454](https://github.com/loopx-project/loopx/pull/8454), [#8485](https://github.com/loopx-project/loopx/pull/8485), [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8874](https://github.com/loopx-project/loopx/pull/8874), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9130](https://github.com/loopx-project/loopx/pull/9130), [#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) +- **Antigravity、Codex 与管家执行器路由:** 外部 Host 可显式使用 `--complete-turn` 与摘要绑定 `context-read`;管家配置新增 Antigravity `Carbon`(`gemini-4-carbon-{high,medium,low}`,默认仍为 `Argon`)、每端点 `endpoint_models` JSON 模式偏好说明、Codex 与 Antigravity 双向 `flexible` 容灾切换(配合 `loopx-codex-provider-routing 0.15.9`、`reasoning_effort` 容量别名与 `flexible_primary_available` 状态转换)及回退路径的原生监控/周报支持,同时修复 Codex API relay 请求/响应截断与回环中继 401 恢复、Codex 模型切换历史保留、UTF-8 输出解码、静默完成回执、失败重试 Session 适配器保留及受管观察锁交接(`#9167`)。 [#8454](https://github.com/loopx-project/loopx/pull/8454), [#8485](https://github.com/loopx-project/loopx/pull/8485), [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8713](https://github.com/loopx-project/loopx/pull/8713), [#8874](https://github.com/loopx-project/loopx/pull/8874), [#8977](https://github.com/loopx-project/loopx/pull/8977), [#8984](https://github.com/loopx-project/loopx/pull/8984), [#9130](https://github.com/loopx-project/loopx/pull/9130), [#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), [#9167](https://github.com/loopx-project/loopx/pull/9167) - **飞书群聊与私聊加固:** 私聊反馈不阻塞主回复,重连保留排队消息,提供只读管家快捷卡片,支持 Turn 作用域原生图片与历史图片恢复、mention 定向回原冻结 Turn、查询与操作卡片共享回调分发、单趟卡片文本转义、国际版 Lark URL 识别、监听快照合并与恢复缓存,并在输入变化时重置空转退避。 [#8270](https://github.com/loopx-project/loopx/pull/8270), [#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), [#8858](https://github.com/loopx-project/loopx/pull/8858), [#8870](https://github.com/loopx-project/loopx/pull/8870), [#8871](https://github.com/loopx-project/loopx/pull/8871), [#8893](https://github.com/loopx-project/loopx/pull/8893), [#8903](https://github.com/loopx-project/loopx/pull/8903), [#8921](https://github.com/loopx-project/loopx/pull/8921), [#8990](https://github.com/loopx-project/loopx/pull/8990), [#8999](https://github.com/loopx-project/loopx/pull/8999), [#9041](https://github.com/loopx-project/loopx/pull/9041), [#9096](https://github.com/loopx-project/loopx/pull/9096), [#9098](https://github.com/loopx-project/loopx/pull/9098), [#9100](https://github.com/loopx-project/loopx/pull/9100), [#9114](https://github.com/loopx-project/loopx/pull/9114), [#9119](https://github.com/loopx-project/loopx/pull/9119) - **Desktop App 2.4.0 与 `dsh-loopx-plugin 0.1.1-beta.7`:** Desktop App 在关闭工作区前准备更新、限制就绪探测耗时、先打开可用工作区、跳过不可变版本前端重哈希、为 `chat_bundle.py` 与桌面发布/更新工作流增加下载重试(`#9147`),并在缓存 macOS preview 更新前核验签名包里的 `default_contract`;`dsh-loopx-plugin 0.1.1-beta.7` 兼容 DSH `0.2.2-rc.1..rc.3`、对齐 `quota_settlement_plan_v2` 集成结案测试(`#9147`)、在 GoalBar 展示准入失败、隔离热卸载、保持替代后取消/错误暂停归属、用来源指纹保护 Start/Pause 并支持 Windows 原生路径。 [#8504](https://github.com/loopx-project/loopx/pull/8504), [#8675](https://github.com/loopx-project/loopx/pull/8675), [#8723](https://github.com/loopx-project/loopx/pull/8723), [#8739](https://github.com/loopx-project/loopx/pull/8739), [#8879](https://github.com/loopx-project/loopx/pull/8879), [#8899](https://github.com/loopx-project/loopx/pull/8899), [#9029](https://github.com/loopx-project/loopx/pull/9029), [#9087](https://github.com/loopx-project/loopx/pull/9087), [#9089](https://github.com/loopx-project/loopx/pull/9089), [#9147](https://github.com/loopx-project/loopx/pull/9147) - **Windows 与基准工具(不宣称长程净收益):** Windows 修复 PowerShell 引号、错误载荷上限、文件身份核对及本地 NTFS `loopx-jev` 捕获;基准工具新增初始规划批写入(`benchmark.runtime.planning_batch`)、空闲边界 staged CLI 切换预览、单 worker 回合提取、Codex 恢复、Frontier 共享时钟,并恢复冻结 v1 归档与独立 `benchmark/` 导入边界(`#9151`)。本版本不宣称可比长程任务结果或完整成本净收益。 [#8499](https://github.com/loopx-project/loopx/pull/8499), [#8501](https://github.com/loopx-project/loopx/pull/8501), [#8599](https://github.com/loopx-project/loopx/pull/8599), [#8620](https://github.com/loopx-project/loopx/pull/8620), [#8641](https://github.com/loopx-project/loopx/pull/8641), [#8643](https://github.com/loopx-project/loopx/pull/8643), [#8761](https://github.com/loopx-project/loopx/pull/8761), [#8875](https://github.com/loopx-project/loopx/pull/8875), [#9031](https://github.com/loopx-project/loopx/pull/9031), [#9090](https://github.com/loopx-project/loopx/pull/9090), [#9151](https://github.com/loopx-project/loopx/pull/9151) diff --git a/examples/bootstrap-command-pack-smoke.py b/examples/bootstrap-command-pack-smoke.py index d5303b3b3d..2f5bc3d6bb 100644 --- a/examples/bootstrap-command-pack-smoke.py +++ b/examples/bootstrap-command-pack-smoke.py @@ -719,6 +719,8 @@ def test_start_goal_guided_requires_explicit_goal_for_multi_goal_project() -> No "activation_state": "goal_selection_required", "activation_allowed": False, "activation_required_after_todo_write": False, + "host_surface": None, + "activation_method": None, }, payload assert payload["safety_contract"]["writes_registry"] is False, payload assert payload["safety_contract"]["creates_heartbeat"] is False, payload diff --git a/loopx/control_plane/quota/execution_preparation.py b/loopx/control_plane/quota/execution_preparation.py index 1f694ed755..78e7d6a770 100644 --- a/loopx/control_plane/quota/execution_preparation.py +++ b/loopx/control_plane/quota/execution_preparation.py @@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, Any from ...file_lock import exclusive_cross_runtime_file_lock, exclusive_mutation_file_lock +from ..agents.agent_scope import AgentScopeFrontierAction from ..coordination.local_authority import ( local_authority_is_promoted, LOCAL_AUTHORITY_SOURCES, @@ -455,10 +456,22 @@ def apply_selected_todo_execution_preparation( receipt_bound: bool = False, ) -> None: selected = payload.get("selected_todo") + fallback = payload.get("scoped_user_gate_fallback") + fallback_selected = ( + fallback.get("selected_executable") + if isinstance(fallback, Mapping) + else None + ) scoped_fallback_admitted = ( - isinstance(payload.get("scoped_user_gate_fallback"), Mapping) + isinstance(fallback, Mapping) and obligation is not None and obligation.get("delivery_allowed") is True + and payload.get("effective_action") + != AgentScopeFrontierAction.SUCCESSOR_REPLAN_REQUIRED.value + and ( + not isinstance(fallback_selected, Mapping) + or fallback_selected.get("fallback_kind") != "deferred_successor_replan" + ) ) if ( not isinstance(selected, dict) diff --git a/loopx/control_plane/testing/actual_default_model_behavior_portfolio.py b/loopx/control_plane/testing/actual_default_model_behavior_portfolio.py index 5ce7e1feee..201a5608d8 100644 --- a/loopx/control_plane/testing/actual_default_model_behavior_portfolio.py +++ b/loopx/control_plane/testing/actual_default_model_behavior_portfolio.py @@ -1,7 +1,9 @@ from __future__ import annotations +import concurrent.futures import json import re +import threading from collections.abc import Callable, Mapping, Sequence from copy import deepcopy from dataclasses import dataclass @@ -1388,6 +1390,21 @@ def _contrast_result( } +def _aborted_scenario_result(spec: _ScenarioSpec) -> dict[str, Any]: + return { + "scenario_id": spec.scenario_id, + "actor_kind": spec.actor_kind, + "phase": spec.phase, + "expected_route": spec.expected_route, + "status": "not_run", + "repeats_required": ACTUAL_DEFAULT_MODEL_BEHAVIOR_REPEAT_ATTEMPTS, + "repeats_completed": 0, + "observed_routes": [], + "failure_codes": ["portfolio_aborted_after_actor_error"], + "receipt_digests": [], + } + + def run_actual_default_model_behavior_portfolio( scenario_packets: Mapping[str, Mapping[str, Any]], *, @@ -1400,8 +1417,11 @@ def run_actual_default_model_behavior_portfolio( scoped_gate_successor_actor: Callable[[str], Mapping[str, Any]], capability_monitor_repair_actor: Callable[[str], Mapping[str, Any]], terminal_settlement_actor: Callable[[str], Mapping[str, Any]], + max_workers: int = 1, ) -> dict[str, Any]: """Run the fixed low-frequency one-arm portfolio with bounded receipts.""" + if isinstance(max_workers, bool) or not isinstance(max_workers, int) or max_workers < 1: + raise ValueError("max_workers must be a positive integer") expected_ids = {spec.scenario_id for spec in _SCENARIOS} supplied_ids = set(scenario_packets) if supplied_ids != expected_ids: @@ -1429,28 +1449,9 @@ def run_actual_default_model_behavior_portfolio( for spec in _SCENARIOS } _validate_contrast_source_contracts(contracts) - results: list[dict[str, Any]] = [] - observations: dict[str, list[dict[str, Any]]] = {} - actor_call_count = 0 - aborted = False - for spec in _SCENARIOS: - if aborted: - results.append( - { - "scenario_id": spec.scenario_id, - "actor_kind": spec.actor_kind, - "phase": spec.phase, - "expected_route": spec.expected_route, - "status": "not_run", - "repeats_required": ACTUAL_DEFAULT_MODEL_BEHAVIOR_REPEAT_ATTEMPTS, - "repeats_completed": 0, - "observed_routes": [], - "failure_codes": ["portfolio_aborted_after_actor_error"], - "receipt_digests": [], - } - ) - continue - result, actor_error, scenario_observations = _scenario_result( + + def _run_one(spec: _ScenarioSpec) -> tuple[dict[str, Any], bool, list[dict[str, Any]]]: + return _scenario_result( spec, scenario_packets[spec.scenario_id], expected=contracts[spec.scenario_id], @@ -1463,12 +1464,48 @@ def run_actual_default_model_behavior_portfolio( capability_monitor_repair_actor=capability_monitor_repair_actor, terminal_settlement_actor=terminal_settlement_actor, ) - actor_call_count += int(result["repeats_completed"]) - if actor_error: - actor_call_count += 1 - aborted = True - results.append(result) - observations[spec.scenario_id] = scenario_observations + + results: list[dict[str, Any]] = [] + observations: dict[str, list[dict[str, Any]]] = {} + actor_call_count = 0 + if max_workers == 1: + aborted = False + for spec in _SCENARIOS: + if aborted: + results.append(_aborted_scenario_result(spec)) + continue + result, actor_error, scenario_observations = _run_one(spec) + actor_call_count += int(result["repeats_completed"]) + if actor_error: + actor_call_count += 1 + aborted = True + results.append(result) + observations[spec.scenario_id] = scenario_observations + else: + lock = threading.Lock() + aborted = False + + def _worker( + spec: _ScenarioSpec, + ) -> tuple[_ScenarioSpec, dict[str, Any], bool, list[dict[str, Any]]]: + nonlocal aborted + with lock: + if aborted: + return spec, _aborted_scenario_result(spec), False, [] + result, actor_error, scenario_observations = _run_one(spec) + if actor_error: + with lock: + aborted = True + return spec, result, actor_error, scenario_observations + + worker_count = min(max_workers, len(_SCENARIOS)) + with concurrent.futures.ThreadPoolExecutor(max_workers=worker_count) as pool: + completed = list(pool.map(_worker, _SCENARIOS)) + for spec, result, actor_error, scenario_observations in completed: + actor_call_count += int(result["repeats_completed"]) + (1 if actor_error else 0) + results.append(result) + if result["status"] != "not_run": + observations[spec.scenario_id] = scenario_observations contrast_results = [_contrast_result(spec, observations) for spec in _CONTRASTS] passed = all(result["status"] == "passed" for result in results) and all( diff --git a/loopx/control_plane/testing/replan_semantic_action_behavior.py b/loopx/control_plane/testing/replan_semantic_action_behavior.py index 19f771cb77..91bab06095 100644 --- a/loopx/control_plane/testing/replan_semantic_action_behavior.py +++ b/loopx/control_plane/testing/replan_semantic_action_behavior.py @@ -54,6 +54,7 @@ REPLAN_SEMANTIC_ACTION_BEHAVIOR_MAX_CALLS = 7 REPLAN_SEMANTIC_ACTION_NATIVE_READ_MAX_CALLS = 3 _NATIVE_CONTEXT_READ_KINDS = frozenset({"context_read", "replan_context_read"}) +_MAX_HOST_TOOL_ERROR_OUTPUT_CHARS = 8192 class _HostToolError(RuntimeError): @@ -1760,7 +1761,8 @@ def _run_qualification_loop( exit_code=exc.exit_code, error_code=exc.code) _append_tool_response(state, tool_call=tool_call, output=json.dumps({ "error_code": exc.code, "exit_code": exc.exit_code, - "output": exc.output[:4096], "truncated": len(exc.output) > 4096, + "output": exc.output[:_MAX_HOST_TOOL_ERROR_OUTPUT_CHARS], + "truncated": len(exc.output) > _MAX_HOST_TOOL_ERROR_OUTPUT_CHARS, })) continue except (RuntimeError, ValueError, json.JSONDecodeError) as exc: diff --git a/scripts/qualify-doubao-model-behavior-live.py b/scripts/qualify-doubao-model-behavior-live.py index 69341cda66..416b10d8d7 100755 --- a/scripts/qualify-doubao-model-behavior-live.py +++ b/scripts/qualify-doubao-model-behavior-live.py @@ -4,6 +4,7 @@ import argparse import json import sys +import threading from collections.abc import Mapping from hashlib import sha256 from pathlib import Path @@ -56,11 +57,14 @@ def _parser() -> argparse.ArgumentParser: parser.add_argument("--timeout-seconds", type=float, default=90.0) parser.add_argument("--required-vision-timeout-seconds", type=float, default=180.0) parser.add_argument("--repo-root", type=Path, default=Path.cwd()) + parser.add_argument("--max-workers", type=int, default=1) return parser def main() -> int: args = _parser().parse_args() + if args.max_workers < 1: + raise ValueError("--max-workers must be at least 1") source = collect_release_source_identity(args.repo_root) if source["git_dirty"]: raise RuntimeError( @@ -68,14 +72,17 @@ def main() -> int: ) provider_call_count = 0 provider_models: set[str] = set() + transport_lock = threading.Lock() def counted_transport( *, endpoint: str, headers: Mapping[str, str], body: bytes, timeout_seconds: float, ) -> Mapping[str, Any]: nonlocal provider_call_count - provider_call_count += 1 - provider_models.add(json.loads(body)["model"]) + model_id = json.loads(body)["model"] + with transport_lock: + provider_call_count += 1 + provider_models.add(model_id) return _direct_ark_transport( endpoint=endpoint, headers=headers, body=body, timeout_seconds=timeout_seconds, @@ -162,6 +169,7 @@ def qualify_terminal_settlement(run_id: str) -> dict[str, object]: scoped_gate_successor_actor=qualify_scoped_gate_successor, capability_monitor_repair_actor=qualify_capability_monitor_repair, terminal_settlement_actor=qualify_terminal_settlement, + max_workers=args.max_workers, ) result["source"] = source # An actor invocation can make several HTTP calls while using tools. diff --git a/tests/architecture/test_content_digest_single_owner.py b/tests/architecture/test_content_digest_single_owner.py index 24cfd06eaf..a102190a97 100644 --- a/tests/architecture/test_content_digest_single_owner.py +++ b/tests/architecture/test_content_digest_single_owner.py @@ -183,6 +183,7 @@ "loopx.chat.result_files_api", "loopx.chat_action_normalization", "loopx.capabilities.manager_context.chat_history", + "loopx.cli_commands.quota_capture", "loopx.cli_commands.quota_context_reader", "loopx.cli_commands.update_artifact", "loopx.configuration_transaction", @@ -220,7 +221,7 @@ "loopx.control_plane.work_items.progress_review_policy", "loopx.domain_packs.issue_fix", "loopx.extensions.lark.document_comment_provider", - "loopx.extensions.lark.private_conversations", + "loopx.extensions.lark.private_delivery_discovery", "loopx.extensions.openviking_semantic_preference.history_export", "loopx.extensions.presentation", "loopx.hosts.checkpoint_retention", diff --git a/tests/control_plane/test_actual_default_model_behavior_portfolio.py b/tests/control_plane/test_actual_default_model_behavior_portfolio.py index f82a4a839d..5493612a68 100644 --- a/tests/control_plane/test_actual_default_model_behavior_portfolio.py +++ b/tests/control_plane/test_actual_default_model_behavior_portfolio.py @@ -1892,3 +1892,42 @@ def waiting_actor(run_id: str) -> dict[str, Any]: assert scenario["status"] == "failed" assert scenario["repeats_completed"] == 2 assert "source_mismatch:decision" in scenario["failure_codes"] + + +def test_portfolio_max_workers_matches_sequential_receipt( + tmp_path: Path, +) -> None: + sources, packets = _scenario_inputs(tmp_path) + sequential = run_actual_default_model_behavior_portfolio( + packets, + scenario_sources=sources, + qualification_id="actual-default-portfolio-seq", + turn_actor=_turn_actor, + onboarding_actor=_onboarding_actor, + selected_todo_actor=_selected_todo_actor, + replan_semantic_action_actor=_replan_semantic_action_actor, + ) + parallel = run_actual_default_model_behavior_portfolio( + packets, + scenario_sources=sources, + qualification_id="actual-default-portfolio-seq", + turn_actor=_turn_actor, + onboarding_actor=_onboarding_actor, + selected_todo_actor=_selected_todo_actor, + replan_semantic_action_actor=_replan_semantic_action_actor, + max_workers=4, + ) + assert parallel == sequential + + for bad_workers in (0, -1, True): + with pytest.raises(ValueError, match="max_workers"): + run_actual_default_model_behavior_portfolio( + packets, + scenario_sources=sources, + qualification_id="actual-default-portfolio-invalid-workers", + turn_actor=_turn_actor, + onboarding_actor=_onboarding_actor, + selected_todo_actor=_selected_todo_actor, + replan_semantic_action_actor=_replan_semantic_action_actor, + max_workers=bad_workers, + ) diff --git a/tests/control_plane/test_effect_turn_live_quota_decision.py b/tests/control_plane/test_effect_turn_live_quota_decision.py index 23a75384df..bf9967066e 100644 --- a/tests/control_plane/test_effect_turn_live_quota_decision.py +++ b/tests/control_plane/test_effect_turn_live_quota_decision.py @@ -6,7 +6,7 @@ from types import SimpleNamespace import pytest -from canonical_authority_fixture import initialize_canonical_source_fixture +from tests.control_plane.canonical_authority_fixture import initialize_canonical_source_fixture from loopx.control_plane.effect_runtime import effect_runtime_result from loopx.control_plane.quota import live_decision, should_run_packet diff --git a/tests/control_plane/test_quota_execution_preparation.py b/tests/control_plane/test_quota_execution_preparation.py index 8072d2b5da..201f99841c 100644 --- a/tests/control_plane/test_quota_execution_preparation.py +++ b/tests/control_plane/test_quota_execution_preparation.py @@ -1650,3 +1650,68 @@ def test_todo_bound_autonomous_replan_admits_without_prepared_lease_only_on_repl heartbeat_receipt={"status": "autonomous_replan_required", "details": {"delivery_allowed": False}}, ), ) + + +def test_scoped_user_gate_fallback_execution_preparation_excludes_deferred_replan(monkeypatch): + from loopx.control_plane.quota import execution_preparation + + replan_payload = { + "should_run": True, + "normal_delivery_allowed": False, + "effective_action": "successor_replan_required", + "selected_todo": {"todo_id": TODO, "status": "deferred", "resume_ready": True}, + "scoped_user_gate_fallback": { + "selected_executable": {"todo_id": TODO, "fallback_kind": "deferred_successor_replan"} + }, + "execution_obligation": {"must_attempt_work": True, "delivery_allowed": True}, + } + + def unexpected_read(**_): + pytest.fail("deferred_successor_replan fallback must not consult execution-lease preparation") + + monkeypatch.setattr(execution_preparation, "project_selected_todo_execution_preparation", unexpected_read) + apply_selected_todo_execution_preparation( + replan_payload, + runtime_root=None, + goal_id=GOAL, + agent_id=AGENT, + obligation=replan_payload["execution_obligation"], + ) + assert "execution_preparation" not in replan_payload + assert replan_payload["should_run"] is True + assert replan_payload["execution_obligation"]["delivery_allowed"] is True + + monkeypatch.setattr( + execution_preparation, + "project_selected_todo_execution_preparation", + lambda **_: { + "schema_version": "execution_preparation_v0", + "todo_id": TODO, + "agent_id": AGENT, + "handoff_mode": "hard_lease", + "state": "claim_required", + "delivery_allowed": False, + "reason": "Acquire an atomic lease before advancing the open fallback.", + "claim": {"cli_args": ["todo", "claim", "--goal-id", GOAL, "--todo-id", TODO], "command_line": f"loopx todo claim --goal-id {GOAL} --todo-id {TODO} --thin"}, + }, + ) + open_fallback_payload = { + "should_run": True, + "normal_delivery_allowed": False, + "effective_action": "scoped_user_gate_fallback", + "selected_todo": {"todo_id": TODO, "status": "open"}, + "scoped_user_gate_fallback": { + "selected_executable": {"todo_id": TODO} + }, + "execution_obligation": {"must_attempt_work": True, "delivery_allowed": True}, + } + apply_selected_todo_execution_preparation( + open_fallback_payload, + runtime_root=None, + goal_id=GOAL, + agent_id=AGENT, + obligation=open_fallback_payload["execution_obligation"], + ) + assert open_fallback_payload["execution_preparation"]["state"] == "claim_required" + assert open_fallback_payload["should_run"] is True + assert open_fallback_payload["execution_obligation"]["delivery_allowed"] is False diff --git a/tests/control_plane/test_replan_semantic_action_behavior.py b/tests/control_plane/test_replan_semantic_action_behavior.py index 47c3f84462..1ad017333e 100644 --- a/tests/control_plane/test_replan_semantic_action_behavior.py +++ b/tests/control_plane/test_replan_semantic_action_behavior.py @@ -1607,3 +1607,14 @@ def test_prose_intent_without_typed_action_is_rejected(tmp_path: Path) -> None: assert receipt["qualification_passed"] is False assert receipt["failure_code"] == "model_returned_without_semantic_action" assert receipt["tool_call_count"] == 0 + + +@requires_draft_shell +def test_real_tool_loop_preserves_writeback_rejection_recovery_under_deep_path( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, +) -> None: + deep_root = tmp_path / ("deep-" + "x" * 64) + deep_root.mkdir(parents=True) + test_real_tool_loop_selects_composition_gap_and_creates_bound_successor( + deep_root, monkeypatch, "off", + )