Skip to content

refactor(plugin): 归还 KVCache 命令所有权 - #3

Closed
kachofugetsu09 wants to merge 1 commit into
mainfrom
codex/observe-kvcache-command
Closed

refactor(plugin): 归还 KVCache 命令所有权#3
kachofugetsu09 wants to merge 1 commit into
mainfrom
codex/observe-kvcache-command

Conversation

@kachofugetsu09

Copy link
Copy Markdown
Member

变更

  • 由 Observe 插件声明 /kvcache 和兼容别名 /cache_status
  • 插件自行读取 observe/observe.db、解释 schema 并渲染回复
  • Core 仍只提供通用 BeforeTurn module 接入点,不引入 Observe 领域模型
  • 补齐真实 SQLite 查询、缺库和别名测试
  • 为当前 Core 的任务启动能力合同补齐既有测试上下文

迁移边界

这是跨仓库迁移的第一半,不能单独进入发布锁:

  1. 本 PR 先让 Observe 接管命令实现
  2. 后续 status_commands PR 删除 KVCache 职责并迁移纯内存状态能力到 v3
  3. 最终只锁定经过组合回归的插件版本

过渡期两个 BeforeTurn module 都会在已有 session:ctx 时短路,不会产生两份回复;Telegram 命令目录在精确版本锁切换前可能重复,因此本 PR 保持 Draft。

验证

  • Observe 插件测试:15 passed
  • 新旧实现差分:7 cases passed(主命令、别名、limit、非法 limit、clamp、缺库、损坏数据库)
  • v2 静态合同:passed,SHA-256 2300dc1badf31a5be8565c6600eaf87f3b9b3a61e5e976c338a046bf59f1ba38
  • basedpyright:新模块 0 errors / 0 warnings;plugin.py 0 errors / 26 个基线既有 warnings
  • compileall:passed
  • git diff --check:passed

@kachofugetsu09

Copy link
Copy Markdown
Member Author

当前 main 已是 pure-v3;本 PR 重新引入 v2 KVCache/BeforeTurn 路径,与已接受的 breaking migration 合同冲突,因此不合并并关闭。

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