wshobson--agents
0041fc7194
Adds a GitHub Action that runs the full plugin-eval engine across every local plugin and emits a structured report for review — not a PR gate. - scripts/eval_all.py batch-runs EvalEngine.evaluate_plugin across plugins/*/, writing per-plugin JSON plus summary.md and summary.json - Report surfaces composite score, 95% CI, badge, confidence label, anti-pattern flags, and three weakest dimensions per plugin - Separate "Issues requiring attention" section for plugins scoring under 60 or with anti-pattern flags raised - Workflow triggers: workflow_dispatch (choose depth + optional comma-separated plugin filter) and weekly cron (Mondays 06:00 UTC) - Depth quick = static only (no credentials); standard/deep require ANTHROPIC_API_KEY repo secret for LLM judge / Monte Carlo layers - Posts summary.md to the job summary, uploads full eval-reports/ directory as an artifact for 30 days Smoke-tested locally: 77 plugins evaluated at quick depth in < 5s, mean 83.1/100, 2 plugins flagged (incident-response with DEAD_CROSS_REF, plugin-eval with ORPHAN_REFERENCE + DEAD_CROSS_REF).
74 行
2.0 KiB
YAML
74 行
2.0 KiB
YAML
name: Plugin Eval Report
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
depth:
|
|
description: 'Evaluation depth (quick = static only, standard = +LLM judge, deep = +Monte Carlo)'
|
|
required: true
|
|
default: 'quick'
|
|
type: choice
|
|
options:
|
|
- quick
|
|
- standard
|
|
- deep
|
|
only_changed:
|
|
description: 'Comma-separated plugin names to evaluate (blank = all)'
|
|
required: false
|
|
default: ''
|
|
type: string
|
|
schedule:
|
|
# Weekly full static sweep, Mondays at 06:00 UTC
|
|
- cron: '0 6 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
eval:
|
|
name: Evaluate plugins (${{ inputs.depth || 'quick' }})
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 180
|
|
env:
|
|
DEPTH: ${{ inputs.depth || 'quick' }}
|
|
ONLY_CHANGED: ${{ inputs.only_changed || '' }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Sync plugin-eval dependencies
|
|
working-directory: plugins/plugin-eval
|
|
run: uv sync --all-extras
|
|
|
|
- name: Run eval sweep
|
|
working-directory: plugins/plugin-eval
|
|
env:
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
run: |
|
|
args=( --depth "$DEPTH" --output-dir "$GITHUB_WORKSPACE/eval-reports" --concurrency 4 )
|
|
if [ -n "$ONLY_CHANGED" ]; then
|
|
args+=( --only-changed "$ONLY_CHANGED" )
|
|
fi
|
|
uv run python scripts/eval_all.py "${args[@]}"
|
|
|
|
- name: Post report to job summary
|
|
if: always()
|
|
run: |
|
|
if [ -f eval-reports/summary.md ]; then
|
|
cat eval-reports/summary.md >> "$GITHUB_STEP_SUMMARY"
|
|
else
|
|
echo "No summary produced." >> "$GITHUB_STEP_SUMMARY"
|
|
fi
|
|
|
|
- name: Upload reports artifact
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: eval-reports-${{ env.DEPTH }}-${{ github.run_id }}
|
|
path: eval-reports/
|
|
retention-days: 30
|