aobench
AGENTS.md9 starsChanged 4 months agoApache-2.0View on GitHub
A README for coding agents (see <https://agents.md/>). Humans: start with README.md and CONTRIBUTING.md instead. This file is public and contains nothing that is not already true of the public repository. AOBench (Agent Operations Benchmark) is an open-source Python benchmark framework for evaluating AI agents that operate High-Performance Computing systems — job scheduling, telemetry interpretation, energy reasoning, policy enforcement. Agents are evaluated against deterministic environment snapshots with mock HPC tools (SLURM, telemetry, docs, RBAC, facility), never against live clusters, so every…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- llms-full.txtllms.txt
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Never introduce wall-clock time, randomness, or filesystem ordering into scoring.
- Very specific: line 79
Style is enforced by
ruff: Run the formatter; do not hand-format. - Very specific: line 80
Typing: prefer real annotations to Any.
- Very specific: line 85
Changelog: add an entry to CHANGELOG.md for anything user-visible.
- Distinctive: line 88
PR size: prefer under ~300 changed lines.
- Distinctive: line 114
Every claim in the PR description is something you ran, not something you expect.
- Very specific: line 118
Verify the issue's premise before writing code: Check that the described problem still exists on main — run the failing command, or git …
- Distinctive: line 121
Do not widen the scope: If you find an adjacent bug, mention it in the PR description or open a separate issue.
- Distinctive: line 123
Do not weaken a test to make it pass: If a test fails, either the change is wrong or the test encodes a real requirement.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — AOBench
A README for coding agents (see https://agents.md/). Humans: start with README.md and CONTRIBUTING.md instead.
This file is public and contains nothing that is not already true of the public repository.
What this project is
AOBench (Agent Operations Benchmark) is an open-source Python benchmark framework for evaluating AI agents that operate High-Performance Computing systems — job scheduling, telemetry interpretation, energy reasoning, policy enforcement. Agents are evaluated against deterministic environment snapshots with mock HPC tools (SLURM, telemetry, docs, RBAC, facility), never against live clusters, so every result is reproducible and safe to publish.
Python ≥ 3.10 (3.12 in CI and Docker). Package manager and runner: uv.
Architecture in brief
| Path | Contains |
src/aobench/adapters/ | BaseAdapter.run(context) -> Trace — one per agent backend |
src/aobench/scorers/ | BaseScorer.score(task, trace) -> ScorerOutput; AggregateScorer combines them |
src/aobench/schemas/ | Pydantic models — TaskSpec, Trace, BenchmarkResult, EnvironmentSnapshot |
src/aobench/tools/ | Mock HPC tool families; ToolRegistry filters them by role |
src/aobench/cli/ | Typer CLI, one module per command group |
src/aobench/reports/ | Report renderers, CLEAR scorecard |
benchmark/tasks/specs/ | Task specs, one JSON file each |
benchmark/environments/ | Environment snapshot bundles |
tests/ | unit/, integration/, runners/, scripts/, cli/ |
docs/ | User-facing documentation (MkDocs) |
examples/ | Runnable examples — all run offline with no API key |
Execution flow: CLI → BenchmarkRunner.run(task_id, env_id) → load TaskSpec + snapshot →
build_tool_registry(env, role, allowed_tools) → adapter.run(context) -> Trace →
AggregateScorer.score(task, trace) → persist to data/runs/<run_id>/.
Invariants that must not be broken
- Determinism. The same task, environment, and trace must always score identically. Never introduce wall-clock time, randomness, or filesystem ordering into scoring.
- No network in tests. Unit and integration tests must pass offline with no credentials. Mock the provider client; never call a real endpoint.
- Snapshots are read-only. Tools read from the environment bundle. Nothing in
src/aobench/tools/may write tobenchmark/environments/. - RBAC is enforced, not advisory. A role must never gain access to a tool that
rbac_policy.yamldenies it. Ahard_failinGovernanceScorerzeroes the task score, and that behaviour is deliberate. - The
testsplit is held out. It is locked behindAOBENCH_UNLOCK_TEST=1. Never default to it, never include it in an example, and never add a task to it in a PR. - Traces carry token counts. The efficiency scorer and the CLEAR cost axis depend on them; a trace missing them scores wrongly rather than failing loudly.
Commands
uv sync --all-extras # setup — dev group + all optional extras
uv run python -m pytest tests/ # tests (use `python -m pytest`, not bare pytest)
uv run ruff check src/ tests/ # lint
uv run ruff format src/ tests/ # format
uv run mypy src/aobench/ # type check (currently advisory in CI)
uv run aobench validate benchmark # validate all task specs and environments
make check # lint + typecheck + tests, as CI runs themSmoke check that needs no API key:
uv run aobench run task --task JOB_USR_001 --env env_01 --adapter direct_qamake check must pass before a PR is opened. It is what CI runs.
Conventions
- Style is enforced by
ruff. Run the formatter; do not hand-format. - Typing: prefer real annotations to
Any. A# type: ignorerequires a specific error code and a reason comment. An unexplainedAnyis debt moved, not paid. - Tests: pytest, one behaviour per test, deterministic, offline. New behaviour needs a test in the same PR.
- Commit messages:
<type>(<scope>): <summary>— e.g.fix(cli): …,feat(scorers): …. - Changelog: add an entry to
CHANGELOG.mdfor anything user-visible. - Errors: user-facing CLI errors must be one actionable line naming the fix, not a
traceback. See
src/aobench/cli/for the established pattern. - PR size: prefer under ~300 changed lines. Split larger work.
Do not change
- Generated files.
docs/reference/task-catalog.mdanddocs/reference/environment-catalog.mdare generated byscripts/gen_catalog.py— runmake catalogafter changing the corpus, never hand-edit.make catalog-checkfails the build if they have drifted. - Scoring weights in
benchmark/configs/scoring_profiles.yaml. Changing a weight changes every published number and invalidates the leaderboard. It needs a design discussion and a version bump of the profile, not a PR. - Existing task specs and environment bundles. Adding is welcome; editing a published task silently changes historical results. If a task is wrong, open an issue.
- The public CLI surface (command names, flag names, output shape) without an issue agreeing the change first. People script against it.
- On-disk formats in
data/runs/without a migration path. - CI workflow permissions or release configuration.
- Dependency versions, except through Dependabot or an explicit upgrade PR.
Validation requirements before opening a PR
make checkpasses.uv run aobench validate benchmarkpasses if you touchedbenchmark/.- Any example you changed still runs offline with no API key.
- Docs updated in the same PR —
docs/reference/commands.mdfor CLI changes,CHANGELOG.mdfor user-visible changes. - Every claim in the PR description is something you ran, not something you expect.
If you are an agent drafting a contribution on someone's behalf
- Verify the issue's premise before writing code. Check that the described problem
still exists on
main— run the failing command, orgit cat-file -e origin/main:<path>. Issues do go stale; three of ours did. - Do not widen the scope. If you find an adjacent bug, mention it in the PR description or open a separate issue. Do not fix it in the same change.
- Do not weaken a test to make it pass. If a test fails, either the change is wrong or the test encodes a real requirement. Say which, and why.
- The human opening the PR is responsible for it and must be able to explain it in review. Please disclose substantial AI assistance in the PR description — it is welcome, and saying so costs nothing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

