Commit 2d22e54
committed
fix(cr-agent): PR#201二轮审查(_conclusion覆盖warnings桶+_bounded_int参数收紧)
Critical(static_review stdin)=误判, 未改动:
当前 static_review.py main() 已是 diff_content=sys.stdin.read() 正确读 diff,
全目录 grep file_list_input/file_paths 零匹配, reviewer 引用代码不存在(版本差异).
test_static_review_script_executable(input=diff) 通过, returncode=0 且输出含 findings.
2 Warning:
- _conclusion 只检查 findings 桶, 遗漏 warnings 桶(HIGH confidence=0.75 进 warnings
只得 needs_human_review) → 覆盖 findings+warnings 两桶
- _bounded_int env未设置返回 default(timeout参数) 未收紧, 调用方可绕过上限
→ 返回 min(default, max_val)
加测试: test_11_conclusion_warnings_bucket_high + test_bounded_int_default_capped_to_max
验证: flake8 全绿 + 192 测试全过1 parent fa8b04c commit 2d22e54
4 files changed
Lines changed: 42 additions & 4 deletions
File tree
- examples/skills_code_review_agent
- agent
- sandbox
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
320 | 345 | | |
321 | 346 | | |
322 | 347 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| |||
0 commit comments