refactor: isolate task-store sdk compat and terminal immutability#464
Merged
liujuanjuan1984 merged 5 commits intomainfrom May 3, 2026
Merged
refactor: isolate task-store sdk compat and terminal immutability#464liujuanjuan1984 merged 5 commits intomainfrom
liujuanjuan1984 merged 5 commits intomainfrom
Conversation
Collaborator
Author
|
已补上剩余风险收口:新增直接对照当前 相关提交: |
Collaborator
Author
|
已补上剩余风险收口:新增直接对照当前 a2a-sdk / 语义的 parity tests,专门用于在 SDK 语义漂移时提前失败。相关提交:。 |
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.
Summary
task persistence对a2a-sdk形状的依赖:新增task_store_sdk_compat.py,集中封装DatabaseTaskStore的 schema 校验、SDK shape assertion、atomic save 与 authoritative reload。task_store.py中分散的 SDK 依赖,让主文件只保留 terminal write policy orchestration。_from_orm()、直接对照当前a2a-sdk_to_orm()/_from_orm()语义的 parity tests、streaming 最终 artifact 先于 terminal status 发出,以及 persisted terminal snapshot 已包含最终 artifact 与 usage metadata。Validation
bash ./scripts/doctor.shIssue Relation
Review Notes
#446的目标是隔离 task persistence 热路径对a2a-sdk内部/半内部形状的耦合;本 PR 通过 compat 层集中承接该风险,并用 parity tests 约束当前 SDK 语义漂移。#444的目标是把 terminal task immutability contract 显式化并用测试固化;本 PR 已在 coordinator、task-store policy 与英文文档中同步收口。