P4 验证执行:(a)锚点消融✅/(c)契约消融✅/(d)防漂移✅/(e)守卫演练✅;(b)盲测 deepseek-flash 完成未达标、mimo-v2.6-pro 重跑中
- perf-validation.md:五实验协议/判据/材料(2026-09-23 自设计) - perf-validation-report-2026-09-23.md:汇总报告(判据逐项对照 + 诚实结论) - tests/blind_experiment.rs + tests/blind/:盲测 harness(查询通道/修复回路/usage 计量)+ 冻结材料(6 任务书 + docs-bundle) - tests/contract_ablation.rs:四边界×三情形消融(拦截 100%/误报 0%/零回归) - tests/drift_drill.rs:9 漂移必报 + 2 负对照 - src/mlsp.rs:syntax 卡片自持化(semantics/rule/sample/doc_quote) - three-problems.md §5.1 判据矩阵逐行判定(问题 1✅ 2✅ 3❌);three-problems-plan.md Phase 4 落地记录 - 全量干净回归零失败 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
00c763300e
commit
1a729eb9ec
18 files changed
+1848
-11
No files matched your search
@@ -33,6 +33,34 @@ fn syntax_unknown_query_structured_error() {
|
||||
assert_eq!(resp["error"]["code"], "mlsp.no_match");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn syntax_cards_carry_rule_text_self_sufficient() {
|
||||
// 「AI 不必学语法」的前提:卡片自带语义/戒律/样例原文(不必回读文档),
|
||||
// 且空查询列出全部核心构造(three-problems.md §3.2「单构造戒律」)。
|
||||
let resp = call(r#"{"id":9,"method":"syntax","params":{}}"#);
|
||||
assert_eq!(resp["ok"], true, "{resp}");
|
||||
let cards = resp["result"]["cards"].as_array().unwrap();
|
||||
assert_eq!(
|
||||
cards.len(),
|
||||
marqdo::parse::CORE_CONSTRUCTS.len(),
|
||||
"空查询应列出全部核心构造: {resp}"
|
||||
);
|
||||
for c in cards {
|
||||
assert!(
|
||||
c["rule"].as_str().unwrap_or("").len() > 2,
|
||||
"卡片缺戒律原文(不可自持): {c}"
|
||||
);
|
||||
assert!(
|
||||
c["doc_quote"].as_str().unwrap_or("").starts_with('|'),
|
||||
"卡片缺行原文: {c}"
|
||||
);
|
||||
assert!(
|
||||
!c["semantics"].as_str().unwrap_or("").is_empty(),
|
||||
"卡片缺语义: {c}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn locate_symbol_returns_span_and_contract() {
|
||||
let src = "# main\n\n## 加一\n\n对于输入变量`n`,执行加一。\n\n| 参数 | 类型 | 说明 |\n|------|------|------|\n| n | number | 输入值 |\n\n*n+1*\n";
|
||||
|
||||
Reference in new issue
Block a user