feat(repair): T3.3 修复护栏 + golden 20 例 —— 机械护栏(有界行编辑·越界必拒·abstain)+ mlsp repair_apply
- src/repair.rs:行编辑有界应用(replace/delete/insert;触碰行必须落在靶点范围内, 越界 ⇒ 整体拒绝 + 越界清单,源零字节不改 = abstain;表尾追加允许 end+1) - mlsp repair_apply:护栏的 MLSP 出口(ranges + edits → 新源;越界报 mlsp.repair_out_of_scope) - tests/repair_loop.rs:golden 20 例(10 骨架 × 2)走完整修复循环 (诊断 → 靶点 → 金修复行编辑自动推导 → 范围自检 = 「易锚定」机器验证 → 应用 → 复验) + 护栏负例(越界必拒 + 源零字节不改 + 部分越界全拒) - 待做:模型修复实验(把金修复换成模型编辑,测 ≥80% 修复率) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
18d89d6cf2
commit
5b599125d1
4 files changed
+572
-1
No files matched your search
@@ -31,6 +31,7 @@ pub mod linalg_ops;
|
||||
pub mod load;
|
||||
pub mod mlsp;
|
||||
pub mod parse;
|
||||
pub mod repair;
|
||||
pub mod value;
|
||||
#[cfg(feature = "net-host")]
|
||||
pub mod version_check;
|
||||
|
||||
Reference in new issue
Block a user