Skip to content

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

Merged
loopx-agent merged 1 commit into
mainfrom
codex/fix-240-replan-staging-20261121
Nov 21, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/fix-240-replan-staging-20261121

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Delivery Brief

  • Goal / Source: Pre-freeze v2.4.0 exact-source qualification tail stabilization.
  • Gap: On origin/main after #9154, #9160, and #9161, 10 pytest cases across 4 control-plane modules failed:
    1. nativeReplanPresentation (loopx/control_plane/quota/turn_envelope.ts) only skipped staging when scopedReplanYardstickReversal(source) matched under stateless === true. Once #9160 wired captured_decision into project_native_quota_context, live native sessions (CODEX_THREAD_ID set) entered with stateless === false, staged replan_action_packet.review, and dropped inline /autonomous_replan_obligation/replan_context/explore_basis/work_yardsticks/0/... fields from the first-read opening (test_work_yardstick_cli.py).
    2. Three replan test suites (test_quota_acceptance_references.py, test_goal_create_completion.py, test_settlement_input_discovery_cli.py) had been altered during #9154/#9161 to expect unstaged replan_action_packet under default --context-delivery auto, or depended on ambient LOOPX_CONTEXT_DELIVERY.
  • Result:
    • Moved if (scopedReplanYardstickReversal(source)) return undefined; outside if (stateless) in nativeReplanPresentation (loopx/control_plane/quota/turn_envelope.ts) and added context_delivery + captured_decision unit coverage in tests/control_plane_ts/turn_envelope.test.ts.
    • Restored pre-#9154 progressive staged-review assertions in test_progressive_cli_delivers_complete_acceptance_for_selection_and_replan (tests/control_plane/test_quota_acceptance_references.py) while keeping dynamic guard_index lookup for the inline test.
    • Cleared ambient LOOPX_CONTEXT_DELIVERY and restored pre-#9161 staged reader assertions in test_ordinary_goal_replans_after_first_todo_and_delivers_the_missing_section (test_goal_create_completion.py) and test_replan_authoring_example_links_actual_subsequent_work (test_settlement_input_discovery_cli.py).
    • Reconciled docs/product/releases/v2.4.0.md (EN & ZH) with #9164 and native captured_decision Yardstick reversal preservation.
  • Owning Boundary & Rollback: Scoped purely to nativeReplanPresentation reversal guard, 4 control-plane test files, and v2.4.0.md; trivially reversible.
  • Acceptance Evidence:
    • pytest -q -n 4 on test_goal_create_completion.py, test_settlement_input_discovery_cli.py, test_quota_acceptance_references.py, test_work_yardstick_cli.py: 126 passed, 0 failed.
    • pytest -q -n 4 on adjacent replan/staged-read/context modules (test_replan_staged_read.py, test_lifecycle_guard_reentry.py, test_replan_saved_context.py, test_replan_progress_native_cli.py, test_replan_authoring_owner.py, test_context_capture_registry_independence.py, test_cli_output_budget.py): 208 passed, 1 skipped (depth-12 temp skip), 0 failed.
    • pytest -q -n 4 tests/control_plane/test_quota_settlement_cli.py: 218 passed, 0 failed.
    • Full unit TS suite (tests/control_plane_ts/*.test.ts): 6,685 passed, 76 skipped (PostgreSQL/platform-gated), 0 failed.
    • ruff check, mypy (0 errors across 17 files), 12-surface examples/release/release-readiness-doc-smoke.py, check_rfc_bilingual.py, loopx check (6/6 clean), and loopx canary premerge --from-git-diff --git-diff-base origin/main (19/19 passed, failure_count: 0, manual_hold_count: 0).

@loopx-agent
loopx-agent force-pushed the codex/fix-240-replan-staging-20261121 branch from b644dbd to 37305aa Compare November 21, 2026 03:46

@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 | Gemini | Google | self_reported

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

对 PR #9165 在 exact head 37305aa01e1bb4e0297ac27e505fd5b0f8d3ada2 完成独立审查。结论:APPROVE(无阻塞项),已验证 nativeReplanPresentation 对 captured_decision 与无状态路径统一保留已绑定的 Yardstick 反转线索,3 个控制面测试恢复且隔离 LOOPX_CONTEXT_DELIVERY,docs/product/releases/v2.4.0.md 与 #9164/#9165 实际提交一致。

动机 / Motivation

当智能体在已建立原生上下文日志(native session)的 Codex 会话中触发自主重规划,并进入已绑定当前 Todo 的 quota should-run 首读入口时,受影响的是启用 context_delivery 且已启用 Yardstick 决策的运行路径与对应控制面回归验证。此前,一旦上游接入 captured_decision 文件引用,原生会话不再走无状态路径,而 nativeReplanPresentation 只在无状态分支内检查 scopedReplanYardstickReversal,导致原生会话把 replan_action_packet 改写为分阶段 review 指针并裁掉 autonomous_replan_obligation.replan_context,首屏丢失 proxy_order_reversed 等反转线索;同时 3 个与 replan_action_packet 分阶段交付相关的测试文件曾因临时兼容环境或中间态被改写成断言缺少 review/writeback,而 v2.4.0 发布说明也尚未补充 #9164 与本 PR 的条目。本次改动后,受绑定 Todo 且存在 proxy_order_reversed: true 线索的重规划请求在原生 captured_decision 与无状态入口均跳过分阶段裁切,首屏直接保留反转字段且 projected 保持 false;而无反转线索或尚未绑定 Todo 的重规划依然正常分阶段交付 review 读取命令,3 个测试恢复原始分阶段断言并隔离环境变量,发布说明同步对齐实际提交。本 PR 边界严格限定在修复原生 captured_decision 首屏反转线索保留、恢复 3 个控制面测试及同步 v2.4.0 发布说明,不改变无状态分阶段规则、未绑定选择流程或任意 Yardstick 策略默认值。

改动思路 / Approach

从设计权衡看,“不做改动”会令启用了 native session journal 的已绑定任务在重规划首屏丧失 proxy_order_reversed 警示,违背不改默认路径下首屏必须可见反证线索的要求;另一种做法是在 Python 侧 project_native_quota_context 里重复解析 replan_context 来决定是否传入 captured_decision,但这会在适配层复制 TypeScript 控制面规则,一旦分叉将导致无状态与有状态路径语义不一致。因此保留在唯一策略 owner nativeReplanPresentation 内决策是最小且最恰当的边界。

入口为 prepareProgressiveContextDelivery 与 prepareProgressiveContext 共同调用的 checkedContextPresentationPlan,权威输入为经完整 Turn 校验的 context 与 native_projection(含 captured_decision 或 replan_reader_argv),决策归属 turn_envelope.ts 中的 nativeReplanPresentation。在保留前序 if (stateless) 对无状态表面与 sha256 校验不变的前提下,将 if (scopedReplanYardstickReversal(source)) return undefined; 提升至 if (stateless) 块之后执行:当绑定任务存在活跃 proxy_order_reversed: true 线索时直接返回 undefined,交由 progressiveContextPlan 与 initialContextReadGroups 在 /normal_delivery_allowed 后紧邻输出 work_yardsticks/<index>/... 首屏字段;当线索不存在、未激活或尚未绑定 Todo(如 selection_required: true)时,继续执行原有 replanCliView 分阶段裁剪,不新增状态、不改变失败回退语义(native_projection 或 captured_decision 异常时依旧回退原完整上下文或由调用方按已有错码失败关闭)。本 PR 架构判断为保留当前边界:将 scopedReplanYardstickReversal 作为 nativeReplanPresentation 内的共享投影护栏,同时在既有类型化所有权层内复原 3 份测试的文件与环境契约并同步发布说明,不引入新配置项、新状态机或旁路逻辑。

具体改动 / Changes

本次 diff(c65d38d146..37305aa01e,6 个文件,+62 / -34)清晰划分为三部分:控制面运行时 1 处(+2 / -2)、测试 4 处(+53 / -25)、公开文档 1 处(+7 / -7)。对照可接受规范 docs/architecture/rfcs/target-yardstick-stride-decisions-v0.md(提交基线 e67b5d911a8bf44b6eab49547f2b25e31ecb4127),相关准则覆盖情况如下:

  • C4(代理排序与真实适用结果冲突时保留失效与反转警示、保护既有最优解):已实现(implemented),由 nativeReplanPresentation 与 scopedReplanYardstickReversal 在原生 captured_decision 首屏保持内联可见,并经 TS 单元测试及 test_work_yardstick_cli.py 双双验证。
  • C11(部分上下文与源绑定细节恢复不混淆、不伪造全量已读):已实现(implemented),无反转或未绑定场景维持 replan_action_packet.review / writeback 分阶段源绑定读取,经 test_quota_acceptance_references.py 与 replan_view 读回验证。
  • C12(默认关闭与旧配置保持原有行为,不引入静默默认值变化):已实现(implemented),经 LOOPX_CONTEXT_DELIVERY=off 隔离验证及 proxy_order_reversed: false 对照验证。
  • M1(共享一个类型化 owner、跨 CLI 与原生入口保持受控读回):已实现(implemented),控制面决策仍收敛在 turn_envelope.ts / progressive_context.ts,不增设并行 Python 策略。

关键代码讲解

  1. nativeReplanPresentation(loopx/control_plane/quota/turn_envelope.ts:2541-2569):原实现把 if (scopedReplanYardstickReversal(source)) return undefined; 放在 if (stateless) 内;本次将其移至 if (stateless) 校验块之后、replanCliView 裁剪之前。输入为包含 context 与 native_projection 的请求对象,关键不变量是 stateless 的表面/哈希校验依然优先短路,且只有在 scopedReplanYardstickReversal(source) 确认“已绑定 Todo + selection_required !== true + explore.availability === 'available' + 匹配当前 Todo 的 proxy_order_reversed === true”时才返回 undefined 跳过 replanCliView,其余情况照常生成分阶段视图。
  2. scopedReplanYardstickReversal(loopx/control_plane/quota/progressive_context.ts:860-890):复用既有的作用域校验器,读取 replan_action_packet.obligation_id、autonomous_replan_obligation.replan_context.explore_basis.work_yardsticks、settlement_plan.identity 与 selectedWorkTodoId,仅在任务身份、Agent、Goal 与 obligation_id 全部对齐且存在 proxy_order_reversed === true 且带 source_finding_id / comparison_candidate_ref 时返回裁剪字段清单,从根源阻断未绑定守卫或无关 Todo 借用线索。
  3. initialContextReadGroups(loopx/control_plane/quota/progressive_context.ts:949-1096):当 replan_action_packet.review 未被分阶段生成且满足 loopx_turn_envelope_v1 条件时,进入 else if 分支,调用 scopedReplanYardstickReversal 并把对应 work_yardsticks/<index>/<field> 指针插在 /normal_delivery_allowed 之后,保证多页写范围下首屏 offset=0 仍包含完整反转线索。
  4. project_native_quota_context(loopx/cli_commands/quota_capture.py:288-319):上游已通过 _saved_decision_reference 构造 captured_decision 并传入 prepare_codex_context,进而触发 native_projection.captured_decision 分支(即本次触发 stateless === false 的真实生产调用方);修复后该调用路径无需改动即可正确保留首屏线索。
  5. 测试恢复与单测加固(tests/control_plane_ts/turn_envelope.test.ts 与 3 个 Python 控制面测试):TS 新增 captured_decision + context_delivery(surface: "complete_turn", include_initial_read_plan: true, observe_first_read: true)断言验证 initial_read_plan.plan.selections 含 proxy_order_reversed、replan_action_packet.review === undefined 与 projected === false。3 个 Python 测试中,test_quota_acceptance_references.py 恢复 --context-delivery auto 下对 /replan_action_packet/review 分阶段阅读器及 acceptance_index 的检查(同时保留对 sources 的动态 guard_index 查找);test_goal_create_completion.py 与 test_settlement_input_discovery_cli.py 显式清除环境 LOOPX_CONTEXT_DELIVERY 并恢复默认 --context-delivery auto 下的分阶段 review/writeback 读取断言。docs/product/releases/v2.4.0.md 同步补充了 #9164(steward_turn.py / steward_reports.py / steward_managed_mode.ts 已停止/已保存报告候选恢复及 host_candidate.py 轻微 JSON 分隔符容错)与 #9165(nativeReplanPresentation)的中英文条目,核验与源提交一致。

对主干的风险 / Risks

对主干引入回退的风险低且受控,主要验证关注两类边界:其一是反向隔离(负例)——当不存在反转线索(proxy_order_reversed: false)或选标尚未绑定(selection_required: true)时,captured_decision 原生路径是否仍能正常分阶段生成 replan_action_packet.review 而不退化为全量内联。我们通过独立 TS 对照测试直接证实:同一 native_projection.captured_decision 构造下,已绑定反转返回 projected=false, review=undefined 且首屏 opening.selections 含 proxy_order_reversed;非反转与未绑定对照均返回 projected=true 且 opening.selections 包含 /replan_action_packet/review。其二是 LOOPX_CONTEXT_DELIVERY=off 环境隔离——将 3 个恢复的控制面测试用例在 LOOPX_CONTEXT_DELIVERY=off 环境变量下实跑,全部通过(分别为 2、4、2 个参数化用例),证实 monkeypatch.delenv 与显式 --context-delivery auto 不会受宿主环境变量污染而假绿或误触发。

本地验证矩阵结果如下:

  • TS 控制面单元测试(node --experimental-strip-types --test tests/control_plane_ts/turn_envelope.test.ts tests/control_plane_ts/context_delivery.test.ts):PASS(67 + 36 = 103 passed, 0 failed)。
  • 控制面 Python 相关测试(pytest -q 覆盖 test_work_yardstick_cli.py, test_quota_acceptance_references.py, test_goal_create_completion.py, test_settlement_input_discovery_cli.py):PASS(126 passed in 229.62s, 0 failed),其中包含 native_session=True/False 与 file/sqlite 矩阵。
  • LOOPX_CONTEXT_DELIVERY=off 隔离回归(针对上述 3 个恢复用例):PASS(2 + 4 + 2 = 8 passed)。
  • 语法/规范/文档/边界门禁:ruff check(PASS)、scripts/check_rfc_bilingual.py --base origin/main --head HEAD(PASS)、12-surface examples/release/release-readiness-doc-smoke.py --release-notes docs/product/releases/v2.4.0.md(PASS)、loopx check --scan-path ... 6 个变更文件(PASS,errors=0, hit_count=0)、loopx canary premerge --from-git-diff --git-diff-base origin/main --tier quick(PASS,4/4 checks passed, failures=0, manual_hold_count=0)。
  • 语义与协议对齐:复用既有 scopedReplanYardstickReversal 护栏与 replan_action_packet_v0 / context_delivery_v1 契约,未新增或修改任何公开状态枚举、能力配置项或权限语义;未启用 context_delivery 时保持完全一致的默认输出。

我的整体评价 / Verdict

本 PR 精准定位并消除了 #9160 接入 captured_decision 后暴露的原生重规划首屏回归,同时妥善清除了 #9154/#9161 留下的测试契约漂移并完成 v2.4.0 发布说明对账。长期运行维度(long_horizon)上,原生会话下受绑定任务在每次受控重规划首屏都能持续稳定接收既有 proxy_order_reversed 反转提示,避免了错误延续劣质代理指标;用户体验维度(user_experience)上,CLI 与控制面输出保持既有分阶段读取与回退契约(不涉及前端或渲染界面修改,相关视觉检查不适用且无未验证视觉范围)。改动仅保留最小必需的生产逻辑移动与完整回归覆盖,在代码体量与兼容性方面均属必要且可快速回滚的边界(未额外运行全仓全量 TS/Python 套件为残余范围,但目标控制面 TS、4 组受影响 Python 套件、对照反例及 premerge 门禁均已在 exact head 37305aa01e1bb4e0297ac27e505fd5b0f8d3ada2 实测通过)。无阻塞项。

English verdict: APPROVE — exact head 37305aa01e1bb4e0297ac27e505fd5b0f8d3ada2 fixes nativeReplanPresentation for native captured_decision replan openings, restores the three staged-replan tests with env isolation, and accurately aligns docs/product/releases/v2.4.0.md; 103 TS tests, 126 Python control-plane tests, LOOPX_CONTEXT_DELIVERY=off isolation checks, and release/premerge gates all PASS.

@loopx-agent
loopx-agent merged commit 2b6dfe0 into main Nov 21, 2026
35 of 45 checks passed
@loopx-agent
loopx-agent deleted the codex/fix-240-replan-staging-20261121 branch November 21, 2026 04:03
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