task_id stringlengths 26 39 | workflow stringclasses 5
values | tier stringclasses 3
values | archetype stringclasses 6
values | primary_verifier_pattern stringclasses 5
values | persona stringclasses 5
values | tone stringclasses 3
values | expertise stringclasses 3
values | rules_format stringclasses 2
values | services listlengths 1 3 | n_requirements int64 5 14 | n_checks int64 59 189 | req_counts dict | oracle_reward float64 1 1 | partial_reward float64 0.17 0.29 | null_reward float64 0 0 | grader_seconds float64 0.74 9.48 | generator_version stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af-001-slo-onboarding-easy-s1 | slo-onboarding | easy | operate_configure | regression_suite | platform_engineer | terse | novice | plain | [
"chat-gw"
] | 5 | 66 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.167133 | 0 | 1.38 | 0.2.0 |
af-002-slo-onboarding-easy-s2 | slo-onboarding | easy | operate_configure | regression_suite | platform_engineer | urgent-pager | novice | plain | [
"loyalty-api"
] | 5 | 66 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.258651 | 0 | 1.25 | 0.2.0 |
af-003-slo-onboarding-medium-s1 | slo-onboarding | medium | author_to_constraints | behavioral_simulation | site_reliability_engineer | neutral | practitioner | prometheusrule | [
"loyalty-svc",
"ingest-gw"
] | 9 | 139 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.254341 | 0 | 2.96 | 0.2.0 |
af-004-slo-onboarding-medium-s2 | slo-onboarding | medium | operate_configure | regression_suite | platform_engineer | terse | practitioner | prometheusrule | [
"orders-worker",
"media-api"
] | 9 | 138 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.250639 | 0 | 2.99 | 0.2.0 |
af-005-slo-onboarding-hard-s1 | slo-onboarding | hard | author_to_constraints | behavioral_simulation | site_reliability_engineer | urgent-pager | practitioner | plain | [
"shipping-api",
"chat-edge",
"cart-edge"
] | 14 | 176 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.212933 | 0 | 4.78 | 0.2.0 |
af-006-slo-onboarding-hard-s2 | slo-onboarding | hard | author_to_constraints | behavioral_simulation | site_reliability_engineer | terse | expert | prometheusrule | [
"fraud-svc",
"wishlist-api",
"inventory-svc"
] | 14 | 181 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.208439 | 0 | 5.17 | 0.2.0 |
af-007-alert-storm-cleanup-easy-s1 | alert-storm-cleanup | easy | harden_secure | adversarial_corpus | on_call_engineer | terse | novice | plain | [
"orders-svc"
] | 5 | 64 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.285102 | 0 | 1.09 | 0.2.0 |
af-008-alert-storm-cleanup-easy-s2 | alert-storm-cleanup | easy | harden_secure | adversarial_corpus | on_call_engineer | urgent-pager | novice | plain | [
"catalog-api"
] | 5 | 64 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.262312 | 0 | 1.11 | 0.2.0 |
af-009-alert-storm-cleanup-medium-s1 | alert-storm-cleanup | medium | harden_secure | adversarial_corpus | on_call_engineer | urgent-pager | novice | prometheusrule | [
"report-worker",
"billing-svc"
] | 10 | 124 | {
"req_alerts": 2,
"req_repairs": 4,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.253641 | 0 | 2.3 | 0.2.0 |
af-010-alert-storm-cleanup-medium-s2 | alert-storm-cleanup | medium | repair_debug | regression_suite | site_reliability_engineer | urgent-pager | novice | plain | [
"checkout-worker",
"cart-edge"
] | 10 | 116 | {
"req_alerts": 2,
"req_repairs": 4,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.230701 | 0 | 1.89 | 0.2.0 |
af-011-alert-storm-cleanup-hard-s1 | alert-storm-cleanup | hard | harden_secure | adversarial_corpus | on_call_engineer | terse | practitioner | plain | [
"inventory-svc",
"ledger-gw",
"ratings-svc"
] | 14 | 176 | {
"req_alerts": 2,
"req_repairs": 6,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.208481 | 0 | 5.23 | 0.2.0 |
af-012-alert-storm-cleanup-hard-s2 | alert-storm-cleanup | hard | harden_secure | adversarial_corpus | on_call_engineer | neutral | expert | prometheusrule | [
"fraud-api",
"promo-svc",
"auth-edge"
] | 14 | 182 | {
"req_alerts": 2,
"req_repairs": 6,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.182729 | 0 | 6.33 | 0.2.0 |
af-013-missed-page-postmortem-easy-s1 | missed-page-postmortem | easy | repair_debug | behavioral_simulation | incident_commander | neutral | novice | plain | [
"pricing-gw"
] | 5 | 62 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.239609 | 0 | 1.19 | 0.2.0 |
af-014-missed-page-postmortem-easy-s2 | missed-page-postmortem | easy | data_query | exact_state | site_reliability_engineer | terse | novice | plain | [
"coupon-svc"
] | 5 | 59 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.283333 | 0 | 0.74 | 0.2.0 |
af-015-missed-page-postmortem-medium-s1 | missed-page-postmortem | medium | repair_debug | behavioral_simulation | incident_commander | urgent-pager | practitioner | prometheusrule | [
"coupon-api",
"orders-svc"
] | 10 | 137 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.260517 | 0 | 3 | 0.2.0 |
af-016-missed-page-postmortem-medium-s2 | missed-page-postmortem | medium | repair_debug | behavioral_simulation | incident_commander | urgent-pager | practitioner | prometheusrule | [
"orders-edge",
"tax-edge"
] | 10 | 132 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.236505 | 0 | 2.48 | 0.2.0 |
af-017-missed-page-postmortem-hard-s1 | missed-page-postmortem | hard | data_query | exact_state | site_reliability_engineer | urgent-pager | practitioner | prometheusrule | [
"ledger-api",
"payments-edge",
"billing-api"
] | 14 | 173 | {
"req_alerts": 2,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 3,
"req_inhibit": 2
} | 1 | 0.21644 | 0 | 5.36 | 0.2.0 |
af-018-missed-page-postmortem-hard-s2 | missed-page-postmortem | hard | repair_debug | behavioral_simulation | incident_commander | urgent-pager | expert | prometheusrule | [
"feed-edge",
"search-edge",
"geo-gw"
] | 14 | 167 | {
"req_alerts": 2,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 3,
"req_inhibit": 2
} | 1 | 0.213061 | 0 | 3.88 | 0.2.0 |
af-019-latency-slo-easy-s1 | latency-slo | easy | author_to_constraints | differential_equivalence | performance_engineer | urgent-pager | novice | plain | [
"ledger-gw"
] | 5 | 61 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.167133 | 0 | 1.97 | 0.2.0 |
af-020-latency-slo-easy-s2 | latency-slo | easy | author_to_constraints | differential_equivalence | performance_engineer | terse | novice | plain | [
"wishlist-api"
] | 5 | 67 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.250133 | 0 | 1.75 | 0.2.0 |
af-021-latency-slo-medium-s1 | latency-slo | medium | author_to_constraints | differential_equivalence | performance_engineer | urgent-pager | practitioner | prometheusrule | [
"export-edge",
"refund-gw"
] | 9 | 137 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.213043 | 0 | 3.34 | 0.2.0 |
af-022-latency-slo-medium-s2 | latency-slo | medium | author_to_constraints | differential_equivalence | performance_engineer | urgent-pager | practitioner | prometheusrule | [
"invoice-api",
"notify-worker"
] | 9 | 132 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.261538 | 0 | 3.07 | 0.2.0 |
af-023-latency-slo-hard-s1 | latency-slo | hard | author_to_constraints | differential_equivalence | performance_engineer | terse | expert | plain | [
"ingest-worker",
"chat-gw",
"tax-edge"
] | 14 | 178 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.2056 | 0 | 4.95 | 0.2.0 |
af-024-latency-slo-hard-s2 | latency-slo | hard | author_to_constraints | differential_equivalence | performance_engineer | urgent-pager | expert | prometheusrule | [
"wishlist-gw",
"fraud-worker",
"stock-gw"
] | 14 | 179 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.177933 | 0 | 7.44 | 0.2.0 |
af-025-team-reorg-migration-easy-s1 | team-reorg-migration | easy | operate_configure | regression_suite | platform_engineer | urgent-pager | novice | plain | [
"loyalty-gw"
] | 5 | 61 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.208333 | 0 | 1.2 | 0.2.0 |
af-026-team-reorg-migration-easy-s2 | team-reorg-migration | easy | operate_configure | regression_suite | platform_engineer | urgent-pager | novice | plain | [
"ingest-worker"
] | 5 | 61 | {
"req_alerts": 1,
"req_repairs": 1,
"req_recording": 1,
"req_routing": 1,
"req_inhibit": 1
} | 1 | 0.208333 | 0 | 1.2 | 0.2.0 |
af-027-team-reorg-migration-medium-s1 | team-reorg-migration | medium | transform_convert | exact_state | site_reliability_engineer | neutral | novice | plain | [
"pricing-worker",
"inventory-worker"
] | 9 | 112 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.267826 | 0 | 2.72 | 0.2.0 |
af-028-team-reorg-migration-medium-s2 | team-reorg-migration | medium | operate_configure | regression_suite | platform_engineer | neutral | practitioner | prometheusrule | [
"report-svc",
"export-svc"
] | 9 | 112 | {
"req_alerts": 2,
"req_repairs": 3,
"req_recording": 1,
"req_routing": 2,
"req_inhibit": 1
} | 1 | 0.27513 | 0 | 2.47 | 0.2.0 |
af-029-team-reorg-migration-hard-s1 | team-reorg-migration | hard | transform_convert | exact_state | site_reliability_engineer | terse | expert | prometheusrule | [
"payments-gw",
"fraud-svc",
"profile-edge"
] | 14 | 181 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.202898 | 0 | 5.48 | 0.2.0 |
af-030-team-reorg-migration-hard-s2 | team-reorg-migration | hard | transform_convert | exact_state | site_reliability_engineer | neutral | expert | plain | [
"media-edge",
"identity-svc",
"payments-api"
] | 14 | 189 | {
"req_alerts": 3,
"req_repairs": 5,
"req_recording": 2,
"req_routing": 2,
"req_inhibit": 2
} | 1 | 0.253119 | 0 | 9.48 | 0.2.0 |
- Quick start
- Try it
- Leaderboard (core, 6 tasks: af-001, af-009, af-013, af-017, af-021, af-029)
- Expert tier (v0.2)
- What a task looks like
- Reward
- Reward spread (measured on the v0.1.0 tasks, before the 0.1.1 fairness fixes)
- How it was built: Skill2Env, but procedural
- Anti-hacking
- Related work
- Limitations
- Repository layout
- License and citation
3amBench: can your agent write alerts that page the right human at 3 a.m., and only then?
3amBench (package alertforge) is an RL environment and benchmark for a job SRE teams do every week:
owning Prometheus alerting rules and Alertmanager routing as code. Each task drops the agent into a realistic
monitoring/ repo for a fictional company with a handful of change requests: onboard a service onto
multi-window burn-rate SLO alerts, fix the alert that paged 30 times last night, find out why nobody was paged
when a service was down for 47 minutes, route a newly formed team, add inhibition so an outage produces one page
instead of forty.
Grading is behavioral. Nothing is judged by an LLM, and nothing is compared as text. Hidden, seed-varied
outage replays run through Prometheus' own promtool test rules, and routing runs through Alertmanager's own
amtool. Every alert must fire during the outage, stay silent during normal traffic, short spikes,
recovery, low traffic and near-threshold traffic, fire on time (not before for elapses), fire once per
service (not per pod), carry the right labels, and reach the right receivers. A task has 59-189
atomic checks, so the reward is dense.
| Tasks | 30 core (5 workflows × 3 tiers × 2 seeds) and 45 expert (5 families × 9 seeds, see Expert tier), plus unlimited fresh ones from the generator / OpenEnv server |
| Checks per task | 59-189 (easy 59-67, medium 112-139, hard 167-189); expert 128-232 |
| Reward | reward in [0, 1] plus 15 diagnostic keys (core) or 26 (expert), identical within a tier |
| Grader | promtool 3.5.0 + amtool 0.28.1 + stdlib Python + PyYAML; deterministic; core 0.7-7 s, expert about 0.5-12 s per grade (one process) |
| Formats | Harbor tasks (this repo has the 30 core tasks; the Hugging Face dataset has all 75) and an OpenEnv server with per-step reward for the core tier (openenv/alertforge_env) |
Quick start
# oracle (expect mean 1.0) and no-op (expect 0.0)
uvx harbor run --repo https://huggingface.co/datasets/openenvforge/3ambench@v0.2.0 -d 3ambench@0.2.0 -a oracle -n 4
uvx harbor run --repo https://huggingface.co/datasets/openenvforge/3ambench@v0.2.0 -d 3ambench@0.2.0 -a nop -n 4
# your model on the 5-task smoke set
uvx harbor run --repo https://huggingface.co/datasets/openenvforge/3ambench@v0.2.0 -d 3ambench-mini@0.2.0 -a terminus-2 -m <model>
# expert tier: the 15 leaderboard tasks (all 45: -d 3ambench-expert@0.2.0)
uvx harbor run --repo https://huggingface.co/datasets/openenvforge/3ambench@v0.2.0 -d 3ambench-expert-lb@0.2.0 -a terminus-2 -m <model>
The core tasks in 3ambench@0.2.0 are the 3ambench@0.1.1 tasks with their fictional company domains moved to
reserved .example names (and the version stamp); checks, scenarios and grader are unchanged, and every recorded
v0.1.1 run regrades to the same reward, so v0.1.1 numbers stay comparable.
Tasks set [agent] network_mode = "no-network", because this repo ships the solutions (see Anti-hacking).
Harbor enforces that on Linux Docker hosts and sandboxed providers. Docker Desktop on macOS cannot enforce it
(its VM kernel lacks CONFIG_NFT_FIB_INET), and Harbor refuses the task. For local smoke runs on a Mac, use
scripts/harbor_local.sh, which runs a temp copy without the network override. Those runs are not leaderboard-safe.
OpenEnv (multi-turn, per-step reward), against a local server started as in Try it. The client
needs pip install "openenv-core==0.3.0" and a clone of this repo on PYTHONPATH=openenv:
from alertforge_env.client import AlertForgeEnv
with AlertForgeEnv(base_url="http://localhost:8000").sync() as env:
obs = env.reset(seed=7, split="train", workflow="missed-page-postmortem", tier="medium")
obs = env.step({"tool": "read_file", "path": "README.md"})
obs = env.step({"tool": "write_file", "path": "rules/service-health.yml", "content": "..."})
print(obs.reward, obs.done) # parity mode: rewards sum to the Harbor reward
Fresh tasks (training, private held-out sets): python generator/generate.py --master-seed <secret> --out <dir>
(needs promtool and amtool; without --out it overwrites this repo's tasks).
Try it
- Replay runs in the browser: 3amBench Replay
steps through recorded runs (tool calls, file diffs, the reward curve, which checks pass after each step, and
for expert runs which tickets were solved).
Its data comes from
scripts/record_reference_runs.py,scripts/record_agent_runs.shandscripts/export_runs.py; the page itself is inspace/. - Run the environment locally and open the web interface at http://localhost:8000/web:
The image is built for linux/amd64 and linux/arm64. To build it yourself from a clone:docker run -p 8000:8000 -e ENABLE_WEB_INTERFACE=true ghcr.io/devesh-maheshwari/3ambench-env:0.2.0docker build -f openenv/alertforge_env/server/Dockerfile -t 3ambench-env .(then run3ambench-env).
Leaderboard (core, 6 tasks: af-001, af-009, af-013, af-017, af-021, af-029)
| Agent | Model | Runs | Mean reward | Solved |
|---|---|---|---|---|
| claude-code | claude-opus-5-5 | 12 | 1.000 | 12/12 |
| codex | gpt-6-astra | 12 | 1.000 | 12/12 |
| terminus-2 | gpt-oss-120b | 13 | 0.436 | 3/13 |
37 runs on 6 tasks.
The runs were recorded on the v0.1.1 tasks; their saved workspaces, read with the renamed domains, regrade to the same rewards on the 0.2.0 tasks. Local Harbor runs on Docker Desktop (agent network enabled, so not sealed). Frontier agents saturate this subset; the dense reward separates weaker models (gpt-oss-120b scores between 0.03 and 0.37 on every unsolved run instead of 0). v0.2 adds the expert tier below. Every run can be replayed step by step in the replay Space.
Expert tier (v0.2)
A core task is a short list of change requests on a small repo. An expert task is a week of a team's
observability queue on a large legacy one: 45 tasks, five families of nine seeds, each at a different fictional
company with its own services, teams and history. The starting repo has 62-85 alerting rules in 14-22 files, SLI
recording rules, an SLO catalog, an ownership file, ADRs, runbooks, a CI script, and an Alertmanager config shared
with two other Prometheus servers (41-53 receivers, legacy match: routes next to matchers:). The queue holds two
or three symptom tickets and two to seven routine requests.
| Family | The week |
|---|---|
| E1 quiet pager | Nobody was paged: an outage where the Down alert could not fire once the targets went away, an error-ratio page that never fired, a replica-lag alert stuck in pending, a postmortem action item asking for a traffic-floor page |
| E2 storm after a deploy | Too many pages: one per pod during a database failover, false pages from canaries and rollouts, a cluster outage that paged every service owner |
| E3 reorg + routing migration | A team split that routing never caught up with: alerts that still carry the old team, a team with no route, SRE still everyone's first pager, a channel being archived, warnings muted by unrelated criticals |
| E4 latency SLO rollout | A latency SLO going live: SLI recording rules that are wrong during a rollout, slow requests that never page, burn alerts to add |
| E5 legacy cleanup after an on-call survey | The work arrives as raw answers to an on-call survey: a consumer stall that never fired, a nightly batch that stopped without a ticket, a disk prediction that pages for the backup job, dead runbook links, a legacy service to remove. Some answers need nothing from this repo, and some alerts have to stay as they are |
What makes it realistic:
- Tickets read like tickets. A symptom ticket says what happened in the reporter's words ("17 pages for one
database failover", "KafkaConsumerStalled has never fired") and points at an incident packet: PagerDuty and Slack
exports, a postmortem,
query_rangepulls of the night thatbin/range2testturns into promtool tests. It never says which rule is wrong. - Policy lives in the repo, not in the ticket: SLOs and windows in the catalog, the paging policy in the README,
ownership in
teams/ownership.yaml, the burn-rate policy in an ADR. A new hire would have to look there too. - The repo has a past: two routing syntaxes, a team split half done, rules that moved with their team, decoy alerts that look broken and aren't, alerts other teams own.
- No two tasks share a company, an org chart or a queue, so a fix can't be copied from a sibling task.
Grading is behavioral and dense, as in the core tier. Promtool replays every hidden scenario group once (plus a
re-run where a deadline window needs one) and the grader reads which alerts fire, minute by minute; routing goes through amtool and inhibition through the strict
Alertmanager simulator. A symptom ticket is an outcome check: when the incident replays, the right page reaches the
right team, and it stays quiet on normal traffic, deploys, flaps and the noise that started the ticket. Alerts are
counted after inhibition, so muting everything doesn't make a quiet pager look fixed. Routine requests (routes,
inhibitions, label moves, burn alerts, recording rules, annotations, legacy removals) are checked the same way.
Untouched rules, receivers and routes have to keep working; a rewritten but equivalent rule is replayed, not
compared as text. Each requirement scores s in [-0.25, 1] against the starting repo, and reward = 0.6 · solved +
0.4 · progress as in Reward; expert progress also loses 0.75 weight units for each leave-as-is alert the
run changes, and solved requires all of them intact. A symptom ticket weighs 5-10 against 2-3 for a routine request, so the
tickets carry 55-82% of a task's weight. diagnosis is the weighted mean s over the symptom tickets and routine
the same over the rest: among runs that don't solve a task, they tell finding the cause apart from doing the easy
part of the queue. Expert tasks have 128-232 checks and the same anti-hacking defenses, plus tamper checks on reads
of ALERTS.
Calibration, honestly: frontier agents solve most expert tasks, in minutes (3-5 minutes per task in our pilot runs). The tier is not built to rank frontier models against each other. It is aimed at separating mid-size and open models, where the dense reward and the diagnosis/routine split show how far a run got, and at RL training on a realistic repo. A harder frontier tier is in development; there is no frontier-hardness result yet.
Leaderboard (v0.2.0, expert: the 15 tasks of 3ambench-expert-lb@0.2.0, 3 per family)
| Agent | Model | Runs | Tasks | Mean reward | Solved | Diagnosis | Routine |
|---|---|---|---|---|---|---|---|
| claude-code | claude-opus-5-5 | 14 | 14/15 | 1.000 | 14/14 | 1.000 | 1.000 |
| codex | gpt-6-astra | 15 | 15/15 | 0.960 | 14/15 | 1.000 | 1.000 |
| claude-code | claude-fable-5-1 | 14 | 14/15 | 0.956 | 13/14 | 1.000 | 1.000 |
| codex | gpt-5.6-sol | 15 | 15/15 | 0.912 | 13/15 | 0.967 | 1.000 |
| claude-code | claude-sonnet-5 | 14 | 14/15 | 0.762 | 9/14 | 0.903 | 1.000 |
| claude-code | claude-haiku-4-5-20251001 | 14 | 14/15 | 0.346 | 2/14 | 0.473 | 0.927 |
| terminus-2 | gpt-oss-120b | 10 | 10/15 | 0.065 | 0/10 | 0.071 | 0.345 |
96 runs on 15 tasks; 2 runs flagged invalid are not counted.
The 15 tasks are 3ambench-expert-lb@0.2.0: the development pilot set (3 per family,
scripts/expert_calibrate.py --pilot), not a calibrated or held-out selection. These are unbalanced local
development runs on Docker Desktop (agent network enabled, so not sealed), not a held-out model comparison, and the
rows cover different tasks (the Tasks column), so compare them with care. The two historical afx-e5-s08 trials
(Opus and Astra) are excluded because their survey evidence differs from the current task. Astra and Sol were re-run
on the current task, so they cover all 15 tasks; Opus, Fable, Sonnet and Haiku have no valid afx-e5-s08 run yet
and cover 14. gpt-oss-120b covers 10: the provider budget cap stopped it before afx-e2-s03, afx-e3-s04, afx-e4-s04
and afx-e5-s03, and it has no afx-e5-s08 run. Every saved output was regraded with the released task's own
grader. Six runs score higher than Harbor's verifier gave them at the time, because of the grader fixes listed in
the CHANGELOG; the final 0.2.0 changes (reserved domains, ingress series, the two grader fixes) change no recorded
score. Infrastructure failures are excluded when present. Every run, with the
tickets it solved, can be replayed in the replay Space.
To build the 45 tasks yourself: pip install . from a clone, then alertforge expert --out <dir> --seeds 1-9
(promtool and amtool on the path, or in AF_PROMTOOL and AF_AMTOOL). It runs each task's acceptance gate as well,
and it reproduces the released tasks byte for byte.
See calibration status for the calibration protocol and what is still open.
What a task looks like
af-001-slo-onboarding-easy-s1 (instruction excerpt; change requests are shuffled):
- P1.
HighErrorRatiois misbehaving; seepostmortems/PM-4043.md. Fix the rule, keeping its purpose.- I1. While
ChatGwDownis firing for a service, suppressChatGwErrorBudgetBurnFast,HighErrorRatiofor that same service only.- A1. Add
ChatGwErrorBudgetBurnFastforchat-gw(SLO 0.995): fire when bothslo:sli_error:ratio_rate1handslo:sli_error:ratio_rate5mexceed 14.4 × (1 − 0.995),for: 2m, ...- R1. Team
paymentsis now on call forchat-gw, but nothing routes to them yet. ...- C1. Add SLI recording rules
slo:sli_error:ratio_rate5m,slo:sli_error:ratio_rate1hfor thegrpcSLI family ...
The postmortem describes a symptom ("pages at 4 a.m. when there are only a handful of requests"), never the
fix. At the practitioner/expert levels, requirements are stated as outcomes ("page payments when chat-gw is
burning its error budget fast") and the agent has to find names, windows, for values, labels and routing
policy in the repo's README.md, like a new hire would.
Workflows: slo-onboarding, alert-storm-cleanup, missed-page-postmortem (including total outages where
series disappear, so only absent() can page), latency-slo (histogram SLIs), team-reorg-migration.
Rules come as plain files or as Kubernetes PrometheusRule manifests.
Reward
Each requirement r gets a score q_r from its check families (mean(∅) = 1):
Alert (new or repair): q = E · dup · mean(Fire ∪ Timing) · mean(Silent) · (0.7 + 0.3·mean(Label ∪ Annotation))
(burn alerts: q = ½·q_integrated + ½·q_with_reference_SLI_records)
Recording: q = dup · mean(Value ∪ Cardinality)
Route: q = mean_positive Jaccard(expected, resolved receivers) · mean_negative [no forbidden receiver]
Inhibit: q = mean(Suppressed) · mean(NotSuppressed)
s_r = clip((q_r − q_r^pristine) / (1 − q_r^pristine), −0.25, 1) # pristine → 0, oracle → 1, regressions < 0
progress = max(0, (0.5 + 0.5·preservation) · Σ w_r s_r / Σ w_r) # weights: alert 3, repair 3, others 2
reward = 0.6 · [every s_r = 1 ∧ preservation = 1 ∧ syntax_ok ∧ ¬tamper] + 0.4 · progress
Why products: an always-firing rule fails every silent check, and a renamed or never-firing rule fails every
fire check, so both score 0. A catch-all route passes positives and fails negatives. An inhibit-everything rule
fails the not-suppressed cases. Partial work still counts: a wrong severity costs the label family only, a
missing continue gives Jaccard ½, and a correct burn alert on top of broken SLI records keeps half its credit.
| Key | Meaning |
|---|---|
reward |
primary scalar |
solved / outcome |
1 iff everything is fully correct (use for pass@k) |
progress |
the dense part (plot this separately; reward has a gap between 0.4 and 0.6 by construction) |
preservation |
untouched rules, receivers, routes and inhibitions still intact |
req_alerts, req_repairs, req_recording, req_routing, req_inhibit |
per-category scores |
fire_rate, silent_rate, label_rate, check_pass_rate |
raw diagnostic pass rates (non-zero for a no-op) |
syntax_ok, tamper |
all files load / a forbidden construct was used (tamper zeroes the reward) |
diagnosis, routine |
expert tier only: weighted mean s over the symptom tickets, and over the rest of the queue. Tickets carry at least 55% of an expert task's weight, so among runs that don't solve a task these say whether the progress came from diagnosing or from routine edits |
Reward spread (measured on the v0.1.0 tasks, before the 0.1.1 fairness fixes)
| Policy | reward | notes |
|---|---|---|
oracle (solution/solve.sh) |
1.0 on 30/30 | Harbor -a oracle: 1.0 on af-001 (easy), af-017 (hard, PrometheusRule), af-023 (hard, latency), af-029 (hard, reorg) |
no-op (-a nop) |
0.0 on 30/30 | preservation = 1 |
partial (partial/<task>/solve.sh: half the requirements plus one plausible mistake) |
0.17-0.29 | Harbor = local grader exactly (af-017 0.21644, af-011 0.208481) |
P-mut: oracle + 1-3 agent-style mistakes (duplicate alert, missing by, missing continue, scratch file, YAML indent slip, wrong for), 120 episodes |
mean 0.386, 0% at 0, 10% at 1, 94 distinct values | progress mean 0.81 |
| OpenEnv per step (read → write oracle files one at a time with one YAML slip → submit), 30 tasks | 54% of steps and 97% of writes change the reward | Σ step rewards = Harbor reward exactly (parity mode) |
Adversaries (all 30 tasks, local gate): always-fire, rename, catch-all route, inhibit-all → targeted
req_* ≤ 0.05. ALERTS injection, input-series shadowing, group interval changes → tamper, reward 0.
Receiver nulling, over-broad inhibition, band thresholds, per-pod alerts, for-only fixes, deleting untouched
rules → outcome 0 and reward ≤ 0.4.
Real-model results are in the two leaderboards above; a dense-vs-outcome GRPO training curve is not published yet.
How it was built: Skill2Env, but procedural
This mirrors NVIDIA's Skill2Env pipeline:
skill/prometheus-alerting/SKILL.md → workflows/workflows.yaml (the "planner output", same keys) → sampled
axes (archetype, verifier pattern, persona, tone, expertise, tier, rules format) → a deterministic, seeded
creator instead of an LLM → acceptance gate (oracle = 1, nop = 0, partial band, 14 adversaries, a
"missing for must fail Timing" mutant check, structural leak scan, determinism).
Checks are derived from the world spec through a reference evaluator (promsim.py: Prometheus rate
extrapolation, left-open windows, histogram_quantile, staleness, the for state machine, in exact fractions),
never from the oracle's rule text. The gate proves the oracle against real promtool, which is the structural
equivalent of Skill2Env's freeze boundary.
Anti-hacking
| Threat | Defense |
|---|---|
| Downloading this repo's solutions | [agent] network_mode = "no-network"; no seeds in task.toml; hidden checks live only in the verifier image; evaluate headline numbers on a private-seed build |
| Editing the grader or pre-writing rewards | separate verifier container built from tests/Dockerfile; test.sh deletes old outputs and verifies checksums.sha256 |
| Always-fire / never-fire / rename | fire × silent product; existence gate |
Per-pod alerts, threshold bands, for-only fixes |
count(ALERTS{...}) == 1 per service, bracketing scenarios at 0.85T/1.15T, random spikes, long spikes that must fire |
Faking ALERTS, shadowing input series, eval knobs |
tamper: reserved record names, label_replace onto reserved labels, group interval/query_offset/limit |
| Null receivers, mute intervals, inhibit-everything | receivers, global hashed into preservation; time intervals are tamper; not-suppressed and bystander cases |
| Copying a healthy sibling | hard tier has no healthy sibling burn alerts; structural leak scan |
| Postmortem lookup tables | 3-4 paraphrases per symptom, decoy postmortems, defects with no postmortem on hard |
| Reward oracle in OpenEnv | heldout/public splits force outcome-only reward and hide phi |
Related work
- NVlabs/Skill2Env: the SkillHub
sre-engineerskill contains a literal 14.4x burn-rate rule, andslo-architectcovers burn-rate alerting. We downloaded ten SRE-adjacent Skill2Env tasks. The closest one (task_slo-architect_lgre556n) grades burn-rate policy by comparing YAML fields, and none run promtool or amtool. - camel-ai/seta-env task 1114: an Alertmanager routing and inhibition task. Its
tests run amtool only for
check-configand check routes and inhibitions by reading the YAML. 3amBench's routing checks are end-to-end: the chain case routes the labels the agent's own alert carries. - Community rule sets: samber/awesome-prometheus-alerts, kubernetes-mixin; Google SRE Workbook ch. 5.
Limitations
- Traffic is synthetic (diurnal shape plus jitter), and services are fictional.
- Inhibition is graded by a strict simulator of Alertmanager's semantics, not by the Alertmanager process. Unsupported constructs fail closed.
- Seven alert templates host the defects, not a large upstream corpus.
- The routing chain case uses the agent's static labels, not labels observed in
ALERTS. - Frontier agents solved every run on the two easy tasks measured (af-001, af-013), so the easy tier likely saturates for them.
- Contamination: SkillHub skills (and any skill-augmented agent) already contain near-identical burn-rate
recipes, and this repo ships solutions. Evaluate on a private-seed build, and report whether the agent had
SKILL.md. - English only.
- Expert tier (v0.2 candidates): hidden scenarios replay through promtool, whose samples sit exactly on the
evaluation ticks. A target that leaves service discovery is marked stale on the next sample; a real
Prometheus 3.5 server writes those stale markers about two scrape intervals after the last scrape, so an
absent()Down alert pages 1-2 minutes later in production than in the replay. The graders acceptabsent()Down alerts withforup to 10m, which in production page 11-13 minutes after the targets went away, against the 10 minutes the task README asks for. Window corners that depend on the scrape and evaluation phases are graded as promtool sees them:[90s]on a 1m scrape passes in the replay, but on a real server it is empty for about half of all phase pairs. - Expert tier: when a counter stops (consumer offsets, requests), a stated deadline is counted from the last sample that still increased, the earliest the stop can have happened. When a series goes away, it is counted from the minute its stale marker is written (see above for how that differs from a real server).
- Expert tier: a routing fix that sits below an unfixed catch-all route earns nothing on its own route checks, because the catch-all takes the alerts first. That is Alertmanager's first-match routing, kept on purpose: a run that misses the catch-all also loses the route tickets behind it.
- Expert tier:
clusteris a target label onuponly; request counters and histograms in the hidden data don't carry it. - Expert tier: every hidden scenario holds what the world's targets export at healthy levels: request counters for
every service whose pods are up; the histograms, pool gauges and cAdvisor series the repo's rules read about those
services; the ingress controller's request counters (
nginx_ingress_controller_requests) for every HTTP service; and the exporter series a ticket needs. Targets that go down or leave discovery get stale markers. The ingress counts the same requests and status codes as the app's own counters, and while a service has no target up it answers 502 (targets down) or 503 (none left) for the traffic clients keep sending. Not simulated: the ingress latency histogram and config-reload gauge, and fleet exporters (node, Postgres, Redis, Kafka, JVM) beyond those a ticket needs. The repo's fleet alerts and its ingress latency and reload alerts therefore never fire in the replay, and an alert that reads only those series cannot be graded on them. A scenario still starts without history: at its first evaluationrate()has no value yet, so a floor rule that reads a missing counter as zero traffic sees zero there, and itsforis what keeps it quiet. - Expert tier: an untouched alert counts as intact when it behaves the same. Its text may change (formatting,
operand order, a static label equal to what its expression already yields, an identical second copy) as long as
its
for, thresholds, windows and functions stay and it fires with the same labels at every minute of every hidden scenario. An alert that fires in none of them can only be kept as written. - Expert tier: an alert needs the labels the task's README names, with their values; it may carry others, which are judged by where the alert is delivered, not by their presence.
Repository layout
tasks/ (Harbor tasks: this repository holds the 30 core tasks; the Hugging Face dataset adds the 45 expert afx-*
tasks that registry.json also lists, so run those with --repo https://huggingface.co/datasets/openenvforge/3ambench@v0.2.0
or build them with alertforge expert) · registry.json (3ambench, 3ambench-mini, 3ambench-expert,
3ambench-expert-lb, all 0.2.0) · manifest.jsonl (one row per core task) · partial/, null/ (reference
policies) · skill/, workflows/ · generator/generate.py + src/alertforge/ (the generator and grader source;
src/alertforge/expert/ builds the expert tier) · openenv/alertforge_env/ (OpenEnv server) · space/ (static
replay viewer) · scripts/ (export_runs.py and leaderboard.py produce the replay data and the leaderboard tables,
from a GitHub clone; the dataset does not ship space/) · tests/ (pytest).
License and citation
Apache-2.0; see NOTICE.md for attribution of adapted community rules (CC BY 4.0 / Apache-2.0).
@misc{3ambench2026,
title = {3amBench: a behaviorally graded, dense-reward RL environment for Prometheus alerting as code},
year = {2026},
note = {Harbor dataset and OpenEnv environment; generator package alertforge v0.2.0}
}
- Downloads last month
- 353