Renaissance Labs

Index / Computing / Database and network design and administration

0612Database and network design and administration

SQLab

Space · stvident/sqlab

Diagnose and fix one of 17 injected PostgreSQL faults on a live 20-million-row airline database using raw SQL within 15 steps.

Open on Hugging FaceHow to run it

Good for

  • training SRE-style database debugging
  • anti-reward-hacking design

Reward

How it is scored
Programmatic check
Signal
Dense, per step

A deterministic grader scores diagnosis, resolution and best practice (0 to 1), plus per-step shaping rewards with duplicate and wrong-fix penalties.

How to run it

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

docker run -d --name sqlab -p 8000:8000 sqlab

2. Run the Space locallyevery Space is a Docker image or app you can clone

git clone https://huggingface.co/spaces/stvident/sqlab
cd sqlab

The Space also runs live on the Hub; open it to see the API it serves.

Framework documentation: OpenEnv. Needs: Docker, PostgreSQL data load (2-3 minutes at first boot).

Evidence

255 adversarial unit tests cover reward hacking cases.

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