The Fallacy of Subjective Evaluation in Autonomous Agents
The AI industry has largely normalized LLM-as-a-Judge: using one large language model to score the output of another. While convenient, empirical studies demonstrate that LLM judges suffer from severe systemic pathologies:
- Sycophancy & Tone Bias: Favoring verbose, authoritative-sounding responses over concise, functionally correct code.
- Self-Preference Contamination: Favoring generations from their own model family.
- Hallucinated Verification: Marking faulty code as "correct" because the syntax superficially resembles standard library implementations.
At Crewloom (https://crewloom.org), evaluation is treated as an empirical physical science rather than a debate. Our verification philosophy rests on three non-negotiable pillars: Closed-Loop Sandbox Execution, Double-Blind A/B Decoupling, and Statistically Grounded Confidence Intervals.
---
Pillar 1: Ground-Truth Execution in Sandboxed Environments
Code is never verified by asking an LLM if it works. In Crewloom's benchmark suite (pulse/scripts/lm_eval/sandbox.py), candidate solutions are executed inside isolated sandboxes with strict deterministic gates:
# Deterministic Sandbox Execution Protocol
result = sandbox.run_candidate_detailed(
code=candidate_solution,
tests=task_unit_tests,
timeout_sec=5.0,
memory_limit_mb=512
)
# Truth is derived strictly from machine exit status
assert result.exit_code == 0, f"Compilation/Runtime failure: {result.stderr}"
assert result.passed_tests == result.total_tests, "Test suite regression detected"#### Closed-Loop Self-Repair Loop
When a candidate fails, the compiler diagnostics and stack traces are captured mechanically and injected into the surgical repair loop:
$$\text{Candidate Solution} \xrightarrow{\text{Sandbox}} \text{Runtime Traceback} \xrightarrow{\text{Surgical Critic}} \text{Refined Patch} \xrightarrow{\text{Pass Gate}}$$
---
Pillar 2: The Double-Blind Taste vs. Correctness Decoupling
When evaluating model personalization, user preferences, or skill effectiveness, Crewloom implements strict double-blind trial isolation (agent/packages/crewloom/contracts/src/evaluation.ts):
> "Liking an answer never counts as it being right."
1. Randomized Order (`PairOrder`): Replies are presented as Option A and Option B with randomized order (chooseOrder), completely masking which response used personalized skills.
2. Orthogonal Scoring Dimensions:
- Preference / Taste: Tone, brevity, language phrasing, and option order.
- Correctness: Evaluated strictly against automated test suites and compiler verification (
both-ok,default-better,custom-better,both-wrong).
export interface TrialVerdict {
readonly preference: 'default' | 'custom' | 'tie';
readonly criteria: Readonly<Partial<Record<EvaluationCriterion, CriterionResult>>>;
readonly correctness: 'not-checked' | 'both-ok' | 'default-better' | 'custom-better' | 'both-wrong';
readonly note: string;
readonly ratedAt: number;
}---
Pillar 3: Statistical Rigor & Wilson Score 95% Confidence Intervals
Point estimates like *"our model has 84% accuracy"* are scientifically invalid without sample size context. In our held-out benchmark suite (eval_hrpe_v2_gate.py), every benchmark report computes Wilson Score 95% Confidence Intervals:
$$w = \frac{\hat{p} + \frac{z^2}{2n} \pm z \sqrt{\frac{\hat{p}(1-\hat{p})}{n} + \frac{z^2}{4n^2}}}{1 + \frac{z^2}{n}}$$
- Held-Out Isolation (`heldOut: true`): Evaluation tasks are strictly segregated from training data and few-shot prompts to eliminate data contamination.
- Sample Thresholds: No benchmark claim is recognized without a minimum sample size ($N \ge 200$) across bilingual test pairs (Arabic & English).
---
Pillar 4: Local RLVR & GRPO Training Loops
For our local reasoning models, Crewloom replaces subjective Human Feedback (RLHF) with Reinforcement Learning with Verifiable Rewards (RLVR) via Group Relative Policy Optimization (GRPO):
- The model generates a group of $G=4$ or $G=8$ rollouts for an algorithmic or architectural task.
- The reward $R \in \{0.0, 1.0\}$ is calculated directly by running the sandbox test suite.
- Advantages are normalized across the group, optimizing mathematical reasoning and architectural compliance without reward model tampering.
By anchoring evaluation in automated execution and statistical rigor, Crewloom delivers verifiable software engineering autonomy.