fix(qa): 已覆盖正确性改为问题答案二元评估
build / build (push) Successful in 1m14s

已覆盖只允许正确或错误,未覆盖可待确认,缺引用不再阻止正确结论。
复用统一事务写入与不可变审计重评旧待确认,保留原问答和人工结论。
验证:全仓 make verify、真实隔离 PostgreSQL 全包与 race 回归通过。
This commit is contained in:
姚章浩
2026-10-24 16:47:09 +08:00
parent ce02ae4eef
commit 65653e5c01
19 changed files with 496 additions and 164 deletions
+3
View File
@@ -83,6 +83,9 @@ func Validate(r SaveRequest) error {
if !validCoverage || (f.Correctness != "correct" && f.Correctness != "incorrect" && f.Correctness != "pending") {
return ErrInvalid
}
if f.Correctness == "pending" && f.Coverage != "uncovered" {
return ErrInvalid
}
if !validText(f.ProductCategory, 128) || !validText(f.ProblemType, 128) || !validText(f.RootCause, 2000) || !validText(f.ExclusionReason, 2000) {
return ErrInvalid
}