test(repair): §5.2(a) 模型在环修复实验 —— 锚点消融:anchor 100%(20/20) vs plain 85%,≥80% 目标达成
- tests/repair_experiment.rs:真实消费 validate → repair_targets → 模型行编辑 → repair_apply(越界必拒) → 复验 的完整闭环(≤2 轮;容错重试;cflmy @ llm.cflmy.cn,.env 读取,#[ignore] 不进常规回归) - 双臂消融:anchor(诊断带 doc_anchor/doc_quote/suggestion)vs plain(剥掉)—— anchor 一轮修复 20/20=100%;plain 17/20=85%(3 例失败均为网络空体抖动) - tests/common/mod.rs:golden 20 例与诊断/应用共享件抽出(repair_loop + experiment 同源) - parse_edits 容错(数组/单对象/字符串化元素/围栏);越界必拒/abstain 由 repair_loop 硬断言覆盖 - 报告:doc/roadmap/repair-experiment-2026-09-22.md;.gitignore 补 .env(密钥不入库) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
81d26a265a
commit
224b3d4a66
6 files changed
+837
-290
No files matched your search
@@ -84,3 +84,6 @@ plugins/*/tmp/
|
||||
|
||||
# ephemeral sqlite / test artifacts
|
||||
tests/ext/:memory:
|
||||
|
||||
# local secrets
|
||||
.env
|
||||
Reference in new issue
Block a user