Official Codebase of 3DCodeVerse
Python
pairwise judge: the system prompt compares over the rubric's listed criteria, not the object rubric's
gaoypenga9adfc01195d
diff --git a/harness/codeverse3d/judges/pairwise.py b/harness/codeverse3d/judges/pairwise.pyindex e2a7c054..274fe9ba 100644--- a/harness/codeverse3d/judges/pairwise.py+++ b/harness/codeverse3d/judges/pairwise.py@@ -70,7 +70,7 @@ class PairwiseResult(BaseModel):_SYSTEM = """You are a BLIND comparative judge for a 3D-code harness. You see a brief, a rubric and renders of TWO candidates, labelled A and B. Decide which candidate better satisfies the brief, judging ONLY what is visible. Position carries no information: A is not better for being first.-Compare criterion by criterion (intent, structure, detail, proportions, fit, materials, cleanliness as listed), then decide overall. Prefer the candidate with no major defect over the one with more detail but a floating or broken part. Say 'tie' only when the two are genuinely equivalent. Reply with one JSON object: winner ('A'|'B'|'tie'), confidence 0..1, reasons[], criteria_won[{criterion, winner}]."""+Compare criterion by criterion over the CRITERIA listed, then decide overall. Prefer the candidate with no major defect over the one with more detail but a floating or broken part. Say 'tie' only when the two are genuinely equivalent. Reply with one JSON object: winner ('A'|'B'|'tie'), confidence 0..1, reasons[], criteria_won[{criterion, winner}]."""class PairwiseJudge:diff --git a/harness/tests/judges/test_pairwise.py b/harness/tests/judges/test_pairwise.pyindex 666b82e7..d5196ab6 100644--- a/harness/tests/judges/test_pairwise.py+++ b/harness/tests/judges/test_pairwise.py@@ -69,3 +69,6 @@ def test_a_scene_pair_is_ranked_as_a_scene_from_the_views_the_judge_saw(tmp_pathlabels = [p.label for p in image_parts(next(r for r in model.requests if r.label == "pairwise:fwd"))]assert "top-left = Establishing" in labels[0]assert not any("unjudged_extra" in lbl for lbl in labels)+ # N66: the system prompt names no criteria of its own (it listed the object rubric's for every pair)+ system = next(r for r in model.requests if r.label == "pairwise:fwd").system+ assert "CRITERIA listed" in system and "proportions" not in system