fix(wp7-02): preserve independent mixed model evidence
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 2m11s
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 2m11s
This commit is contained in:
@@ -206,7 +206,10 @@ export function validateIndependentEvidenceSet(evidence) {
|
||||
const passed = entry.status === "passed" && entry.matrix?.status === "passed"
|
||||
&& entry.external_calls?.status === "passed" && entry.external_calls.real_calls > 0
|
||||
&& entry.manual_review?.status === "passed" && entry.redaction?.status === "passed";
|
||||
if (entry.matrix?.model_id !== entry.model_id || (!blocked && !passed)
|
||||
const pendingReview = entry.status === "passed" && entry.matrix?.status === "passed"
|
||||
&& entry.external_calls?.status === "passed" && entry.external_calls.real_calls > 0
|
||||
&& entry.manual_review?.status === "pending" && entry.redaction?.status === "passed";
|
||||
if (entry.matrix?.model_id !== entry.model_id || (!blocked && !passed && !pendingReview)
|
||||
|| /\"verified\"\s*:/i.test(JSON.stringify(entry))) {
|
||||
throw new Error("WP7_02_BLOCKED_EVIDENCE_INVALID");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user