[codex] 精简测试与插件 v3 Gate - #535
Merged
Merged
Conversation
kachofugetsu09
marked this pull request as ready for review
September 2, 2026 14:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
结果
测试选择原则
保留现实可观察回归、非平凡不变量/边界和具体 bug:Session 只追加、Turn finality、跨 session 并发、plugin generation/lease/promotion/rollback、Mobile/Web ingress、外部 schema、附件、游标、durable delivery、不可逆迁移、backup/restart/MCP recovery、Shell/Tool 权限与进程边界,以及 semantic P0 mutant/oracle。
删除实现 helper/slot/wiring 镜像、常量和 mapping 枚举、重复 adapter/provider 排列、无持续 absence 合同的历史过渡面、专项 benchmark/性能/部署演练,以及已被更高层行为 finality 覆盖的下游测试。完整理由、放弃粒度和恢复点见
docs/refactor/test-gate-cleanup-ledger.md。scripts/check_test_budget.py强制 Python 必须恰好 1080,并校验保留清单与实体文件完全一致;Web runner强制 Node 必须恰好 62。Docker / CI Gate 的代码演进依据
保留:
change-impact-gate:2026-07-18 后成为按 diff 选择 P0 场景、未知映射 fail closed 的单一语义 ownerplugin_v3_fleet_gate.py:固定 18 个锁定插件来源、v3-only API、当前 Core export compatibility 和 retired exclusionplugin_v3_mobile_gate.py:验证用户可见 Mobile catalog / JS ABIplugin_passive_webui_v3_e2e.py:穿过真实 Gateway、WebSocket、SessionDB、媒体和 Dashboard删除:
plugin_v3_e1_gate.py:2026-09-02 Core 删除 v2 compatibility 后,锁定 Emotion 仍导入已删除的CoreEvent;它固定历史 API,不是当前产品回归plugin_v3_e2_gate.py:同一演进后,锁定 Calendar 仍导入已删除的PROACTIVE_COMPONENTSplugin_v3_e4_gate.py:硬依赖已失效 E1 和仓库中没有 runner 的 E3,无法形成可执行发布合同plugin_composition_v3_gate.py:只有历史文档调用者,重复固定 Tool/plugin snapshot 排列not_run的 E1~E4 catalog:删除无观测价值的占位数据plugin_passive_composition_v3_gate.py不再有独立 CLI,但公共 WebUI runner 有真实 import,保留为 exact source、装配和摘要 helper。clean-head 实测发现该依赖后已恢复,没有复制 helper。Terra 复审发现旧 fleet lock 对已删除 Core export 会产生静态假阳性。本 PR 已把 Calendar、Emotion、Observe、Feed、Fitbit、Steam 推进到各自当前正式
main的精确 SHA,Mobile 同步相关三项,并新增生产源码from agent.* import ...逐符号 fail-closed 检查;旧CoreEvent/PROACTIVE_COMPONENTS锁会被拒绝。验证
python_files=72 python_tests=1080 node_files=41075 passed, 5 skipped(155.87 秒)62 passedgit diff --check:通过b042fc4c:Fleet、Mobile、公共 WebUI 三条保留候选 Gate 全部通过;WebUI 报告绑定同一 head 且 cleanup/source unchangedf0363418f6481ddc2baaa56360ecec0aa4af376bf02e0ce67aeac048305055c8b042fc4cc895b64da670d95a490ce58fc1feb646的check-and-test与change-impact-gate全绿恢复
/mnt/data/akasic-agent-backups/test-gate-one-third-20260902-before-clean/pre-hard-budget-71b27f5b.bundle78c213310dc94c8ee5a16da65f8dd25c4dc0078aab7bb965cb772b91001ed7f5