Add Skills-based sandboxed code review agent example#141
Open
xyxhhhhh wants to merge 3 commits into
Open
Conversation
199ce9f to
6bc0a24
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #141 +/- ##
==========================================
Coverage ? 87.72548%
==========================================
Files ? 467
Lines ? 44018
Branches ? 0
==========================================
Hits ? 38615
Misses ? 5403
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6bc0a24 to
a6f0895
Compare
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.
概述
Resolves #92
基于 Skills、沙箱执行、Filter 治理和 SQLite 持久化,新增自动代码评审 Agent 原型,把 diff 解析、规则审查、沙箱检查、结构化finding、脱敏、落库、监控审计和报告输出串成可测试链路。
主要变更
examples/skills_code_review_agent/示例目录--diff-file、--patch-file、--repo-path、--file-list、--fixturereview_report.json和review_report.mdskills/code-review/SKILL.md、规则文档、Filter policy、沙箱脚本和 scanner probelocal仅作为显式开发 fallbackdeny/needs_human_review决策会写入报告和数据库,且不会进入沙箱执行ReviewStore.from_url(),默认支持 SQLite,并保留 SQL 后端扩展点关于 Skill 和沙箱链路
主审查流水线使用确定性规则引擎和沙箱 request 编排来保证 dry-run 可重复、无模型 Key 可测试。同时提供
--skill-smoke,会真实调用 SDK 的skill_load(skill_name="code-review")和skill_run执行 Skill 脚本,用于验证示例内 Skill 可被 tRPC-Agent 原生工具链加载和运行。Container runtime 已通过 Docker smoke 测试验证。Cube/E2B 部分提供 workspace runtime adapter/factory 和 mock 级测试,用于说明远端沙箱接入边界。
验证
示例测试:
结果:
Fixture 评测:
结果摘要:
Container smoke:
结果:
全量测试:
结果: