intertwine/security-verifiers/sv-eval
Claude Code and agent skill by intertwine/security-verifiers
- community
Checking that the SKILL.md file is still in the repository.
Run and analyze Security Verifiers evaluations. Use when asked to evaluate models on E1 (network-logs) or E2 (config-verification), generate metrics reports, compare model performance, or analyze eval results.
Install
npx vskill@latest install intertwine/security-verifiers/sv-evalSKILL.md
Security Verifiers Evaluation
Run reproducible evaluations on E1 (network-logs) and E2 (config-verification) environments, generate metrics reports, and analyze results.
Prerequisites
Ensure environment variables are set (check .env file):
OPENAI_API_KEY- For OpenAI models (gpt-*)OPENROUTER_API_KEY- For non-OpenAI models via OpenRouterWANDB_API_KEY- For Weave logging (optional)
Running Evaluations
E1: Network Logs (Classification)
Single-turn anomaly detection with calibration and asymmetric costs.
E2: Config Verification (Tool-Use)
Multi-turn tool-grounded auditing with KubeLinter, Semgrep, and OPA.
Error Handling
Early stopping prevents wasted API costs:
Generating Reports
SV-Bench supports two kinds of reporting:
- Per-run contract reports:
summary.json(schema-stable) +report.md(human readable) - Cross-run comparison reports: timestamped
report-*.jsonaggregations for quick comparisons
Per-run SV-Bench report (contract-grade)
E1 comparison report (legacy-friendly JSON table)
E2 comparison report (legacy-friendly JSON table)
Understanding Results
Output Structure
Note: OpenRouter models create nested directories:
The report scripts use recursive glob to find all runs regardless of nesting depth.
Key E1 Metrics (network-logs)
| Metric | Description | Target | |
|---|---|---|---|
| Accuracy | Overall classification accuracy | Higher is better | |
| ECE | Expected Calibration Error | Lower is better | |
| FN% | False negative rate (missed threats) | Minimize | |
| FP% | False positive rate | Minimize | |
| Abstain% | Abstention rate | Context-dependent |
Key E2 Metrics (config-verification)
| Metric | Description | Target | |
|---|---|---|---|
| MeanReward | Average episode reward | Higher is better | |
| FormatSuccess% | Valid JSON output rate | 100% | |
| AvgTools | Tool calls per episode | Lower is efficient | |
| AvgTurns | Turns per episode | Lower is efficient |
Model Routing
Model names are auto-resolved via scripts/model_router.py:
- OpenAI models:
gpt-5-mini,gpt-4.1-mini,o1-mini - OpenRouter models:
qwen3-14b→qwen/qwen3-14b,llama-3.1-8b→meta-llama/llama-3.1-8b-instruct
Comparing Models
- Run evals with same parameters:
- Generate report:
- Review summary.json in each run directory for per-model metrics.
Troubleshooting
Rate limits: Reduce N or use MAX_CONSECUTIVE_ERRORS. Missing API key: Check .env has correct key for model provider. Model not found: Use full OpenRouter path (e.g., openai/gpt-5-mini).
FormatSuccess% = 0%
If a model shows 0% format success, common causes:
- Markdown code blocks: Many models (gpt-4o-mini, qwen, llama) wrap JSON in
`json...`blocks. The parsers handle this automatically viaextract_json_from_markdown()insv_shared/parsers.py.
- Model outputs prose instead of JSON: Some models explain what they would do rather than returning the required JSON format. This is model behavior, not a parsing bug. Check
results.jsonlcompletions.
- Empty prompts: If
promptfield in results.jsonl is empty, the dataset loading may have failed. Check that:
- Hub datasets have correct schema (
questionfield) - Local JSONL files exist in
environments/sv-env-*/data/ HF_TOKENis set for Hub access
Investigating Failed Runs
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sv-eval/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intertwine/security-verifiers/sv-eval)