feat(runtime-host): own Deep Research state - #2099
Merged
Merged
Conversation
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.
English
Summary
deep-research.queryClient operationRuntime contract
The Runtime Host now opens the canonical Deep Research Store and serves model mutations through a Session-scoped coordinator. The coordinator owns the durable ledger, constrains Artifact access to the same Session and the
deep_researchsource, and publishes a bounded Client projection that remains stable across Client reconnects and Host restarts.Deep Research mode uses an explicit tool allowlist. It does not inherit arbitrary
deep_research_*tools, and the Host prompt only advertisesExploreAgentwhen that tool is actually present in the projected surface. Branch and revision operations fail closed until an exact research-ledger copy boundary exists.Session removal purges the research ledger through the same authority lifecycle. The wire result uses its final JSON-encoded size as the budget and deterministically trims only optional projection fields.
Validation
git diff --check中文
概要
deep-research.queryClient 操作运行时契约
Runtime Host 现在会打开 canonical Deep Research Store,并通过 Session-scoped coordinator 执行模型侧 mutation。该 coordinator 负责 durable ledger,将 Artifact 访问限制在同一 Session 与
deep_researchsource 内,并发布有界的 Client 投影;Client 重连或 Host 重启后,投影仍保持一致。Deep Research 模式使用显式工具 allowlist,不会自动继承任意
deep_research_*工具。只有最终投影工具面中确实存在ExploreAgent时,Host prompt 才会声明该能力。在具备精确 research-ledger copy boundary 之前,branch 与 revision 操作会 fail closed。删除 Session 时会通过同一 authority lifecycle 清理研究 ledger。Wire result 以最终 JSON 编码大小作为预算,并且只会确定性裁剪可选投影字段。
验证
git diff --check