docs: 调研分支引用消息、来源回跳与缓存边界 - #54
Open
hifizz wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
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.
概要
本 PR 严格基于
codex/feat-agent-observability-evaluation@48483101ad11bc84b611b615f423577633fedacb,新增一篇面向产品经理和方案决策者的 Research 调研文档:docs/thread-reference/01-research.md研究问题是:用户在 Thread A 划选 AI 回复、输入问题并创建 Thread B 后,B 的第一条用户消息应该怎样携带引用和来源信息,如何点击回到 A 的原 Message 并高亮,同时如何避免具体引用提前进入 System Prompt、破坏分叉前共同历史缓存。
核心结论
推荐将 B1 设计为一条包含两类内容的用户消息:
职责边界:
fork*字段仍是分支拓扑的权威来源,B1 引用是创建时的不可变引用快照;调研内容
文档按照 Research skill 的方式组织,包含:
代码基线发现
当前项目已经具备大部分基础:
data-quote;当前主要缺口是:创建 B1 时仍只写普通问题文本,而具体
anchorText仍被拼入 System Prompt,已有能力尚未连接成完整引用链路。范围边界
这是 Research 文档 PR:
@Thread;依据
convertToModelMessages文档;核验
codex/feat-agent-observability-evaluation48483101ad11bc84b611b615f423577633fedacbcodex/research-thread-quote-provenance5e2c36d7a75131111bb3d26137a50efc0dfeac74docs/thread-reference/01-research.md;