Renaissance Labs

Index / Computing / Software and applications development and analysis

0613Software and applications development and analysis

Repo2RLEnv PR Runtime

FineEnvs/repo2rlenv-pr-runtime

Implement a merged pull request's change in Python, Go or JS repositories so its tests pass.

Open on Hugging FaceHow to run it

Good for

  • RL on synthetic repository tasks

Reward

How it is scored
Hidden tests
Signal
Graded, 0 to 1

After the patch, tests/test.sh runs the suite and reward = f2p_rate x p2p_rate; resolved needs all FAIL_TO_PASS and PASS_TO_PASS.

How to run it

1. From the cardcopied from the publisher's own instructions

harbor run -p /tmp/repo2rlenv-pr-runtime -a oracle --env docker

2. Get the filesthe whole repository, to a local folder

hf download FineEnvs/repo2rlenv-pr-runtime --repo-type dataset --local-dir repo2rlenv-pr-runtime

3. Check it with Harborcommon pattern, not from this card

# the oracle agent runs the reference solution, so no model is called
harbor run --repo https://huggingface.co/datasets/FineEnvs/repo2rlenv-pr-runtime --agent oracle

If every task passes, the environment works on your machine. Then swap in your own agent and model. Some repositories keep the tasks in a subfolder; the card says where.

Framework documentation: Harbor. Needs: Docker or Daytona.

Evidence

Gold patch oracle must score reward 1.000 as a structural check.

As reported by the publisher. We have not reproduced it.