File size: 2,288 Bytes
f96d79b
 
4063b50
 
f96d79b
 
4063b50
 
f96d79b
 
 
 
 
 
 
 
4063b50
f96d79b
 
 
 
 
 
 
 
 
 
 
 
 
 
4063b50
 
f96d79b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
license: apache-2.0
language:
- en
pretty_name: Database Operations
task_categories:
- reinforcement-learning
- text-generation
tags:
- harbor
- agents
- reinforcement-learning
- postgresql
- database
- sre
- devops
- rl-environment
size_categories:
- n<1K
---

![Database Operations](https://huggingface.co/datasets/reactive-labs/database-operations/resolve/main/assets/banner.png)

# Database Operations

12 tasks on a live PostgreSQL 16 production host: recovery, migrations, access control and tuning. The agent is root on the host with a ticket, the app, backups, logs and runbooks; the verifier compares the final database and host with the expected state and runs the app as its own roles.

```
harbor run -d reactive-labs/database-operations -a <agent> -m <model>
```

Harbor Hub: [reactive-labs/database-operations](https://hub.harborframework.com/datasets/reactive-labs/database-operations)

| Task | Ticket |
|---|---|
| recovery-archive-gap | power loss tore the newest WAL; the archive had been failing since the day before |
| recovery-audit-retention | a mistyped retention cleanup; keep the evening's writes |
| recovery-rate-deploy | next year's prices went live early; re-quote three days of bookings |
| migration-surcharge-rows | surcharges from jsonb into a table, backfilled and kept in sync |
| migration-account-merge | merge an acquired shipper as of the closing date |
| migration-booking-refs | duplicates from a retry storm, then unique references |
| access-portal-rls | row-level security for the shipper portal |
| access-pii-lockdown | personal data out of BI by every route |
| access-offboarding | remove all a contractor left behind, keep what was approved |
| tuning-outbox-bloat | stuck two-phase commits and a bloated outbox |
| tuning-legacy-import | portal slow after a 300,000-shipment import |
| tuning-connection-limits | too many clients at peak, no restart allowed |

License: Apache 2.0.

## Citation

```bibtex
@misc{reactivelabs2026databaseoperations,
  title        = {Database Operations},
  author       = {{Reactive Labs}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/reactive-labs/database-operations}},
  url          = {https://huggingface.co/datasets/reactive-labs/database-operations}
}
```