Skip to content

[codex] remove plugin v2 compatibility - #533

Merged
kachofugetsu09 merged 1 commit into
mainfrom
codex/pure-v3-zero-compat
Sep 2, 2026
Merged

[codex] remove plugin v2 compatibility#533
kachofugetsu09 merged 1 commit into
mainfrom
codex/pure-v3-zero-compat

Conversation

@kachofugetsu09

Copy link
Copy Markdown
Owner

问题与结果

  • 解决的问题:Core 与插件仓库仍保留 V2 phase 注入、对象式 apply、EventBus 桥、package 分组和 candidate shared-read 壳。
  • 用户可见结果:插件扩展面只接受 V3 module apply(ctx, config) 与 V3 原子能力;旧入口 fail-loud。
  • 本 PR 不处理:已禁用但仍为 V3 的 marketplace artifact GC;外部插件功能重构。

Change intent

  • change_typerefactor
  • semantic_deltabreaking
  • capability_ownercore
  • consumer_scope:Core lifecycle、builtin 插件、所有已安装 external V3 插件
  • runtime_patchrequired
  • runtime_patch_reason:线上 Core 必须激活本提交,才能删除 runtime 兼容壳
  • authoritative_state_owner:hua-home active release 与 /srv/data/services/akashic/state/plugin-home
  • client_only_alternative:不适用
  • concept_gaterequired
  • concept_gate_reason:改变公共插件扩展边界、candidate 数据隔离和 lifecycle 控制流
  • 关联不变量:插件只有一个 V3 入口;candidate 不取得正式 plugin-data;领域事实只由 typed owner 发布
  • protected_state:正式 workspace、plugin-data、sessions.db、外部效果
  • 允许的副作用:删除未引用的 V2 artifact/旧 workspace MCP;同步 hua-home plugin-home 到开发机只读镜像
  • 禁止的副作用:从开发机反向同步服务端;删除 disabled V3 rollback artifact;改写正式业务数据

改动范围

  • 主要文件:agent/plugin_composition/**agent/plugins/**、lifecycle phases、builtin plugins、V3 文档与 contracts
  • 配置或迁移影响:[packages]candidate_data_mode 和对象式 plugin ABI 现在被拒绝;fresh workspace 不再创建旧 MCP 目录
  • 已知 schema lineage 与最终 schema identity:没有数据库 schema 变化;仅删除无生产者的 candidate read-only 分支
  • 协议 source、runtime、provider 与 scenario 的不可变 revision:commit fe93473f;Gate plan 1af966d81bc0bc2299a1963150471d5d721c216ac181128c78076e23f3efd5bb
  • 回滚方式:Git revert 本提交;线上 release 使用 akashic-release 回切;实机清理恢复包见运维记录

验证

  • 相关 targeted tests 已通过(最终聚焦 104 passed;此前 V3 聚焦 271 passed)。
  • Python 类型检查已通过:全仓 pyright 0 errors;compileall 通过。
  • python docker/debug/gate.py run --base origin/main 已运行并通过:20260902-183141-345b3b9c
  • 全量 pytest:3233 passed, 6 skipped。
  • hua-home 同步 fleet 静态 Gate:40 external artifacts,non-V3=0。
  • sourceDigest2e88d68cb2ff7747dbf5cf96c3bcf8a330af97da4d74053c4183cb5f7cd5bca1
  • planDigest1af966d81bc0bc2299a1963150471d5d721c216ac181128c78076e23f3efd5bb
  • 真实设备证据:不适用;合并后在 hua-home 做 exact-release 部署与运行复核
  • 未运行项与原因:无

正交性与概念完整性

  • 是否属于架构性 PR 或大改动:yes
  • 独立 reviewer / model / reasoning:pure_v3_concept_gate / gpt-5.6-terra / xhigh
  • 审查 head:fe93473f 对应的冻结源码树
  • 新增概念及其唯一 owner;没有时写 nonenone
  • 无关设计轴的变化传播;没有时写 nonenone
  • 最短正常/失败/热更新链路:V3 module → validated adapter → callable Fiber;非法 V2/object/package 字段在边界 fail-loud;candidate 始终复制后验证
  • legacy/source-specific 残留扫描:phase module、EventBus bridge、package shell、shared-read mode、object apply ABI 均无生产 consumer
  • must-fix 及处置证据:删除 Context.data_access/read_only;公开 mount 只接 callable;最终复核 P0/P1 清零
  • 最终结论:pass

工作手册

  • 已核对 projectneed.md、相关决策和 NOW.md
  • 长期语义变化来自用户明确要求的 V3-only、零兼容目标。
  • 跨仓库或客户端改动不适用。
  • 当前没有对应 NOW 事项。

@kachofugetsu09
kachofugetsu09 merged commit 9f30b07 into main Sep 2, 2026
8 checks passed
@kachofugetsu09
kachofugetsu09 deleted the codex/pure-v3-zero-compat branch September 2, 2026 10:48
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