Repository navigation
fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes - #9152
Conversation
…e, and public smokes Signed-off-by: LoopX Agent <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · Gemini (Google) · self_reported
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
本次独立评审针对 PR #9152 的精确提交 5f25742873867eb4e4f142327a2685ea8ca3cd27(基于 main)执行。未发现阻断合入的缺陷(no blocking findings),本地隔离验证、双语 RFC 校验、premerge canary 及实网 onboarding_goal_selection_gate 探针均已独立复现通过。
动机 / Motivation
在 v2.4.0 发布前稳定阶段,若干底层入口、架构守卫与公开文档/工作流出现了独立回归或漂移。使用独立 CLI help 的用户与插件测试、依赖 architecture/canary premerge 门禁的维护者、执行 onboarding 模型行为验收的操作者,以及运行全量公开 smoke 工作流的 CI 维护者。修改前:执行 loopx --help 会触发 importlib.util.find_spec 探测 loopx.cli,5 项架构与所有权守卫失败,onboarding_goal_selection_gate 在模型输出中误把顶层 host_surface 当作激活面,7 项公开文档与工作流 smoke 失配;修改后:--help 仅通过 PathFinder 检查磁盘路径而不触发自定义 meta_path,5 项架构守卫全部归位既有单一 owner,多目标选择包显式给出 null 激活字段并配合行为提示对齐契约,7 项公开 smoke 与双语 RFC 台账全部恢复通过。
如果不修复这些回归,预发布门禁会在无关导入边界、静态 AST 检查、引导回归门控和定时 CI 分片容量上持续报红,导致真正的发布切片被误阻断或迫使下游绕过守卫。独立环境中 CLI 入口与性能诊断 --help 隔离、5 项架构守卫、CI 策略、引导门控与 README 检查全部通过;7 项公开 smoke、双语 RFC 校验、ruff、mypy、27 文件公私边界扫描及 Doubao 2.1 Pro 实网 onboarding_goal_selection_gate 探针均通过。不包含聊天交互、控制面状态机主流程或 benchmark 归档修改,也不修改 docs/product/releases/v2.4.0.md,且本评审不执行合并操作。
改动思路 / Approach
本 PR 没有引入新开关、新协议或平行抽象,而是将每一处回归精确收敛回仓库既有的权威 owner:1)在 loopx/cli_runtime.py 中用 importlib.machinery.PathFinder.find_spec("loopx.cli", search_path) 替代全局 importlib.util.find_spec,在不触发测试或宿主自定义 sys.meta_path 查找器的前提下完成 standalone core 检测;2)在 loopx/presentation/goal_storage_api.py 复用 loopx.registry.load_registry,在三个 GitHub slug 消费方复用 issue_fix.repository_snapshot._REPO_PATTERN,在 Lark 卡片转义中还原静态可折叠正则字面量,并把 E07 溯源探针绑定到 build_premerge_validation_gate 动态选择结果;3)在 loopx/bootstrap_command_pack.py 与 doubao_model_behavior_actor.py 明确分离“请求宿主面(requested_host_surface)”与“激活宿主面(host_loop_activation.host_surface)”,既保留 onboarding_entry_semantic_contract 严格校验不放松,又消除了模型把顶层 host_surface 误抄进激活字段的歧义;4)将 RFC 检查点迁移至 ledger/ 并重算分片/Node 24 配置,恢复 7 项公开 smoke。
本 PR 仅保留既有的单个权威边界并在现有调用路径上做最小必要修正,不新增协议版本、后台守护状态、配置命名空间或平行决策逻辑。当前 PR 边界仅覆盖 CLI help 隔离、5 项架构所有权回归、多目标引导门控对齐及 7 项公开文档/工作流 smoke 修复,不触及控制面核心状态机、聊天运行时主链路、benchmark 归档或发布说明文件。
[CLI --help] -> sys.modules["loopx.cli"]? -> PathFinder.find_spec("loopx.cli", search_path) -> skip custom sys.meta_path
[Multi-Goal Start] -> packet.host_surface ("codex-app") -> requested_host_surface
-> host_loop_activation.{host_surface,activation_method} (null) -> activation contract
(上述流程示意基于 exact head 5f25742873867eb4e4f142327a2685ea8ca3cd27 源码整理,用于辅助理解改动前后的边界切分。)
具体改动 / Changes
对照基准规范 docs/architecture/rfcs/monorepo-distribution-split-v0.md(基准修订 dcf208c855493e3cf7c67874293a405df045a6b3)与当前仓库契约,全量 27 个改动文件的验收映射如下:
| Criterion ID | 覆盖范围 | 处置状态 | 关键证据与路径 |
|---|---|---|---|
R0-CLI-ISOLATION |
CLI --help 与 standalone core 边界 |
implemented | loopx/cli_runtime.py::_standalone_core;test_cli_entrypoint.py + test_performance_diagnosis_cli.py 通过 |
ARCH-SINGLE-OWNER |
注册表拒绝、Lark 静态正则、_REPO_PATTERN 单一 owner、绑定清单一处更新、E07 预合并探针 |
implemented | goal_storage_api.py、goal_channel_operation.py、github_pr_evidence.py、steward_monitor.py、chat_action_normalization.py、goal_instance_binding_inventory_v1.json、semantic_incident_retrodiction.py |
ONBOARDING-GATE-ALIGNMENT |
多目标选择门控不混淆顶层与激活宿主面 | implemented | bootstrap_command_pack.py、doubao_model_behavior_actor.py 及 3 项控制面测试 + 实网 Doubao 2.1 Pro 探针通过 |
RFC-LEDGER-AND-PUBLIC-SMOKES |
RFC 台账拆分、README 三语免责语句、IP-030 steward_memory 说明、5 分片 80 上限、Node 24 与 repair 话术对齐 |
implemented | 7 项公开 smoke、双语 RFC diff 检查与 canary premerge 全部通过 |
关键代码讲解
_standalone_core(loopx/cli_runtime.py:967):旧实现调用importlib.util.find_spec("loopx.cli"),会遍历sys.meta_path中的全部 finder;当test_help_needs_no_runtime_or_optional_stack等隔离钩子拦截loopx.cli查找时,--help尚未尝试真正导入就已经抛错。新实现先查sys.modules.get("loopx.cli"),再构造仅包含loopx包目录的search_path调用PathFinder.find_spec("loopx.cli", search_path),仅基于磁盘包布局判定是否为 standaloneloopx-core,从而彻底隔离无关meta_path探针,同时保留完整依赖缺失时ModuleNotFoundError的显式失败边界。_storage_cold_snapshot(loopx/presentation/goal_storage_api.py:144):旧实现通过load_project_registry(source_registry)读取外部来源注册表,绕过了decode_registry_snapshot中的require_runtime_compatible_project_registry,导致生命周期专用的source_session_v1profile 在冷快照读取时未被拒绝。改为复用loopx.registry.load_registry后,与同文件_storage_import(apply分支) 保持同一解码契约与拒绝语义,若来源丢失或 profile 不兼容则抛出ValueError/ProjectRegistryProtocolError,由 HTTP 外层统一映射为 400/503 错误码。normalize_github_repo_slug/parse_github_pr_target/_github_repo_slug/_normalize(github_pr_evidence.py,steward_monitor.py,chat_action_normalization.py):此前 8 处自行内联了[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+,触发单主仓库规则告警。改动直接导入issue_fix.repository_snapshot._REPO_PATTERN,在 URL/远端模式中先用[^/]+/[^/]+(或[^/#]+/[^/#]+)提取首段,再用_REPO_PATTERN.fullmatch(...)严格校验字符集与单斜杠约束;经对合法 slug、.git后缀、带查询参数 URL、非法空格及多级路径反例验证,正反边界与原语义完全等价。_build_multi_goal_start_selection_packet&_onboarding_decision_instruction(bootstrap_command_pack.py:1364,doubao_model_behavior_actor.py:509):onboarding_entry_semantic_contract原本即要求requested_host_surface取顶层packet.host_surface,而host_surface与activation_method必须取自host_loop_activation。多目标选择包此前省略了host_loop_activation内的这两个键,导致模型在顶层存在"codex-app"时误将其回填进激活面。补齐显式None键并收紧系统提示中“ONLY from activation object, never from top-level host_surface”后,既未修改或弱化onboarding_model_behavior_qualification.py中的任何不变量校验,又在实网 Doubao 2.1 Pro 探测中 12 项语义字段全量对齐。probe_commit_time_selection(scripts/semantic_incident_retrodiction.py:255):此前通过全文检索已退役常量INHERITED_BASELINE_COMMANDS来证明 E07 预合并选中。新探针直接调用build_premerge_validation_gate(changed_files=["loopx/_probe_semantic_guard.py"], execute=False, repo_root=REPO_ROOT)检查examples/semantic-vocabulary-drift-smoke.py是否实际出现在catalog_run.selected_checks且不属于MAINTAINABILITY_RATCHET_SCRIPT,真正验证了当前预合并规划链路的运行时行为而非脆弱的字符串常量。
此外,goal_channel_operation.py 将 _CARD_TEXT_ESCAPE_PATTERN 改写为与 _CARD_TEXT_ENTITIES(13 个字符 &<>"'*~[]()#_)完全对应的静态原始正则字面量以便 AST 折叠检查;goal_instance_binding_inventory_v1.json 更新已迁移的 resume_session 锚点至 loopx/chat/session_open.py::ChatSessionLifecycleMixin.resume_session;文档与 CI 部分恢复了三语 README 被截断的安全边界声明、同步 readme-demo-surface-smoke.py 与 goal-vision-replan-contract-smoke.py 对主干既有文案的断言、补充 IP-030 steward_memory 既有默认关闭配置描述、按 ledger/ 规范迁移 2026-11-19 RFC 检查点并重生成 STATUS.{md,zh-CN.md},同时将 full-public-smokes.yml 调整为 5 分片 × 80(容量 400、实测 358、余量 42 < 80)及 package-smoke.yml 对齐 Node 24。
对主干的风险 / Risks
语义与 CI 对齐
本 PR 不新增状态词汇,全部复用仓库既有单个 owner(reuse_existing):load_registry 复用通用注册表解码与 source_session_v1 拒绝逻辑,_REPO_PATTERN 统一归口 issue_fix.repository_snapshot,goal_instance_binding_inventory_v1.json 与 STATUS.{md,zh-CN.md} 与各自生成器/检查脚本保持精确对齐,.github/workflows/package-smoke.yml 与 full-public-smokes.yml 完全满足 examples/github-actions-runtime-smoke.py、examples/full-public-smokes-workflow-smoke.py 和 tests/test_ci_resource_policy.py 的当前 CI 策略。
负向与隔离边界核查:
PathFinder.find_spec("loopx.cli", search_path)仅扫描loopx.__path__或同目录磁盘路径;对于正常编辑安装或 wheel 安装均能正确判定非 standalone core,且在loopx-core缺失cli.py时回退到发行包元数据检查;唯一的边界前提是不依赖自定义非路径meta_path来伪装提供loopx.cli(符合标准打包设计)。_CARD_TEXT_ESCAPE_PATTERN与_CARD_TEXT_ENTITIES已通过 13 字符全集对比测试,未遗漏任何转义字符;github_pr_evidence.py与steward_monitor.py对含空格、多级路径和非法#的目标均按预期拒绝。- 独立验证执行结果(隔离
HOME/TMPDIR/--basetemp实测):PASS:tests/architecture/test_{goal_instance_binding_inventory,lark_identity_shape_owner,reward_memory_field_vocabulary_owner,semantic_incident_retrodiction,source_session_registry_denial}.py、tests/test_contributing_guide.py、tests/test_ci_resource_policy.py、tests/capabilities/test_performance_diagnosis_cli.py、tests/control_plane/test_{doubao_onboarding_model_behavior_actor,onboarding_model_behavior_qualification,actual_default_model_behavior_portfolio,start_goal_compact_projection}.py、tests/extensions/test_lark_goal_channel_operation.py、tests/test_readme_presentation.py(隔离运行共 518 用例通过,其中 2 项依赖 TypeScript AST 扫描的用例在补齐临时node_modules依赖链接后 5/5 复测通过);另补充运行tests/architecture/test_{chat_action_kind_owner,content_digest_single_owner}.py(265 passed)及tests/test_cli_entrypoint.py(300 passed)。PASS:7 项公开 smoke(examples/control_plane/heartbeat-prompt-smoke.py、examples/public_entry/readme-demo-surface-smoke.py、examples/docs-governance-smoke.py、examples/full-public-smokes-workflow-smoke.py、examples/github-actions-runtime-smoke.py、examples/interaction-pattern-catalog-smoke.py、examples/project/goal-vision-replan-contract-smoke.py)。PASS:scripts/check_rfc_bilingual.py --base origin/main --head HEAD、ruff check(全部改动 Python 文件)、python -m mypy(17 source files)、loopx check --scan-path ...(27 文件无隐私与本地路径泄露)、loopx canary premerge --from-git-diff --git-diff-base origin/main(gate.status="passed",direct_checks=4/4,python_compile=1/1,catalog_canaries=10/10,risk_profile_smokes=8/8,public_boundary=1/1)。PASS:实网 Doubao 2.1 Pro 单轮onboarding_goal_selection_gate探针(next_action: "select_goal",source_aligned: true,semantic_contract_complete: true,safety_violations: [])。
- 明确残留风险与未覆盖项:
tests/control_plane/test_chat_cold_source_import.py长时 HTTP 端到端套件、tests/test_core_distribution.py独立构建loopx-corewheel 安装测试以及除上述 7 个文件外的其余tests/architecture/用例未在本评审会话中全量重跑(本评审以代码路径审计 +load_registry实测source_session_v1拒绝 +canary premerge门禁覆盖相关风险)。未咨询远端 GitHub CI(按 Goal 策略wait_for_ci=false)。
我的整体评价 / Verdict
综合评估精确 head 5f25742873867eb4e4f142327a2685ea8ca3cd27:
- 长程与用户体验影响:
long_horizon为 improved(恢复了source_session_v1冷读取拒绝、_REPO_PATTERN单一 owner、binding_inventory锚点、E07 预合并探针及 400 容量全量公开 smoke 矩阵,未弱化任何守卫);user_experience为 improved(--help不再受隔离导入钩子误伤,三语 README 免责句子与 IP-030steward_memory文档恢复完整,多目标引导门控稳定产出合规结构);visual_review为 not_applicable(本次 27 个改动文件中零apps/或loopx/web/前端界面改动)。 - 代码体量、兼容性与隔离性:净增量极小(+115 / -68 跨 27 文件),全部改动直接消除重复或对齐既有契约,无临时兼容垫片(
compatibility_assessment: retainforPathFinder+host_loop_activationnullable keys),无新默认行为开关或超出 PR 声明的权限语义扩张;所有词汇均复用既有单一 owner(reuse_existing),monorepo-distribution-split-v0检查点已按仓库台账规范迁移且无残留 RFC/CI 债务。 - 合入前说明:虽然 PR 远端
merge_state显示相对新合入的无关benchmark/提交#9151为BEHIND且 GitHubmergeable=MERGEABLE,但无冲突也不影响精确 head 评审结论。作者可在本评审通过后由具备维护者权限的流程执行合入。
English verdict: APPROVE — exact head 5f25742 cleanly resolves the CLI help import boundary, all 5 architecture owner regressions, onboarding_goal_selection_gate host-surface alignment, and 7 public doc/workflow smokes with no blocking findings; independent local pytest suites, all 7 smokes, bilingual RFC checks, ruff/mypy, standard canary premerge, and a live Doubao 2.1 Pro onboarding_goal_selection_gate probe all passed.
* 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]>
Delivery Brief
--helpimport isolation, all 5tests/architecture/*regressions,onboarding_goal_selection_gatehost-surface alignment, and public doc/README/workflow smoke drifts.--helpimport boundary (loopx/cli_runtime.py):_standalone_core()calledimportlib.util.find_spec("loopx.cli"), which triggered customsys.meta_pathfinders duringloopx --help. Switched toimportlib.machinery.PathFinder.find_spec("loopx.cli", search_path)after checkingsys.modules.tests/architecture/*, 5 failures -> 0):loopx/presentation/goal_storage_api.py: Switched_storage_cold_snapshotfrom rawload_project_registrytoload_registrysosource_session_v1denial applies consistently.loopx/semantics/goal_instance_binding_inventory_v1.json: Updated movedresume_sessionconsumer anchor toloopx/chat/session_open.py::ChatSessionLifecycleMixin.resume_session.loopx/extensions/lark/goal_channel_operation.py: Replaced dynamic_CARD_TEXT_ESCAPE_PATTERNregex concatenation with an AST-foldable static regex literal.loopx/capabilities/native_chat/github_pr_evidence.py,loopx/capabilities/native_chat/steward_monitor.py,loopx/chat_action_normalization.py: Reused single canonical_REPO_PATTERNowner fromloopx.capabilities.issue_fix.repository_snapshotacross all 8 slug-matching sites.scripts/semantic_incident_retrodiction.py: Updated E07probe_commit_time_selectionto verify semantic guard selection dynamically viabuild_premerge_validation_gate(...)rather than the retiredINHERITED_BASELINE_COMMANDSconstant.onboarding_goal_selection_gatestability (doubao_actual_default):loopx/bootstrap_command_pack.py: Explicitly included"host_surface": Noneand"activation_method": Noneinsidehost_loop_activationfor multi-goal start selection packets.loopx/control_plane/testing/doubao_model_behavior_actor.py: Clarified thathost_surfaceandactivation_methodcome strictly fromhost_loop_activation/command_pack.host_loop_activation(returningnullwhen omitted/null) rather than copying top-levelpacket.host_surface.tests/control_plane/.full_publicsmokes (7 smokes restored):LoopX is not an autonomous production controller.(and ZH/JA equivalents) inREADME.md,README.zh-CN.md, andREADME.ja.md, and alignedexamples/public_entry/readme-demo-surface-smoke.pywith"multi-agent teams"and the retiredAuto ML Experimentsection.2026-11-19checkpoint out ofdocs/architecture/rfcs/monorepo-distribution-split-v0.{md,zh-CN.md}intodocs/architecture/rfcs/ledger/monorepo-distribution-split-v0/and regenerateddocs/architecture/rfcs/STATUS.{md,zh-CN.md}..github/workflows/full-public-smokes.ymlto keep all 5 shards (0..4) withSHARD_LIMIT: "80"(capacity=400,inventory=358,42 < 80) satisfying bothexamples/full-public-smokes-workflow-smoke.pyandtests/test_ci_resource_policy.py.node-version: "24"in.github/workflows/package-smoke.yml.steward_memorydefaults indocs/concepts/interaction-pattern-catalog.md(IP-030).examples/project/goal-vision-replan-contract-smoke.pyto match the updated repair wording inskills/loopx-self-repair/references/repair-patterns.md.benchmark/PRs; does not touchdocs/product/releases/v2.4.0.md. Pure revertible fix PR; leaves unrelated workflows and guards intact without relaxing assertions.Acceptance & Verification Evidence
uv run --extra test python -m pytest -q tests/architecture/— 1897 passed (in 317.78s).tests/test_cli_entrypoint.py— 300 passed (in 205.68s).tests/capabilities/test_performance_diagnosis_cli.py,tests/control_plane/test_doubao_onboarding_model_behavior_actor.py,tests/control_plane/test_onboarding_model_behavior_qualification.py,tests/control_plane/test_actual_default_model_behavior_portfolio.py,tests/control_plane/test_start_goal_compact_projection.py,tests/extensions/test_lark_goal_channel_operation.py,tests/test_readme_presentation.py,tests/test_kiro_cli_host_surface.py— 246 passed (in 287.27s).tests/test_steward_pr_merge_and_review_signal.py,tests/test_native_steward_monitor.py,tests/test_steward_generic_monitor_todo.py,tests/control_plane/test_compact_identifier_shape_owner.py,tests/control_plane/test_chat_cold_source_import.py,tests/control_plane/test_source_cli_entrypoint.py— 297 passed (in 916.74s).tests/test_contributing_guide.py,tests/test_ci_resource_policy.py,tests/test_capability_code_maps.py,tests/test_license_metadata.py— 165 passed (in 5.37s).examples/control_plane/heartbeat-prompt-smoke.pyexamples/public_entry/readme-demo-surface-smoke.pyexamples/docs-governance-smoke.pyexamples/full-public-smokes-workflow-smoke.py(inventory=358 capacity=400)examples/github-actions-runtime-smoke.py(Node 24 primary, 22.22.3 minimum and SQLite/authority reference, 26 forward)examples/interaction-pattern-catalog-smoke.pyexamples/project/goal-vision-replan-contract-smoke.pyDOUBAO_2_1_PRO_MODEL): 2/2 passed ononboarding_goal_selection_gate(next_action: select_goal,source_aligned: true,safety_violations: []).ruff check(modified modules + tests/canary/control_plane/presentation) — passed (0errors).uv run --extra test python -m mypy— passed (0issues across 17 source files).uv run --extra test python scripts/check_rfc_bilingual.py --base origin/main --head HEAD— passed.uv run --extra test loopx canary premerge --from-git-diff --git-diff-base origin/main --format json—gate.status="passed",direct_checks=4/4,python_compile=1/1,catalog_canaries=10/10,risk_profile_smokes=8/8,public_boundary=1/1(loopx check --scan-path ...0failures).cqr_d77036cc029d7e7685e0(status=valid,decision=pass,scope_fingerprint=d77036cc029d7e7685e03ad6eb4111e5008a1345f97ed11a901b11b502168648).