Renaissance Labs

Index / Computing / Database and network design and administration

0612Database and network design and administration

Repo2RLEnv CVE Patches

FineEnvs/repo2rlenv-cve-patches

Patch a real security vulnerability in a Python library so the fail-to-pass tests pass without breaking others.

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-cve-patches -a oracle --env docker

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

hf download FineEnvs/repo2rlenv-cve-patches --repo-type dataset --local-dir repo2rlenv-cve-patches

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-cve-patches --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.