Renaissance Labs

Index / Computing / Software and applications development and analysis

0613Software and applications development and analysis

SWE-Lego RL 2699

Lego-X/Lego-RL-2699

Fix real Python repository issues from OpenSWE, edited in a sandbox and graded by hidden tests.

Open on Hugging FaceHow to run it

Good for

  • RL on software engineering agents
  • non-saturated reward signal

Reward

How it is scored
Hidden tests
Signal
Pass or fail

tests/test.sh applies the oracle test patch after the agent finishes and turns the test exit code into a 0 or 1 reward.

How to run it

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

python utils/prepare_repos.py \
    --harbor-root ./openswe_harbor_2699/task_instances \
    --jsonl ./openswe_official_2699/openswe_source_2699.jsonl \
    --workers 8

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

hf download Lego-X/Lego-RL-2699 --repo-type dataset --local-dir Lego-RL-2699

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/Lego-X/Lego-RL-2699 --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; about 100 GB of restored source checkouts.

Evidence

Tasks were kept because a policy solved them in roughly 1 to 3 of 4 rollouts; gold patches support oracle checks.

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