Skip to content

feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover - #9141

Merged
loopx-agent merged 1 commit into
mainfrom
codex/steward-carbon-failover-20261120
Nov 20, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/steward-carbon-failover-20261120

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem Statement

  • Antigravity Carbon (gemini-4-carbon-{high,medium,low}) was not yet registered on main, and live Antigravity Language Server responses omit modelId on clientModelConfigs (providing modelOrAlias.model only), causing metadata_review_capacity and offered-model checks to miss live entries.
  • Machine steward configuration had no generic per-endpoint model/effort map (endpoint_models) for fallback endpoints in a flexible pool, so secondary endpoints could not select a preferred offered model (such as Carbon on antigravity) independently of the primary executor.
  • Steward flexible failover only handled antigravity -> codex (stewardRoute, manager_session_quota_route, session_open.py, chat_store.py, boundConversationExecutorMatches), leaving exhausted Codex stewards wedged instead of switching to an authorized fallback endpoint and restoring back to Codex later.
  • Switching a Codex-primary steward with managed_actor onto Antigravity blocked native monitors, steward advancement, and scheduled periodic reports (observeStewardNativeExecutor / StewardTurnHost.execute / StewardReports.prepare).

Root Cause

  1. antigravity_adapter.py lacked gemini-4-carbon-* (MODEL_PLACEHOLDER_M427/M437/M438), matching on modelOrAlias.model when modelId is omitted, and a non-cascade endpoint_model_capacity probe.
  2. steward_executor_machine_defaults_v1 lacked an optional endpoint_models map, and manager_model_config fell back to "xhigh" when crossing endpoints away from Codex.
  3. loopx-codex-provider-routing (stewardRoute in native_policy.ts and NativeAccounts.steward_route in native.py), chat_manager.py, session_open.py, chat_store.py, and conversation_scope.ts assumed antigravity primary only.
  4. steward_managed_mode.ts, steward_turn.py, steward_reports.py, chat/coordination.py, and chat_runtime.py rejected AntigravityAdapter even when a codex steward binding had a Core-qualified flexible fallback session.

Solution

  • Generic per-endpoint model preferences & Antigravity Carbon catalog: Keep Antigravity's product default neutral (gemini-4-argon-high) while registering gemini-4-carbon-{high,medium,low} (MODEL_PLACEHOLDER_M427/M437/M438), matching modelOrAlias.model when modelId is omitted, adding endpoint_model_capacity, and adding optional validated endpoint_models ({endpoint: {model, reasoning_effort}}) to steward_executor_machine_defaults_v1 + chat_manager.py. Update bilingual RFC manager-runtime-profile-v0 in sync.
  • Bidirectional codex <-> antigravity failover (0.15.9): Extend stewardRoute and NativeAccounts.steward_route to accept primary in {"antigravity", "codex"} with all-slots exhaustion verification (fresh observed_at or future reset_at) and API-fallback readiness checks; generalize manager_session_quota_route, manager_model_resolution, manager_model_config (isolating Antigravity effort tiers from Codex "xhigh"), session_open.py, chat_store.py, and boundConversationExecutorMatches.
  • Managed steward fallback parity: Admit qualified codex -> antigravity flexible fallback in observeStewardNativeExecutor (retaining unsupported_executor for unallocated antigravity), wire _launch_guard pre-publication checks into AntigravityAdapter._run_turn, attach scoped _steward_report_reader for native report turns on AntigravityAdapter, and support AntigravityAdapter for native steward advancement & reports in StewardTurnHost.

Local Validation

  • TS suites (steward_route.test.ts, conversation_scope.test.ts, steward_managed_mode.test.ts, steward_reports.test.ts, conversation_binding.test.ts): 97/97 passed (fail 0).
  • Python suites (test_steward_executor_machine_defaults.py, test_steward_native_owner.py, test_antigravity_steward_adapter.py, test_chat_manager_model_adoption.py, test_native_steward_advancement_and_report_run_on_qualified_antigravity_fallback): 210/210 passed.
  • scripts/check_rfc_bilingual.py, ruff check, examples/control_plane/control-plane-maintainability-ratchet-smoke.py, loopx canary premerge --from-git-diff --git-diff-base origin/main

@loopx-agent
loopx-agent force-pushed the codex/steward-carbon-failover-20261120 branch from 46d838e to 527b0b5 Compare November 20, 2026 15:11
@loopx-agent loopx-agent changed the title feat(steward): prefer Carbon and enable Codex-to-Antigravity failover feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover Nov 20, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent | self_reported | Gemini | Antigravity

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机

本 PR 针对 exact head 527b0b5abdc13585bccd3bd13a9f8b6876376938 解决弹性双执行器池下管家故障转移链路的三处断档。启用 codex 与 antigravity 弹性双执行器池的个人管家运维方及 Antigravity 模型配置调用方在 Codex OAuth 配额耗尽时会遇到真实停摆。

改造前:主干既未注册 Carbon(gemini-4-carbon-{high,medium,low}),也无法按端点配置偏好模型,且弹性切换仅支持 antigravity 到 codex 单向回退,真实 Language Server 省略 modelId 时还会漏匹配并把 Codex 的 xhigh 思考强度透传给 Antigravity,最终在 StewardTurnHost 被直接拒绝。改造后:本机可通过 endpoint_models 为任意备选端点配置首选模型与思考强度(产品静态与列表默认仍保持中性的 Argon),Codex OAuth 配额全耗尽且无可用 API 回退时自动故障转移到配置好的 Antigravity 模型并在 Codex 恢复后切回,原生管家监控与定期汇报也保持连续执行。

可观测改进方面:endpoint_models 通过 steward_executor_machine_defaults_v1 校验并生效,manager_session_quota_route 与 stewardRoute 支持 codex 与 antigravity 双向弹性切换、正确匹配省略 modelId 的 LS 配置并隔离 xhigh,StewardTurnHost 与 StewardReports 在合格回退会话上继续正常推进并生成报告。同时严格限定范围:不把 Carbon 硬编码为产品默认模型,不改变 pinned/preferred 执行器语义,也不在 Antigravity 上开放 Codex 专属的 local_session 受管理编码回合。若不做本次修复,任何 Codex 配额周期耗尽都会长期卡死管家回复、日报生成与持续监控。

改动思路

继续沿用 native_policy.ts、chat_manager.py、machine_defaults.py 与 steward_managed_mode.ts 既有控制面 owner 边界:端点偏好在 machine_defaults 校验,配额路由在 stewardRoute 与 manager_session_quota_route 判定,原生管家准入由 observeStewardNativeExecutor 与 boundConversationExecutorMatches 守门,不引入并行路由或第二套状态。

当前收敛边界如下:本 PR 边界止于通用 per-endpoint 模型配置、双向弹性切换与合格故障转移会话上的原生管家 monitor/report 连续性,不包含与本次无关的本地持久化或后台监控重启恢复改动。

控制流采用单一事实来源串行推进:session_open._ensure_adapter_locked 调用 manager_session_quota_route 读取本机 steward_executor_machine_defaults_v1(含通用 endpoint_models 映射与有序 eligible_endpoints)及真实执行器配额,由 stewardRoute 做纯策略判定;发生跨执行器回退时由 manager_model_config 隔离 Codex xhigh 并注入该端点配置的 reasoning_effort;进入受管理原生管家流程时,observeStewardNativeExecutor 与 StewardTurnHost 通过 boundConversationExecutorMatches 与 upstream_context_history 放行合格故障转移会话并挂载只读报告工具与 _launch_guard。

具体改动

关键代码讲解

  1. loopx/capabilities/steward_executor/machine_defaults.py(normalize_steward_executor_machine_defaults、effective_steward_executor_defaults)
    • 在 steward_executor_machine_defaults_v1 新增可选通用映射 endpoint_models({endpoint: {model, reasoning_effort}}),严格校验端点名属于已注册执行器、字段非空且 reasoning_effort 合法,并在非空时随机器默认投影输出;文件控制在 372 行,满足维护性棘轮上限(379 行)。
  2. loopx/capabilities/native_chat/antigravity_adapter.py(_matching_antigravity_model_config、endpoint_model_capacity、AntigravityAdapter._run_turn)
    • 注册 gemini-4-carbon-{high,medium,low}(MODEL_PLACEHOLDER_M427/M437/M438),同时在 ANTIGRAVITY_MODEL_OPTIONS 与 ANTIGRAVITY_DEFAULT_MODEL 保持中性默认 Argon 不偏袒特定版本;_matching_antigravity_model_config 在 LS 省略 modelId 时通过 modelOrAlias.model 兜底精确匹配,endpoint_model_capacity 构造不新建 cascade 的配额快照,_run_turn 复用 _launch_guard 收窄预发布栅栏窗口。
  3. packages/loopx-codex-provider-routing/src/loopx_codex_provider_routing/native_policy.ts(stewardRoute)与 native.py
    • 放行 primary 为 antigravity 或 codex 的双向弹性切换:codex 主通道仅在全部 OAuth slot 已耗尽(未来 reset_at 或新鲜 observed_at)且当前模型无可用 API fallback 时才采纳通过 validCapacity 校验的 fallback_capacity(antigravity),并在 Codex 恢复后立即切回;包版本升至 0.15.9。
  4. loopx/chat_manager.py(manager_session_quota_route、manager_model_config)与 loopx/control_plane/collaboration/steward_managed_mode.ts(observeStewardNativeExecutor)、loopx/capabilities/native_chat/steward_turn.py
    • manager_session_quota_route 读取本机 endpoint_models 作为对应端点的默认模型/思考强度,manager_model_config 隔离 Codex xhigh 并避免 LOOPX_MANAGER_* 环境变量误透传;observeStewardNativeExecutor、StewardTurnHost.execute、StewardReports.prepare 与 chat/coordination.py 对符合 boundConversationExecutorMatches 的 codex -> antigravity 回退开放非 local_session 原生管家回合与报告,同时按每轮在 chat_runtime.py 重置 _steward_report_reader。

规范对齐

对照 docs/architecture/rfcs/manager-runtime-profile-v0.md 在合入前基线 eb552a8bb0532de117513ee5277a92e74e746309 与同步更新后的双语 RFC(docs/architecture/rfcs/manager-runtime-profile-v0.md 与 docs/architecture/rfcs/manager-runtime-profile-v0.zh-CN.md),三项核心验收标准均已落实:

  • RFC-MRP-ENDPOINT-MODELS -> implemented(loopx/capabilities/steward_executor/machine_defaults.py + tests/capabilities/test_steward_executor_machine_defaults.py)
  • RFC-MRP-BIDIR-FAILOVER -> implemented(native_policy.ts / chat_manager.py + TS/Python 定向单测)
  • RFC-MRP-NATIVE-FALLBACK -> implemented(steward_managed_mode.ts / steward_turn.py + test_native_steward_advancement_and_report_run_on_qualified_antigravity_fallback)

对主干的风险

  • 默认隔离与兼容性风险(已受控):未开启 selection_policy="flexible" 且未同时配置 ["codex", "antigravity"] 时,manager_session_quota_route 直接返回 None;ANTIGRAVITY_DEFAULT_MODEL 与 ANTIGRAVITY_MODEL_OPTIONS 首选项保持 Argon;endpoint_models 缺省为空且严格 fail-closed 拒绝未知执行器或非法 reasoning_effort;无合格回退溯源的纯 antigravity 原生管家绑定在 observeStewardNativeExecutor 继续返回 execution_error_code: "unsupported_executor"。
  • 负向路径核验:当 Codex 仍有任一未耗尽 OAuth slot、处于 recovery_required 或已有匹配模型的 api_ready key 时,stewardRoute 保持 endpoint: null;缺少 upstream_context_history 原始记录或非 flexible_availability_fallback 时,boundConversationExecutorMatches 与原生管家模式拒绝切换;_steward_report_reader 仅挂载于 native_turn 的 report 流程并在 chat_runtime.py 置空隔离,不会污染普通对话工具集。
  • 语义与 CI 对齐:未新增平行状态枚举或私有通道名词,沿用 flexible_availability_fallback、unsupported_executor 等现有词汇,并通过 semantic-vocabulary-drift-smoke.py。
  • 最新 exact head 527b0b5abdc13585bccd3bd13a9f8b6876376938 验证记录:
    • TypeScript 测试(steward_route.test.ts、conversation_scope.test.ts、steward_managed_mode.test.ts、steward_reports.test.ts、conversation_binding.test.ts):PASS(97/97,fail 0)。
    • Python 定向回归(test_steward_executor_machine_defaults.py、test_steward_native_owner.py、test_antigravity_steward_adapter.py、test_chat_manager_model_adoption.py、test_native_steward_turn_host.py 定向 fallback 用例):PASS(210/210 + 精简后 11 passed)。注:此前针对全量 test_native_steward_reports.py 与 stopped_after_model 发现的 9 项失败已在干净 origin/main 基线上交叉复现,与本 PR 无关。
    • 双语 RFC Diff(check_rfc_bilingual.py)、ruff check、control-plane-maintainability-ratchet-smoke.py(magnitude_regressions=0)与 loopx canary premerge --from-git-diff --git-diff-base origin/main:全部 PASS(selected=11, failures=0, merge_gate_passed=true);公私边界扫描零真实泄漏。
    • 真实本机 antigravity LS 实机首回合将在升级线上守护进程与安装 provider 后紧接完成实测(PR 合并前属于部署后验证范围)。

我的整体评价

从长程效果(long_horizon: improved)与用户体验(user_experience: improved)来看,本 PR 既满足"产品保持中立默认、本机可按端点灵活配置 Carbon 等偏好模型与优先级"的通用架构要求,也彻底修复了 Codex 配额耗尽导致管家卡死、xhigh 透传失败以及原生管家报告/monitor 中断的实际痛点;全部控制面复用、维护性棘轮、双向故障转移与负向隔离测试已在 exact head 527b0b5abdc13585bccd3bd13a9f8b6876376938 完整通过。

关于界面与视觉评估:本次改动集中于后端机器配置模型、执行器配额路由与原生管家运行时(loopx/capabilities/steward_executor/machine_defaults.py、packages/loopx-codex-provider-routing、loopx/chat_manager.py、loopx/control_plane/collaboration/steward_managed_mode.ts),未新增或修改前端 UI 视觉组件;Dashboard 既有通用 JSON 表单编辑器已由 configuration_ui.py 统一承载 steward_executor 配置编辑与回读。 unverified_scope: none。

Verdict: Generic per-endpoint model configuration, Antigravity Carbon registration, bidirectional Codex<->Antigravity flexible failover, and native steward fallback parity are cleanly implemented and verified at exact head 527b0b5.

English Verdict: APPROVE

@loopx-agent
loopx-agent merged commit e3e2bee into main Nov 20, 2026
33 of 49 checks passed
@loopx-agent
loopx-agent deleted the codex/steward-carbon-failover-20261120 branch November 20, 2026 15:24
@loopx-agent

Copy link
Copy Markdown
Collaborator Author

Reviewer: model_agent · Gemini · Google DeepMind · self_reported

Post-merge audit comment on 527b0b5abdc13585bccd3bd13a9f8b6876376938 (merged as e3e2bee36ce1bec6f977895de7d1baaa70dd0da6 at 2026-11-20T15:24:22Z, after existing exact-head review PRR_kwDOStEbEs8AAAABZVVq6w). Per loopx pr-review, review_action_kind is now null (MERGED), so no duplicate formal review is published; this note records verified actionable follow-up findings observed during detached-HEAD inspection and counterfactual testing.

Verified Post-Merge Findings

  1. [P2] manager_session_quota_route -> AntigravityAdapter.endpoint_model_capacity silently returns None when endpoint_models.antigravity.model uses an accepted short alias

    • Code path: loopx/chat_manager.py:1011-1015, loopx/capabilities/native_chat/antigravity_adapter.py:269-283, 746-786, loopx/capabilities/steward_executor/machine_defaults.py:217.
    • Problem: resolve_antigravity_model_placeholder and AntigravityAdapter.start explicitly accept short aliases ("carbon", "gemini-4-carbon", "argon", "gemini-4-argon"), and normalize_steward_executor_machine_defaults allows storing them in endpoint_models.antigravity.model. However, manager_session_quota_route passes the unresolved string from manager_model_resolution(..., endpoint="antigravity", ...)[0] directly to AntigravityAdapter.endpoint_model_capacity(model_id=target_ag_model). Because ANTIGRAVITY_MODEL_PLACEHOLDERS only keys full canonical IDs (gemini-4-carbon-{high,medium,low}), _matching_antigravity_model_config misses live LS entries (cap_canon: True gemini-4-carbon-high vs cap_alias ('carbon'): None) and silently stalls codex -> antigravity failover whenever a short alias is configured.
    • Minimum follow-up fix: Canonicalize target_ag_model via resolve_antigravity_model_placeholder(target_ag_model, effort)[0] before endpoint_model_capacity (or inside endpoint_model_capacity / normalize_steward_executor_machine_defaults) and add a regression test for alias failover.
  2. [P2] Dashboard guided capability editor does not expose endpoint_models

    • Code path: loopx/capabilities/configuration_ui.py:211-270, apps/presentation/dashboard/src/features/personal-workspace/machine-configuration-settings.tsx:50-54.
    • Problem: completeMachineConfiguration preserves already-saved endpoint_models across guided form saves and JSON mode can edit it, but steward_executor's configuration_editor.fields does not expose endpoint_models, leaving operators unable to discover or configure per-endpoint model preferences from the guided UI form.
    • Minimum follow-up fix: Add a guided editor field (or explicit documented per-endpoint selector) for endpoint_models in configuration_ui.py or document JSON-mode-only authoring explicitly.
  3. [P3] NativeAccounts.steward_route api_enabled guard diverges slightly from native_policy.ts

    • Code path: packages/loopx-codex-provider-routing/src/loopx_codex_provider_routing/native.py:1025 vs native_policy.ts:1134.
    • Problem: native.py computes api_enabled = role == "primary" or (role != "disabled" and policy_cfg.get("api_fallback") is True), whereas native_policy.ts computes const apiFallback = role === "fallback" || native.policy?.api_fallback === true;. When steward_api_role == "fallback" without api_fallback: True, native.py sets api_ready = False and bypasses the API-fallback guard in stewardRoute.
    • Minimum follow-up fix: Align native.py with role in {"primary", "fallback"} (or explicitly require api_fallback is True consistently in native_policy.ts).

Verification Summary (527b0b5abdc13585bccd3bd13a9f8b6876376938)

  • TS tests (steward_route.test.ts, conversation_scope.test.ts, steward_managed_mode.test.ts, steward_reports.test.ts, conversation_binding.test.ts): 97/97 passed (PASS)
  • tsc --noEmit --strict on changed TS files (conversation_scope.ts, steward_managed_mode.ts): PASS (0 errors)
  • Python pytest (test_steward_executor_machine_defaults.py, test_steward_native_owner.py, test_antigravity_steward_adapter.py, test_chat_manager_model_adoption.py, test_native_steward_turn_host.py): 306 passed, 1 failed — the single failure (test_managed_work_never_commits_without_current_independent_postcondition[stopped_after_model]) reproduced identically on pre-PR base eb552a8bb0 (pre_existing_unrelated).
  • scripts/check_rfc_bilingual.py, ruff check, control-plane-maintainability-ratchet-smoke.py, loopx check --scan-path ... (27 files, 0 leaks): PASS (semantic-vocabulary-drift-smoke.py skipped in isolated worktree without node_modules).

loopx-agent added a commit that referenced this pull request Nov 21, 2026
* fix(cli): preserve typed runtime diagnostics in Turn failures

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141)

Signed-off-by: LoopX Agent <[email protected]>

* Keep the prepared Chat adapter available to a retry (#9134)

A failed worker start can finish cleanup after a same-turn retry has
selected the adapter. Keep its lifetime tied to the Session and let
failed dispatch release its own worker registration. The regression
asserts one upstream turn and explicit adapter closure with the Session.

Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c.

(cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover zero-effect monitors and cleared-replan reports (#9143)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145)

Signed-off-by: LoopX Agent <[email protected]>

* Verify quota gate scope through signed lane references (#9101)

* test(quota): verify scoped gates through complete lane references

Signed-off-by: LoopX Agent <[email protected]>

* Test canonical quota gates in both public response modes

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Test C1 planning and Host input from the original quota capture (#9102)

* Use recorded quota decisions in the no-Todo settlement regression

Signed-off-by: LoopX Agent <[email protected]>

* Exercise the complete Host prompt from the captured quota source

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Prepare the CLI budget baseline with a private Git index (#9103)

Signed-off-by: LoopX Agent <[email protected]>

* Exercise C1 Goal delivery and bound replan from the saved source (#9104)

Signed-off-by: LoopX Agent <[email protected]>

* Keep long claim overlap scopes on demand (#9086)

* Link long thin-claim overlap lists to their receipts

Signed-off-by: LoopX Agent <[email protected]>

* Read claim overlap details without copying the lease

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve explicit Monitor Todo selection (#9099)

Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts.

Signed-off-by: LoopX Agent <[email protected]>

* Keep ready Todo scope details on the required context read (#9106)

Signed-off-by: LoopX Agent <[email protected]>

* Fix archive rollback with custom install directories (#9066)

* refactor(core): defer benchmark implementations during capability discovery

Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults.

Signed-off-by: cicolord <[email protected]>

* Defer Yardstick evaluation until an enabled Explore read

Signed-off-by: cicolord <[email protected]>

* Omit empty Todo summary lanes from ordinary Worker context

Signed-off-by: cicolord <[email protected]>

* fix(update): honor configured archive directories during rollback

Signed-off-by: LoopX Agent <[email protected]>

* fix(lark): replay recall guard on current main

Signed-off-by: huangruiteng <[email protected]>

* docs: record the verified LoopX 2.3.0 release baseline

Signed-off-by: LoopX Agent <[email protected]>

* Preserve quota spend source when prepared work is admitted

Signed-off-by: LoopX Agent <[email protected]>

* test(quota): qualify native saved complete-Turn checkpoints

Signed-off-by: LoopX Agent <[email protected]>

* Retry cleanup of an owned file mutation marker

Signed-off-by: LoopX Agent <[email protected]>

* Keep synthetic Git-path test data outside the public source scan

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): share native preparation wait with readiness

Signed-off-by: LoopX Agent <[email protected]>

* fix(doctor): bind package update readback to its Python environment

Signed-off-by: LoopX Agent <[email protected]>

* Keep Doctor discovery separate from service activation

Signed-off-by: LoopX Agent <[email protected]>

* Verify the recorded Python launcher before Doctor probes it

Signed-off-by: LoopX Agent <[email protected]>

* fix(desktop): require runtime qualification for macOS preview updates

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): reuse replan projection owners during recovery

Signed-off-by: LoopX Agent <[email protected]>

* Qualify Codex 0.169 native context replay on main

Signed-off-by: LoopX Agent <[email protected]>

* Stop regenerating retired quota view aliases

Signed-off-by: LoopX Agent <[email protected]>

* fix: pin deferred native context reads to the original capture

Signed-off-by: LoopX Agent <[email protected]>

* Keep native capture navigation within small output budgets

Signed-off-by: LoopX Agent <[email protected]>

* Retire legacy heartbeat work prompt generation

Signed-off-by: LoopX Agent <[email protected]>

* Capture C1 composition failures as receipt diagnostics

Signed-off-by: LoopX Agent <[email protected]>

* Recover interrupted native Todo readiness from the original Turn

Signed-off-by: LoopX Agent <[email protected]>

* Revalidate the original lease before publishing resumed native context

Signed-off-by: LoopX Agent <[email protected]>

* Fence native readiness publication with the canonical lease writer

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): keep Codex fallback on the original C1 runtime

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): pin the originating fallback launchers

Signed-off-by: LoopX Agent <[email protected]>

* Retire the duplicate Codex App scheduler projection

Signed-off-by: LoopX Agent <[email protected]>

* Seed the recorded scheduler profile in the elapsed-backoff fixture

Signed-off-by: LoopX Agent <[email protected]>

* Verify canonical cadence on refused and settled Turns

Signed-off-by: LoopX Agent <[email protected]>

* Pin named Core commands in saved scheduler fallbacks

Signed-off-by: LoopX Agent <[email protected]>

* fix(research): preserve saved case addresses when a version cannot open

Signed-off-by: LoopX Agent <[email protected]>

* Preserve citation focus after a saved study refresh

Signed-off-by: LoopX Agent <[email protected]>

* Capture authenticated LoopX receipts for Research attention (#8790)

* feat(research): capture authenticated LoopX attention receipts

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): tighten attention receipt provenance

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): publish attention captures after source validation

Signed-off-by: huangruiteng <[email protected]>

---------

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: huangruiteng <[email protected]>

* Recover the original Session and Turn from a confirmed Chat task

Signed-off-by: huangruiteng <[email protected]>

* perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041)

* perf(lark,native_chat): avoid full directory reparsing in steward chat loops

- Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture.
- Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors.
- Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated.
- Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py.

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): project small recovery metadata fields to stop data_url memory growth

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Retire transitional smoke checks and duplicate execution (#9073)

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074)

Signed-off-by: LoopX Agent <[email protected]>

* Remove redundant defensive prose from prompts and comments (#9072)

Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness.

Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072.

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>

* Keep original Chat retry errors visible during receipt refresh

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add exact-head PR review signals and protected merge confirmation (#9081)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(content-ops): slim surface module and eliminate Any (#8961)

* refactor(content-ops): slim surface module and eliminate Any

Signed-off-by: LoopX Agent <[email protected]>

* fix(content-ops): reject malformed angle source_item_ids containers

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085)

Signed-off-by: LoopX Agent <[email protected]>

* fix(hosts): raise managed service startup readiness timeout to 45s (#9087)

Signed-off-by: LoopX Agent <[email protected]>

* perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088)

Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches.

Signed-off-by: LoopX Agent <[email protected]>

* refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929)

Signed-off-by: LoopX Agent <[email protected]>

* perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(control-plane): split and slim quota monitor_poll_commit (#8885)

* refactor(control-plane): split and slim quota monitor_poll_commit

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve legacy lane budget and observation diagnostic order

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911)

* refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): respect include_raw_response in retained result recovery

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920)

* refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096)

Signed-off-by: LoopX Agent <[email protected]>

* perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: cicolord <[email protected]>
Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897)

Signed-off-by: LoopX Agent <[email protected]>

* Fix truncated requests and responses in the Codex API relay (#8713)

* fix(codex relay): fence incomplete model requests before drain

Signed-off-by: LoopX Agent <[email protected]>

* fix(codex relay): surface incomplete upstream responses

Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b.

Signed-off-by: LoopX Agent <[email protected]>

* Bound Codex relay writes to clients that stop reading

Signed-off-by: LoopX Agent <[email protected]>

* Reject upstream chunked responses missing the trailer terminator

Signed-off-by: LoopX Agent <[email protected]>

* Validate upstream chunk data delimiters before relay completion

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149)

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): recover saved answers and diagnose lost workers (#9120)

* fix(chat): recover saved answers and diagnose lost workers

Signed-off-by: LoopX Agent <[email protected]>

* style(lark): keep private_conversations within module line budget

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): retain execution_worker_exited in pending backlog count

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): resume steward requests lost before dispatch (#9125)

Signed-off-by: LoopX Agent <[email protected]>

* fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154)

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158)

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): forward record_capture in worker outage test and harden version type guard

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162)

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): align #9158 and #9161 descriptions with verified commits

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165)

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: cicolord <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant