Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bug report
description: Something broke or gave a wrong result
labels: ["bug"]
body:
- type: dropdown
id: piece
attributes:
label: Which piece
options: [Not sure, harness, repo2env, cheatcatcher, sandbox, timemachine, arena, Docker image or Compose]
validations:
required: true
- type: textarea
id: what
attributes:
label: What happened
description: What you ran, what you expected and what you got. Paste the error.
validations:
required: true
- type: textarea
id: repro
attributes:
label: Steps to reproduce
description: The exact commands. A repo URL helps if a build or a mine failed.
render: bash
validations:
required: true
- type: input
id: env
attributes:
label: Environment
placeholder: macOS 15, Docker 27, Python 3.12
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/new_cheat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: I beat the grader
description: A run that scores above 0 without fixing the bug
labels: ["help wanted"]
body:
- type: textarea
id: trick
attributes:
label: The trick
description: What the agent does and why the grader misses it.
validations:
required: true
- type: textarea
id: repro
attributes:
label: How to reproduce
description: The task id, the patch or policy, and the reward you got.
validations:
required: true
- type: textarea
id: fix
attributes:
label: Idea for a fix
description: Optional. A report with no fix is still welcome.
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## What this changes

## How I tested it

- [ ] A test fails without this change and passes with it
- [ ] `uv run pytest` and `uv run ruff check` pass in the repo I touched
58 changes: 58 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Contributing to Gauntlet

Thanks for looking. Gauntlet is young, so a small fix or a good bug report moves it a long way.

## Where things live

Gauntlet is seven repos. This one is the front door: the Docker image, the Compose files and the docs. The code is in the pieces.

| You want to change | Repo |
|---|---|
| How a PR becomes a task, grading, cheats, reports | [gauntlet-harness](https://github.com/abhishekcpp007/gauntlet-harness) |
| Building an env for a repo, mining tasks | [gauntlet-repo2env](https://github.com/abhishekcpp007/gauntlet-repo2env) |
| Reward hacking detectors | [gauntlet-cheatcatcher](https://github.com/abhishekcpp007/gauntlet-cheatcatcher) |
| Containers and trajectories | [gauntlet-sandbox](https://github.com/abhishekcpp007/gauntlet-sandbox) |
| Replay and the HTML viewer | [gauntlet-timemachine](https://github.com/abhishekcpp007/gauntlet-timemachine) |
| The web UI and matches | [gauntlet-arena](https://github.com/abhishekcpp007/gauntlet-arena) |

Not sure which one? Open the issue here and I'll move it.

## Good ways to start

- **Try a repo.** Run `repo2env build` and `repo2env mine` on a small, well-tested Python or JS repo and tell me how many tasks came out. A repo that gives zero tasks is a useful report too.
- **Write a cheat.** The grader is meant to be attacked. If you can make a run score above 0 without fixing the bug, that's the best issue you can file. See `ZOO` in `src/gauntlet_harness/policies.py` for the ones that exist.
- **Add a detector.** Cheat Catcher's rules are in `src/gauntlet_cheatcatcher/rules.py`. Every rule needs a test that fires on a cheat and a test that stays quiet on honest work.
- **Pick an issue** labelled [good first issue](https://github.com/abhishekcpp007/gauntlet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) or [help wanted](https://github.com/abhishekcpp007/gauntlet/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).

## Set up

Each piece is a normal Python package.

```bash
git clone https://github.com/abhishekcpp007/gauntlet-harness
cd gauntlet-harness
uv sync
uv run pytest # Docker tests skip if Docker isn't running
uv run ruff check
```

To run the whole stack from local folders, follow "Hacking on it" in the [README](README.md#hacking-on-it).

## Before you open a PR

- Add a test that fails without your change and passes with it.
- Run `uv run pytest` and `uv run ruff check` in the repo you touched.
- Keep the diff small. One fix per PR.
- If you change a number in a README, say which command produced it.

## AI tools

Use them if you like. I do. Two asks: run the tests yourself, and be able to explain the change in your own words when I ask about it.

## Reporting a security problem

If you find a way out of the sandbox, please don't post the details in public. Open an issue that only says you found one, and I'll get in touch to take the details privately.

## Be kind

Assume good faith, keep it about the code, and remember everyone here is doing this in their spare time.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ cd gauntlet && docker compose -f compose.dev.yaml up --build

Each piece uses uv, ruff and pytest, and its CI runs the Docker tests on real containers.

## Contributing

Gauntlet gets better when people attack it. The most useful things you can do are try it on a repo of your own, or write a cheat that beats the grader. [CONTRIBUTING.md](CONTRIBUTING.md) has the setup and a map of which repo holds what. Issues tagged [good first issue](https://github.com/abhishekcpp007/gauntlet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) are small on purpose.

## Limits, honestly

- Python with pytest, and JS/TS with vitest or jest. No other languages yet, and no JS workspaces or repos whose tests import a build.
Expand Down
Loading