docs(openspec): 收紧当前 Thread 引用并定义低成本 Prompt Cache 架构 - #49
Open
hifizz wants to merge 186 commits 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: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
hifizz
changed the base branch from
codex/feat-agent-observability-evaluation
to
codex/research-project-workspace-design
September 1, 2026 03:34
hifizz
changed the base branch from
codex/research-project-workspace-design
to
codex/feat-agent-observability-evaluation
September 1, 2026 03:36
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@2f3024747ddb72e1e69aa916cb45addb7140f6abcodex/design-thread-chat-prompt-cache@7561193844f5364f74ac071ae8379dada8a9ef84本轮进一步收紧了 Quote 范围:v1 不支持任意跨 Thread、跨分栏或
@Thread引用。统一流程只覆盖:
Fork 的父 Thread 选区会自动成为新 Thread 第一轮的
branch-originQuote。它是 Fork 拓扑的服务端派生数据,不代表系统支持把任意 Thread 内容加入另一个 Thread。已确认产品决定
completedassistant Message;generating / stopped / failed全部禁止。sourceThreadId;服务端加载来源实体并验证它属于目标 Thread。@Thread引用留到独立 change。缓存与 Claude 成本目标
缓存与模型线路不再要求用户做技术选择,统一采用:
真实总成本包括:
目标 Prompt 顺序
具体 Quote 正文位于当前 User;具体 Anchor 不再进入前置 System Prompt。
以下信息永远不发送给模型:
三个 OpenSpec Capability
thread-chat-message-quotes定义:
thread-quote-v1Parts;thread-chat-quote-composer定义:
@Thread;具体 React 组件、富文本技术、视觉样式、拖拽、来源跳转和 Draft 持久化留到下一阶段前端 Research。
thread-chat-prompt-cache定义:
off / observe / enabled渐进发布。数据与后端合同
MessageSelectionInput只提交sourceMessageId + TextAnchor。ArtifactSelectionInput只提交artifactId + TextAnchor。messages.partsJSONB 继续是 Quote Snapshot 的唯一事实源。threadsFork 字段继续是分支拓扑事实。MessageDTO.quotes、不执行数据库迁移。quoteContentToModelText()/quoteTextToModelText()使用版本化确定性 JSON 格式。compilePromptBase()+finalizeGenerationPrompt()保护 inherited / branch history。ResolvedChatModel暴露真实 Adapter、Gateway、upstream、routeId 与缓存能力。文件
范围边界
验证
7561193844f5364f74ac071ae8379dada8a9ef84