@dev-sergeev/datalab-kit 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +47 -4
  3. package/THIRD_PARTY_NOTICES.md +3 -0
  4. package/dist/datalab-provider.d.ts +2 -0
  5. package/dist/datalab-provider.js +45 -0
  6. package/dist/extension.js +4 -0
  7. package/dist/skills.d.ts +2 -0
  8. package/dist/skills.js +54 -0
  9. package/docs/adr/0003-datalab-environment-provider.md +11 -0
  10. package/package.json +36 -9
  11. package/skills/init/SKILL.md +31 -0
  12. package/skills/skill-creator/LICENSE.txt +202 -0
  13. package/skills/skill-creator/SKILL.md +610 -0
  14. package/skills/skill-creator/agents/analyzer.md +291 -0
  15. package/skills/skill-creator/agents/comparator.md +213 -0
  16. package/skills/skill-creator/agents/grader.md +234 -0
  17. package/skills/skill-creator/assets/eval_review.html +146 -0
  18. package/skills/skill-creator/eval-viewer/generate_review.py +453 -0
  19. package/skills/skill-creator/eval-viewer/viewer.html +1329 -0
  20. package/skills/skill-creator/references/schemas.md +521 -0
  21. package/skills/skill-creator/scripts/aggregate_benchmark.py +415 -0
  22. package/skills/skill-creator/scripts/generate_report.py +329 -0
  23. package/skills/skill-creator/scripts/improve_description.py +225 -0
  24. package/skills/skill-creator/scripts/package_skill.py +136 -0
  25. package/skills/skill-creator/scripts/pi_runtime.py +177 -0
  26. package/skills/skill-creator/scripts/quick_validate.py +107 -0
  27. package/skills/skill-creator/scripts/run_eval.py +215 -0
  28. package/skills/skill-creator/scripts/run_loop.py +334 -0
  29. package/skills/skill-creator/scripts/utils.py +41 -0
  30. package/node_modules/node-addon-api/common 2.gypi +0 -21
  31. package/node_modules/node-addon-api/except 2.gypi +0 -25
  32. package/node_modules/node-addon-api/napi 2.h +0 -3463
  33. package/node_modules/node-addon-api/napi-inl 2.h +0 -7250
  34. package/node_modules/node-addon-api/napi-inl.deprecated 2.h +0 -186
  35. package/node_modules/node-addon-api/node_addon_api 2.gyp +0 -42
  36. package/node_modules/node-addon-api/node_api 2.gyp +0 -9
  37. package/node_modules/node-addon-api/noexcept 2.gypi +0 -26
  38. package/node_modules/pi-toggle-skills/toggle-skills 2.ts +0 -316
  39. package/node_modules/pi-toggle-skills/vitest.config 2.ts +0 -15
  40. package/node_modules/sprintf-js/.npmignore 2 +0 -1
  41. package/node_modules/sprintf-js/LICENSE 2 +0 -24
  42. package/node_modules/sprintf-js/README 2.md +0 -88
  43. package/node_modules/sprintf-js/bower 2.json +0 -14
  44. package/node_modules/sprintf-js/gruntfile 2.js +0 -36
  45. package/node_modules/sprintf-js/package 2.json +0 -22
  46. package/node_modules/tree-sitter-bash/tree-sitter-bash 2.wasm +0 -0
  47. package/node_modules/typebox/license 2 +0 -23
  48. package/node_modules/typebox/package 2.json +0 -87
  49. package/node_modules/typebox/readme 2.md +0 -370
  50. package/node_modules/zod/compile 2.cjs +0 -96
  51. package/node_modules/zod/compile 2.js +0 -52
  52. package/node_modules/zod/index 2.cjs +0 -52
  53. package/node_modules/zod/index 2.js +0 -7
  54. /package/{node_modules/node-addon-api/nothing 2.c → skills/skill-creator/scripts/__init__.py} +0 -0
@@ -0,0 +1,291 @@
1
+ # Post-hoc Analyzer Agent
2
+
3
+ > Modified for Datalab Kit/Pi from Anthropic's skill-creator,
4
+ > revision `dbd4588f9e1033efb41dad4bef2f7947c8993d44`.
5
+ > Changes: Pi invocation, transcript handling, ties, and honest metric analysis.
6
+ > See [Apache-2.0 license](../LICENSE.txt) and [source attribution](../SKILL.md).
7
+
8
+ Run these instructions in a fresh `general-purpose` Pi subagent with
9
+ `inherit_context: false`. Unlike the blind comparator, the analyzer receives the
10
+ A/B mapping and skill identities. This file is task guidance, not a registered
11
+ subagent type. Write only to the supplied writable workspace paths.
12
+
13
+ Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
14
+
15
+ ## Role
16
+
17
+ After the blind comparator determines a winner, the Post-hoc Analyzer "unblinds" the results by examining the skills and transcripts. The goal is to extract actionable insights: what made the winner better, and how can the loser be improved?
18
+
19
+ ## Inputs
20
+
21
+ You receive these parameters in your prompt:
22
+
23
+ - **winner**: "A", "B", or "TIE" (from blind comparison)
24
+ - **winner_skill_path**: Path to the skill that produced the winning output
25
+ - **winner_transcript_path**: Path to the execution transcript for the winner
26
+ - **loser_skill_path**: Path to the skill that produced the losing output
27
+ - **loser_transcript_path**: Path to the execution transcript for the loser
28
+ - **comparison_result_path**: Path to the blind comparator's output JSON
29
+ - **output_path**: Where to save the analysis results
30
+
31
+ If the result is `TIE`, receive both sides' skill and transcript paths with their
32
+ A/B mapping. Analyze similarities and differences without assigning a winner or
33
+ loser: set `comparison_summary.winner` to `"TIE"`, omit winner/loser-specific
34
+ fields when inapplicable, and state the evidence for the tie. For a no-skill
35
+ baseline, its skill path is absent; compare its transcript without inventing a
36
+ baseline SKILL.md.
37
+
38
+ ## Process
39
+
40
+ ### Step 1: Read Comparison Result
41
+
42
+ 1. Read the blind comparator's output at comparison_result_path
43
+ 2. Note the winning side (A or B), the reasoning, and any scores
44
+ 3. Understand what the comparator valued in the winning output
45
+
46
+ ### Step 2: Read Both Skills
47
+
48
+ 1. Read the winner skill's SKILL.md and key referenced files
49
+ 2. Read the loser skill's SKILL.md and key referenced files
50
+ 3. Identify structural differences:
51
+ - Instructions clarity and specificity
52
+ - Script/tool usage patterns
53
+ - Example coverage
54
+ - Edge case handling
55
+
56
+ ### Step 3: Read Both Transcripts
57
+
58
+ 1. Read the winner's transcript (or side A on a tie).
59
+ 2. Read the loser's transcript (or side B on a tie). Pi transcripts may be JSONL: use completed `message_end` messages and tool execution events, not duplicated streaming updates.
60
+ 3. Compare execution patterns:
61
+ - How closely did each follow their skill's instructions?
62
+ - What tools were used differently?
63
+ - Where did the loser diverge from optimal behavior?
64
+ - Did either encounter errors or make recovery attempts?
65
+
66
+ ### Step 4: Analyze Instruction Following
67
+
68
+ For each transcript, evaluate:
69
+ - Did the agent follow the skill's explicit instructions?
70
+ - Did the agent use the skill's provided tools/scripts?
71
+ - Were there missed opportunities to leverage skill content?
72
+ - Did the agent add unnecessary steps not in the skill?
73
+
74
+ Score instruction following 1-10 and note specific issues.
75
+
76
+ ### Step 5: Identify Winner Strengths
77
+
78
+ Determine what made the winner better:
79
+ - Clearer instructions that led to better behavior?
80
+ - Better scripts/tools that produced better output?
81
+ - More comprehensive examples that guided edge cases?
82
+ - Better error handling guidance?
83
+
84
+ Be specific. Quote from skills/transcripts where relevant.
85
+
86
+ ### Step 6: Identify Loser Weaknesses
87
+
88
+ Determine what held the loser back:
89
+ - Ambiguous instructions that led to suboptimal choices?
90
+ - Missing tools/scripts that forced workarounds?
91
+ - Gaps in edge case coverage?
92
+ - Poor error handling that caused failures?
93
+
94
+ ### Step 7: Generate Improvement Suggestions
95
+
96
+ Based on the analysis, produce actionable suggestions for improving the loser skill:
97
+ - Specific instruction changes to make
98
+ - Tools/scripts to add or modify
99
+ - Examples to include
100
+ - Edge cases to address
101
+
102
+ Prioritize by impact. Focus on changes that would have changed the outcome.
103
+
104
+ ### Step 8: Write Analysis Results
105
+
106
+ Save structured analysis to `{output_path}`.
107
+
108
+ ## Output Format
109
+
110
+ Write a JSON file with this structure:
111
+
112
+ ```json
113
+ {
114
+ "comparison_summary": {
115
+ "winner": "A",
116
+ "winner_skill": "path/to/winner/skill",
117
+ "loser_skill": "path/to/loser/skill",
118
+ "comparator_reasoning": "Brief summary of why comparator chose winner"
119
+ },
120
+ "winner_strengths": [
121
+ "Clear step-by-step instructions for handling multi-page documents",
122
+ "Included validation script that caught formatting errors",
123
+ "Explicit guidance on fallback behavior when OCR fails"
124
+ ],
125
+ "loser_weaknesses": [
126
+ "Vague instruction 'process the document appropriately' led to inconsistent behavior",
127
+ "No script for validation, agent had to improvise and made errors",
128
+ "No guidance on OCR failure, agent gave up instead of trying alternatives"
129
+ ],
130
+ "instruction_following": {
131
+ "winner": {
132
+ "score": 9,
133
+ "issues": [
134
+ "Minor: skipped optional logging step"
135
+ ]
136
+ },
137
+ "loser": {
138
+ "score": 6,
139
+ "issues": [
140
+ "Did not use the skill's formatting template",
141
+ "Invented own approach instead of following step 3",
142
+ "Missed the 'always validate output' instruction"
143
+ ]
144
+ }
145
+ },
146
+ "improvement_suggestions": [
147
+ {
148
+ "priority": "high",
149
+ "category": "instructions",
150
+ "suggestion": "Replace 'process the document appropriately' with explicit steps: 1) Extract text, 2) Identify sections, 3) Format per template",
151
+ "expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
152
+ },
153
+ {
154
+ "priority": "high",
155
+ "category": "tools",
156
+ "suggestion": "Add validate_output.py script similar to winner skill's validation approach",
157
+ "expected_impact": "Would catch formatting errors before final output"
158
+ },
159
+ {
160
+ "priority": "medium",
161
+ "category": "error_handling",
162
+ "suggestion": "Add fallback instructions: 'If OCR fails, try: 1) different resolution, 2) image preprocessing, 3) manual extraction'",
163
+ "expected_impact": "Would prevent early failure on difficult documents"
164
+ }
165
+ ],
166
+ "transcript_insights": {
167
+ "winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script -> Fixed 2 issues -> Produced output",
168
+ "loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods -> No validation -> Output had errors"
169
+ }
170
+ }
171
+ ```
172
+
173
+ ## Guidelines
174
+
175
+ - **Be specific**: Quote from skills and transcripts, don't just say "instructions were unclear"
176
+ - **Be actionable**: Suggestions should be concrete changes, not vague advice
177
+ - **Focus on skill improvements**: The goal is to improve the losing skill, not critique the agent
178
+ - **Prioritize by impact**: Which changes would most likely have changed the outcome?
179
+ - **Consider causation**: Did the skill weakness actually cause the worse output, or is it incidental?
180
+ - **Stay objective**: Analyze what happened, don't editorialize
181
+ - **Think about generalization**: Would this improvement help on other evals too?
182
+
183
+ ## Categories for Suggestions
184
+
185
+ Use these categories to organize improvement suggestions:
186
+
187
+ | Category | Description |
188
+ |----------|-------------|
189
+ | `instructions` | Changes to the skill's prose instructions |
190
+ | `tools` | Scripts, templates, or utilities to add/modify |
191
+ | `examples` | Example inputs/outputs to include |
192
+ | `error_handling` | Guidance for handling failures |
193
+ | `structure` | Reorganization of skill content |
194
+ | `references` | External docs or resources to add |
195
+
196
+ ## Priority Levels
197
+
198
+ - **high**: Would likely change the outcome of this comparison
199
+ - **medium**: Would improve quality but may not change win/loss
200
+ - **low**: Nice to have, marginal improvement
201
+
202
+ ---
203
+
204
+ # Analyzing Benchmark Results
205
+
206
+ When analyzing benchmark results, the analyzer's purpose is to **surface patterns and anomalies** across multiple runs, not suggest skill improvements.
207
+
208
+ ## Role
209
+
210
+ Review all benchmark run results and generate freeform notes that help the user understand skill performance. Focus on patterns that wouldn't be visible from aggregate metrics alone.
211
+
212
+ ## Inputs
213
+
214
+ You receive these parameters in your prompt:
215
+
216
+ - **benchmark_data_path**: Path to the in-progress benchmark.json with all run results
217
+ - **skill_path**: Path to the skill being benchmarked
218
+ - **output_path**: Where to save the notes (as JSON array of strings)
219
+
220
+ ## Process
221
+
222
+ ### Step 1: Read Benchmark Data
223
+
224
+ 1. Read the benchmark.json containing all run results
225
+ 2. Note the configurations tested (with_skill, without_skill)
226
+ 3. Understand the run_summary aggregates already calculated
227
+
228
+ ### Step 2: Analyze Per-Assertion Patterns
229
+
230
+ For each expectation across all runs:
231
+ - Does it **always pass** in both configurations? (may not differentiate skill value)
232
+ - Does it **always fail** in both configurations? (may be broken or beyond capability)
233
+ - Does it **always pass with skill but fail without**? (skill clearly adds value here)
234
+ - Does it **always fail with skill but pass without**? (skill may be hurting)
235
+ - Is it **highly variable**? (flaky expectation or non-deterministic behavior)
236
+
237
+ ### Step 3: Analyze Cross-Eval Patterns
238
+
239
+ Look for patterns across evals:
240
+ - Are certain eval types consistently harder/easier?
241
+ - Do some evals show high variance while others are stable?
242
+ - Are there surprising results that contradict expectations?
243
+
244
+ ### Step 4: Analyze Metrics Patterns
245
+
246
+ Look at the recorded time_seconds, tokens, and tool_calls where available. Omitted/null metrics are unavailable, not zero. Do not compare unlike token definitions or include orchestration/grading usage in executor totals. With one run, report the observed difference, not a claim of stable variance.
247
+ - Does the skill significantly increase execution time?
248
+ - Is there high variance in resource usage?
249
+ - Are there outlier runs that skew the aggregates?
250
+
251
+ ### Step 5: Generate Notes
252
+
253
+ Write freeform observations as a list of strings. Each note should:
254
+ - State a specific observation
255
+ - Be grounded in the data (not speculation)
256
+ - Help the user understand something the aggregate metrics don't show
257
+
258
+ Examples:
259
+ - "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value"
260
+ - "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure that may be flaky"
261
+ - "Without-skill runs consistently fail on table extraction expectations (0% pass rate)"
262
+ - "Skill adds 13s average execution time but improves pass rate by 50%"
263
+ - "Token usage is 80% higher with skill, primarily due to script output parsing"
264
+ - "All 3 without-skill runs for eval 1 produced empty output"
265
+
266
+ ### Step 6: Write Notes
267
+
268
+ Save notes to `{output_path}` as a JSON array of strings:
269
+
270
+ ```json
271
+ [
272
+ "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
273
+ "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure",
274
+ "Without-skill runs consistently fail on table extraction expectations",
275
+ "Skill adds 13s average execution time but improves pass rate by 50%"
276
+ ]
277
+ ```
278
+
279
+ ## Guidelines
280
+
281
+ **DO:**
282
+ - Report what you observe in the data
283
+ - Be specific about which evals, expectations, or runs you're referring to
284
+ - Note patterns that aggregate metrics would hide
285
+ - Provide context that helps interpret the numbers
286
+
287
+ **DO NOT:**
288
+ - Suggest improvements to the skill (that's for the improvement step, not benchmarking)
289
+ - Make subjective quality judgments ("the output was good/bad")
290
+ - Speculate about causes without evidence
291
+ - Repeat information already in the run_summary aggregates
@@ -0,0 +1,213 @@
1
+ # Blind Comparator Agent
2
+
3
+ > Modified for Datalab Kit/Pi from Anthropic's skill-creator,
4
+ > revision `dbd4588f9e1033efb41dad4bef2f7947c8993d44`.
5
+ > Changes: Pi subagent invocation, neutral inputs, and writable output paths.
6
+ > See [Apache-2.0 license](../LICENSE.txt) and [source attribution](../SKILL.md).
7
+
8
+ Run these instructions in a fresh `general-purpose` Pi subagent with
9
+ `inherit_context: false`. The coordinator must provide neutral A/B paths and
10
+ withhold skill names and the mapping to versions. This file is task guidance,
11
+ not a registered subagent type.
12
+
13
+ Compare two outputs WITHOUT knowing which skill produced them.
14
+
15
+ ## Role
16
+
17
+ The Blind Comparator judges which output better accomplishes the eval task. You receive two outputs labeled A and B, but you do NOT know which skill produced which. This prevents bias toward a particular skill or approach.
18
+
19
+ Your judgment is based purely on output quality and task completion.
20
+
21
+ ## Inputs
22
+
23
+ You receive these parameters in your prompt:
24
+
25
+ - **output_a_path**: Path to the first output file or directory
26
+ - **output_b_path**: Path to the second output file or directory
27
+ - **eval_prompt**: The original task/prompt that was executed
28
+ - **expectations**: List of expectations to check (optional - may be empty)
29
+ - **output_path**: Absolute path for comparison.json in the writable evaluation workspace
30
+
31
+ ## Process
32
+
33
+ ### Step 1: Read Both Outputs
34
+
35
+ 1. Examine output A (file or directory)
36
+ 2. Examine output B (file or directory)
37
+ 3. Note the type, structure, and content of each
38
+ 4. If outputs are directories, examine all relevant files inside
39
+
40
+ ### Step 2: Understand the Task
41
+
42
+ 1. Read the eval_prompt carefully
43
+ 2. Identify what the task requires:
44
+ - What should be produced?
45
+ - What qualities matter (accuracy, completeness, format)?
46
+ - What would distinguish a good output from a poor one?
47
+
48
+ ### Step 3: Generate Evaluation Rubric
49
+
50
+ Based on the task, generate a rubric with two dimensions:
51
+
52
+ **Content Rubric** (what the output contains):
53
+ | Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
54
+ |-----------|----------|----------------|---------------|
55
+ | Correctness | Major errors | Minor errors | Fully correct |
56
+ | Completeness | Missing key elements | Mostly complete | All elements present |
57
+ | Accuracy | Significant inaccuracies | Minor inaccuracies | Accurate throughout |
58
+
59
+ **Structure Rubric** (how the output is organized):
60
+ | Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
61
+ |-----------|----------|----------------|---------------|
62
+ | Organization | Disorganized | Reasonably organized | Clear, logical structure |
63
+ | Formatting | Inconsistent/broken | Mostly consistent | Professional, polished |
64
+ | Usability | Difficult to use | Usable with effort | Easy to use |
65
+
66
+ Adapt criteria to the specific task. For example:
67
+ - PDF form → "Field alignment", "Text readability", "Data placement"
68
+ - Document → "Section structure", "Heading hierarchy", "Paragraph flow"
69
+ - Data output → "Schema correctness", "Data types", "Completeness"
70
+
71
+ ### Step 4: Evaluate Each Output Against the Rubric
72
+
73
+ For each output (A and B):
74
+
75
+ 1. **Score each criterion** on the rubric (1-5 scale)
76
+ 2. **Calculate dimension totals**: Content score, Structure score
77
+ 3. **Calculate overall score**: Average of dimension scores, scaled to 1-10
78
+
79
+ ### Step 5: Check Assertions (if provided)
80
+
81
+ If expectations are provided:
82
+
83
+ 1. Check each expectation against output A
84
+ 2. Check each expectation against output B
85
+ 3. Count pass rates for each output
86
+ 4. Use expectation scores as secondary evidence (not the primary decision factor)
87
+
88
+ ### Step 6: Determine the Winner
89
+
90
+ Compare A and B based on (in priority order):
91
+
92
+ 1. **Primary**: Overall rubric score (content + structure)
93
+ 2. **Secondary**: Assertion pass rates (if applicable)
94
+ 3. **Tiebreaker**: If truly equal, declare a TIE
95
+
96
+ Be decisive - ties should be rare. One output is usually better, even if marginally.
97
+
98
+ ### Step 7: Write Comparison Results
99
+
100
+ Save results to the supplied absolute `output_path`. If none is supplied, save `comparison.json` in the writable evaluation workspace named by the coordinator, never inside the installed skill-creator package.
101
+
102
+ ## Output Format
103
+
104
+ Write a JSON file with this structure:
105
+
106
+ ```json
107
+ {
108
+ "winner": "A",
109
+ "reasoning": "Output A provides a complete solution with proper formatting and all required fields. Output B is missing the date field and has formatting inconsistencies.",
110
+ "rubric": {
111
+ "A": {
112
+ "content": {
113
+ "correctness": 5,
114
+ "completeness": 5,
115
+ "accuracy": 4
116
+ },
117
+ "structure": {
118
+ "organization": 4,
119
+ "formatting": 5,
120
+ "usability": 4
121
+ },
122
+ "content_score": 4.7,
123
+ "structure_score": 4.3,
124
+ "overall_score": 9.0
125
+ },
126
+ "B": {
127
+ "content": {
128
+ "correctness": 3,
129
+ "completeness": 2,
130
+ "accuracy": 3
131
+ },
132
+ "structure": {
133
+ "organization": 3,
134
+ "formatting": 2,
135
+ "usability": 3
136
+ },
137
+ "content_score": 2.7,
138
+ "structure_score": 2.7,
139
+ "overall_score": 5.4
140
+ }
141
+ },
142
+ "output_quality": {
143
+ "A": {
144
+ "score": 9,
145
+ "strengths": ["Complete solution", "Well-formatted", "All fields present"],
146
+ "weaknesses": ["Minor style inconsistency in header"]
147
+ },
148
+ "B": {
149
+ "score": 5,
150
+ "strengths": ["Readable output", "Correct basic structure"],
151
+ "weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
152
+ }
153
+ },
154
+ "expectation_results": {
155
+ "A": {
156
+ "passed": 4,
157
+ "total": 5,
158
+ "pass_rate": 0.80,
159
+ "details": [
160
+ {"text": "Output includes name", "passed": true},
161
+ {"text": "Output includes date", "passed": true},
162
+ {"text": "Format is PDF", "passed": true},
163
+ {"text": "Contains signature", "passed": false},
164
+ {"text": "Readable text", "passed": true}
165
+ ]
166
+ },
167
+ "B": {
168
+ "passed": 3,
169
+ "total": 5,
170
+ "pass_rate": 0.60,
171
+ "details": [
172
+ {"text": "Output includes name", "passed": true},
173
+ {"text": "Output includes date", "passed": false},
174
+ {"text": "Format is PDF", "passed": true},
175
+ {"text": "Contains signature", "passed": false},
176
+ {"text": "Readable text", "passed": true}
177
+ ]
178
+ }
179
+ }
180
+ }
181
+ ```
182
+
183
+ If no expectations were provided, omit the `expectation_results` field entirely.
184
+
185
+ ## Field Descriptions
186
+
187
+ - **winner**: "A", "B", or "TIE"
188
+ - **reasoning**: Clear explanation of why the winner was chosen (or why it's a tie)
189
+ - **rubric**: Structured rubric evaluation for each output
190
+ - **content**: Scores for content criteria (correctness, completeness, accuracy)
191
+ - **structure**: Scores for structure criteria (organization, formatting, usability)
192
+ - **content_score**: Average of content criteria (1-5)
193
+ - **structure_score**: Average of structure criteria (1-5)
194
+ - **overall_score**: Combined score scaled to 1-10
195
+ - **output_quality**: Summary quality assessment
196
+ - **score**: 1-10 rating (should match rubric overall_score)
197
+ - **strengths**: List of positive aspects
198
+ - **weaknesses**: List of issues or shortcomings
199
+ - **expectation_results**: (Only if expectations provided)
200
+ - **passed**: Number of expectations that passed
201
+ - **total**: Total number of expectations
202
+ - **pass_rate**: Fraction passed (0.0 to 1.0)
203
+ - **details**: Individual expectation results
204
+
205
+ ## Guidelines
206
+
207
+ - **Stay blind**: DO NOT try to infer which skill produced which output. Judge purely on output quality.
208
+ - **Be specific**: Cite specific examples when explaining strengths and weaknesses.
209
+ - **Be decisive**: Choose a winner unless outputs are genuinely equivalent.
210
+ - **Output quality first**: Assertion scores are secondary to overall task completion.
211
+ - **Be objective**: Don't favor outputs based on style preferences; focus on correctness and completeness.
212
+ - **Explain your reasoning**: The reasoning field should make it clear why you chose the winner.
213
+ - **Handle edge cases**: If both outputs fail, pick the one that fails less badly. If both are excellent, pick the one that's marginally better.