Repository navigation
refactor: remove dead code and harden release supply chain (#544) - #545
Merged
Merged
Conversation
Closed
liujuanjuan1984
marked this pull request as ready for review
October 25, 2026 04:34
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.
概要
完成依赖审计与发布供应链的仓库内加固,不改变 A2A 运行时行为。
主要变更:
v*tag。# frozen:tag。a2a-sdk、运行时框架、常规工具/传递依赖、GitHub Actions、pre-commit 和构建依赖,并增加 cooldown。build-requirements/requirements.txt,由独立 pip ecosystem 维护并用于 hash-locked PEP 517 构建。SHA256SUMS。sse-starlette从 3.5.0 升级到 3.5.1。审查收敛
本轮独立审查发现并修复:
# frozen:时,Dependabot 会跟踪默认分支 HEAD;现改为固定稳定 tag 语义。死代码审查
使用仓库 thin-wrapper 报告、静态引用搜索、测试覆盖与 Git 历史交叉验证后,确认并删除:
_rest_error_response、相关常量和对应测试。build_task_store、unwrap_task_store以及仅供测试装配使用的 task-store 薄壳函数。JSONRPCErrorResponse模型;测试改用测试支持对象。ExtensionMethodRegistry.methods()投影;测试改为验证实际运行时resolve()路径。动态路由、SDK 回调、抽象仓储接口、协议发现、扩展协商和兼容性元数据均保留,因为它们属于应用层或接入层边界。
验证
./scripts/doctor.sh:通过,832 项测试通过,覆盖率 92.76%。actionlint 1.7.12校验通过。uv lock --check、pre-commit、mypy、wheel/sdist 构建与安装后 smoke test 全部通过。兼容性与风险
管理员后续项
以下仓库级设置需要 org/repo admin,本次按要求未修改:
main启用分支保护、必需检查和禁止 force push/delete。Closes #544
Related: #542, #536