Skip to content
Back to skills

Eval Gate

ASecurity

Sets up AgentFox's evaluation regression gate. It runs a suite, pins a baseline, and fails CI when quality regresses, and it adds a governance CI workflow that also fails on ungoverned model calls, conflicting guardrails, risky policy lint findings and a broken audit chain. Use for "block regressions in CI", "add an eval gate", drift monitoring, or /agentfox:gate.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
ai-agentsgobashrailsgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add architsharm/agentfox --skill eval-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Eval Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Eval Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/architsharm-eval-gate/badge)](https://www.skillsdirectory.com/skills/architsharm-eval-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: eval-gate
description: Sets up AgentFox's evaluation regression gate. It runs a suite, pins a baseline, and fails CI when quality regresses, and it adds a governance CI workflow that also fails on ungoverned model calls, conflicting guardrails, risky policy lint findings and a broken audit chain. Use for "block regressions in CI", "add an eval gate", drift monitoring, or /agentfox:gate.
---

# Eval gate

> Commands below are written as `agentfox …`. If `agentfox` isn't on PATH, see
> [Running the CLI](../../AGENTS.md#running-the-cli).

## 1. Know what suites exist

The CLI can run and gate suites but not create them. Suites and cases come from `seed`
(the `support-quality` demo suite), the HTTP API, or the dashboard's `/evals` page:

```bash
curl -s -X POST "$AGENTFOX_API_URL/api/eval/suites" -H "Authorization: Bearer $AGENTFOX_API_TOKEN" \
  -H 'content-type: application/json' -d '{"key":"refund-answers","name":"Refund answers","tags":["support"]}'
curl -s -X POST "$AGENTFOX_API_URL/api/eval/suites/refund-answers/cases" -H "Authorization: Bearer $AGENTFOX_API_TOKEN" \
  -H 'content-type: application/json' -d '{"input":"Can I get a refund after 45 days?","expected":"No — 30 day window","context":["policies/refunds.md"]}'
```

The best cases come from real traffic:
`POST /api/eval/suites/{key}/cases/from-trace?trace_id=…` turns a production trace into a
regression case.

## 2. Run and pin a baseline

```bash
agentfox test run <suite>
agentfox test baseline <run_id> --label main
```

The default provider is the offline `echo` model, which is fine for proving the plumbing. To
evaluate the real model, the user sets `AGENTFOX_ALLOW_EGRESS=true` plus the provider key,
and you pass `--provider openai --model <model>`. Ask before enabling egress.

## 3. Gate

```bash
agentfox test gate <suite> --baseline <run_id> --junit reports/eval.xml --sarif reports/eval.sarif
```

- Exit 1 means a regression against the baseline, a pass rate below `--min-pass-rate`, or a
  case that errored (an unreachable model is a failure, not a pass).
- The gate reuses the baseline run's scorers and agent unless `--scorers`/`--agent` is given.
- Explain which cases flipped, and which scorer flagged them (for example groundedness or
  silent-failure scorers).

## 4. Add the CI workflow

Copy [templates/agentfox-governance.yml](templates/agentfox-governance.yml) to
`.github/workflows/`. Adapt the install line to the user's project, and the suite and
baseline to theirs. Each step fails the build for a different reason:

| Step | Fails when |
|---|---|
| `agentfox scan . --fail` | a new model call is not governed |
| `agentfox policy lint` | the policy hierarchy has critical/high findings |
| `agentfox policy rules check` | two teams' business rules conflict |
| `agentfox test gate` | quality regressed against the baseline, or a case errored |

## 5. Production drift (after launch)

```bash
agentfox test online <agent> --since-days 7 --rate 0.1
agentfox report drift <agent> --scorer groundedness
```

`eval drift` exits 0 even when drift is detected, so read its output. SLOs live at
`POST /api/eval/slos`.

Files in this skill

  • SKILL.md3.1 KB
  • templates/agentfox-governance.yml1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.