Skip to content

World's first open-source enterprise world model.

fix: Accept only boolean true from competency judges (#1175)

Rudy Mizrahi Celekli9b2a87ec9444
diff --git a/scripts/bench/competency.mjs b/scripts/bench/competency.mjs
index 6afa6e64..356f0193 100644
--- a/scripts/bench/competency.mjs
+++ b/scripts/bench/competency.mjs
@@ -97,7 +97,7 @@ async function main() {
]);
const m = /\{[\s\S]*\}/.exec(verdict);
const j = m ? JSON.parse(m[0]) : { correct: false, why: "judge gave no JSON" };
- answered = !!j.correct; detail.why = j.why;
+ answered = j.correct === true; detail.why = j.why;
} else {
// 没有期望答案:查它需要的形状——类都在、属性都在并且各有类型化事实
judged_by = "shape";