evizi-kit 1.0.0
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.
- package/README.md +506 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/agent/.agent/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/agent/.agent/skills/skill-creator/SKILL.md +485 -0
- package/kits/agent/.agent/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/agent/.agent/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/agent/.agent/skills/skill-creator/agents/grader.md +223 -0
- package/kits/agent/.agent/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/agent/.agent/skills/skill-creator/references/schemas.md +430 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/agent/manifest.json +10 -0
- package/kits/claude/.claude/agents/code-pusher.md +46 -0
- package/kits/claude/.claude/agents/feature-document-updater.md +37 -0
- package/kits/claude/.claude/agents/self-reviewer.md +32 -0
- package/kits/claude/.claude/agents/web-auto-agentic-workflow-initializer.md +42 -0
- package/kits/claude/.claude/agents/web-auto-assisted-fix-and-runner.md +36 -0
- package/kits/claude/.claude/agents/web-auto-chrome-devtools-selector-extractor.md +36 -0
- package/kits/claude/.claude/agents/web-auto-coder.md +33 -0
- package/kits/claude/.claude/agents/web-auto-fe-selector-extractor.md +31 -0
- package/kits/claude/.claude/agents/web-auto-fix-and-runner.md +35 -0
- package/kits/claude/.claude/agents/web-auto-lessons-learned-extractor.md +34 -0
- package/kits/claude/.claude/agents/web-auto-playwright-mcp-selector-extractor.md +37 -0
- package/kits/claude/.claude/agents/web-auto-source-instructions-updater.md +43 -0
- package/kits/claude/.claude/agents/web-auto-test-cases-generator.md +29 -0
- package/kits/claude/.claude/agents/web-auto-ticket-designer.md +35 -0
- package/kits/claude/.claude/agents/web-auto-ticket-playbook-planner.md +36 -0
- package/kits/claude/.claude/agents/web-auto.md +382 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/claude/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/claude/.claude/skills/skill-creator/SKILL.md +485 -0
- package/kits/claude/.claude/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/claude/.claude/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/claude/.claude/skills/skill-creator/agents/grader.md +223 -0
- package/kits/claude/.claude/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/claude/.claude/skills/skill-creator/references/schemas.md +430 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/claude/manifest.json +10 -0
- package/kits/cursor/.cursor/agents/code-pusher.agent.md +43 -0
- package/kits/cursor/.cursor/agents/feature-document-updater.agent.md +34 -0
- package/kits/cursor/.cursor/agents/self-reviewer.agent.md +29 -0
- package/kits/cursor/.cursor/agents/web-auto-agentic-workflow-initializer.agent.md +37 -0
- package/kits/cursor/.cursor/agents/web-auto-assisted-fix-and-runner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto-chrome-devtools-selector-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-coder.agent.md +30 -0
- package/kits/cursor/.cursor/agents/web-auto-fe-selector-extractor.agent.md +28 -0
- package/kits/cursor/.cursor/agents/web-auto-fix-and-runner.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-lessons-learned-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-playwright-mcp-selector-extractor.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-source-instructions-updater.agent.md +40 -0
- package/kits/cursor/.cursor/agents/web-auto-test-cases-generator.agent.md +26 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-designer.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-playbook-planner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto.agent.md +379 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/cursor/.cursor/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/SKILL.md +485 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/grader.md +223 -0
- package/kits/cursor/.cursor/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/cursor/.cursor/skills/skill-creator/references/schemas.md +430 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/cursor/manifest.json +10 -0
- package/kits/github/.github/agents/code-pusher.agent.md +45 -0
- package/kits/github/.github/agents/feature-document-updater.agent.md +36 -0
- package/kits/github/.github/agents/self-reviewer.agent.md +31 -0
- package/kits/github/.github/agents/web-auto-agentic-workflow-initializer.agent.md +39 -0
- package/kits/github/.github/agents/web-auto-assisted-fix-and-runner.agent.md +35 -0
- package/kits/github/.github/agents/web-auto-chrome-devtools-selector-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-coder.agent.md +32 -0
- package/kits/github/.github/agents/web-auto-fe-selector-extractor.agent.md +30 -0
- package/kits/github/.github/agents/web-auto-fix-and-runner.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-lessons-learned-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-playwright-mcp-selector-extractor.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-source-instructions-updater.agent.md +42 -0
- package/kits/github/.github/agents/web-auto-test-cases-generator.agent.md +28 -0
- package/kits/github/.github/agents/web-auto-ticket-designer.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-ticket-playbook-creator.agent.md +35 -0
- package/kits/github/.github/agents/web-auto.agent.md +382 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/SKILL.md +310 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +37 -0
- package/kits/github/.github/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/github/.github/skills/skill-creator/SKILL.md +485 -0
- package/kits/github/.github/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/github/.github/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/github/.github/skills/skill-creator/agents/grader.md +223 -0
- package/kits/github/.github/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/github/.github/skills/skill-creator/references/schemas.md +430 -0
- package/kits/github/.github/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/github/.github/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/github/.github/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/github/.github/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/github/.github/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/github/.github/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/github/.github/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/github/manifest.json +10 -0
- package/kits/shared/docs/ai-code-review.md +440 -0
- package/kits/shared/docs/increase-unit-test-coverage.md +77 -0
- package/kits/shared/docs/pr-review-agent.md +501 -0
- package/kits/shared/docs/self-review-agent.md +246 -0
- package/kits/shared/docs/web-auto-agentic-workflow.md +506 -0
- package/kits/shared/manifest.json +11 -0
- package/kits/shared/skills/fix-automation-tests/SKILL.md +280 -0
- package/kits/shared/skills/fix-automation-tests/scripts/fetch_pr_changes.py +300 -0
- package/kits/shared/skills/fix-automation-tests/templates/impact-report.template.md +42 -0
- package/kits/shared/skills/increase-unit-test-coverage/SKILL.md +117 -0
- package/kits/shared/skills/increase-unit-test-coverage/scripts/filter_low_coverage.py +447 -0
- package/kits/shared/skills/pr-review/SKILL.md +200 -0
- package/kits/shared/skills/pr-review/references/automation.md +62 -0
- package/kits/shared/skills/pr-review/references/backend.md +95 -0
- package/kits/shared/skills/pr-review/references/frontend.md +103 -0
- package/kits/shared/skills/pr-review/references/mobile.md +108 -0
- package/kits/shared/skills/pr-review/references/output-schema.md +130 -0
- package/kits/shared/skills/pr-review/scripts/post-review.py +1395 -0
- package/kits/shared/skills/push-code/SKILL.md +176 -0
- package/kits/shared/skills/self-review/SKILL.md +234 -0
- package/kits/shared/skills/self-review/evals/evals.json +23 -0
- package/kits/shared/skills/self-review/references/automation.md +62 -0
- package/kits/shared/skills/self-review/references/backend.md +95 -0
- package/kits/shared/skills/self-review/references/frontend.md +103 -0
- package/kits/shared/skills/self-review/references/mobile.md +108 -0
- package/kits/shared/skills/self-review/templates/issues.template.md +72 -0
- package/kits/shared/skills/update-feature-document/SKILL.md +156 -0
- package/kits/shared/skills/update-feature-document/templates/delta.template.yaml +58 -0
- package/kits/shared/skills/update-feature-document/templates/feature.template.md +25 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/SKILL.md +130 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-api-error.md +108 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-selector.md +60 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/templates/issues-resolution-report-append.template.md +54 -0
- package/kits/shared/skills/web-auto-chrome-devtools-mcp-extract-selectors/SKILL.md +284 -0
- package/kits/shared/skills/web-auto-coding/SKILL.md +152 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/SKILL.md +168 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/templates/lessons-learned.template.md +115 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/SKILL.md +282 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/SKILL.md +183 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/templates/issues-resolution-report.template.md +77 -0
- package/kits/shared/skills/web-auto-generate-best-practices/SKILL.md +123 -0
- package/kits/shared/skills/web-auto-generate-instructions/SKILL.md +200 -0
- package/kits/shared/skills/web-auto-generate-instructions/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-generate-instructions/references/analysis-guide.md +145 -0
- package/kits/shared/skills/web-auto-generate-instructions/templates/web-auto-instructions.template.md +184 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/SKILL.md +181 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/evals/evals.json +57 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/templates/web-auto-project-blueprint.template.md +161 -0
- package/kits/shared/skills/web-auto-playwright-mcp-extract-selectors/SKILL.md +293 -0
- package/kits/shared/skills/web-auto-test-cases/SKILL.md +138 -0
- package/kits/shared/skills/web-auto-test-cases/evals/evals.json +129 -0
- package/kits/shared/skills/web-auto-test-cases/templates/test-cases.template.md +53 -0
- package/kits/shared/skills/web-auto-ticket-design/SKILL.md +199 -0
- package/kits/shared/skills/web-auto-ticket-design/templates/ticket-design.template.md +138 -0
- package/kits/shared/skills/web-auto-ticket-playbook/SKILL.md +218 -0
- package/kits/shared/skills/web-auto-ticket-playbook/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-ticket-playbook/templates/ticket-playbook.template.md +148 -0
- package/kits/shared/skills/web-auto-update-source-instructions/SKILL.md +156 -0
- package/kits/shared/skills/web-auto-update-source-instructions/evals/evals.json +22 -0
- package/kits/shared/skills/workspace-ai-nav-creator/SKILL.md +168 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/agents-md.template.md +112 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/claude-md.template.md +86 -0
- package/package.json +16 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# Post-hoc Analyzer Agent
|
|
2
|
+
|
|
3
|
+
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
After the blind comparator determines a winner, the Post-hoc Analyzer "unblids" 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?
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
|
|
11
|
+
You receive these parameters in your prompt:
|
|
12
|
+
|
|
13
|
+
- **winner**: "A" or "B" (from blind comparison)
|
|
14
|
+
- **winner_skill_path**: Path to the skill that produced the winning output
|
|
15
|
+
- **winner_transcript_path**: Path to the execution transcript for the winner
|
|
16
|
+
- **loser_skill_path**: Path to the skill that produced the losing output
|
|
17
|
+
- **loser_transcript_path**: Path to the execution transcript for the loser
|
|
18
|
+
- **comparison_result_path**: Path to the blind comparator's output JSON
|
|
19
|
+
- **output_path**: Where to save the analysis results
|
|
20
|
+
|
|
21
|
+
## Process
|
|
22
|
+
|
|
23
|
+
### Step 1: Read Comparison Result
|
|
24
|
+
|
|
25
|
+
1. Read the blind comparator's output at comparison_result_path
|
|
26
|
+
2. Note the winning side (A or B), the reasoning, and any scores
|
|
27
|
+
3. Understand what the comparator valued in the winning output
|
|
28
|
+
|
|
29
|
+
### Step 2: Read Both Skills
|
|
30
|
+
|
|
31
|
+
1. Read the winner skill's SKILL.md and key referenced files
|
|
32
|
+
2. Read the loser skill's SKILL.md and key referenced files
|
|
33
|
+
3. Identify structural differences:
|
|
34
|
+
- Instructions clarity and specificity
|
|
35
|
+
- Script/tool usage patterns
|
|
36
|
+
- Example coverage
|
|
37
|
+
- Edge case handling
|
|
38
|
+
|
|
39
|
+
### Step 3: Read Both Transcripts
|
|
40
|
+
|
|
41
|
+
1. Read the winner's transcript
|
|
42
|
+
2. Read the loser's transcript
|
|
43
|
+
3. Compare execution patterns:
|
|
44
|
+
- How closely did each follow their skill's instructions?
|
|
45
|
+
- What tools were used differently?
|
|
46
|
+
- Where did the loser diverge from optimal behavior?
|
|
47
|
+
- Did either encounter errors or make recovery attempts?
|
|
48
|
+
|
|
49
|
+
### Step 4: Analyze Instruction Following
|
|
50
|
+
|
|
51
|
+
For each transcript, evaluate:
|
|
52
|
+
- Did the agent follow the skill's explicit instructions?
|
|
53
|
+
- Did the agent use the skill's provided tools/scripts?
|
|
54
|
+
- Were there missed opportunities to leverage skill content?
|
|
55
|
+
- Did the agent add unnecessary steps not in the skill?
|
|
56
|
+
|
|
57
|
+
Score instruction following 1-10 and note specific issues.
|
|
58
|
+
|
|
59
|
+
### Step 5: Identify Winner Strengths
|
|
60
|
+
|
|
61
|
+
Determine what made the winner better:
|
|
62
|
+
- Clearer instructions that led to better behavior?
|
|
63
|
+
- Better scripts/tools that produced better output?
|
|
64
|
+
- More comprehensive examples that guided edge cases?
|
|
65
|
+
- Better error handling guidance?
|
|
66
|
+
|
|
67
|
+
Be specific. Quote from skills/transcripts where relevant.
|
|
68
|
+
|
|
69
|
+
### Step 6: Identify Loser Weaknesses
|
|
70
|
+
|
|
71
|
+
Determine what held the loser back:
|
|
72
|
+
- Ambiguous instructions that led to suboptimal choices?
|
|
73
|
+
- Missing tools/scripts that forced workarounds?
|
|
74
|
+
- Gaps in edge case coverage?
|
|
75
|
+
- Poor error handling that caused failures?
|
|
76
|
+
|
|
77
|
+
### Step 7: Generate Improvement Suggestions
|
|
78
|
+
|
|
79
|
+
Based on the analysis, produce actionable suggestions for improving the loser skill:
|
|
80
|
+
- Specific instruction changes to make
|
|
81
|
+
- Tools/scripts to add or modify
|
|
82
|
+
- Examples to include
|
|
83
|
+
- Edge cases to address
|
|
84
|
+
|
|
85
|
+
Prioritize by impact. Focus on changes that would have changed the outcome.
|
|
86
|
+
|
|
87
|
+
### Step 8: Write Analysis Results
|
|
88
|
+
|
|
89
|
+
Save structured analysis to `{output_path}`.
|
|
90
|
+
|
|
91
|
+
## Output Format
|
|
92
|
+
|
|
93
|
+
Write a JSON file with this structure:
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"comparison_summary": {
|
|
98
|
+
"winner": "A",
|
|
99
|
+
"winner_skill": "path/to/winner/skill",
|
|
100
|
+
"loser_skill": "path/to/loser/skill",
|
|
101
|
+
"comparator_reasoning": "Brief summary of why comparator chose winner"
|
|
102
|
+
},
|
|
103
|
+
"winner_strengths": [
|
|
104
|
+
"Clear step-by-step instructions for handling multi-page documents",
|
|
105
|
+
"Included validation script that caught formatting errors",
|
|
106
|
+
"Explicit guidance on fallback behavior when OCR fails"
|
|
107
|
+
],
|
|
108
|
+
"loser_weaknesses": [
|
|
109
|
+
"Vague instruction 'process the document appropriately' led to inconsistent behavior",
|
|
110
|
+
"No script for validation, agent had to improvise and made errors",
|
|
111
|
+
"No guidance on OCR failure, agent gave up instead of trying alternatives"
|
|
112
|
+
],
|
|
113
|
+
"instruction_following": {
|
|
114
|
+
"winner": {
|
|
115
|
+
"score": 9,
|
|
116
|
+
"issues": [
|
|
117
|
+
"Minor: skipped optional logging step"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"loser": {
|
|
121
|
+
"score": 6,
|
|
122
|
+
"issues": [
|
|
123
|
+
"Did not use the skill's formatting template",
|
|
124
|
+
"Invented own approach instead of following step 3",
|
|
125
|
+
"Missed the 'always validate output' instruction"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"improvement_suggestions": [
|
|
130
|
+
{
|
|
131
|
+
"priority": "high",
|
|
132
|
+
"category": "instructions",
|
|
133
|
+
"suggestion": "Replace 'process the document appropriately' with explicit steps: 1) Extract text, 2) Identify sections, 3) Format per template",
|
|
134
|
+
"expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"priority": "high",
|
|
138
|
+
"category": "tools",
|
|
139
|
+
"suggestion": "Add validate_output.py script similar to winner skill's validation approach",
|
|
140
|
+
"expected_impact": "Would catch formatting errors before final output"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"priority": "medium",
|
|
144
|
+
"category": "error_handling",
|
|
145
|
+
"suggestion": "Add fallback instructions: 'If OCR fails, try: 1) different resolution, 2) image preprocessing, 3) manual extraction'",
|
|
146
|
+
"expected_impact": "Would prevent early failure on difficult documents"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"transcript_insights": {
|
|
150
|
+
"winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script -> Fixed 2 issues -> Produced output",
|
|
151
|
+
"loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods -> No validation -> Output had errors"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Guidelines
|
|
157
|
+
|
|
158
|
+
- **Be specific**: Quote from skills and transcripts, don't just say "instructions were unclear"
|
|
159
|
+
- **Be actionable**: Suggestions should be concrete changes, not vague advice
|
|
160
|
+
- **Focus on skill improvements**: The goal is to improve the losing skill, not critique the agent
|
|
161
|
+
- **Prioritize by impact**: Which changes would most likely have changed the outcome?
|
|
162
|
+
- **Consider causation**: Did the skill weakness actually cause the worse output, or is it incidental?
|
|
163
|
+
- **Stay objective**: Analyze what happened, don't editorialize
|
|
164
|
+
- **Think about generalization**: Would this improvement help on other evals too?
|
|
165
|
+
|
|
166
|
+
## Categories for Suggestions
|
|
167
|
+
|
|
168
|
+
Use these categories to organize improvement suggestions:
|
|
169
|
+
|
|
170
|
+
| Category | Description |
|
|
171
|
+
|----------|-------------|
|
|
172
|
+
| `instructions` | Changes to the skill's prose instructions |
|
|
173
|
+
| `tools` | Scripts, templates, or utilities to add/modify |
|
|
174
|
+
| `examples` | Example inputs/outputs to include |
|
|
175
|
+
| `error_handling` | Guidance for handling failures |
|
|
176
|
+
| `structure` | Reorganization of skill content |
|
|
177
|
+
| `references` | External docs or resources to add |
|
|
178
|
+
|
|
179
|
+
## Priority Levels
|
|
180
|
+
|
|
181
|
+
- **high**: Would likely change the outcome of this comparison
|
|
182
|
+
- **medium**: Would improve quality but may not change win/loss
|
|
183
|
+
- **low**: Nice to have, marginal improvement
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
# Analyzing Benchmark Results
|
|
188
|
+
|
|
189
|
+
When analyzing benchmark results, the analyzer's purpose is to **surface patterns and anomalies** across multiple runs, not suggest skill improvements.
|
|
190
|
+
|
|
191
|
+
## Role
|
|
192
|
+
|
|
193
|
+
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.
|
|
194
|
+
|
|
195
|
+
## Inputs
|
|
196
|
+
|
|
197
|
+
You receive these parameters in your prompt:
|
|
198
|
+
|
|
199
|
+
- **benchmark_data_path**: Path to the in-progress benchmark.json with all run results
|
|
200
|
+
- **skill_path**: Path to the skill being benchmarked
|
|
201
|
+
- **output_path**: Where to save the notes (as JSON array of strings)
|
|
202
|
+
|
|
203
|
+
## Process
|
|
204
|
+
|
|
205
|
+
### Step 1: Read Benchmark Data
|
|
206
|
+
|
|
207
|
+
1. Read the benchmark.json containing all run results
|
|
208
|
+
2. Note the configurations tested (with_skill, without_skill)
|
|
209
|
+
3. Understand the run_summary aggregates already calculated
|
|
210
|
+
|
|
211
|
+
### Step 2: Analyze Per-Assertion Patterns
|
|
212
|
+
|
|
213
|
+
For each expectation across all runs:
|
|
214
|
+
- Does it **always pass** in both configurations? (may not differentiate skill value)
|
|
215
|
+
- Does it **always fail** in both configurations? (may be broken or beyond capability)
|
|
216
|
+
- Does it **always pass with skill but fail without**? (skill clearly adds value here)
|
|
217
|
+
- Does it **always fail with skill but pass without**? (skill may be hurting)
|
|
218
|
+
- Is it **highly variable**? (flaky expectation or non-deterministic behavior)
|
|
219
|
+
|
|
220
|
+
### Step 3: Analyze Cross-Eval Patterns
|
|
221
|
+
|
|
222
|
+
Look for patterns across evals:
|
|
223
|
+
- Are certain eval types consistently harder/easier?
|
|
224
|
+
- Do some evals show high variance while others are stable?
|
|
225
|
+
- Are there surprising results that contradict expectations?
|
|
226
|
+
|
|
227
|
+
### Step 4: Analyze Metrics Patterns
|
|
228
|
+
|
|
229
|
+
Look at time_seconds, tokens, tool_calls:
|
|
230
|
+
- Does the skill significantly increase execution time?
|
|
231
|
+
- Is there high variance in resource usage?
|
|
232
|
+
- Are there outlier runs that skew the aggregates?
|
|
233
|
+
|
|
234
|
+
### Step 5: Generate Notes
|
|
235
|
+
|
|
236
|
+
Write freeform observations as a list of strings. Each note should:
|
|
237
|
+
- State a specific observation
|
|
238
|
+
- Be grounded in the data (not speculation)
|
|
239
|
+
- Help the user understand something the aggregate metrics don't show
|
|
240
|
+
|
|
241
|
+
Examples:
|
|
242
|
+
- "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value"
|
|
243
|
+
- "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure that may be flaky"
|
|
244
|
+
- "Without-skill runs consistently fail on table extraction expectations (0% pass rate)"
|
|
245
|
+
- "Skill adds 13s average execution time but improves pass rate by 50%"
|
|
246
|
+
- "Token usage is 80% higher with skill, primarily due to script output parsing"
|
|
247
|
+
- "All 3 without-skill runs for eval 1 produced empty output"
|
|
248
|
+
|
|
249
|
+
### Step 6: Write Notes
|
|
250
|
+
|
|
251
|
+
Save notes to `{output_path}` as a JSON array of strings:
|
|
252
|
+
|
|
253
|
+
```json
|
|
254
|
+
[
|
|
255
|
+
"Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
|
|
256
|
+
"Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure",
|
|
257
|
+
"Without-skill runs consistently fail on table extraction expectations",
|
|
258
|
+
"Skill adds 13s average execution time but improves pass rate by 50%"
|
|
259
|
+
]
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## Guidelines
|
|
263
|
+
|
|
264
|
+
**DO:**
|
|
265
|
+
- Report what you observe in the data
|
|
266
|
+
- Be specific about which evals, expectations, or runs you're referring to
|
|
267
|
+
- Note patterns that aggregate metrics would hide
|
|
268
|
+
- Provide context that helps interpret the numbers
|
|
269
|
+
|
|
270
|
+
**DO NOT:**
|
|
271
|
+
- Suggest improvements to the skill (that's for the improvement step, not benchmarking)
|
|
272
|
+
- Make subjective quality judgments ("the output was good/bad")
|
|
273
|
+
- Speculate about causes without evidence
|
|
274
|
+
- Repeat information already in the run_summary aggregates
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Blind Comparator Agent
|
|
2
|
+
|
|
3
|
+
Compare two outputs WITHOUT knowing which skill produced them.
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Your judgment is based purely on output quality and task completion.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
|
|
13
|
+
You receive these parameters in your prompt:
|
|
14
|
+
|
|
15
|
+
- **output_a_path**: Path to the first output file or directory
|
|
16
|
+
- **output_b_path**: Path to the second output file or directory
|
|
17
|
+
- **eval_prompt**: The original task/prompt that was executed
|
|
18
|
+
- **expectations**: List of expectations to check (optional - may be empty)
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
### Step 1: Read Both Outputs
|
|
23
|
+
|
|
24
|
+
1. Examine output A (file or directory)
|
|
25
|
+
2. Examine output B (file or directory)
|
|
26
|
+
3. Note the type, structure, and content of each
|
|
27
|
+
4. If outputs are directories, examine all relevant files inside
|
|
28
|
+
|
|
29
|
+
### Step 2: Understand the Task
|
|
30
|
+
|
|
31
|
+
1. Read the eval_prompt carefully
|
|
32
|
+
2. Identify what the task requires:
|
|
33
|
+
- What should be produced?
|
|
34
|
+
- What qualities matter (accuracy, completeness, format)?
|
|
35
|
+
- What would distinguish a good output from a poor one?
|
|
36
|
+
|
|
37
|
+
### Step 3: Generate Evaluation Rubric
|
|
38
|
+
|
|
39
|
+
Based on the task, generate a rubric with two dimensions:
|
|
40
|
+
|
|
41
|
+
**Content Rubric** (what the output contains):
|
|
42
|
+
| Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
|
|
43
|
+
|-----------|----------|----------------|---------------|
|
|
44
|
+
| Correctness | Major errors | Minor errors | Fully correct |
|
|
45
|
+
| Completeness | Missing key elements | Mostly complete | All elements present |
|
|
46
|
+
| Accuracy | Significant inaccuracies | Minor inaccuracies | Accurate throughout |
|
|
47
|
+
|
|
48
|
+
**Structure Rubric** (how the output is organized):
|
|
49
|
+
| Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
|
|
50
|
+
|-----------|----------|----------------|---------------|
|
|
51
|
+
| Organization | Disorganized | Reasonably organized | Clear, logical structure |
|
|
52
|
+
| Formatting | Inconsistent/broken | Mostly consistent | Professional, polished |
|
|
53
|
+
| Usability | Difficult to use | Usable with effort | Easy to use |
|
|
54
|
+
|
|
55
|
+
Adapt criteria to the specific task. For example:
|
|
56
|
+
- PDF form → "Field alignment", "Text readability", "Data placement"
|
|
57
|
+
- Document → "Section structure", "Heading hierarchy", "Paragraph flow"
|
|
58
|
+
- Data output → "Schema correctness", "Data types", "Completeness"
|
|
59
|
+
|
|
60
|
+
### Step 4: Evaluate Each Output Against the Rubric
|
|
61
|
+
|
|
62
|
+
For each output (A and B):
|
|
63
|
+
|
|
64
|
+
1. **Score each criterion** on the rubric (1-5 scale)
|
|
65
|
+
2. **Calculate dimension totals**: Content score, Structure score
|
|
66
|
+
3. **Calculate overall score**: Average of dimension scores, scaled to 1-10
|
|
67
|
+
|
|
68
|
+
### Step 5: Check Assertions (if provided)
|
|
69
|
+
|
|
70
|
+
If expectations are provided:
|
|
71
|
+
|
|
72
|
+
1. Check each expectation against output A
|
|
73
|
+
2. Check each expectation against output B
|
|
74
|
+
3. Count pass rates for each output
|
|
75
|
+
4. Use expectation scores as secondary evidence (not the primary decision factor)
|
|
76
|
+
|
|
77
|
+
### Step 6: Determine the Winner
|
|
78
|
+
|
|
79
|
+
Compare A and B based on (in priority order):
|
|
80
|
+
|
|
81
|
+
1. **Primary**: Overall rubric score (content + structure)
|
|
82
|
+
2. **Secondary**: Assertion pass rates (if applicable)
|
|
83
|
+
3. **Tiebreaker**: If truly equal, declare a TIE
|
|
84
|
+
|
|
85
|
+
Be decisive - ties should be rare. One output is usually better, even if marginally.
|
|
86
|
+
|
|
87
|
+
### Step 7: Write Comparison Results
|
|
88
|
+
|
|
89
|
+
Save results to a JSON file at the path specified (or `comparison.json` if not specified).
|
|
90
|
+
|
|
91
|
+
## Output Format
|
|
92
|
+
|
|
93
|
+
Write a JSON file with this structure:
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"winner": "A",
|
|
98
|
+
"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.",
|
|
99
|
+
"rubric": {
|
|
100
|
+
"A": {
|
|
101
|
+
"content": {
|
|
102
|
+
"correctness": 5,
|
|
103
|
+
"completeness": 5,
|
|
104
|
+
"accuracy": 4
|
|
105
|
+
},
|
|
106
|
+
"structure": {
|
|
107
|
+
"organization": 4,
|
|
108
|
+
"formatting": 5,
|
|
109
|
+
"usability": 4
|
|
110
|
+
},
|
|
111
|
+
"content_score": 4.7,
|
|
112
|
+
"structure_score": 4.3,
|
|
113
|
+
"overall_score": 9.0
|
|
114
|
+
},
|
|
115
|
+
"B": {
|
|
116
|
+
"content": {
|
|
117
|
+
"correctness": 3,
|
|
118
|
+
"completeness": 2,
|
|
119
|
+
"accuracy": 3
|
|
120
|
+
},
|
|
121
|
+
"structure": {
|
|
122
|
+
"organization": 3,
|
|
123
|
+
"formatting": 2,
|
|
124
|
+
"usability": 3
|
|
125
|
+
},
|
|
126
|
+
"content_score": 2.7,
|
|
127
|
+
"structure_score": 2.7,
|
|
128
|
+
"overall_score": 5.4
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"output_quality": {
|
|
132
|
+
"A": {
|
|
133
|
+
"score": 9,
|
|
134
|
+
"strengths": ["Complete solution", "Well-formatted", "All fields present"],
|
|
135
|
+
"weaknesses": ["Minor style inconsistency in header"]
|
|
136
|
+
},
|
|
137
|
+
"B": {
|
|
138
|
+
"score": 5,
|
|
139
|
+
"strengths": ["Readable output", "Correct basic structure"],
|
|
140
|
+
"weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"expectation_results": {
|
|
144
|
+
"A": {
|
|
145
|
+
"passed": 4,
|
|
146
|
+
"total": 5,
|
|
147
|
+
"pass_rate": 0.80,
|
|
148
|
+
"details": [
|
|
149
|
+
{"text": "Output includes name", "passed": true},
|
|
150
|
+
{"text": "Output includes date", "passed": true},
|
|
151
|
+
{"text": "Format is PDF", "passed": true},
|
|
152
|
+
{"text": "Contains signature", "passed": false},
|
|
153
|
+
{"text": "Readable text", "passed": true}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"B": {
|
|
157
|
+
"passed": 3,
|
|
158
|
+
"total": 5,
|
|
159
|
+
"pass_rate": 0.60,
|
|
160
|
+
"details": [
|
|
161
|
+
{"text": "Output includes name", "passed": true},
|
|
162
|
+
{"text": "Output includes date", "passed": false},
|
|
163
|
+
{"text": "Format is PDF", "passed": true},
|
|
164
|
+
{"text": "Contains signature", "passed": false},
|
|
165
|
+
{"text": "Readable text", "passed": true}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
If no expectations were provided, omit the `expectation_results` field entirely.
|
|
173
|
+
|
|
174
|
+
## Field Descriptions
|
|
175
|
+
|
|
176
|
+
- **winner**: "A", "B", or "TIE"
|
|
177
|
+
- **reasoning**: Clear explanation of why the winner was chosen (or why it's a tie)
|
|
178
|
+
- **rubric**: Structured rubric evaluation for each output
|
|
179
|
+
- **content**: Scores for content criteria (correctness, completeness, accuracy)
|
|
180
|
+
- **structure**: Scores for structure criteria (organization, formatting, usability)
|
|
181
|
+
- **content_score**: Average of content criteria (1-5)
|
|
182
|
+
- **structure_score**: Average of structure criteria (1-5)
|
|
183
|
+
- **overall_score**: Combined score scaled to 1-10
|
|
184
|
+
- **output_quality**: Summary quality assessment
|
|
185
|
+
- **score**: 1-10 rating (should match rubric overall_score)
|
|
186
|
+
- **strengths**: List of positive aspects
|
|
187
|
+
- **weaknesses**: List of issues or shortcomings
|
|
188
|
+
- **expectation_results**: (Only if expectations provided)
|
|
189
|
+
- **passed**: Number of expectations that passed
|
|
190
|
+
- **total**: Total number of expectations
|
|
191
|
+
- **pass_rate**: Fraction passed (0.0 to 1.0)
|
|
192
|
+
- **details**: Individual expectation results
|
|
193
|
+
|
|
194
|
+
## Guidelines
|
|
195
|
+
|
|
196
|
+
- **Stay blind**: DO NOT try to infer which skill produced which output. Judge purely on output quality.
|
|
197
|
+
- **Be specific**: Cite specific examples when explaining strengths and weaknesses.
|
|
198
|
+
- **Be decisive**: Choose a winner unless outputs are genuinely equivalent.
|
|
199
|
+
- **Output quality first**: Assertion scores are secondary to overall task completion.
|
|
200
|
+
- **Be objective**: Don't favor outputs based on style preferences; focus on correctness and completeness.
|
|
201
|
+
- **Explain your reasoning**: The reasoning field should make it clear why you chose the winner.
|
|
202
|
+
- **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.
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Grader Agent
|
|
2
|
+
|
|
3
|
+
Evaluate expectations against an execution transcript and outputs.
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
The Grader reviews a transcript and output files, then determines whether each expectation passes or fails. Provide clear evidence for each judgment.
|
|
8
|
+
|
|
9
|
+
You have two jobs: grade the outputs, and critique the evals themselves. A passing grade on a weak assertion is worse than useless — it creates false confidence. When you notice an assertion that's trivially satisfied, or an important outcome that no assertion checks, say so.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
|
|
13
|
+
You receive these parameters in your prompt:
|
|
14
|
+
|
|
15
|
+
- **expectations**: List of expectations to evaluate (strings)
|
|
16
|
+
- **transcript_path**: Path to the execution transcript (markdown file)
|
|
17
|
+
- **outputs_dir**: Directory containing output files from execution
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
### Step 1: Read the Transcript
|
|
22
|
+
|
|
23
|
+
1. Read the transcript file completely
|
|
24
|
+
2. Note the eval prompt, execution steps, and final result
|
|
25
|
+
3. Identify any issues or errors documented
|
|
26
|
+
|
|
27
|
+
### Step 2: Examine Output Files
|
|
28
|
+
|
|
29
|
+
1. List files in outputs_dir
|
|
30
|
+
2. Read/examine each file relevant to the expectations. If outputs aren't plain text, use the inspection tools provided in your prompt — don't rely solely on what the transcript says the executor produced.
|
|
31
|
+
3. Note contents, structure, and quality
|
|
32
|
+
|
|
33
|
+
### Step 3: Evaluate Each Assertion
|
|
34
|
+
|
|
35
|
+
For each expectation:
|
|
36
|
+
|
|
37
|
+
1. **Search for evidence** in the transcript and outputs
|
|
38
|
+
2. **Determine verdict**:
|
|
39
|
+
- **PASS**: Clear evidence the expectation is true AND the evidence reflects genuine task completion, not just surface-level compliance
|
|
40
|
+
- **FAIL**: No evidence, or evidence contradicts the expectation, or the evidence is superficial (e.g., correct filename but empty/wrong content)
|
|
41
|
+
3. **Cite the evidence**: Quote the specific text or describe what you found
|
|
42
|
+
|
|
43
|
+
### Step 4: Extract and Verify Claims
|
|
44
|
+
|
|
45
|
+
Beyond the predefined expectations, extract implicit claims from the outputs and verify them:
|
|
46
|
+
|
|
47
|
+
1. **Extract claims** from the transcript and outputs:
|
|
48
|
+
- Factual statements ("The form has 12 fields")
|
|
49
|
+
- Process claims ("Used pypdf to fill the form")
|
|
50
|
+
- Quality claims ("All fields were filled correctly")
|
|
51
|
+
|
|
52
|
+
2. **Verify each claim**:
|
|
53
|
+
- **Factual claims**: Can be checked against the outputs or external sources
|
|
54
|
+
- **Process claims**: Can be verified from the transcript
|
|
55
|
+
- **Quality claims**: Evaluate whether the claim is justified
|
|
56
|
+
|
|
57
|
+
3. **Flag unverifiable claims**: Note claims that cannot be verified with available information
|
|
58
|
+
|
|
59
|
+
This catches issues that predefined expectations might miss.
|
|
60
|
+
|
|
61
|
+
### Step 5: Read User Notes
|
|
62
|
+
|
|
63
|
+
If `{outputs_dir}/user_notes.md` exists:
|
|
64
|
+
1. Read it and note any uncertainties or issues flagged by the executor
|
|
65
|
+
2. Include relevant concerns in the grading output
|
|
66
|
+
3. These may reveal problems even when expectations pass
|
|
67
|
+
|
|
68
|
+
### Step 6: Critique the Evals
|
|
69
|
+
|
|
70
|
+
After grading, consider whether the evals themselves could be improved. Only surface suggestions when there's a clear gap.
|
|
71
|
+
|
|
72
|
+
Good suggestions test meaningful outcomes — assertions that are hard to satisfy without actually doing the work correctly. Think about what makes an assertion *discriminating*: it passes when the skill genuinely succeeds and fails when it doesn't.
|
|
73
|
+
|
|
74
|
+
Suggestions worth raising:
|
|
75
|
+
- An assertion that passed but would also pass for a clearly wrong output (e.g., checking filename existence but not file content)
|
|
76
|
+
- An important outcome you observed — good or bad — that no assertion covers at all
|
|
77
|
+
- An assertion that can't actually be verified from the available outputs
|
|
78
|
+
|
|
79
|
+
Keep the bar high. The goal is to flag things the eval author would say "good catch" about, not to nitpick every assertion.
|
|
80
|
+
|
|
81
|
+
### Step 7: Write Grading Results
|
|
82
|
+
|
|
83
|
+
Save results to `{outputs_dir}/../grading.json` (sibling to outputs_dir).
|
|
84
|
+
|
|
85
|
+
## Grading Criteria
|
|
86
|
+
|
|
87
|
+
**PASS when**:
|
|
88
|
+
- The transcript or outputs clearly demonstrate the expectation is true
|
|
89
|
+
- Specific evidence can be cited
|
|
90
|
+
- The evidence reflects genuine substance, not just surface compliance (e.g., a file exists AND contains correct content, not just the right filename)
|
|
91
|
+
|
|
92
|
+
**FAIL when**:
|
|
93
|
+
- No evidence found for the expectation
|
|
94
|
+
- Evidence contradicts the expectation
|
|
95
|
+
- The expectation cannot be verified from available information
|
|
96
|
+
- The evidence is superficial — the assertion is technically satisfied but the underlying task outcome is wrong or incomplete
|
|
97
|
+
- The output appears to meet the assertion by coincidence rather than by actually doing the work
|
|
98
|
+
|
|
99
|
+
**When uncertain**: The burden of proof to pass is on the expectation.
|
|
100
|
+
|
|
101
|
+
### Step 8: Read Executor Metrics and Timing
|
|
102
|
+
|
|
103
|
+
1. If `{outputs_dir}/metrics.json` exists, read it and include in grading output
|
|
104
|
+
2. If `{outputs_dir}/../timing.json` exists, read it and include timing data
|
|
105
|
+
|
|
106
|
+
## Output Format
|
|
107
|
+
|
|
108
|
+
Write a JSON file with this structure:
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{
|
|
112
|
+
"expectations": [
|
|
113
|
+
{
|
|
114
|
+
"text": "The output includes the name 'John Smith'",
|
|
115
|
+
"passed": true,
|
|
116
|
+
"evidence": "Found in transcript Step 3: 'Extracted names: John Smith, Sarah Johnson'"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"text": "The spreadsheet has a SUM formula in cell B10",
|
|
120
|
+
"passed": false,
|
|
121
|
+
"evidence": "No spreadsheet was created. The output was a text file."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"text": "The assistant used the skill's OCR script",
|
|
125
|
+
"passed": true,
|
|
126
|
+
"evidence": "Transcript Step 2 shows: 'Tool: Bash - python ocr_script.py image.png'"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"summary": {
|
|
130
|
+
"passed": 2,
|
|
131
|
+
"failed": 1,
|
|
132
|
+
"total": 3,
|
|
133
|
+
"pass_rate": 0.67
|
|
134
|
+
},
|
|
135
|
+
"execution_metrics": {
|
|
136
|
+
"tool_calls": {
|
|
137
|
+
"Read": 5,
|
|
138
|
+
"Write": 2,
|
|
139
|
+
"Bash": 8
|
|
140
|
+
},
|
|
141
|
+
"total_tool_calls": 15,
|
|
142
|
+
"total_steps": 6,
|
|
143
|
+
"errors_encountered": 0,
|
|
144
|
+
"output_chars": 12450,
|
|
145
|
+
"transcript_chars": 3200
|
|
146
|
+
},
|
|
147
|
+
"timing": {
|
|
148
|
+
"executor_duration_seconds": 165.0,
|
|
149
|
+
"grader_duration_seconds": 26.0,
|
|
150
|
+
"total_duration_seconds": 191.0
|
|
151
|
+
},
|
|
152
|
+
"claims": [
|
|
153
|
+
{
|
|
154
|
+
"claim": "The form has 12 fillable fields",
|
|
155
|
+
"type": "factual",
|
|
156
|
+
"verified": true,
|
|
157
|
+
"evidence": "Counted 12 fields in field_info.json"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"claim": "All required fields were populated",
|
|
161
|
+
"type": "quality",
|
|
162
|
+
"verified": false,
|
|
163
|
+
"evidence": "Reference section was left blank despite data being available"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"user_notes_summary": {
|
|
167
|
+
"uncertainties": ["Used 2023 data, may be stale"],
|
|
168
|
+
"needs_review": [],
|
|
169
|
+
"workarounds": ["Fell back to text overlay for non-fillable fields"]
|
|
170
|
+
},
|
|
171
|
+
"eval_feedback": {
|
|
172
|
+
"suggestions": [
|
|
173
|
+
{
|
|
174
|
+
"assertion": "The output includes the name 'John Smith'",
|
|
175
|
+
"reason": "A hallucinated document that mentions the name would also pass — consider checking it appears as the primary contact with matching phone and email from the input"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"reason": "No assertion checks whether the extracted phone numbers match the input — I observed incorrect numbers in the output that went uncaught"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"overall": "Assertions check presence but not correctness. Consider adding content verification."
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Field Descriptions
|
|
187
|
+
|
|
188
|
+
- **expectations**: Array of graded expectations
|
|
189
|
+
- **text**: The original expectation text
|
|
190
|
+
- **passed**: Boolean - true if expectation passes
|
|
191
|
+
- **evidence**: Specific quote or description supporting the verdict
|
|
192
|
+
- **summary**: Aggregate statistics
|
|
193
|
+
- **passed**: Count of passed expectations
|
|
194
|
+
- **failed**: Count of failed expectations
|
|
195
|
+
- **total**: Total expectations evaluated
|
|
196
|
+
- **pass_rate**: Fraction passed (0.0 to 1.0)
|
|
197
|
+
- **execution_metrics**: Copied from executor's metrics.json (if available)
|
|
198
|
+
- **output_chars**: Total character count of output files (proxy for tokens)
|
|
199
|
+
- **transcript_chars**: Character count of transcript
|
|
200
|
+
- **timing**: Wall clock timing from timing.json (if available)
|
|
201
|
+
- **executor_duration_seconds**: Time spent in executor subagent
|
|
202
|
+
- **total_duration_seconds**: Total elapsed time for the run
|
|
203
|
+
- **claims**: Extracted and verified claims from the output
|
|
204
|
+
- **claim**: The statement being verified
|
|
205
|
+
- **type**: "factual", "process", or "quality"
|
|
206
|
+
- **verified**: Boolean - whether the claim holds
|
|
207
|
+
- **evidence**: Supporting or contradicting evidence
|
|
208
|
+
- **user_notes_summary**: Issues flagged by the executor
|
|
209
|
+
- **uncertainties**: Things the executor wasn't sure about
|
|
210
|
+
- **needs_review**: Items requiring human attention
|
|
211
|
+
- **workarounds**: Places where the skill didn't work as expected
|
|
212
|
+
- **eval_feedback**: Improvement suggestions for the evals (only when warranted)
|
|
213
|
+
- **suggestions**: List of concrete suggestions, each with a `reason` and optionally an `assertion` it relates to
|
|
214
|
+
- **overall**: Brief assessment — can be "No suggestions, evals look solid" if nothing to flag
|
|
215
|
+
|
|
216
|
+
## Guidelines
|
|
217
|
+
|
|
218
|
+
- **Be objective**: Base verdicts on evidence, not assumptions
|
|
219
|
+
- **Be specific**: Quote the exact text that supports your verdict
|
|
220
|
+
- **Be thorough**: Check both transcript and output files
|
|
221
|
+
- **Be consistent**: Apply the same standard to each expectation
|
|
222
|
+
- **Explain failures**: Make it clear why evidence was insufficient
|
|
223
|
+
- **No partial credit**: Each expectation is pass or fail, not partial
|