refactor: unify runtime/security/todo/subagent paths#414
refactor: unify runtime/security/todo/subagent paths#414phantom5099 merged 18 commits into1024XEngineer:mainfrom
Conversation
|
/simplify 顺便解决CI冲突 该分支存在冲突,必须解决 docs/tools-and-tui-integration.md |
处理结果已处理该 PR 的冲突问题并推送到同一分支
验证已执行: 未执行
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
@xgopilot 提高覆盖率到95% |
|
已完成覆盖率补齐并推送到当前 PR 分支 本次完成
验证结果
说明
|
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Cai-Tang-www <106404101+Cai-Tang-www@users.noreply.github.com>
|
/simplify |
完成情况已按要求读取历史评论并处理仍未解决的 review comments,随后执行了 code-simplifier 子代理复查并完成提交推送。 本次修复
测试与简化
提交与推送
|
- return changed=false when todo snapshot reload fails after patch write - guard git read-only sensitive/private-key targets with ask/deny policy - add regression tests for both paths Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Cai-Tang-www <106404101+Cai-Tang-www@users.noreply.github.com>
|
@xgopilot 对这个Pr进行严格的审查,包括安全风险和其他不合理的地方等等,直接给出我结果 |
|
@xgopilot 采取合适的方案解决冲突,不要应急式补丁 |
|
@xgopilot 先解决冲突,同时上调DefaultMaxTurns至40 |
完成情况已按你的要求完成两部分工作,并已推送到当前 PR 分支 本次处理
验证
提交与推送
未执行项:未做与本次请求无关的额外重构。 |
…default Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: phantom5099 <245659304+phantom5099@users.noreply.github.com>
# Conflicts: # docs/guides/configuration.md # internal/config/loader_test.go # internal/runtime/run.go # internal/session/sqlite_store_additional_test.go # internal/session/todo.go # internal/session/todo_test.go
|
@xgopilot 批判性review整个PR,分析所有潜在风险点,找出所有漏洞,确保每个地方的修改不是退步的,方案上的设计也不能碎片化,更不能妥协式兼容或兜底旧代码,不许输出正向表扬 |
|
@xgopilot 批判性review整个PR,分析所有潜在风险点,找出所有漏洞,确保每个地方的修改不是退步的,方案上的设计也不能碎片化,更不能妥协式兼容或兜底旧代码,不许输出正向表扬 |
|
/review |
|
/simplify |
完成情况已按触发评论执行:读取历史评论并处理未解决 review 点,然后调用 处理结果
未执行
|
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Cai-Tang-www <106404101+Cai-Tang-www@users.noreply.github.com>
|
/review |
变更摘要
本 PR 聚焦于 Runtime / Security / Todo / SubAgent 的重构收敛,保持主链路行为不变。
1) Security 策略收敛
bash_git_read_only调整为默认allow(只读 Git 语义放行)2) Todo / Session Legacy 清理
todo_write的 legacytitle -> content兼容路径content)agent3) Runtime / Config 强化
runtime.max_turns(默认20),防止异常场景无限循环max_no_progress_streak默认值由3提升到5memo.max_index_lines兼容映射,改为显式迁移提示到memo.max_entries4) SubAgent 调度器重构
提交拆分
dda052brefactor(security): allow git read-only semantic class by defaultc034aecrefactor(todo): remove legacy title/executor compatibility pathsfb38790refactor(runtime): enforce max turns and tighten config defaults93d01bfrefactor(subagent): centralize todo patch writeback handling验证
go test ./...go vet ./...兼容性说明