From d02b41ee748e5f53c6abd770dcd3c33a758c140b Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Sat, 21 Nov 2026 16:56:34 +0800 Subject: [PATCH 1/3] fix(turn): rebind resumed task leases lazily and reconcile v2.4.0 notes Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- docs/product/releases/v2.4.0.md | 48 +++---- loopx/cli_commands/turn_run_once.py | 78 +++++++---- .../goals/goal_frontier/__init__.py | 33 ++--- .../goals/goal_frontier/semantic_history.py | 63 +++++++++ tests/test_codex_turn_completion.py | 127 ++++++++++++++++++ 5 files changed, 273 insertions(+), 76 deletions(-) diff --git a/docs/product/releases/v2.4.0.md b/docs/product/releases/v2.4.0.md index adc67b804e..be7d18071b 100644 --- a/docs/product/releases/v2.4.0.md +++ b/docs/product/releases/v2.4.0.md @@ -21,8 +21,8 @@ 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 and queue model-coverage tracking power `/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. [#9014](https://github.com/loopx-project/loopx/pull/9014), [#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) +- **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`, scoped GitHub PR signal monitors aggregate per-monitor findings and deliver one readable report directly into bound App or Feishu `chat_root` sessions (`#9182`), exact-head PR review screening and queue model-coverage tracking power `/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. [#9014](https://github.com/loopx-project/loopx/pull/9014), [#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), [#9182](https://github.com/loopx-project/loopx/pull/9182) +- **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 lazily rebound hard-lease fence (`#9183`); 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), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#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), [#9183](https://github.com/loopx-project/loopx/pull/9183) - **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 and Steward active-cascade `resume_failed` states, 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), [#9170](https://github.com/loopx-project/loopx/pull/9170) - **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`), `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) +- Explicit Goal resume and replan successor identity stay recoverable (including `rearmed_after_obligation_id` across successor reconstruction and post-admission same-Agent ACKs, `#9118`), 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), [#9118](https://github.com/loopx-project/loopx/pull/9118), [#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 @@ -59,9 +59,9 @@ loopx authority-archive upgrade --all-known --require-current ## State Kernel & Control Plane -- Recovery retains the original Turn, debit identity, and prepared or same-generation rebound hard-lease fence (`--task-lease-idempotency-key` / `--task-lease-expected-version`, plus `.validation-recovery.` / `.admission-retry` and `monitor_poll` `lease_proof` recovery) while rechecking a fresh selection's gates; settled C1 Turns stay prevented from reacquiring a native Codex lease, `quota_result_delivery` retains `host_poll_receipt` on transport errors without recording premature `capture_sha256` digests, checkpoint-relocated accounting artifact reads (`readQuotaSpendEventFromRun`) resolve safely inside the active `runs` directory, and a validated Todo-less original Turn recovers its own receipt without a second spend. [#8860](https://github.com/loopx-project/loopx/pull/8860), [#8894](https://github.com/loopx-project/loopx/pull/8894), [#8900](https://github.com/loopx-project/loopx/pull/8900), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#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) -- Complete Turn (`loopx_turn_envelope_v1`) and native host callers compose runtime-owned `quota_settlement_plan_v2` (`--settle-turn --settlement-receipt`), keeping `quota_spend` as a runtime step in `ordered_steps` and aligning explicit `--capture-dir` settlement plan reads with progressive `context-read` references (`#9154`, `#9158`, `#9160`), while ordinary unhosted JSON `quota should-run` retains the qualified `quota_packet` public default until RFC §9 qualification; quota polling preserves explicit Monitor Todo selection (`#9099`), verifies gate scope through signed lane references (`#9101`), keeps ready scope controls and long claim overlap scopes accessible (`#9086`, `#9106`), defers backup preimage directory-sync imports inside `registry_codec` for test/adapter isolation (`#9161`), and retires legacy heartbeat work prompt generation in favor of the unified contract. [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9000](https://github.com/loopx-project/loopx/pull/9000), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9054](https://github.com/loopx-project/loopx/pull/9054), [#9057](https://github.com/loopx-project/loopx/pull/9057), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9086](https://github.com/loopx-project/loopx/pull/9086), [#9099](https://github.com/loopx-project/loopx/pull/9099), [#9101](https://github.com/loopx-project/loopx/pull/9101), [#9106](https://github.com/loopx-project/loopx/pull/9106), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#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) -- Ordinary Todo edits preserve compatible stored declarations; when new fields require a newer reader, archive rollback verifies the target runtime's Todo read before switching, honors custom bin and release directory overrides (`#9066`), and leaves current runtime and state untouched if the check fails. [#8902](https://github.com/loopx-project/loopx/pull/8902), [#8906](https://github.com/loopx-project/loopx/pull/8906), [#9066](https://github.com/loopx-project/loopx/pull/9066) +- Recovery retains the original Turn, debit identity, and prepared or lazily rebound hard-lease fence (`--task-lease-idempotency-key` / `--task-lease-expected-version`, plus `.validation-recovery.` / `.admission-retry` and `monitor_poll` `lease_proof` recovery) only while recovery still needs an active lease — preserving committed-Turn replay and retired-lease closeout recovery (`#9183`) — while rechecking a fresh selection's gates; first `generic-cli` Turns declared with the complete v1 adapter and an independent validator auto-prepare missing task leases (`#9047`), settled C1 Turns stay prevented from reacquiring a native Codex lease, `quota_result_delivery` retains `host_poll_receipt` on transport errors without recording premature `capture_sha256` digests, checkpoint-relocated accounting artifact reads (`readQuotaSpendEventFromRun`) resolve safely inside the active `runs` directory, and a validated Todo-less original Turn recovers its own receipt without a second spend. [#8860](https://github.com/loopx-project/loopx/pull/8860), [#8894](https://github.com/loopx-project/loopx/pull/8894), [#8900](https://github.com/loopx-project/loopx/pull/8900), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#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), [#9183](https://github.com/loopx-project/loopx/pull/9183) +- Complete Turn (`loopx_turn_envelope_v1`) and native host callers compose runtime-owned `quota_settlement_plan_v2` (`--settle-turn --settlement-receipt`), keeping `quota_spend` as a runtime step in `ordered_steps`, routing stateless capture read selection through the TypeScript `context_select` owner (`#9142`), and aligning explicit `--capture-dir` settlement plan reads with progressive `context-read` references (`#9154`, `#9158`, `#9160`), while ordinary unhosted JSON `quota should-run` retains the qualified `quota_packet` public default until RFC §9 qualification; quota polling preserves explicit Monitor Todo selection (`#9099`), verifies gate scope through signed lane references (`#9101`), loads large write-scope lists on demand during Todo preparation and keeps claim overlap scopes accessible (`#9078`, `#9086`, `#9106`), preserves `rearmed_after_obligation_id` across Vision successor reconstruction and post-admission same-Agent ACKs (`#9118`), defers backup preimage directory-sync imports inside `registry_codec` for test/adapter isolation (`#9161`), and retires legacy heartbeat work prompt generation in favor of the unified contract. [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9000](https://github.com/loopx-project/loopx/pull/9000), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9054](https://github.com/loopx-project/loopx/pull/9054), [#9057](https://github.com/loopx-project/loopx/pull/9057), [#9078](https://github.com/loopx-project/loopx/pull/9078), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9086](https://github.com/loopx-project/loopx/pull/9086), [#9099](https://github.com/loopx-project/loopx/pull/9099), [#9101](https://github.com/loopx-project/loopx/pull/9101), [#9106](https://github.com/loopx-project/loopx/pull/9106), [#9118](https://github.com/loopx-project/loopx/pull/9118), [#9142](https://github.com/loopx-project/loopx/pull/9142), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#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) +- Ordinary Todo edits preserve compatible stored declarations; when new fields require a newer reader, archive rollback checks the target runtime's Todo read before switching, rolls back both CLI and archive-managed `loopx-apply-rrule` launchers atomically on POSIX (`#9007`), honors custom bin and release directory overrides (`#9066`), and leaves current runtime and state untouched if the check fails. [#8902](https://github.com/loopx-project/loopx/pull/8902), [#8906](https://github.com/loopx-project/loopx/pull/8906), [#9007](https://github.com/loopx-project/loopx/pull/9007), [#9066](https://github.com/loopx-project/loopx/pull/9066) - Goal storage import follows the registered source and serializes its final source check with registry writers without substituting global discovery for that source; an already canonical Goal needs no cold import. [#8864](https://github.com/loopx-project/loopx/pull/8864) - Installed task recovery uses the original execution lease and receipt through the shared task lifecycle, `refresh-state` accepts inline JSON, `spend-slot` accepts `--delivery-workspace-path`, cross-repository binding errors explain missing bindings clearly, and standalone heartbeat settlement uses the installed route. [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8707](https://github.com/loopx-project/loopx/pull/8707), [#8827](https://github.com/loopx-project/loopx/pull/8827), [#8926](https://github.com/loopx-project/loopx/pull/8926), [#8933](https://github.com/loopx-project/loopx/pull/8933) - Peer collaboration reads pending results via `read_peer_returns` and `consume_peer_result` (with `read_token` and `--disposition`) without reopening the Manager Inbox, Goal lifetime guard locks batch per Goal in handoff queries, terminal return scans are cached and blocked follow-ups gated, cross-Goal peer mismatches refuse safely, and single-agent Goal owners can close exact linked user gates. [#8644](https://github.com/loopx-project/loopx/pull/8644), [#8779](https://github.com/loopx-project/loopx/pull/8779), [#8803](https://github.com/loopx-project/loopx/pull/8803), [#8844](https://github.com/loopx-project/loopx/pull/8844), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8853](https://github.com/loopx-project/loopx/pull/8853), [#9027](https://github.com/loopx-project/loopx/pull/9027), [#9085](https://github.com/loopx-project/loopx/pull/9085), [#9088](https://github.com/loopx-project/loopx/pull/9088), [#9117](https://github.com/loopx-project/loopx/pull/9117) @@ -69,11 +69,11 @@ loopx authority-archive upgrade --all-known --require-current ## Capabilities & Workflows -- **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)). +- **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)), long conversation headers wrap cleanly on narrow phone viewports ([#9121](https://github.com/loopx-project/loopx/pull/9121)), 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/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) + - *User outcome:* Owners can declare natural-language `continuous_monitor` Todos over arbitrary portfolio/repository signals, aggregate scoped GitHub PR signal monitors without cross-monitor wakeups and receive one readable report directly in bound App or Feishu `chat_root` sessions (`#9182`), 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`, `#9182`), 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), [#9182](https://github.com/loopx-project/loopx/pull/9182) - **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. @@ -85,7 +85,7 @@ 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`), 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, standalone `test_effect_turn_live_quota_decision` import qualification (`#9168`), and `--settle-turn` vision-closeout receipt / creation-allowance wakeup race hardening (`#9178`). [#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), [#9178](https://github.com/loopx-project/loopx/pull/9178) +- **Canary & release qualification gates:** Strengthened base/head CLI probe and budget-baseline isolation (`#8948`, `#9103`), complete C1 input routing for external-wait host prompt probes (`#8981`), peer-runtime controller-ownership classification in canary checks (`#9092`), runtime snapshot qualification (`#8919`, `#8922`, `#8952`, `#9018`), canary timeout/incomplete diagnostics (`#9001`), Git pathname preservation (`#8426`, `#8429`, `#8558`, `#8585`, `#8645`, `#8678`), unified local-path URL vs `path:` verdicts across presentation and public-output guards (`#9080`), 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, standalone `test_effect_turn_live_quota_decision` import qualification (`#9168`), `--settle-turn` vision-closeout receipt / creation-allowance wakeup race hardening (`#9178`), and lazy resumed task-lease rebinding plus goal-frontier maintainability extraction (`#9183`). [#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), [#8981](https://github.com/loopx-project/loopx/pull/8981), [#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), [#9080](https://github.com/loopx-project/loopx/pull/9080), [#9092](https://github.com/loopx-project/loopx/pull/9092), [#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), [#9178](https://github.com/loopx-project/loopx/pull/9178), [#9183](https://github.com/loopx-project/loopx/pull/9183) ## Benchmarks & Integrations @@ -107,10 +107,10 @@ loopx authority-archive upgrade --all-known --require-current - [@2430468136](https://github.com/2430468136) (first merged contribution) — Unified report, semantics, and actor-result testing field ownership. [#8629](https://github.com/loopx-project/loopx/pull/8629), [#8832](https://github.com/loopx-project/loopx/pull/8832), [#8833](https://github.com/loopx-project/loopx/pull/8833) - [@BigDataDZ](https://github.com/BigDataDZ) — Handled Windows clock skew in source leases and stabilized lease inventory ordering. [#8761](https://github.com/loopx-project/loopx/pull/8761), [#8762](https://github.com/loopx-project/loopx/pull/8762) - [@cf3901646](https://github.com/cf3901646) (first merged contribution) — Exposed the underlying SQLite error in authority-store status diagnostics. [#8459](https://github.com/loopx-project/loopx/pull/8459) -- [@cocolord](https://github.com/cocolord) — Retired legacy Goal pause metadata with backed-up upgrades, delivered one-confirmation Goal creation, qualified standalone Core packaging and installed Manager discovery, retired experimental compaction memory, deferred Yardstick/benchmark discovery, and refined replan/research/acceptance paths. [#8372](https://github.com/loopx-project/loopx/pull/8372), [#8374](https://github.com/loopx-project/loopx/pull/8374), [#8431](https://github.com/loopx-project/loopx/pull/8431), [#8433](https://github.com/loopx-project/loopx/pull/8433), [#8443](https://github.com/loopx-project/loopx/pull/8443), [#8456](https://github.com/loopx-project/loopx/pull/8456), [#8466](https://github.com/loopx-project/loopx/pull/8466), [#8474](https://github.com/loopx-project/loopx/pull/8474), [#8478](https://github.com/loopx-project/loopx/pull/8478), [#8481](https://github.com/loopx-project/loopx/pull/8481), [#8531](https://github.com/loopx-project/loopx/pull/8531), [#8544](https://github.com/loopx-project/loopx/pull/8544), [#8545](https://github.com/loopx-project/loopx/pull/8545), [#8565](https://github.com/loopx-project/loopx/pull/8565), [#8578](https://github.com/loopx-project/loopx/pull/8578), [#8582](https://github.com/loopx-project/loopx/pull/8582), [#8590](https://github.com/loopx-project/loopx/pull/8590), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8624](https://github.com/loopx-project/loopx/pull/8624), [#8652](https://github.com/loopx-project/loopx/pull/8652), [#8658](https://github.com/loopx-project/loopx/pull/8658), [#8661](https://github.com/loopx-project/loopx/pull/8661), [#8665](https://github.com/loopx-project/loopx/pull/8665), [#8669](https://github.com/loopx-project/loopx/pull/8669), [#8671](https://github.com/loopx-project/loopx/pull/8671), [#8673](https://github.com/loopx-project/loopx/pull/8673), [#8686](https://github.com/loopx-project/loopx/pull/8686), [#8687](https://github.com/loopx-project/loopx/pull/8687), [#8691](https://github.com/loopx-project/loopx/pull/8691), [#8699](https://github.com/loopx-project/loopx/pull/8699), [#8736](https://github.com/loopx-project/loopx/pull/8736), [#8738](https://github.com/loopx-project/loopx/pull/8738), [#8740](https://github.com/loopx-project/loopx/pull/8740), [#8743](https://github.com/loopx-project/loopx/pull/8743), [#8744](https://github.com/loopx-project/loopx/pull/8744), [#8746](https://github.com/loopx-project/loopx/pull/8746), [#8747](https://github.com/loopx-project/loopx/pull/8747), [#8749](https://github.com/loopx-project/loopx/pull/8749), [#8764](https://github.com/loopx-project/loopx/pull/8764), [#8769](https://github.com/loopx-project/loopx/pull/8769), [#8774](https://github.com/loopx-project/loopx/pull/8774), [#8777](https://github.com/loopx-project/loopx/pull/8777), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8788](https://github.com/loopx-project/loopx/pull/8788), [#8790](https://github.com/loopx-project/loopx/pull/8790), [#8792](https://github.com/loopx-project/loopx/pull/8792), [#8793](https://github.com/loopx-project/loopx/pull/8793), [#8795](https://github.com/loopx-project/loopx/pull/8795), [#8798](https://github.com/loopx-project/loopx/pull/8798), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8805](https://github.com/loopx-project/loopx/pull/8805), [#8807](https://github.com/loopx-project/loopx/pull/8807), [#8813](https://github.com/loopx-project/loopx/pull/8813), [#8818](https://github.com/loopx-project/loopx/pull/8818), [#8820](https://github.com/loopx-project/loopx/pull/8820), [#8821](https://github.com/loopx-project/loopx/pull/8821), [#8822](https://github.com/loopx-project/loopx/pull/8822), [#8824](https://github.com/loopx-project/loopx/pull/8824), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8840](https://github.com/loopx-project/loopx/pull/8840), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8872](https://github.com/loopx-project/loopx/pull/8872), [#8915](https://github.com/loopx-project/loopx/pull/8915), [#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), [#9072](https://github.com/loopx-project/loopx/pull/9072), [#9073](https://github.com/loopx-project/loopx/pull/9073) +- [@cocolord](https://github.com/cocolord) — Retired legacy Goal pause metadata with backed-up upgrades, delivered one-confirmation Goal creation, prepared missing leases on first declared `generic-cli` Turns and routed stateless capture selection through the TypeScript owner, qualified standalone Core packaging and installed Manager discovery, retired experimental compaction memory, deferred Yardstick/benchmark discovery, and refined replan/research/acceptance paths. [#8372](https://github.com/loopx-project/loopx/pull/8372), [#8374](https://github.com/loopx-project/loopx/pull/8374), [#8431](https://github.com/loopx-project/loopx/pull/8431), [#8433](https://github.com/loopx-project/loopx/pull/8433), [#8443](https://github.com/loopx-project/loopx/pull/8443), [#8456](https://github.com/loopx-project/loopx/pull/8456), [#8466](https://github.com/loopx-project/loopx/pull/8466), [#8474](https://github.com/loopx-project/loopx/pull/8474), [#8478](https://github.com/loopx-project/loopx/pull/8478), [#8481](https://github.com/loopx-project/loopx/pull/8481), [#8531](https://github.com/loopx-project/loopx/pull/8531), [#8544](https://github.com/loopx-project/loopx/pull/8544), [#8545](https://github.com/loopx-project/loopx/pull/8545), [#8565](https://github.com/loopx-project/loopx/pull/8565), [#8578](https://github.com/loopx-project/loopx/pull/8578), [#8582](https://github.com/loopx-project/loopx/pull/8582), [#8590](https://github.com/loopx-project/loopx/pull/8590), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8624](https://github.com/loopx-project/loopx/pull/8624), [#8652](https://github.com/loopx-project/loopx/pull/8652), [#8658](https://github.com/loopx-project/loopx/pull/8658), [#8661](https://github.com/loopx-project/loopx/pull/8661), [#8665](https://github.com/loopx-project/loopx/pull/8665), [#8669](https://github.com/loopx-project/loopx/pull/8669), [#8671](https://github.com/loopx-project/loopx/pull/8671), [#8673](https://github.com/loopx-project/loopx/pull/8673), [#8686](https://github.com/loopx-project/loopx/pull/8686), [#8687](https://github.com/loopx-project/loopx/pull/8687), [#8691](https://github.com/loopx-project/loopx/pull/8691), [#8699](https://github.com/loopx-project/loopx/pull/8699), [#8736](https://github.com/loopx-project/loopx/pull/8736), [#8738](https://github.com/loopx-project/loopx/pull/8738), [#8740](https://github.com/loopx-project/loopx/pull/8740), [#8743](https://github.com/loopx-project/loopx/pull/8743), [#8744](https://github.com/loopx-project/loopx/pull/8744), [#8746](https://github.com/loopx-project/loopx/pull/8746), [#8747](https://github.com/loopx-project/loopx/pull/8747), [#8749](https://github.com/loopx-project/loopx/pull/8749), [#8764](https://github.com/loopx-project/loopx/pull/8764), [#8769](https://github.com/loopx-project/loopx/pull/8769), [#8774](https://github.com/loopx-project/loopx/pull/8774), [#8777](https://github.com/loopx-project/loopx/pull/8777), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8788](https://github.com/loopx-project/loopx/pull/8788), [#8790](https://github.com/loopx-project/loopx/pull/8790), [#8792](https://github.com/loopx-project/loopx/pull/8792), [#8793](https://github.com/loopx-project/loopx/pull/8793), [#8795](https://github.com/loopx-project/loopx/pull/8795), [#8798](https://github.com/loopx-project/loopx/pull/8798), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8805](https://github.com/loopx-project/loopx/pull/8805), [#8807](https://github.com/loopx-project/loopx/pull/8807), [#8813](https://github.com/loopx-project/loopx/pull/8813), [#8818](https://github.com/loopx-project/loopx/pull/8818), [#8820](https://github.com/loopx-project/loopx/pull/8820), [#8821](https://github.com/loopx-project/loopx/pull/8821), [#8822](https://github.com/loopx-project/loopx/pull/8822), [#8824](https://github.com/loopx-project/loopx/pull/8824), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8840](https://github.com/loopx-project/loopx/pull/8840), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8872](https://github.com/loopx-project/loopx/pull/8872), [#8915](https://github.com/loopx-project/loopx/pull/8915), [#8928](https://github.com/loopx-project/loopx/pull/8928), [#9034](https://github.com/loopx-project/loopx/pull/9034), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#9059](https://github.com/loopx-project/loopx/pull/9059), [#9060](https://github.com/loopx-project/loopx/pull/9060), [#9072](https://github.com/loopx-project/loopx/pull/9072), [#9073](https://github.com/loopx-project/loopx/pull/9073), [#9142](https://github.com/loopx-project/loopx/pull/9142) - [@Duang777](https://github.com/Duang777) — Rejected invalid quota clocks and calendar timestamps, preserved same-second recovery, handled torn multibyte history rows, fenced historical ACK admission and writeback by GoalRef, hardened ingress/migration/glob/botmux checks, and reset Lark noop recovery backoff when Turn or session inputs change. [#8371](https://github.com/loopx-project/loopx/pull/8371), [#8632](https://github.com/loopx-project/loopx/pull/8632), [#8679](https://github.com/loopx-project/loopx/pull/8679), [#8680](https://github.com/loopx-project/loopx/pull/8680), [#8681](https://github.com/loopx-project/loopx/pull/8681), [#8682](https://github.com/loopx-project/loopx/pull/8682), [#8683](https://github.com/loopx-project/loopx/pull/8683), [#8684](https://github.com/loopx-project/loopx/pull/8684), [#8731](https://github.com/loopx-project/loopx/pull/8731), [#8804](https://github.com/loopx-project/loopx/pull/8804), [#8907](https://github.com/loopx-project/loopx/pull/8907), [#8975](https://github.com/loopx-project/loopx/pull/8975), [#9119](https://github.com/loopx-project/loopx/pull/9119) - [@eltociear](https://github.com/eltociear) (first merged contribution) — Added the Japanese README and linked it from the existing public entrypoints. [#8839](https://github.com/loopx-project/loopx/pull/8839) -- [@gcl-coder](https://github.com/gcl-coder) — Preserved exact Git paths across Issue Fix, canary, Integration Branch, and Change Quality, and fenced Python follow-ups on superseded heartbeat receipts. [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8429](https://github.com/loopx-project/loopx/pull/8429), [#8558](https://github.com/loopx-project/loopx/pull/8558), [#8585](https://github.com/loopx-project/loopx/pull/8585), [#8603](https://github.com/loopx-project/loopx/pull/8603), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8678](https://github.com/loopx-project/loopx/pull/8678) +- [@gcl-coder](https://github.com/gcl-coder) — Preserved exact Git paths across Issue Fix, canary, Integration Branch, and Change Quality, unified local-path verdicts across presentation and public-output guards, and fenced Python follow-ups on superseded heartbeat receipts. [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8429](https://github.com/loopx-project/loopx/pull/8429), [#8558](https://github.com/loopx-project/loopx/pull/8558), [#8585](https://github.com/loopx-project/loopx/pull/8585), [#8603](https://github.com/loopx-project/loopx/pull/8603), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8678](https://github.com/loopx-project/loopx/pull/8678), [#9080](https://github.com/loopx-project/loopx/pull/9080) - [@GZY-SUPER-HACKER](https://github.com/GZY-SUPER-HACKER) — Decoded Codex App CLI output as UTF-8. [#8485](https://github.com/loopx-project/loopx/pull/8485) - [@hhyykk](https://github.com/hhyykk) — Avoided repeated Explore timeline route scans, repaired CLI/host/Lark/packaging contracts, hardened runtime cleanup, and fixed bootstrap guidance and audit findings. [#8733](https://github.com/loopx-project/loopx/pull/8733), [#8737](https://github.com/loopx-project/loopx/pull/8737), [#8985](https://github.com/loopx-project/loopx/pull/8985), [#9113](https://github.com/loopx-project/loopx/pull/9113) - [@Jim-jimu](https://github.com/Jim-jimu) — Preserved Mermaid node identity and introduced authenticated remote task commands. [#8370](https://github.com/loopx-project/loopx/pull/8370), [#8508](https://github.com/loopx-project/loopx/pull/8508) @@ -410,8 +410,8 @@ 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 审查筛选与队列模型覆盖追踪(`#9014`)及 `/confirm` `pr.merge` 合并预览、跨端点派发前失败与报告/队列恢复(含已停止或已保存报告候选恢复及轻微 JSON 分隔符容错)、以及默认关闭的独立 OpenViking 管家长期记忆(仅限本人私聊)。 [#9014](https://github.com/loopx-project/loopx/pull/9014), [#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) +- **管家通用监控、精确 Head PR 审查信号与受保护合并确认。** 原生管家支持基于探针门控的自然语言 `continuous_monitor`(含 `context_handoff` 与受控 `steward_user_actions`),支持作用域隔离的 GitHub PR 信号监控内部聚合并在触发后向绑定 App 或飞书 `chat_root` 会话投递单篇可读汇报(`#9182`),支持精确 Head PR 审查筛选与队列模型覆盖追踪(`#9014`)及 `/confirm` `pr.merge` 合并预览、跨端点派发前失败与报告/队列恢复(含已停止或已保存报告候选恢复及轻微 JSON 分隔符容错)、以及默认关闭的独立 OpenViking 管家长期记忆(仅限本人私聊)。 [#9014](https://github.com/loopx-project/loopx/pull/9014), [#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), [#9182](https://github.com/loopx-project/loopx/pull/9182) +- **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), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#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), [#9183](https://github.com/loopx-project/loopx/pull/9183) - **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 故障与管家主动级联 `resume_failed` 恢复(`#9170`),并在切换模型时保留 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), [#9170](https://github.com/loopx-project/loopx/pull/9170) - **多 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`),`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) +- 显式 Goal 恢复与重规划后继身份保持可恢复(含在后继重建与准入后同 Agent ACK 中保留 `rearmed_after_obligation_id`,`#9118`),温增量与已保存 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), [#9118](https://github.com/loopx-project/loopx/pull/9118), [#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) ### 升级决策 @@ -436,17 +436,17 @@ loopx doctor ### 状态内核与控制面 -- 恢复原 Turn、扣额身份和已准备或同代重绑定的硬租约护栏(`--task-lease-idempotency-key` / `--task-lease-expected-version`,含 `.validation-recovery.` / `.admission-retry` 与 `monitor_poll` `lease_proof`)时继续核对新选择的门禁;已结算的 C1 Turn 禁止再次获取原生 Codex 租约,`quota_result_delivery` 在传输失败时保留 `host_poll_receipt` 诊断而不提前写入 `capture_sha256`,检查点重定位的账务制品读取(`readQuotaSpendEventFromRun`)安全约束在当前 `runs` 目录内,已验证的无 Todo 原 Turn 可读取自身回执避免重复扣额。 [#8860](https://github.com/loopx-project/loopx/pull/8860), [#8894](https://github.com/loopx-project/loopx/pull/8894), [#8900](https://github.com/loopx-project/loopx/pull/8900), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#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) -- Complete Turn(`loopx_turn_envelope_v1`)与原生宿主调用方组合运行时拥有的 `quota_settlement_plan_v2`(`--settle-turn --settlement-receipt`),将 `quota_spend` 保留为 `ordered_steps` 中的 `runtime` 步骤并对齐显式 `--capture-dir` 与分段 `context-read` 读回(`#9154`、`#9158`、`#9160`);配额轮询保留显式 Monitor Todo 选择(`#9099`)、通过签名车道引用校验门禁作用域(`#9101`)、在 `registry_codec` 中延后备份预映像的目录同步导入以保持适配层测试隔离(`#9161`)并按需保留就绪作用域控件与长认领重叠范围(`#9086`、`#9106`);普通未托管 JSON `quota should-run` 在 RFC §9 验收前保留 `quota_packet` 公开默认,并退役旧版心跳工作提示生成。 [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9000](https://github.com/loopx-project/loopx/pull/9000), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9054](https://github.com/loopx-project/loopx/pull/9054), [#9057](https://github.com/loopx-project/loopx/pull/9057), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9086](https://github.com/loopx-project/loopx/pull/9086), [#9099](https://github.com/loopx-project/loopx/pull/9099), [#9101](https://github.com/loopx-project/loopx/pull/9101), [#9106](https://github.com/loopx-project/loopx/pull/9106), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#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) -- 普通 Todo 修改保留兼容声明;新字段需要新版读取器时,归档回退先校验目标版本能否读取 Todo、沿用自定义安装与发行目录(`#9066`),失败则保留当前运行时与数据。 [#8902](https://github.com/loopx-project/loopx/pull/8902), [#8906](https://github.com/loopx-project/loopx/pull/8906), [#9066](https://github.com/loopx-project/loopx/pull/9066) +- 恢复原 Turn、扣额身份和已准备或惰性重绑定的硬租约护栏(`--task-lease-idempotency-key` / `--task-lease-expected-version`,含 `.validation-recovery.` / `.admission-retry` 与 `monitor_poll` `lease_proof`)时仅在仍需有效租约时按需重绑定、保持已提交 Turn 重放与已退役租约结案恢复不被破坏(`#9183`),并继续核对新选择的门禁;已声明完整 v1 适配层与独立验证器的首次 `generic-cli` Turn 自动准备缺失租约(`#9047`),已结算的 C1 Turn 禁止再次获取原生 Codex 租约,`quota_result_delivery` 在传输失败时保留 `host_poll_receipt` 诊断而不提前写入 `capture_sha256`,检查点重定位的账务制品读取(`readQuotaSpendEventFromRun`)安全约束在当前 `runs` 目录内,已验证的无 Todo 原 Turn 可读取自身回执避免重复扣额。 [#8860](https://github.com/loopx-project/loopx/pull/8860), [#8894](https://github.com/loopx-project/loopx/pull/8894), [#8900](https://github.com/loopx-project/loopx/pull/8900), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#9097](https://github.com/loopx-project/loopx/pull/9097), [#9111](https://github.com/loopx-project/loopx/pull/9111), [#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), [#9183](https://github.com/loopx-project/loopx/pull/9183) +- Complete Turn(`loopx_turn_envelope_v1`)与原生宿主调用方组合运行时拥有的 `quota_settlement_plan_v2`(`--settle-turn --settlement-receipt`),将 `quota_spend` 保留为 `ordered_steps` 中的 `runtime` 步骤、将无状态捕获读取选择交回 TypeScript `context_select` owner(`#9142`)并对齐显式 `--capture-dir` 与分段 `context-read` 读回(`#9154`、`#9158`、`#9160`);配额轮询保留显式 Monitor Todo 选择(`#9099`)、通过签名车道引用校验门禁作用域(`#9101`)、在 `registry_codec` 中延后备份预映像的目录同步导入以保持适配层测试隔离(`#9161`)、按需延迟加载大体积写入作用域并在重叠长认领下保留就绪控件(`#9078`、`#9086`、`#9106`)、在 Vision 后继重建与准入后同 Agent ACK 中保留 `rearmed_after_obligation_id`(`#9118`);普通未托管 JSON `quota should-run` 在 RFC §9 验收前保留 `quota_packet` 公开默认,并退役旧版心跳工作提示生成。 [#8489](https://github.com/loopx-project/loopx/pull/8489), [#8956](https://github.com/loopx-project/loopx/pull/8956), [#9000](https://github.com/loopx-project/loopx/pull/9000), [#9030](https://github.com/loopx-project/loopx/pull/9030), [#9054](https://github.com/loopx-project/loopx/pull/9054), [#9057](https://github.com/loopx-project/loopx/pull/9057), [#9078](https://github.com/loopx-project/loopx/pull/9078), [#9084](https://github.com/loopx-project/loopx/pull/9084), [#9086](https://github.com/loopx-project/loopx/pull/9086), [#9099](https://github.com/loopx-project/loopx/pull/9099), [#9101](https://github.com/loopx-project/loopx/pull/9101), [#9106](https://github.com/loopx-project/loopx/pull/9106), [#9118](https://github.com/loopx-project/loopx/pull/9118), [#9142](https://github.com/loopx-project/loopx/pull/9142), [#9154](https://github.com/loopx-project/loopx/pull/9154), [#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) +- 普通 Todo 修改保留兼容声明;新字段需要新版读取器时,归档回退先校验目标版本能否读取 Todo、在 POSIX 上原子回退 CLI 与归档托管 `loopx-apply-rrule` 两个启动器(`#9007`)、沿用自定义安装与发行目录(`#9066`),失败则保留当前运行时与数据。 [#8902](https://github.com/loopx-project/loopx/pull/8902), [#8906](https://github.com/loopx-project/loopx/pull/8906), [#9007](https://github.com/loopx-project/loopx/pull/9007), [#9066](https://github.com/loopx-project/loopx/pull/9066) - 存储导入沿已注册源执行并与 registry 写方串行核对,已采用 canonical authority 的 Goal 无需冷导入;安装环境恢复沿用原租约和回执,`refresh-state` 支持内联 JSON,`spend-slot` 新增 `--delivery-workspace-path`,跨仓库绑定错误说明更清晰。 [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8707](https://github.com/loopx-project/loopx/pull/8707), [#8827](https://github.com/loopx-project/loopx/pull/8827), [#8864](https://github.com/loopx-project/loopx/pull/8864), [#8926](https://github.com/loopx-project/loopx/pull/8926), [#8933](https://github.com/loopx-project/loopx/pull/8933) - 多 Agent 协作支持通过 `read_peer_returns` 与 `consume_peer_result` 直接读回对等体结果而无需重开 Manager Inbox,交接查询按 Goal 批量加锁并缓存历史与终态扫描,阻断跨 Goal 误投递并允许单 Agent Goal 由 owner 关闭精确关联门禁。 [#8644](https://github.com/loopx-project/loopx/pull/8644), [#8779](https://github.com/loopx-project/loopx/pull/8779), [#8803](https://github.com/loopx-project/loopx/pull/8803), [#8844](https://github.com/loopx-project/loopx/pull/8844), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8853](https://github.com/loopx-project/loopx/pull/8853), [#9027](https://github.com/loopx-project/loopx/pull/9027), [#9085](https://github.com/loopx-project/loopx/pull/9085), [#9088](https://github.com/loopx-project/loopx/pull/9088), [#9117](https://github.com/loopx-project/loopx/pull/9117) - PostgreSQL 支持超过 20,000 条提交历史的 checkpoint 备份和恢复;远程任务网关支持完整生命周期、按活跃 Goal 授权的只读 ACL 及 PostgreSQL/TLS Compose 自托管部署包。 [#8508](https://github.com/loopx-project/loopx/pull/8508), [#8759](https://github.com/loopx-project/loopx/pull/8759), [#8765](https://github.com/loopx-project/loopx/pull/8765), [#8861](https://github.com/loopx-project/loopx/pull/8861), [#8887](https://github.com/loopx-project/loopx/pull/8887) ### 能力与工作流 -- **个人工作台与研究连续性:** 打包工作台交付一次确认创建 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 升级的周报选择与冻结/已停止报告候选恢复(含 `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) +- **个人工作台与研究连续性:** 打包工作台交付一次确认创建 Goal、已载入消息搜索、手机端窄屏会话标题自然换行(`#9121`)、审阅材料键盘焦点恢复、截断记录披露及 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), [#9121](https://github.com/loopx-project/loopx/pull/9121), [#9125](https://github.com/loopx-project/loopx/pull/9125) +- **管家通用监控、精确 Head PR 审查与受保护合并:** 用户成果为在私聊管家统一承接自然语言 `continuous_monitor`、作用域隔离 GitHub PR 信号监控聚合与 App/飞书 `chat_root` 单篇直达汇报(`#9182`)、精确 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), [#9182](https://github.com/loopx-project/loopx/pull/9182) - **独立 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) @@ -455,7 +455,7 @@ 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`),同时支持 `--max-workers` 并发真实模型行为评估、深路径重规划上下文恢复的 `8 KiB` 宿主工具错误输出上限、对齐摘要消费者清单、多 Goal 引导 smoke 契约与 `test_effect_turn_live_quota_decision` 独立导入(`#9168`),并修复 `--settle-turn` 视觉结案回执读取及 `creation_allowance` 测试唤醒竞态(`#9178`)。 [#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), [#9178](https://github.com/loopx-project/loopx/pull/9178) +- 加固 base/head CLI 差分与预算基线隔离(`#8948`、`#9103`)、外部等待宿主提示词探针走完整 C1 输入(`#8981`)、canary 对等运行时检查正确识别 controller 归属(`#9092`)、统一展示与公开输出边界对本地路径 URL 与 `path:` 的判定(`#9080`)、runtime snapshot 默认契约校验、canary 超时诊断与 Git 原始路径保留,并沉淀本地优先验证规范与公开 smoke 门禁修复(`#9152`),同时支持 `--max-workers` 并发真实模型行为评估、深路径重规划上下文恢复的 `8 KiB` 宿主工具错误输出上限、对齐摘要消费者清单、多 Goal 引导 smoke 契约与 `test_effect_turn_live_quota_decision` 独立导入(`#9168`)、修复 `--settle-turn` 视觉结案回执读取及 `creation_allowance` 测试唤醒竞态(`#9178`),并实现按需惰性重绑定恢复租约以保全已提交 Turn 重放与已退役租约结案恢复、收敛 goal-frontier 投影可维护性圈复杂度(`#9183`)。 [#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), [#8981](https://github.com/loopx-project/loopx/pull/8981), [#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), [#9080](https://github.com/loopx-project/loopx/pull/9080), [#9092](https://github.com/loopx-project/loopx/pull/9092), [#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), [#9178](https://github.com/loopx-project/loopx/pull/9178), [#9183](https://github.com/loopx-project/loopx/pull/9183) ### 基准与集成 @@ -477,10 +477,10 @@ loopx doctor - [@2430468136](https://github.com/2430468136)(首次获合并) — 统一报告 schema、可见范围与测试字段的 owner。 [#8629](https://github.com/loopx-project/loopx/pull/8629), [#8832](https://github.com/loopx-project/loopx/pull/8832), [#8833](https://github.com/loopx-project/loopx/pull/8833) - [@BigDataDZ](https://github.com/BigDataDZ) — 处理 Windows 来源租约时钟偏差,固定租约清单排序。 [#8761](https://github.com/loopx-project/loopx/pull/8761), [#8762](https://github.com/loopx-project/loopx/pull/8762) - [@cf3901646](https://github.com/cf3901646)(首次获合并) — 在 authority store 状态诊断中呈现底层 SQLite 错误。 [#8459](https://github.com/loopx-project/loopx/pull/8459) -- [@cocolord](https://github.com/cocolord) — 迁移旧 Goal 暂停元数据、交付一次确认创建 Goal、完成独立 Core 打包与安装环境 Manager 发现、退役压缩工作记忆实验、延迟 Yardstick 与基准发现,并完善重规划/研究/验收路径。 [#8372](https://github.com/loopx-project/loopx/pull/8372), [#8374](https://github.com/loopx-project/loopx/pull/8374), [#8431](https://github.com/loopx-project/loopx/pull/8431), [#8433](https://github.com/loopx-project/loopx/pull/8433), [#8443](https://github.com/loopx-project/loopx/pull/8443), [#8456](https://github.com/loopx-project/loopx/pull/8456), [#8466](https://github.com/loopx-project/loopx/pull/8466), [#8474](https://github.com/loopx-project/loopx/pull/8474), [#8478](https://github.com/loopx-project/loopx/pull/8478), [#8481](https://github.com/loopx-project/loopx/pull/8481), [#8531](https://github.com/loopx-project/loopx/pull/8531), [#8544](https://github.com/loopx-project/loopx/pull/8544), [#8545](https://github.com/loopx-project/loopx/pull/8545), [#8565](https://github.com/loopx-project/loopx/pull/8565), [#8578](https://github.com/loopx-project/loopx/pull/8578), [#8582](https://github.com/loopx-project/loopx/pull/8582), [#8590](https://github.com/loopx-project/loopx/pull/8590), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8624](https://github.com/loopx-project/loopx/pull/8624), [#8652](https://github.com/loopx-project/loopx/pull/8652), [#8658](https://github.com/loopx-project/loopx/pull/8658), [#8661](https://github.com/loopx-project/loopx/pull/8661), [#8665](https://github.com/loopx-project/loopx/pull/8665), [#8669](https://github.com/loopx-project/loopx/pull/8669), [#8671](https://github.com/loopx-project/loopx/pull/8671), [#8673](https://github.com/loopx-project/loopx/pull/8673), [#8686](https://github.com/loopx-project/loopx/pull/8686), [#8687](https://github.com/loopx-project/loopx/pull/8687), [#8691](https://github.com/loopx-project/loopx/pull/8691), [#8699](https://github.com/loopx-project/loopx/pull/8699), [#8736](https://github.com/loopx-project/loopx/pull/8736), [#8738](https://github.com/loopx-project/loopx/pull/8738), [#8740](https://github.com/loopx-project/loopx/pull/8740), [#8743](https://github.com/loopx-project/loopx/pull/8743), [#8744](https://github.com/loopx-project/loopx/pull/8744), [#8746](https://github.com/loopx-project/loopx/pull/8746), [#8747](https://github.com/loopx-project/loopx/pull/8747), [#8749](https://github.com/loopx-project/loopx/pull/8749), [#8764](https://github.com/loopx-project/loopx/pull/8764), [#8769](https://github.com/loopx-project/loopx/pull/8769), [#8774](https://github.com/loopx-project/loopx/pull/8774), [#8777](https://github.com/loopx-project/loopx/pull/8777), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8788](https://github.com/loopx-project/loopx/pull/8788), [#8790](https://github.com/loopx-project/loopx/pull/8790), [#8792](https://github.com/loopx-project/loopx/pull/8792), [#8793](https://github.com/loopx-project/loopx/pull/8793), [#8795](https://github.com/loopx-project/loopx/pull/8795), [#8798](https://github.com/loopx-project/loopx/pull/8798), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8805](https://github.com/loopx-project/loopx/pull/8805), [#8807](https://github.com/loopx-project/loopx/pull/8807), [#8813](https://github.com/loopx-project/loopx/pull/8813), [#8818](https://github.com/loopx-project/loopx/pull/8818), [#8820](https://github.com/loopx-project/loopx/pull/8820), [#8821](https://github.com/loopx-project/loopx/pull/8821), [#8822](https://github.com/loopx-project/loopx/pull/8822), [#8824](https://github.com/loopx-project/loopx/pull/8824), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8840](https://github.com/loopx-project/loopx/pull/8840), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8872](https://github.com/loopx-project/loopx/pull/8872), [#8915](https://github.com/loopx-project/loopx/pull/8915), [#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), [#9072](https://github.com/loopx-project/loopx/pull/9072), [#9073](https://github.com/loopx-project/loopx/pull/9073) +- [@cocolord](https://github.com/cocolord) — 迁移旧 Goal 暂停元数据、交付一次确认创建 Goal、支持声明完整 v1 的首次 `generic-cli` Turn 自动准备缺失租约并将无状态捕获选择委托给 TypeScript owner、完成独立 Core 打包与安装环境 Manager 发现、退役压缩工作记忆实验、延迟 Yardstick 与基准发现,并完善重规划/研究/验收路径。 [#8372](https://github.com/loopx-project/loopx/pull/8372), [#8374](https://github.com/loopx-project/loopx/pull/8374), [#8431](https://github.com/loopx-project/loopx/pull/8431), [#8433](https://github.com/loopx-project/loopx/pull/8433), [#8443](https://github.com/loopx-project/loopx/pull/8443), [#8456](https://github.com/loopx-project/loopx/pull/8456), [#8466](https://github.com/loopx-project/loopx/pull/8466), [#8474](https://github.com/loopx-project/loopx/pull/8474), [#8478](https://github.com/loopx-project/loopx/pull/8478), [#8481](https://github.com/loopx-project/loopx/pull/8481), [#8531](https://github.com/loopx-project/loopx/pull/8531), [#8544](https://github.com/loopx-project/loopx/pull/8544), [#8545](https://github.com/loopx-project/loopx/pull/8545), [#8565](https://github.com/loopx-project/loopx/pull/8565), [#8578](https://github.com/loopx-project/loopx/pull/8578), [#8582](https://github.com/loopx-project/loopx/pull/8582), [#8590](https://github.com/loopx-project/loopx/pull/8590), [#8615](https://github.com/loopx-project/loopx/pull/8615), [#8624](https://github.com/loopx-project/loopx/pull/8624), [#8652](https://github.com/loopx-project/loopx/pull/8652), [#8658](https://github.com/loopx-project/loopx/pull/8658), [#8661](https://github.com/loopx-project/loopx/pull/8661), [#8665](https://github.com/loopx-project/loopx/pull/8665), [#8669](https://github.com/loopx-project/loopx/pull/8669), [#8671](https://github.com/loopx-project/loopx/pull/8671), [#8673](https://github.com/loopx-project/loopx/pull/8673), [#8686](https://github.com/loopx-project/loopx/pull/8686), [#8687](https://github.com/loopx-project/loopx/pull/8687), [#8691](https://github.com/loopx-project/loopx/pull/8691), [#8699](https://github.com/loopx-project/loopx/pull/8699), [#8736](https://github.com/loopx-project/loopx/pull/8736), [#8738](https://github.com/loopx-project/loopx/pull/8738), [#8740](https://github.com/loopx-project/loopx/pull/8740), [#8743](https://github.com/loopx-project/loopx/pull/8743), [#8744](https://github.com/loopx-project/loopx/pull/8744), [#8746](https://github.com/loopx-project/loopx/pull/8746), [#8747](https://github.com/loopx-project/loopx/pull/8747), [#8749](https://github.com/loopx-project/loopx/pull/8749), [#8764](https://github.com/loopx-project/loopx/pull/8764), [#8769](https://github.com/loopx-project/loopx/pull/8769), [#8774](https://github.com/loopx-project/loopx/pull/8774), [#8777](https://github.com/loopx-project/loopx/pull/8777), [#8780](https://github.com/loopx-project/loopx/pull/8780), [#8788](https://github.com/loopx-project/loopx/pull/8788), [#8790](https://github.com/loopx-project/loopx/pull/8790), [#8792](https://github.com/loopx-project/loopx/pull/8792), [#8793](https://github.com/loopx-project/loopx/pull/8793), [#8795](https://github.com/loopx-project/loopx/pull/8795), [#8798](https://github.com/loopx-project/loopx/pull/8798), [#8802](https://github.com/loopx-project/loopx/pull/8802), [#8805](https://github.com/loopx-project/loopx/pull/8805), [#8807](https://github.com/loopx-project/loopx/pull/8807), [#8813](https://github.com/loopx-project/loopx/pull/8813), [#8818](https://github.com/loopx-project/loopx/pull/8818), [#8820](https://github.com/loopx-project/loopx/pull/8820), [#8821](https://github.com/loopx-project/loopx/pull/8821), [#8822](https://github.com/loopx-project/loopx/pull/8822), [#8824](https://github.com/loopx-project/loopx/pull/8824), [#8830](https://github.com/loopx-project/loopx/pull/8830), [#8840](https://github.com/loopx-project/loopx/pull/8840), [#8846](https://github.com/loopx-project/loopx/pull/8846), [#8872](https://github.com/loopx-project/loopx/pull/8872), [#8915](https://github.com/loopx-project/loopx/pull/8915), [#8928](https://github.com/loopx-project/loopx/pull/8928), [#9034](https://github.com/loopx-project/loopx/pull/9034), [#9047](https://github.com/loopx-project/loopx/pull/9047), [#9059](https://github.com/loopx-project/loopx/pull/9059), [#9060](https://github.com/loopx-project/loopx/pull/9060), [#9072](https://github.com/loopx-project/loopx/pull/9072), [#9073](https://github.com/loopx-project/loopx/pull/9073), [#9142](https://github.com/loopx-project/loopx/pull/9142) - [@Duang777](https://github.com/Duang777) — 拒绝异常额度时钟与非法日历时间,保留同秒恢复,处理截断的多字节历史行,按 GoalRef 护栏历史 ACK 准入与写回,加固入站/迁移/glob/botmux 校验,并在输入变化时重置飞书空转恢复退避。 [#8371](https://github.com/loopx-project/loopx/pull/8371), [#8632](https://github.com/loopx-project/loopx/pull/8632), [#8679](https://github.com/loopx-project/loopx/pull/8679), [#8680](https://github.com/loopx-project/loopx/pull/8680), [#8681](https://github.com/loopx-project/loopx/pull/8681), [#8682](https://github.com/loopx-project/loopx/pull/8682), [#8683](https://github.com/loopx-project/loopx/pull/8683), [#8684](https://github.com/loopx-project/loopx/pull/8684), [#8731](https://github.com/loopx-project/loopx/pull/8731), [#8804](https://github.com/loopx-project/loopx/pull/8804), [#8907](https://github.com/loopx-project/loopx/pull/8907), [#8975](https://github.com/loopx-project/loopx/pull/8975), [#9119](https://github.com/loopx-project/loopx/pull/9119) - [@eltociear](https://github.com/eltociear)(首次获合并) — 新增日文 README,并接入已有公开入口。 [#8839](https://github.com/loopx-project/loopx/pull/8839) -- [@gcl-coder](https://github.com/gcl-coder) — 让 Issue Fix、canary、Integration Branch 和 Change Quality 保留准确的 Git 路径,并在 Python 后续路径拦截被替换的 heartbeat 回执。 [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8429](https://github.com/loopx-project/loopx/pull/8429), [#8558](https://github.com/loopx-project/loopx/pull/8558), [#8585](https://github.com/loopx-project/loopx/pull/8585), [#8603](https://github.com/loopx-project/loopx/pull/8603), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8678](https://github.com/loopx-project/loopx/pull/8678) +- [@gcl-coder](https://github.com/gcl-coder) — 让 Issue Fix、canary、Integration Branch 和 Change Quality 保留准确的 Git 路径,统一展示与公开输出边界的本地路径判定,并在 Python 后续路径拦截被替换的 heartbeat 回执。 [#8426](https://github.com/loopx-project/loopx/pull/8426), [#8429](https://github.com/loopx-project/loopx/pull/8429), [#8558](https://github.com/loopx-project/loopx/pull/8558), [#8585](https://github.com/loopx-project/loopx/pull/8585), [#8603](https://github.com/loopx-project/loopx/pull/8603), [#8645](https://github.com/loopx-project/loopx/pull/8645), [#8647](https://github.com/loopx-project/loopx/pull/8647), [#8678](https://github.com/loopx-project/loopx/pull/8678), [#9080](https://github.com/loopx-project/loopx/pull/9080) - [@GZY-SUPER-HACKER](https://github.com/GZY-SUPER-HACKER) — 按 UTF-8 读取 Codex App CLI 输出。 [#8485](https://github.com/loopx-project/loopx/pull/8485) - [@hhyykk](https://github.com/hhyykk) — 避免重复扫描 Explore 时间线,修复 CLI/宿主/飞书/打包契约与过期 canary 检查,加固运行时清理,并修正 bootstrap 指引与代码审计发现。 [#8733](https://github.com/loopx-project/loopx/pull/8733), [#8737](https://github.com/loopx-project/loopx/pull/8737), [#8985](https://github.com/loopx-project/loopx/pull/8985), [#9113](https://github.com/loopx-project/loopx/pull/9113) - [@Jim-jimu](https://github.com/Jim-jimu) — 保留 Mermaid 节点身份,新增带认证的远程任务命令。 [#8370](https://github.com/loopx-project/loopx/pull/8370), [#8508](https://github.com/loopx-project/loopx/pull/8508) diff --git a/loopx/cli_commands/turn_run_once.py b/loopx/cli_commands/turn_run_once.py index d4d1a8f6d3..c174bea86f 100644 --- a/loopx/cli_commands/turn_run_once.py +++ b/loopx/cli_commands/turn_run_once.py @@ -120,27 +120,49 @@ def execute_turn_run_once( task_lease_proof = execution_context.get("task_lease_proof") or None task_lease_epoch = execution_context.get("task_lease_epoch") rebound_lease_active = False - if ( - args.execute - and getattr(args, "resume_turn_key", None) - and native_completion_lease_resolver is not None - and selected_todo.get("todo_id") - ): - resolved_lease = dict(native_completion_lease_resolver()) - if resolved_lease.get("task_lease_idempotency_key") is not None: - rebound_proof = { - "idempotency_key": resolved_lease["task_lease_idempotency_key"], - "expected_version": resolved_lease["task_lease_expected_version"], - } - task_lease_epoch = read_active_task_lease_epoch( - runtime_root=runtime_root, - goal_id=args.goal_id, - todo_id=str(selected_todo["todo_id"]), - agent_id=args.agent_id, - requested_proof=rebound_proof, - ) - task_lease_proof = rebound_proof - rebound_lease_active = True + cached_completion_lease: dict[str, Any] | None = None + + def resolve_completion_lease() -> dict[str, Any]: + nonlocal cached_completion_lease + if cached_completion_lease is None: + if native_completion_lease_resolver is not None: + cached_completion_lease = dict(native_completion_lease_resolver()) + else: + proof = execution_context.get("task_lease_proof") or {} + cached_completion_lease = { + "task_lease_idempotency_key": proof.get("idempotency_key"), + "task_lease_expected_version": proof.get("expected_version"), + } + return dict(cached_completion_lease) + + def rebind_resumed_task_lease(*, bind_receipt: bool = True) -> None: + nonlocal task_lease_proof, task_lease_epoch, rebound_lease_active + if ( + rebound_lease_active + or not args.execute + or not getattr(args, "resume_turn_key", None) + or native_completion_lease_resolver is None + or not selected_todo.get("todo_id") + ): + return + resolved_lease = resolve_completion_lease() + if resolved_lease.get("task_lease_idempotency_key") is None: + return + rebound_proof = { + "idempotency_key": resolved_lease["task_lease_idempotency_key"], + "expected_version": resolved_lease["task_lease_expected_version"], + } + task_lease_epoch = read_active_task_lease_epoch( + runtime_root=runtime_root, + goal_id=args.goal_id, + todo_id=str(selected_todo["todo_id"]), + agent_id=args.agent_id, + requested_proof=rebound_proof, + ) + task_lease_proof = rebound_proof + rebound_lease_active = True + if bind_receipt: + bind_heartbeat_settlement_receipt() transaction = ( payload.get("transaction") if isinstance(payload.get("transaction"), Mapping) @@ -352,8 +374,8 @@ def writeback( effect_ref: str, ) -> dict[str, object]: require_effect_ref(effect_ref, SettlementStepKind.DURABLE_WRITEBACK) - if args.execute and rebound_lease_active: - bind_heartbeat_settlement_receipt() + if args.execute and completion_todo_id is None: + rebind_resumed_task_lease(bind_receipt=True) refresh = refresh_candidate(result, completion_todo_id=completion_todo_id, completion_turn_key=completion_turn_key) if refresh.get("ok") and ( @@ -427,10 +449,7 @@ def todo_completion( agent_id=args.agent_id, completion_delivery_workspace=completion_delivery_workspace, completion_validation_workspace_path=delivery_workspace_path, - **(dict(native_completion_lease_resolver()) if native_completion_lease_resolver else { - "task_lease_idempotency_key": execution_context.get("task_lease_proof", {}).get("idempotency_key"), - "task_lease_expected_version": execution_context.get("task_lease_proof", {}).get("expected_version"), - }), + **resolve_completion_lease(), ) if completion.get("ok") is not True: return completion @@ -493,10 +512,10 @@ def completion_writeback( effect_ref: str, ) -> dict[str, object]: require_effect_ref(effect_ref, SettlementStepKind.DURABLE_WRITEBACK) - if args.execute and rebound_lease_active: - bind_heartbeat_settlement_receipt() prior = completion_readback() if prior is None: + if args.execute: + rebind_resumed_task_lease(bind_receipt=True) # A rejected attachment must not leave the Todo completed. # The primary writer still rechecks the same capability owner # before commit; this preview authorizes no later effects. @@ -813,6 +832,7 @@ def on_managed_start_admitted() -> None: if settlement_identity.request_subject is not None: require_current_request_operation(request_locator, settlement_identity, registry_path=registry_path, runtime_root=runtime_root, workspace=project) + rebind_resumed_task_lease(bind_receipt=False) bind_heartbeat_settlement_receipt() managed_cadence = managed_cadence_start( diff --git a/loopx/control_plane/goals/goal_frontier/__init__.py b/loopx/control_plane/goals/goal_frontier/__init__.py index 43f9e21fed..4895e8eab6 100644 --- a/loopx/control_plane/goals/goal_frontier/__init__.py +++ b/loopx/control_plane/goals/goal_frontier/__init__.py @@ -90,11 +90,12 @@ _latest_runs_for_goal, latest_agent_vision_from_runs as latest_agent_vision_from_runs, latest_agent_vision_from_status_payload, - latest_autonomous_replan_ack_from_status_payload, + latest_autonomous_replan_ack_from_status_payload as latest_autonomous_replan_ack_from_status_payload, receipt_bound_replan_source_acks, - receipt_bound_replan_ack_history, + receipt_bound_replan_ack_history as receipt_bound_replan_ack_history, latest_missing_vision_checkpoint_from_status_payload, - latest_replan_ack_feedback_from_status_payload, + latest_replan_ack_feedback_from_status_payload as latest_replan_ack_feedback_from_status_payload, + resolve_replan_ack_history_state, ) from .terminal import ( GOAL_TERMINAL_SOURCE_COMPLETENESS_SCHEMA_VERSION, # noqa: F401 @@ -1464,24 +1465,18 @@ def build_goal_frontier_projection_context_from_status( if replan_scope.get("required") and not replan_scope.get("applies"): replan_obligation = None - latest_agent_replan_ack, scoped_ack_history = receipt_bound_replan_ack_history( + ( + latest_agent_replan_ack, + scoped_ack_history, + latest_replan_ack_feedback, + prior_rearm_ack, + ) = resolve_replan_ack_history_state( status_payload, goal_id=goal_id, agent_id=agent_id, neutral_classifications=neutral_replan_ack_classifications, receipt_bound_replan_obligation_id=receipt_bound_replan_obligation_id, ) - latest_replan_ack_feedback = latest_replan_ack_feedback_from_status_payload( - status_payload, - goal_id=goal_id, - agent_id=agent_id, - ) - ack_time = parse_timestamp((latest_agent_replan_ack or {}).get("generated_at")) - feedback_time = parse_timestamp( - (latest_replan_ack_feedback or {}).get("generated_at") - ) - if ack_time is not None and feedback_time is not None and ack_time >= feedback_time: - latest_replan_ack_feedback = None latest_agent_vision = latest_agent_vision_from_status_payload( status_payload, goal_id=goal_id, @@ -1647,14 +1642,6 @@ def build_goal_frontier_projection_context_from_status( agent_id=agent_id, registered_agent_ids=registered_agent_ids, ) - prior_rearm_ack = None - if receipt_bound_replan_obligation_id and latest_agent_replan_ack is None: - candidate_prior_ack = latest_autonomous_replan_ack_from_status_payload( - status_payload, goal_id=goal_id, agent_id=agent_id, - neutral_classifications=neutral_replan_ack_classifications, - ) - if _acknowledged_replan_obligation_id(candidate_prior_ack) != receipt_bound_replan_obligation_id: - prior_rearm_ack = candidate_prior_ack frontier_replan_obligation = derive_goal_frontier_replan_obligation_from_summaries( user_todo_summary=user_todo_summary, agent_todo_summary=agent_todo_summary, diff --git a/loopx/control_plane/goals/goal_frontier/semantic_history.py b/loopx/control_plane/goals/goal_frontier/semantic_history.py index bbc9395983..ab2b2e3b16 100644 --- a/loopx/control_plane/goals/goal_frontier/semantic_history.py +++ b/loopx/control_plane/goals/goal_frontier/semantic_history.py @@ -7,6 +7,7 @@ from ..goal_vision_read_model import latest_agent_vision_from_runs as latest_agent_vision_from_runs +from ...todos.contract import normalize_todo_replan_obligation_id from ...work_items.autonomous_replan_ack import ( compact_autonomous_replan_ack, latest_autonomous_replan_ack_for_projection, @@ -331,6 +332,68 @@ def latest_replan_ack_feedback_from_status_payload( return None +def resolve_replan_ack_history_state( + status_payload: dict[str, Any], + *, + goal_id: str, + agent_id: str | None, + neutral_classifications: set[str], + receipt_bound_replan_obligation_id: str | None, +) -> tuple[ + dict[str, Any] | None, + list[dict[str, Any]] | None, + dict[str, Any] | None, + dict[str, Any] | None, +]: + """Resolve current ACK, scoped history, fresher rejection feedback, and prior rearm ACK.""" + + latest_agent_replan_ack, scoped_ack_history = receipt_bound_replan_ack_history( + status_payload, + goal_id=goal_id, + agent_id=agent_id, + neutral_classifications=neutral_classifications, + receipt_bound_replan_obligation_id=receipt_bound_replan_obligation_id, + ) + latest_replan_ack_feedback = latest_replan_ack_feedback_from_status_payload( + status_payload, + goal_id=goal_id, + agent_id=agent_id, + ) + ack_time = parse_timestamp((latest_agent_replan_ack or {}).get("generated_at")) + feedback_time = parse_timestamp( + (latest_replan_ack_feedback or {}).get("generated_at") + ) + if ack_time is not None and feedback_time is not None and ack_time >= feedback_time: + latest_replan_ack_feedback = None + prior_rearm_ack = None + if receipt_bound_replan_obligation_id and latest_agent_replan_ack is None: + candidate_prior_ack = latest_autonomous_replan_ack_from_status_payload( + status_payload, + goal_id=goal_id, + agent_id=agent_id, + neutral_classifications=neutral_classifications, + ) + raw_delta = ( + candidate_prior_ack.get("semantic_delta") + if isinstance(candidate_prior_ack, dict) + else None + ) + semantic_delta = ( + cast(dict[str, Any], raw_delta) if isinstance(raw_delta, dict) else {} + ) + if ( + normalize_todo_replan_obligation_id(semantic_delta.get("obligation_id")) + != receipt_bound_replan_obligation_id + ): + prior_rearm_ack = candidate_prior_ack + return ( + latest_agent_replan_ack, + scoped_ack_history, + latest_replan_ack_feedback, + prior_rearm_ack, + ) + + def latest_lane_recommendation_from_status( status_payload: dict[str, Any], *, goal_id: str, agent_id: str, ) -> dict[str, Any] | None: diff --git a/tests/test_codex_turn_completion.py b/tests/test_codex_turn_completion.py index 614cebc3de..eceef6eef0 100644 --- a/tests/test_codex_turn_completion.py +++ b/tests/test_codex_turn_completion.py @@ -510,3 +510,130 @@ def test_builtin_codex_advertises_explicit_completion_without_promoting_progress ): kinds = codex_cli_result_schema()["properties"]["result_kind"]["enum"] assert "validated_completion" in kinds and "validated_progress" in kinds + + +def test_resumed_turn_rebinds_updated_lease_once_without_rereading_after_retire( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + isolate_sqlite_runtime(tmp_path, monkeypatch) + project, runtime, registry = _write_live_fixture( + tmp_path, provider="sqlite", handoff_mode="hard_lease" + ) + goal_id, agent_id, todo_id = "loopx-turn-fixture", "codex-fixture", "todo_fixture0001" + # Keep a second open Todo so completion_writeback handles non-terminal completion. + add_goal_todo( + registry_path=registry, + goal_id=goal_id, + runtime_root_arg=str(runtime), + role="agent", + text="Follow-up verification task", + task_class="advancement_task", + action_kind="fixture", + ) + code, claim = _cli( + registry, runtime, "todo", "claim", "--goal-id", goal_id, + "--todo-id", todo_id, "--agent-id", agent_id, "--claimed-by", agent_id, + ) + assert code == 0, claim + lease_argv = ("task-lease", "inspect", "--goal-id", goal_id, "--todo-id", todo_id) + code, inspection = _cli(registry, runtime, *lease_argv) + assert code == 0 and inspection["active"] is True, inspection + lease = inspection["lease"] + adapter = SimpleNamespace( + controller=SimpleNamespace(registry_path=registry, coordination_runtime_root=runtime) + ) + host_calls, lease_reads = [], [] + + def resolve_lease(): + lease_reads.append(lease["lease_epoch"]) + return StewardTurnHost._task_lease_proof( + adapter, {"actor": {"goal_id": goal_id}, "todo_id": todo_id}, lease + ) + + def host(request, launch_lifetime): + with launch_lifetime(): + host_calls.append(request["turn_key"]) + (project / "completion-artifact.txt").write_text("completed", encoding="utf-8") + return { + "schema_version": "loopx_turn_result_v0", + "turn_key": request["turn_key"], + "result_kind": "validated_completion", + "completed_phases": ["host_execute", "typed_result"], + "classification": "fixture_completion", + "recommended_action": "Continue with the remaining Todo.", + "next_action": "Inspect the next Todo.", + "delivery_batch_scale": "implementation", + "delivery_outcome": "outcome_progress", + "vision_unchanged_reason": "The remaining Goal is unchanged.", + "work_evidence": ["artifact:completion-artifact"], + "validation_evidence": ["check:artifact-contents"], + } + + _, validation = _completion_host_and_validation_scripts() + base = [ + "turn", "run-once", "--host", "generic-cli", "--goal-id", goal_id, + "--agent-id", agent_id, "--project", str(project), "--no-global-sync", + "--validation-command-json", json.dumps([sys.executable, "-c", validation]), + "--execute", + ] + + def invoke(*extra: str): + args = build_parser().parse_args([*base, *extra]) + args.host, args.session_scope = "codex-app-server", "agent" + result: dict = {} + exit_code = handle_turn_command( + args, + registry_path=registry, + runtime_root_arg=str(runtime), + output_format=lambda *_args, **_kwargs: "json", + print_payload=lambda value, *_args: result.update(value), + native_host_runner=host, + native_completion_lease_resolver=resolve_lease, + native_session_binding_resolver=lambda _: { + "schema_version": "loopx_turn_session_binding_v0", + "goal_id": goal_id, + "agent_id": agent_id, + }, + ) + return exit_code, result + + complete = turn_run_once.write_turn_validated_completion + monkeypatch.setattr( + turn_run_once, + "write_turn_validated_completion", + lambda **_kwargs: (_ for _ in ()).throw(OSError("interrupted before completion")), + ) + code, failed = invoke("--todo-id", todo_id) + journal = _turn_journal(runtime) + assert code == 1 and journal["status"] == "in_progress", failed + assert lease_reads == [1] + + # Renew the active lease (epoch 2) before resuming from durable_writeback. + code, released = _cli( + registry, runtime, "task-lease", "release", "--goal-id", goal_id, + "--todo-id", todo_id, "--owner", agent_id, + "--idempotency-key", lease["idempotency_key"], + "--expected-version", str(lease["version"]), + ) + assert code == 0, released + code, reclaimed = _cli( + registry, runtime, "todo", "claim", "--goal-id", goal_id, + "--todo-id", todo_id, "--agent-id", agent_id, "--claimed-by", agent_id, + "--claim-operation-id", "todo-claim:renewed-epoch-2", + ) + assert code == 0, reclaimed + code, renewed_inspection = _cli(registry, runtime, *lease_argv) + assert code == 0 and renewed_inspection["active"] is True + lease = renewed_inspection["lease"] + assert lease["lease_epoch"] == 2 + + monkeypatch.setattr(turn_run_once, "write_turn_validated_completion", complete) + code, resumed = invoke("--resume-turn-key", journal["turn_key"], "--retry-failed-turn") + assert code == 0 and resumed["status"] == "committed", resumed + assert lease_reads == [1, 2] + assert _cli(registry, runtime, *lease_argv)[1]["active"] is False + + code, replay = invoke("--resume-turn-key", journal["turn_key"]) + assert code == 0 and replay["replayed"] is True, replay + assert lease_reads == [1, 2] + assert host_calls == [journal["turn_key"]] From c2c7bd7f6d427100f9cd4abe6f8077b320a0234f Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Sat, 21 Nov 2026 17:39:39 +0800 Subject: [PATCH 2/3] fix(turn): preserve rebound lease state across secondary closeout retries and document scoped monitors Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- docs/product/releases/v2.4.0.md | 34 +++++++++++++++++ loopx/cli_commands/turn_run_once.py | 32 ++++++++++++++-- .../goals/goal_frontier/__init__.py | 19 +--------- .../goals/goal_frontier/semantic_history.py | 26 ++++++++----- tests/test_codex_turn_completion.py | 38 ++++++++++++++++++- 5 files changed, 118 insertions(+), 31 deletions(-) diff --git a/docs/product/releases/v2.4.0.md b/docs/product/releases/v2.4.0.md index be7d18071b..31d427065d 100644 --- a/docs/product/releases/v2.4.0.md +++ b/docs/product/releases/v2.4.0.md @@ -367,6 +367,23 @@ uv pip install --python /tmp/loopx-core-env/bin/python /tmp/loopx-core-dist/loop python -m benchmark.runtime.planning_batch PROPOSAL.json ``` +### Scoped GitHub PR signal monitors + +**Activation:** Opt in per Steward `continuous_monitor` Todo inside a bound private App or Feishu `chat_root` Steward session by supplying `target_key` plus `signal_scope` (`schema_version: "steward_signal_monitor_scope_v0"`, `include_portfolio`, `include_inbox`, and optional `pr_filter` fields such as `exclude_drafts`, `exclude_conflicting`, `effective_verdicts`, `required_approver_declarations`, `author_mode`/`authors`, and `min_stalled_hours`) when creating or updating the monitor action. [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9182](https://github.com/loopx-project/loopx/pull/9182) + +**Validation:** Confirm the normalized scope file is persisted at `steward-monitors//scopes/.json` and that `StewardMonitor` evaluates each monitor independently without cross-monitor wakeups, delivering one aggregated `steward_monitor_report_delivery_v0` report to the exact bound `session_id` / `chat_root`. Note that updating `signal_scope` on an existing Monitor Todo requires an accompanying non-empty Todo field patch (such as summary, cadence, or `stop_condition`), otherwise `todo update` rejects an empty Todo patch (`Todo update requires a non-empty patch`). + +**Disable / rollback:** Pause, cancel, or complete the Monitor Todo via chat or CLI, or remove `steward-monitors//scopes/.json` while the Steward monitor loop is idle. + +**Authority boundary:** `steward_managed_mode.ts` rejects unknown `signal_scope` / `pr_filter` fields fail-closed; external GitHub probes stay read-only and never overwrite the last verified hash on outage; and report deliveries are pinned strictly to the bound `session_id` / `chat_root` without granting PR merge or repository write authority. + +**Docs:** [Steward monitor controller](https://github.com/loopx-project/loopx/blob/v2.4.0/loopx/capabilities/native_chat/steward_monitor.py), [Steward managed mode](https://github.com/loopx-project/loopx/blob/v2.4.0/loopx/control_plane/collaboration/steward_managed_mode.ts) + +```bash +loopx todo list --goal-id "$LOOPX_GOAL_ID" +cat "$LOOPX_RUNTIME_ROOT/steward-monitors/$LOOPX_GOAL_ID/scopes/$MONITOR_TARGET_KEY.json" +``` + ## Install / Update For a new PyPI install, run the following once `2.4.0` is available, then restart the agent host. @@ -737,6 +754,23 @@ uv pip install --python /tmp/loopx-core-env/bin/python /tmp/loopx-core-dist/loop python -m benchmark.runtime.planning_batch PROPOSAL.json ``` +#### Scoped GitHub PR signal monitors + +**启用:** 在已绑定的私聊 App 或飞书 `chat_root` 管家会话中创建或更新 `continuous_monitor` 待办时,显式传入稳定 `target_key` 与 `signal_scope`(`schema_version: "steward_signal_monitor_scope_v0"`、`include_portfolio`、`include_inbox` 及可选 `pr_filter` 条件,如 `exclude_drafts`、`exclude_conflicting`、`effective_verdicts`、`required_approver_declarations`、`author_mode`/`authors`、`min_stalled_hours`)。 [#9074](https://github.com/loopx-project/loopx/pull/9074), [#9182](https://github.com/loopx-project/loopx/pull/9182) + +**验证:** 确认作用域已写入 `steward-monitors//scopes/.json`,`StewardMonitor` 对每个监控独立聚合并按精确 `session_id` / `chat_root` 投递单篇可读汇总(`steward_monitor_report_delivery_v0`),互不串扰唤醒。需注意在更新既有监控待办的 `signal_scope` 时必须附带非空的待办字段修改(如摘要、周期或 `stop_condition`),仅改作用域而不改待办本体会按现行基线返回 `Todo update requires a non-empty patch`。 + +**停用 / 回退:** 通过对话或 CLI 暂停、取消或完成对应监控待办,或在管家空闲时移除 `steward-monitors//scopes/.json`。 + +**权限边界:** `steward_managed_mode.ts` 对未知 `signal_scope` / `pr_filter` 字段 fail-closed 拒绝;GitHub 外部探针仅只读采样且异常时不覆盖最近已核验哈希;报告严格投递到精确绑定的 `session_id` / `chat_root`,不授予仓库写或 PR 合并权限。 + +**文档:** [管家监控控制器](https://github.com/loopx-project/loopx/blob/v2.4.0/loopx/capabilities/native_chat/steward_monitor.py)、[管家受控模式](https://github.com/loopx-project/loopx/blob/v2.4.0/loopx/control_plane/collaboration/steward_managed_mode.ts) + +```bash +loopx todo list --goal-id "$LOOPX_GOAL_ID" +cat "$LOOPX_RUNTIME_ROOT/steward-monitors/$LOOPX_GOAL_ID/scopes/$MONITOR_TARGET_KEY.json" +``` + ### 发布验证 - 软件包版本与标签为 `2.4.0` / `v2.4.0`。先确认当前安装渠道已提供该版本,再升级并读回相同 Goal 与原任务。 diff --git a/loopx/cli_commands/turn_run_once.py b/loopx/cli_commands/turn_run_once.py index c174bea86f..6ca3fbe1aa 100644 --- a/loopx/cli_commands/turn_run_once.py +++ b/loopx/cli_commands/turn_run_once.py @@ -18,7 +18,10 @@ from ..control_plane.goals.first_party_host_admission import ( FirstPartyHostGoalAdmission, ) -from ..control_plane.quota.execution_preparation import read_active_task_lease_epoch +from ..control_plane.quota.execution_preparation import ( + prepared_lease_receipt_fields, + read_active_task_lease_epoch, +) from ..control_plane.quota.heartbeat_receipt import ( ensure_turn_heartbeat_settlement_receipt, ) @@ -117,8 +120,10 @@ def execute_turn_run_once( ) selected_todo = execution_context["selected_todo"] expected_todo_text_sha256 = execution_context["sha256"] - task_lease_proof = execution_context.get("task_lease_proof") or None - task_lease_epoch = execution_context.get("task_lease_epoch") + initial_lease_proof = execution_context.get("task_lease_proof") or None + initial_lease_epoch = execution_context.get("task_lease_epoch") + task_lease_proof = initial_lease_proof + task_lease_epoch = initial_lease_epoch rebound_lease_active = False cached_completion_lease: dict[str, Any] | None = None @@ -511,6 +516,7 @@ def completion_writeback( *, effect_ref: str, ) -> dict[str, object]: + nonlocal rebound_lease_active require_effect_ref(effect_ref, SettlementStepKind.DURABLE_WRITEBACK) prior = completion_readback() if prior is None: @@ -542,6 +548,26 @@ def completion_writeback( registry_path=registry_path, goal_ref=goal_ref) if retained is None: raise RuntimeError(EXACT_SETTLEMENT_READBACK_NOT_FOUND) + if retained.prepared_lease is not None: + if not isinstance(initial_lease_proof, Mapping): + rebound_lease_active = True + else: + initial_epoch_int = ( + int(initial_lease_epoch) + if isinstance(initial_lease_epoch, int) + and not isinstance(initial_lease_epoch, bool) + else None + ) + initial_fields = prepared_lease_receipt_fields( + initial_lease_proof, lease_epoch=initial_epoch_int, + ) + if ( + retained.prepared_lease.get("prepared_lease_key_sha256") + != initial_fields.get("prepared_lease_key_sha256") + or retained.prepared_lease.get("prepared_lease_epoch") + != initial_fields.get("prepared_lease_epoch") + ): + rebound_lease_active = True if retained.completion_event is None: append_settlement_event({"ok": True, "appended": True}, event_kind="todo_complete", status="terminal_no_followup" if prior["continuation"] == "no_followup" else "completed", diff --git a/loopx/control_plane/goals/goal_frontier/__init__.py b/loopx/control_plane/goals/goal_frontier/__init__.py index 4895e8eab6..42f04bf906 100644 --- a/loopx/control_plane/goals/goal_frontier/__init__.py +++ b/loopx/control_plane/goals/goal_frontier/__init__.py @@ -18,7 +18,7 @@ from ...todos.contract import ( TODO_TASK_CLASS_ADVANCEMENT, TODO_TASK_CLASS_MONITOR, - normalize_todo_replan_obligation_id, + normalize_todo_replan_obligation_id as normalize_todo_replan_obligation_id, ) from ...todos.todo_semantics import ( todo_advancement_frontier_counts, @@ -88,6 +88,7 @@ ) from .semantic_history import ( _latest_runs_for_goal, + acknowledged_replan_obligation_id as _acknowledged_replan_obligation_id, latest_agent_vision_from_runs as latest_agent_vision_from_runs, latest_agent_vision_from_status_payload, latest_autonomous_replan_ack_from_status_payload as latest_autonomous_replan_ack_from_status_payload, @@ -878,22 +879,6 @@ def _vision_gap_acknowledged( })["acknowledged"] is True -def _acknowledged_replan_obligation_id( - latest_replan_ack: dict[str, Any] | None, -) -> str | None: - """Return the exact obligation generation closed by the latest ACK.""" - - semantic_delta = ( - cast(dict[str, Any], latest_replan_ack.get("semantic_delta")) - if isinstance(latest_replan_ack, dict) - and isinstance(latest_replan_ack.get("semantic_delta"), dict) - else {} - ) - return normalize_todo_replan_obligation_id( - semantic_delta.get("obligation_id") - ) - - def derive_goal_frontier_replan_obligation_from_summaries( *, user_todo_summary: dict[str, Any] | None, diff --git a/loopx/control_plane/goals/goal_frontier/semantic_history.py b/loopx/control_plane/goals/goal_frontier/semantic_history.py index ab2b2e3b16..f120b8406c 100644 --- a/loopx/control_plane/goals/goal_frontier/semantic_history.py +++ b/loopx/control_plane/goals/goal_frontier/semantic_history.py @@ -332,6 +332,22 @@ def latest_replan_ack_feedback_from_status_payload( return None +def acknowledged_replan_obligation_id( + latest_replan_ack: dict[str, Any] | None, +) -> str | None: + """Return the exact obligation generation closed by the latest ACK.""" + + raw_delta = ( + latest_replan_ack.get("semantic_delta") + if isinstance(latest_replan_ack, dict) + else None + ) + semantic_delta = ( + cast(dict[str, Any], raw_delta) if isinstance(raw_delta, dict) else {} + ) + return normalize_todo_replan_obligation_id(semantic_delta.get("obligation_id")) + + def resolve_replan_ack_history_state( status_payload: dict[str, Any], *, @@ -373,16 +389,8 @@ def resolve_replan_ack_history_state( agent_id=agent_id, neutral_classifications=neutral_classifications, ) - raw_delta = ( - candidate_prior_ack.get("semantic_delta") - if isinstance(candidate_prior_ack, dict) - else None - ) - semantic_delta = ( - cast(dict[str, Any], raw_delta) if isinstance(raw_delta, dict) else {} - ) if ( - normalize_todo_replan_obligation_id(semantic_delta.get("obligation_id")) + acknowledged_replan_obligation_id(candidate_prior_ack) != receipt_bound_replan_obligation_id ): prior_rearm_ack = candidate_prior_ack diff --git a/tests/test_codex_turn_completion.py b/tests/test_codex_turn_completion.py index eceef6eef0..ecbaf0a044 100644 --- a/tests/test_codex_turn_completion.py +++ b/tests/test_codex_turn_completion.py @@ -512,12 +512,17 @@ def test_builtin_codex_advertises_explicit_completion_without_promoting_progress assert "validated_completion" in kinds and "validated_progress" in kinds +@pytest.mark.parametrize("provider", ["file", "sqlite"]) +@pytest.mark.parametrize("fail_refresh_after_rebind", [False, True]) def test_resumed_turn_rebinds_updated_lease_once_without_rereading_after_retire( - tmp_path: Path, monkeypatch: pytest.MonkeyPatch + tmp_path: Path, + monkeypatch: pytest.MonkeyPatch, + provider: str, + fail_refresh_after_rebind: bool, ) -> None: isolate_sqlite_runtime(tmp_path, monkeypatch) project, runtime, registry = _write_live_fixture( - tmp_path, provider="sqlite", handoff_mode="hard_lease" + tmp_path, provider=provider, handoff_mode="hard_lease" ) goal_id, agent_id, todo_id = "loopx-turn-fixture", "codex-fixture", "todo_fixture0001" # Keep a second open Todo so completion_writeback handles non-terminal completion. @@ -628,12 +633,41 @@ def invoke(*extra: str): assert lease["lease_epoch"] == 2 monkeypatch.setattr(turn_run_once, "write_turn_validated_completion", complete) + if fail_refresh_after_rebind: + original_refresh = turn_run_once.refresh_state_run + + def fail_non_dry_refresh(*args, **kwargs): + if not kwargs.get("dry_run"): + raise OSError("interrupted after completion before refresh") + return original_refresh(*args, **kwargs) + + monkeypatch.setattr(turn_run_once, "refresh_state_run", fail_non_dry_refresh) + code, second_failed = invoke( + "--resume-turn-key", journal["turn_key"], "--retry-failed-turn" + ) + assert code == 1, second_failed + assert lease_reads == [1, 2] + assert _cli(registry, runtime, *lease_argv)[1]["active"] is False + _, todos_after_second = _cli(registry, runtime, "todo", "list", "--goal-id", goal_id) + assert next(t for t in todos_after_second["todos"] if t["todo_id"] == todo_id)["status"] == "done" + monkeypatch.setattr(turn_run_once, "refresh_state_run", original_refresh) + code, resumed = invoke("--resume-turn-key", journal["turn_key"], "--retry-failed-turn") assert code == 0 and resumed["status"] == "committed", resumed assert lease_reads == [1, 2] assert _cli(registry, runtime, *lease_argv)[1]["active"] is False + assert _effect_kinds(runtime, journal) == [ + "todo_complete", + "refresh_state", + "quota_spend", + ] code, replay = invoke("--resume-turn-key", journal["turn_key"]) assert code == 0 and replay["replayed"] is True, replay assert lease_reads == [1, 2] assert host_calls == [journal["turn_key"]] + assert _effect_kinds(runtime, journal) == [ + "todo_complete", + "refresh_state", + "quota_spend", + ] From 081b8d2f8b77cefedded9317e78bc1bedda5b95d Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Sat, 21 Nov 2026 17:55:17 +0800 Subject: [PATCH 3/3] docs(release): clarify monitor disable path in v2.4.0 scoped monitor guide Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- docs/product/releases/v2.4.0.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/product/releases/v2.4.0.md b/docs/product/releases/v2.4.0.md index 31d427065d..8f5f9942e5 100644 --- a/docs/product/releases/v2.4.0.md +++ b/docs/product/releases/v2.4.0.md @@ -373,7 +373,7 @@ python -m benchmark.runtime.planning_batch PROPOSAL.json **Validation:** Confirm the normalized scope file is persisted at `steward-monitors//scopes/.json` and that `StewardMonitor` evaluates each monitor independently without cross-monitor wakeups, delivering one aggregated `steward_monitor_report_delivery_v0` report to the exact bound `session_id` / `chat_root`. Note that updating `signal_scope` on an existing Monitor Todo requires an accompanying non-empty Todo field patch (such as summary, cadence, or `stop_condition`), otherwise `todo update` rejects an empty Todo patch (`Todo update requires a non-empty patch`). -**Disable / rollback:** Pause, cancel, or complete the Monitor Todo via chat or CLI, or remove `steward-monitors//scopes/.json` while the Steward monitor loop is idle. +**Disable / rollback:** Pause or stop the Monitor Todo in Steward chat (`pause` / `stop`), or move it out of `open` in CLI (`loopx todo update --goal-id "$LOOPX_GOAL_ID" --todo-id "$MONITOR_TODO_ID" --status blocked` or `deferred` / `done`) and confirm via `loopx todo list --goal-id "$LOOPX_GOAL_ID"` that no further polling occurs. Do not delete `steward-monitors//scopes/.json` as a disable shortcut on an `open` Todo, because missing scope files fall back to unfiltered repository observation; existing scope and snapshot files stay preserved under blocked/done state so resuming later retains configuration and history. **Authority boundary:** `steward_managed_mode.ts` rejects unknown `signal_scope` / `pr_filter` fields fail-closed; external GitHub probes stay read-only and never overwrite the last verified hash on outage; and report deliveries are pinned strictly to the bound `session_id` / `chat_root` without granting PR merge or repository write authority. @@ -382,6 +382,8 @@ python -m benchmark.runtime.planning_batch PROPOSAL.json ```bash loopx todo list --goal-id "$LOOPX_GOAL_ID" cat "$LOOPX_RUNTIME_ROOT/steward-monitors/$LOOPX_GOAL_ID/scopes/$MONITOR_TARGET_KEY.json" +loopx todo update --goal-id "$LOOPX_GOAL_ID" --todo-id "$MONITOR_TODO_ID" --status blocked +loopx todo list --goal-id "$LOOPX_GOAL_ID" ``` ## Install / Update @@ -760,7 +762,7 @@ python -m benchmark.runtime.planning_batch PROPOSAL.json **验证:** 确认作用域已写入 `steward-monitors//scopes/.json`,`StewardMonitor` 对每个监控独立聚合并按精确 `session_id` / `chat_root` 投递单篇可读汇总(`steward_monitor_report_delivery_v0`),互不串扰唤醒。需注意在更新既有监控待办的 `signal_scope` 时必须附带非空的待办字段修改(如摘要、周期或 `stop_condition`),仅改作用域而不改待办本体会按现行基线返回 `Todo update requires a non-empty patch`。 -**停用 / 回退:** 通过对话或 CLI 暂停、取消或完成对应监控待办,或在管家空闲时移除 `steward-monitors//scopes/.json`。 +**停用 / 回退:** 在管家对话中暂停或停止对应监控待办(`pause` / `stop`),或在 CLI 将该待办状态切离 `open`(`loopx todo update --goal-id "$LOOPX_GOAL_ID" --todo-id "$MONITOR_TODO_ID" --status blocked` 或 `deferred` / `done`),随后通过 `loopx todo list --goal-id "$LOOPX_GOAL_ID"` 读回确认状态不再为 `open` 且停止到期轮询。切勿通过删除 `steward-monitors//scopes/.json` 替代停用——对仍处于 `open` 的监控删除作用域文件会使其回退为无过滤默认观察范围;按上述方式暂停/完成后,作用域与快照文件会保留以供后续恢复。 **权限边界:** `steward_managed_mode.ts` 对未知 `signal_scope` / `pr_filter` 字段 fail-closed 拒绝;GitHub 外部探针仅只读采样且异常时不覆盖最近已核验哈希;报告严格投递到精确绑定的 `session_id` / `chat_root`,不授予仓库写或 PR 合并权限。 @@ -769,6 +771,8 @@ python -m benchmark.runtime.planning_batch PROPOSAL.json ```bash loopx todo list --goal-id "$LOOPX_GOAL_ID" cat "$LOOPX_RUNTIME_ROOT/steward-monitors/$LOOPX_GOAL_ID/scopes/$MONITOR_TARGET_KEY.json" +loopx todo update --goal-id "$LOOPX_GOAL_ID" --todo-id "$MONITOR_TODO_ID" --status blocked +loopx todo list --goal-id "$LOOPX_GOAL_ID" ``` ### 发布验证