Principle:AMAP ML SkillClaw Session Quality Judgment
| Knowledge Sources | |
|---|---|
| Domains | Quality_Evaluation, LLM_Judging |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
A session quality judgment mechanism that uses an LLM to score sessions across multiple dimensions (task completion, response quality, efficiency, tool usage) when reliable metrics are unavailable.
Description
Session quality judgment addresses the problem of assessing the overall quality of an agent session when per-turn PRM scores or aggregate metrics are missing. The SkillClaw pattern uses an LLM judge that evaluates each candidate session across five dimensions: `task_completion`, `response_quality`, `efficiency`, `tool_usage`, and `overall_score`. Each dimension gets a numeric score and the result includes a rationale. Sessions that already have reliable scores (from PRM or aggregate rollouts) are skipped to avoid redundant LLM calls. All judgments run in parallel.
Usage
Use this principle when designing systems that need:
- Multi-dimensional quality assessment of conversation sessions
- LLM-based judging with skip logic for already-scored sessions
- Parallel processing for efficiency
- Quality filtering for evolution evidence
Theoretical Basis
The LLM-as-a-Judge pattern uses a single LLM call per session, scoring across dimensions:
Where each is a dimension score in [0, 1]. The skip condition avoids redundant judging:
Failed to parse (syntax error): {\displaystyle \text{skip}(s) = \text{has\_reliable\_prm}(s) \lor \text{has\_aggregate}(s)}
# Abstract algorithm (NOT real implementation)
async def judge_sessions(llm, sessions):
candidates = [s for s in sessions if not has_reliable_score(s)]
results = await parallel_gather([
judge_one(llm, s) for s in candidates
])
for session, scores in zip(candidates, results):
session._judge_scores = scores # 5 dimensions + rationale