Uh oh!
There was an error while loading. Please reload this page.
feat(runtime-host): preserve Agent Graph history across revisions - #2039
Merged
Conversation
M4n5terforce-pushed
the
feat/runtime-host-agent-graph-revisions
branch
from
August 3, 2026 23:57
04380b7 to
2c885bfCompareM4n5ter
marked this pull request as ready for review
August 4, 2026 00:33
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
\n\n## Summary\n\n- Allow Session revisions to retain verified terminal Agent Graph child, Run, and Artifact references.\n- Keep the source Graph authority unchanged while the new revision starts with an independent empty Graph.\n- Reject ordinary branches, live Graph state, and incomplete or inconsistent linked provenance.\n\n## Behavior\n\nA completed Agent Graph result remains readable after edit-and-resend without cloning, reparenting, or restarting its child Sessions. The Host validates Graph lifecycle state and each linked Run and Artifact before preserving those historical references. Revision-family lifecycle operations continue to retain the physical child owners.\n\n## Validation\n\n- Runtime Host: 616 tests passed\n- Runtime Agent Graph and conversation-copy focused tests: 17 tests passed\n- Workspace typecheck and lint passed\n- Real two-client UDS revision, restart, and lifecycle regression passed\n\nPart of #1167 and #853.\n\n中文
\n\n## 概要\n\n- 允许 Session revision 保留经过验证且已终态的 Agent Graph child、Run 与 Artifact 引用。\n- 保持源 Graph authority 不变,新 revision 使用独立且为空的 Graph。\n- 对普通 branch、仍在运行的 Graph,以及缺失或不一致的关联 provenance 直接拒绝。\n\n## 行为\n\n完成后的 Agent Graph 结果在 edit-and-resend 后仍可读取,同时不会复制、重新归属或重启原有 child Session。Host 会先验证 Graph 生命周期,再逐项验证关联 Run 与 Artifact,之后才保留这些历史引用。Revision family 的生命周期操作仍会保留实际拥有这些引用的 child。\n\n## 验证\n\n- Runtime Host:616 项测试通过\n- Runtime Agent Graph 与 conversation-copy 定向测试:17 项通过\n- Workspace typecheck 与 lint 通过\n- 真实双 Client UDS revision、重启与生命周期回归通过\n\n属于 #1167 与 #853 的一部分。\n\n