fix: allow exports with QA warnings

This commit is contained in:
Codex
2026-06-21 23:43:03 +08:00
parent 21aa75d240
commit 163d375a76
7 changed files with 115 additions and 26 deletions
+3 -4
View File
@@ -31,7 +31,6 @@ const REQUIRED_RULES: QualityRuleId[] = [
const HARD_FAILURE_RULES = new Set<QualityRuleId>([
"company_name_integrity",
"hallucination_risk",
"claim_consistency",
]);
@@ -213,14 +212,14 @@ function inspectRule(
const unsupportedNumber = findUnsupportedNumbers(combined, factCard).length > 0;
return check(
ruleId,
unsupportedNumber || article.requires_user_confirmation.length > 0 ? "fail" : "pass",
unsupportedNumber || article.requires_user_confirmation.length > 0 ? "warn" : "pass",
unsupportedNumber
? findUnsupportedNumbers(combined, factCard).join(", ")
: "未发现未确认的数字类事实主张。",
unsupportedNumber
? "数字类主张无法追溯到已确认事实卡。"
? "发现需要人工复核的数字类事实主张。"
: "事实主张可以追溯到已确认事实卡。",
"删除未确认主张,或补充到事实卡确认。",
"建议人工复核,必要时删除未确认主张,或补充到事实卡后再确认。",
unsupportedNumber ? "body" : null,
);
}