[codex] 迁移 Citation 到组合 API - #2
Merged
Merged
Conversation
This was referenced Aug 14, 2026
7 tasks
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.
目标
把 Citation 的 prompt、回答预处理、持久 metadata 与 cleanup 行为迁到 v3 组合 API;本层暂留 v2 phase 实现,只作为同文件差分 oracle。后续清理 PR 会物理删除 v2。
依赖 Core kachofugetsu09/akashic-agent#438 及其 stacked 前置 PR。
实现
api_version = 3、name、version、inject、apply(ctx, config)AfterReasoningCtx.persist_assistant_metadatacitation.protocolService,Core 无 Citation 特判CitationPlugin和 phase modules 仅保留到下一层清理 PR行为等价
§cited提取、meme tag 暂留、inline memory ref 清理相同recall_memorytool-chain fallback 相同cited_memory_ids相同精确依赖
a047470a39d4f7d2e6be1d2a8e2824916d52fad14dd69dd621e029e51e99aa428443fa3a4ec1f6cf验证
6 passedapi_version=3、entrypoint=module,同时校验迁移期CitationPluginPluginManager从 source 副本加载为ComposablePlugin: passed0 errors(现有 v2/stub 路径有 70 warnings)git diff --check: passed恢复点
backup/citation-v3-before-current-core-202608167527251b88c7530b20685f38b5dbab6107fc1f5b