Repository navigation
feat: 建立异步 Harness 和统一工具授权 - #7
Merged
Merged
Conversation
This was referenced Oct 11, 2026
Merged
Merged
ZhuLinsen
marked this pull request as ready for review
October 11, 2026 13:37
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.
建立实例独立的异步 Harness,让工具通过统一验证和授权入口执行,并让插件拥有可回滚、可清理的资源作用域。
改动
静态依赖排序、Scope 服务/工具/事件注册、激活失败回滚与逆序清理;运行中禁止插件变更。文件工具约束 workspace,Shell 支持授权、超时和取消清理。Python 基线提升至 3.11,打包入口统一到 pyproject.toml。
验证
198 tests passed at this stage;四组 CI 全部通过,覆盖实例隔离、回滚、循环依赖、Schema、拒绝执行、越界路径和 Shell 清理。
官方 Python 物理行数 4007 → 4365。复现:python -m pytest tests -q;python scripts/source_stats.py。
兼容、边界与回滚
Python >=3.11 是兼容变化。Shell、任意 Python 插件和 MCP 是可信代码,不是沙箱。自动依赖恢复已明确暂缓。
本项为 2/6,base 为 main(#6 已合并,目标树一致)。取消后的完整消息配对与不确定结果守卫由 #11 补齐;中间阶段不单独作为稳定发布。
按 #6 → #7 → #8 → #9 → #10 → #11 合入,优先 merge commit;squash 后必须重设后续 base。回滚时逆序 revert 本项及后续依赖;不触发 tag。