CREWLOOMSOVEREIGN
Sovereign AI Coding Engine
CapabilitiesArchitectureLive DemoSpecialist SkillsQuickstartArticles
  1. Home
  2. Research & Articles
  3. The Science of Agent Verification: Sandboxed Execution, Double-Blind Evals, & RLVR
Back to all publications
AI Research & Benchmarks•2026-11-16•11 min read

The Science of Agent Verification: Sandboxed Execution, Double-Blind Evals, & RLVR

Why LLM-as-a-judge is fundamentally broken, and how Crewloom implements ground-truth sandbox execution, double-blind taste vs. correctness decoupling, and Wilson 95% confidence intervals.

By Crewloom AI Evaluation & Systems Research Group
#AI Evaluation#RLVR#Double Blind Evals#Sandbox Execution#Wilson Score#GRPO#Benchmarks

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:

python
# 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).
typescript
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.

النسخة العربية الكاملة١١ دقيقة قراءة

علم تقييم والتحقق من الوكلاء: التنفيذ في الصندوق المعزول، المقارنة العمياء، والتعزيز بالمكافأة الحتمية

لماذا يُعد تقييم النماذج لنفسها معيباً جذرياً، وكيف تطبق كرو لوم التنفيذ الحقيقي في الصندوق المعزول، والمقارنة العمياء، وفواصل الثقة الإحصائية 95%.

وهم التقييم الذاتي بالنماذج في وكلاء الذكاء الاصطناعي

اعتادت صناعة الذكاء الاصطناعي على استخدام تقنية LLM-as-a-Judge: أي استدعاء نموذج لغوي كبير لتقييم مخرجات نموذج آخر. ورغم سهولة هذا الأسلوب، إلا أن الدراسات التجريبية تثبت إصابته بعيوب منهجية خطيرة:

  • المحاباة للنبرة البلاغية: تفضيل الإجابات الطويلة والمعقدة على الكود المختصر والصحيح وظيفياً.
  • انحياز العائلة البرمجية: تفضيل النموذج للمخرجات القادمة من نفس الشركة أو المعمارية.
  • التصديق الوهمي (Hallucinated Verification): وسم الكود الخاطئ بأنه "صحيح" لمجرد أن صياغته تشبه كود المكتبات القياسية ظاهرياً.

في كرو لوم Crewloom (https://crewloom.org)، نعتبر التقييم والتحقق علماً تجريبياً صارماً لا يقبل التخمين. ترتكز فلسفتنا في التحقق على ثلاثة أركان غير قابلة للتفاوض: التنفيذ في الصناديق المعزولة، المقارنة العمياء المزدوجة، وفواصل الثقة الإحصائية المثبتة.

---

الركن الأول: الحقيقة التنفيذية في الصناديق المعزولة (Sandboxed Execution)

لا يتم تقييم الكود بسؤال نموذج لغوي عما إذا كان يعمل؛ بل يُحقن الكود المقترح مباشرة داخل بيئة تنفيذ معزولة بالكامل (sandbox.py):

  • رصد كود الخروج الحتمي للنظام (exit_code == 0).
  • فحص مخرجات قنوات الخطأ (stderr) وتتبع استهلاك الذاكرة والمعالج.
  • تشغيل حزمة الاختبارات الوظيفية الحتمية (assert == expected).

#### حلقة التصحيح الذاتي الجراحية

عندما يفشل كود في اجتياز الاختبار، يتم استخلاص الخطأ بدقة متناهية وإعادته لموجه التصحيح لإصلاح العطل جراحياً دون إعادة كتابة المنظومة بأكملها:

$$\text{الكود المقترح} \xrightarrow{\text{تشغيل في الصندوق}} \text{استخلاص الخطأ والـ Traceback} \xrightarrow{\text{التصحيح الجراحي}} \text{إعادة الفحص الحتمي}$$

---

الركن الثاني: المقارنة العمياء وفصل التفضيل عن الصحة (Double-Blind A/B)

عند تقييم جودة التخصيص أو المهارات الجديدة (contracts/src/evaluation.ts)، تفرض كرو لوم بروتوكول المقارنة العمياء:

> «إعجاب المستخدم أو المقيم بأسلوب الإجابة لا يعني إطلاقاً أنها صحيحة هندسياً.»

1. الترتيب العشوائي المخفي (`PairOrder`): تُعرض الإجابات كخيارين (أ و ب) بترتيب عشوائي دون إفصاح عما إذا كان الخيار معتمداً على التخصيص أو الإعدادات الافتراضية لمنع الانحياز التأكيدي.

2. فصل الأسلوب عن الدقة البرمجية:

  • التفضيل الشخصي (Taste): يقيس النبرة، لغة الشرح، الاختصار، وترتيب البدائل.
  • الصحة والموثوقية (Correctness): تُقاس حصراً بالبراهين البرمجية واجتياز الاختبارات (both-ok, custom-better, both-wrong).

---

الركن الثالث: الصرامة الإحصائية ومجال الثقة 95% (Wilson Score)

إن إطلاق أرقام دعائية مثل *"حققت الميزة نسبة نجاح 85%"* دون سياق إحصائي هو تضليل علمي. في منظومة القياس المعتمدة بكرو لوم (eval_hrpe_v2_gate.py)، يُحسب مجال ثقة ويلسون 95% (Wilson Score 95% CI) لكل اختبار:

  • عزل مجموعات الحجب (`heldOut: true`): تُحجب أسئلة الاختبار تماماً عن سياق التدريب والأمثلة لضمان عدم تسريب البيانات.
  • حد العينة الحرج ($N \ge 200$): لا يُعتد بأي تفوق تقني ما لم يُختبر على عينة موسعة ثنائية اللغة (العربية والإنجليزية).

---

الركن الرابع: تدريب نماذج التفكير بالمكافآت الحتمية (RLVR / GRPO)

في تدريب النماذج البرمجية الداخلية، تستبدل كرو لوم نماذج المكافأة البشرية غير المنضبطة بنظام التعلم المعزز بمكافآت قابلة للتحقق آلياً (RLVR):

  • يولد النموذج 4 إلى 8 مسارات حلول للمسألة الهندسية.
  • تُحسب المكافأة ($R=1.0$ أو $R=0.0$) بناءً على تشغيل المترجم واجتياز اختبارات الصندوق المعزول.
  • يؤدي هذا إلى صقل قدرات الاستدلال الرياضي والبرمجي دون إمكانية "خداع" نموذج التقييم.
CL

Crewloom AI Evaluation & Systems Research Group

Research and Engineering division of Crewloom Autonomous Systems, developing sovereign zero-destruction runtime foundations for next-generation developer tooling.

Ready to experience Sovereign AI Coding?

Install Crewloom in seconds on your Mac or Linux workstation with Zero-Destruction verification.

Install Crewloom FreeTry Live Simulator
On this page
  • The Fallacy of Subjective Evaluation in Autonomous Agents
  • Pillar 1: Ground-Truth Execution in Sandboxed Environments
  • Pillar 2: The Double-Blind Taste vs. Correctness Decoupling
  • Pillar 3: Statistical Rigor & Wilson Score 95% Confidence Intervals
  • Pillar 4: Local RLVR & GRPO Training Loops
CREWLOOM SOVEREIGN
•| © 2026 Rumuze (رموز). All rights reserved.
Articles & ResearchAgent Source CodeGitHub OrganizationOfficial Sitesupport@crewloom.org