Skip to content

fix: bind citation to phase-owned turn events - #4

Closed
kachofugetsu09 wants to merge 1 commit into
codex/citation-v3from
codex/citation-v3-events
Closed

fix: bind citation to phase-owned turn events#4
kachofugetsu09 wants to merge 1 commit into
codex/citation-v3from
codex/citation-v3-events

Conversation

@kachofugetsu09

Copy link
Copy Markdown
Member

结果

把 Citation 从已移除的集中式过渡事件常量迁移到按 Turn stage 拆分的 leaf contracts;事件名称、payload、serial mode 和触发位置不变。

  • Prompt:turn.prompt_render.after_event_bus
  • cited ID 提取:turn.after_reasoning.before_event_bus
  • 残留标签清理:turn.after_reasoning.before_persist
  • 保留 API v2 phase modules 作为同输入对照

等价证据

  • v2/v3 Prompt section 相同
  • 最终 reply 与 cited_memory_ids 相同
  • Root writes/external effects 均为空
  • listener/service 在 dispose 后清零
  • 真实 PluginManager topology 绑定三个 exact event name
  • 本地 6 passed;API v3 静态合同通过;Basedpyright 0 errors

CI 固定组合:

  • Core:kachofugetsu09/akashic-agent@435bbaf1e6f777951b4622702d7a7796665ed67a(Draft PR #413)
  • Plugin contracts:akashic-plugins/plugin-contracts@4dd69dd621e029e51e99aa428443fa3a4ec1f6cf
  • Citation:b2941ee

边界与回滚

  • base 为 Citation Draft PR [codex] 迁移 Citation 到组合 API #2 的 head codex/citation-v3@7527251
  • 不改变 Citation 正则、fallback、metadata schema 或持久化 owner
  • 不安装到正式 runtime,不写正式 workspace/plugin-data
  • 回滚:revert 本 PR,或回到 backup/citation-v3-events-before-20260814@7527251

@kachofugetsu09

Copy link
Copy Markdown
Member Author

此中间层依赖已经退役的 agent.turn_events.*。当前 Core 的 phase-owned typed events 已直接进入更新后的 #2,v2 物理删除由重新叠放的 #3 完成,因此本 PR 被 #2 + #3 取代。旧 head 仍由 backup/citation-v3-events-before-current-core-20260816 保留。

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