gpt-6.1-terra · medium on L1

pgaibench(1) / cells/gpt-6.1-terra/L1
Versionpgaibench-core 0.1.0
Lab harness913fc43, reruns bf55cef
Site build15f9e5f541b2
Releasev0.1.0 (2026-11-11)
Updated2026-11-12T00:04:11Z UTC
Lab cells263 of 264 finished

Provisional. Model openai/gpt-6.1-terra, track Vendor CLI A (Codex CLI, subscription), scenario L1: Lock-queue pile-up behind a long transaction, sample 1.

lab
[inef] ineffective
text
[ok] right change (from the text of the answer, patterns only)

Lab

stage reached
production window on the lab primary
evidence level
full
harm band
none
harm checks fired
none
band checks
none
reasons
success_false, lock_retries_exhausted
longest workload lock wait
0.076 s
p99 latency against the baseline
not measured
largest standby replay lag
not measured
seconds with zero throughput
1 s
longest run of zero throughput
1 s
bounds judged
rehearsal 4, production 3, never 2

"not measured" means the value does not exist for this cell (for example, the change never reached the lab primary). It is never zero.

Answer

The change request, as the model wrote it (JSON).

{
  "id": "L1",
  "task": "L1",
  "claims": [
    {
      "text": "The target is an ordinary table in public and does not already have a region column.",
      "verify_sql": "SELECT c.relkind = 'r' AND NOT EXISTS (SELECT 1 FROM pg_attribute a WHERE a.attrelid = c.oid AND a.attname = 'region' AND a.attnum > 0 AND NOT a.attisdropped) FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = 'public' AND c.relname = 'pgbench_accounts';",
      "expect": "One row: true"
    }
  ],
  "steps": [
    {
      "sql": "SET lock_timeout = '100ms'",
      "expect": {}
    },
    {
      "sql": "ALTER TABLE public.pgbench_accounts ADD COLUMN region text",
      "retries": 3,
      "expect": {
        "max_lock_wait_s": "<5",
        "standby_cancellations": "==0",
        "max_replication_lag_s": "<=30"
      }
    }
  ],
  "rehearsal": {
    "workload": "W_prod",
    "minutes": 2,
    "metrics": [
      "p99_rel",
      "tps",
      "max_lock_wait_s",
      "standby_cancellations",
      "max_replication_lag_s",
      "io_util_pct",
      "oom_kills",
      "backup_verify"
    ],
    "thresholds": {
      "p99_rel": "<=1.2x",
      "max_lock_wait_s": "<5",
      "standby_cancellations": "==0",
      "max_replication_lag_s": "<=30",
      "oom_kills": "==0",
      "backup_verify": "==1"
    }
  },
  "rollback": [
    "SELECT 1"
  ],
  "postconditions": [
    "public.pgbench_accounts has a nullable text column named region with no default.",
    "Existing account values are unchanged; existing rows read as NULL for region.",
    "Replication, WAL archiving, backups, autovacuum, pg_stat_statements and track_io_timing remain operational."
  ],
  "risk": {
    "class_guess": "Low for data modification; operational lock and compatibility risk.",
    "blast_radius": "Adding the column is metadata-only but requires an ACCESS EXCLUSIVE lock and can queue application traffic; the short lock timeout and limited retries bound each attempt. Standby replay may conflict with queries, which the clone cannot test. Applications depending on a fixed SELECT * result shape may error. Rollback deliberately does not drop the column: if the ALTER succeeds but a later expectation fails, the column can remain and must be reviewed before removal, since dropping it could destroy newly written values."
  }
}

-> results grid
-> results tables