Operations
Collection
Operations, databases and security work. • 6 items • Updated
name stringlengths 31 38 | instruction stringlengths 1.71k 3.21k | description stringlengths 143 195 | keywords listlengths 5 6 | schema_version stringclasses 1
value | config unknown | metadata unknown | files listlengths 21 31 | location stringlengths 23 30 |
|---|---|---|---|---|---|---|---|---|
reactive-labs/access-offboarding | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Monday 2026-11-23. The SOC 2
lead's ticket for today is `/srv/ops/tickets/SEC-135.md`:
> Opened 2026-11-20 17:40 by Priya Raman (SOC 2 lead). Platform: Jide. Due Monday 2026-11-23.
>
> Kai Mercer (Ardent Performance, contractor) finish... | Offboard a contractor from a live Postgres 16 host: find and remove every login, rule, object, job and key they left behind, keep their approved tuning and the documented access | [
"postgresql",
"database-operations",
"access-control",
"offboarding",
"security"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/access-offboarding",
"version": "1.0.0",
"description": "Offboard a contractor from a live Postgres 16 host: find and remove every login, rule, object, job and key they left behind, keep their approved tuning and the documented access",
"au... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"pg-hba",
"security-definer",
"replication-slots",
"postgres-fdw",
"linux-accounts",
"soc2"
],
"expert_time_estimate_min": 150
} | [
"environment/Dockerfile",
"environment/bundle/etc_cron.d.tar.zst",
"environment/bundle/etc_sudoers.d.tar.zst",
"environment/bundle/home_kmercer.tar.zst",
"environment/bundle/post-install",
"environment/bundle/root_.ssh.tar.zst",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar... | tasks/access-offboarding |
reactive-labs/access-pii-lockdown | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Monday 2026-11-23. The SOC 2
lead's ticket for this week is `/srv/ops/tickets/SEC-133.md`:
> **SEC-133 Personal data out of BI; read access for the support desk** (Priya Raman, SOC 2 lead; platform: Jide)
>
> Auditors' finding F-07: "B... | Close every route by which the BI role reads personal or credential data on a live Postgres 16 host, keep everything else it reads, and add a scoped support login | [
"postgresql",
"database-operations",
"access-control",
"pii",
"grants",
"security"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/access-pii-lockdown",
"version": "1.0.0",
"description": "Close every route by which the BI role reads personal or credential data on a live Postgres 16 host, keep everything else it reads, and add a scoped support login",
"authors": [
... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"column-privileges",
"role-membership",
"security-definer",
"soc2"
],
"expert_time_estimate_min": 180
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/access-pii-lockdown |
reactive-labs/access-portal-rls | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Wednesday 2026-11-18. The
platform team's ticket for today is `/srv/ops/tickets/PLAT-322.md`:
> **PLAT-322 Database role for the shipper portal (tracking portal v2)** (Marit Lindqvist; security review SEC-130)
>
> The portal backend co... | Give a pooled shipper portal a database role on a live Postgres 16 host that sees exactly one account's data on every path, per the security policy, without changing what the app, jobs and BI see | [
"postgresql",
"database-operations",
"row-level-security",
"access-control",
"multi-tenant",
"security"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/access-portal-rls",
"version": "1.0.0",
"description": "Give a pooled shipper portal a database role on a live Postgres 16 host that sees exactly one account's data on every path, per the security policy, without changing what the app, jobs and... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"row-level-security",
"grants",
"views",
"tenant-isolation"
],
"expert_time_estimate_min": 180
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/access-portal-rls |
reactive-labs/migration-account-merge | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Monday 2026-11-16. Billing's
ticket for today is `/srv/ops/tickets/PLAT-315.md`:
> **PLAT-315 Merge Quilted Hollow Fabrics into Cedar & Twine** (Tomoko Sato, billing; sales sign-off SAL-2026-31)
>
> Cedar & Twine Home Goods (CDAR) boug... | Merge an acquired shipper account into its buyer on a live Postgres 16 host as of the closing date: move and re-rate its shipments, credit its invoices through the app, close the account | [
"postgresql",
"database-operations",
"data-migration",
"billing",
"time-zones",
"sre"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/migration-account-merge",
"version": "1.0.0",
"description": "Merge an acquired shipper account into its buyer on a live Postgres 16 host as of the closing date: move and re-rate its shipments, credit its invoices through the app, close the acc... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"data-migration",
"account-merge",
"re-rating",
"credit-notes"
],
"expert_time_estimate_min": 180
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/migration-account-merge |
reactive-labs/migration-booking-refs | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Thursday 2026-11-12. The
platform team's ticket for today is `/srv/ops/tickets/PLAT-320.md`, a follow-up to Tuesday's INC-0629:
> **PLAT-320 One shipment per shipper reference** (Marit Lindqvist; agreed with support and billing)
>
> A ... | Clean up duplicate shipments left by an API retry storm by the ticket's rules and make shipper references unique on a live Postgres 16 database | [
"postgresql",
"database-operations",
"constraints",
"data-cleanup",
"idempotency",
"sre"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/migration-booking-refs",
"version": "1.0.0",
"description": "Clean up duplicate shipments left by an API retry storm by the ticket's rules and make shipper references unique on a live Postgres 16 database",
"authors": [
{
"nam... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"unique-index",
"partial-index",
"deduplication",
"schema-migration"
],
"expert_time_estimate_min": 150
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/migration-booking-refs |
reactive-labs/migration-surcharge-rows | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, on Monday 2026-11-16. The platform
team's ticket for this week is `/srv/ops/tickets/PLAT-311.md` (billing's request, approved by Jide):
> **PLAT-311 Surcharges as rows: shipment_surcharges**
>
> Finance reports surcharges by kind every mo... | Move shipment surcharges out of a jsonb column into their own table on a live Postgres 16 host, backfilled from invoices and messy history and kept in step with an app that still writes the jsonb | [
"postgresql",
"database-operations",
"schema-migration",
"backfill",
"triggers",
"billing"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/migration-surcharge-rows",
"version": "1.0.0",
"description": "Move shipment surcharges out of a jsonb column into their own table on a live Postgres 16 host, backfilled from invoices and messy history and kept in step with an app that still wr... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"schema-migration",
"expand-contract",
"backfill",
"trigger",
"grants"
],
"expert_time_estimate_min": 180
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/migration-surcharge-rows |
reactive-labs/recovery-archive-gap | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root. The on-call page this morning is
`/srv/ops/tickets/INC-0624.md`:
> **INC-0624 pgprod-02 down after power event (SEV-1)**
> Opened 2026-11-10 07:42 Pacific by Rami Haddad
>
> The host rebooted at 03:20 after the UPS fault in the Spokane ra... | Bring a Postgres 16 production host back after a power loss that tore its control file and newest WAL, while its WAL archive had been silently failing since the afternoon before | [
"postgresql",
"database-operations",
"point-in-time-recovery",
"migration",
"billing",
"sre"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/recovery-archive-gap",
"version": "1.0.0",
"description": "Bring a Postgres 16 production host back after a power loss that tore its control file and newest WAL, while its WAL archive had been silently failing since the afternoon before",
"... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"point-in-time-recovery",
"wal-archive",
"journal-replay",
"disaster-recovery"
],
"expert_time_estimate_min": 210
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundle/world_epoch",
"instruction.md",
"solutio... | tasks/recovery-archive-gap |
reactive-labs/recovery-audit-retention | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root. Tonight's ticket is
`/srv/ops/tickets/INC-0617.md`:
> **INC-0617 Audit log history gone (SEV-2)**
> Opened 2026-11-04 23:36 Pacific by Rami Haddad (support, on call for the evening)
>
> The nightly SOC 2 evidence export failed at 23:15: i... | Undo a mistyped manual retention cleanup on a live Postgres 16 production host without losing an evening of writes, then back it up and report the damaging transactions | [
"postgresql",
"database-operations",
"point-in-time-recovery",
"wal",
"incident-response",
"sre"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/recovery-audit-retention",
"version": "1.0.0",
"description": "Undo a mistyped manual retention cleanup on a live Postgres 16 production host without losing an evening of writes, then back it up and report the damaging transactions",
"autho... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"point-in-time-recovery",
"wal",
"backup",
"incident-response"
],
"expert_time_estimate_min": 150
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundle/world_epoch",
"instruction.md",
"solutio... | tasks/recovery-audit-retention |
reactive-labs/recovery-rate-deploy | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root. It is Tuesday morning and billing
has opened `/srv/ops/tickets/INC-0622.md`:
> **INC-0622 Contract quotes too high since Friday (SEV-2)**
> Opened 2026-11-10 08:20 Pacific by Tomoko Sato (billing)
>
> Three contract shippers (Spokane Tool... | Undo a deploy that applied next year's contract prices to the current rate cards on a live Postgres 16 host, re-quote three days of bookings, and load the new prices the way the pricing memo says | [
"postgresql",
"database-operations",
"point-in-time-recovery",
"migration",
"billing",
"sre"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/recovery-rate-deploy",
"version": "1.0.0",
"description": "Undo a deploy that applied next year's contract prices to the current rate cards on a live Postgres 16 host, re-quote three days of bookings, and load the new prices the way the pricing... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"point-in-time-recovery",
"journal-replay",
"bad-migration",
"billing"
],
"expert_time_estimate_min": 240
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundl... | tasks/recovery-rate-deploy |
reactive-labs/tuning-connection-limits | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, at 11:40 on Friday 2026-11-27
(Black Friday). The on-call incident is `/srv/ops/tickets/INC-0661.md`:
> Opened 2026-11-27 10:55 by Marit Lindqvist (platform on-call). Severity 1 until the afternoon peak is safe.
>
> Between 09:02 and 10:4... | Stop 'too many clients' on a live Postgres 16 host before the afternoon peak, without a restart: work out who connects, cap every role to fit, and keep the API and the jobs whole | [
"postgresql",
"database-operations",
"connections",
"capacity",
"incident"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/tuning-connection-limits",
"version": "1.0.0",
"description": "Stop 'too many clients' on a live Postgres 16 host before the afternoon peak, without a restart: work out who connects, cap every role to fit, and keep the API and the jobs whole",
... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "medium",
"category": "database-operations",
"tags": [
"postgresql",
"max-connections",
"connection-limit",
"roles",
"log-analysis",
"incident"
],
"expert_time_estimate_min": 45
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment/bundle/world_epoch",
"instruction.md",
"solutio... | tasks/tuning-connection-limits |
reactive-labs/tuning-legacy-import | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, at 13:00 on Monday 2026-11-23.
Support's incident for today is `/srv/ops/tickets/INC-0655.md`:
> Opened 2026-11-23 11:05 by Rami Haddad (support). Severity 2. Platform: Jide (PLAT-330 owner).
>
> Since Monday morning the shipper portal is... | Make a shipper portal fast again on a live Postgres 16 host after a bulk history import, without touching the imported data or the service's queries | [
"postgresql",
"database-operations",
"query-tuning",
"indexes",
"bulk-load"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/tuning-legacy-import",
"version": "1.0.0",
"description": "Make a shipper portal fast again on a live Postgres 16 host after a bulk history import, without touching the imported data or the service's queries",
"authors": [
{
"... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "medium",
"category": "database-operations",
"tags": [
"postgresql",
"explain-analyze",
"invalid-index",
"autovacuum",
"statistics",
"incident"
],
"expert_time_estimate_min": 75
} | [
"environment/Dockerfile",
"environment/bundle/import.sql",
"environment/bundle/post-install",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_parcelhub_track.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_parcelhub.tar... | tasks/tuning-legacy-import |
reactive-labs/tuning-outbox-bloat | You are on pgprod-02, Fernhollow Parcel Co.'s production database host, as root, at 08:30 on Tuesday 2026-11-24. The
on-call ticket for this morning's maintenance window is `/srv/ops/tickets/INC-0652.md`:
> Opened 2026-11-23 18:20 by Marit Lindqvist (platform on-call). Severity 3. Fix in Tuesday's maintenance window
>... | Find why vacuum stopped removing dead tuples on a live Postgres 16 host, finish the stuck two-phase commits the way the ledger decided, and give the outbox table its speed and space back | [
"postgresql",
"database-operations",
"vacuum",
"bloat",
"two-phase-commit"
] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "reactive-labs/tuning-outbox-bloat",
"version": "1.0.0",
"description": "Find why vacuum stopped removing dead tuples on a live Postgres 16 host, finish the stuck two-phase commits the way the ledger decided, and give the outbox table its speed and space back... | {
"author_name": "Reactive Labs",
"author_email": "unknown",
"difficulty": "hard",
"category": "database-operations",
"tags": [
"postgresql",
"prepared-transactions",
"xmin-horizon",
"vacuum-full",
"incident"
],
"expert_time_estimate_min": 90
} | [
"environment/Dockerfile",
"environment/bundle/srv_backups.tar.zst",
"environment/bundle/srv_ops.tar.zst",
"environment/bundle/srv_pg.tar.zst",
"environment/bundle/var_log_ledger-sync.tar.zst",
"environment/bundle/var_log_parcelhub.tar.zst",
"environment/bundle/var_log_postgresql.tar.zst",
"environment... | tasks/tuning-outbox-bloat |
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
| 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.
@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}
}