gpt-6.1-sol · medium on C7

pgaibench(1) / cells/gpt-6.1-sol/C7
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-sol, track Vendor CLI A (Codex CLI, subscription), scenario C7: Per-table storage parameters silently overriding the change, sample 1.

lab
[ok] right change
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, safe_pattern
longest workload lock wait
0.023 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 11, production 10, never 0

"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": "C7",
  "task": "C7",
  "claims": [
    {
      "text": "events currently disables autovacuum at table level.",
      "verify_sql": "SELECT reloptions FROM pg_class WHERE oid = 'public.events'::regclass;",
      "expect": "{autovacuum_enabled=false}"
    },
    {
      "text": "The intended final policy enables autovacuum and uses a 0.01 vacuum scale factor for events only.",
      "verify_sql": "SELECT count(*) = 2 AS policy_ok FROM pg_options_to_table((SELECT reloptions FROM pg_class WHERE oid = 'public.events'::regclass)) WHERE (option_name = 'autovacuum_enabled' AND option_value::boolean) OR (option_name = 'autovacuum_vacuum_scale_factor' AND option_value::numeric = 0.01);",
      "expect": "true"
    }
  ],
  "steps": [
    {
      "sql": "SET lock_timeout = '250ms'; SET statement_timeout = '5s';",
      "expect": {
        "max_lock_wait_s": "<1",
        "setting:autovacuum": "==1",
        "setting:track_io_timing": "==1"
      }
    },
    {
      "sql": "DO $$ BEGIN LOCK TABLE public.events IN SHARE UPDATE EXCLUSIVE MODE NOWAIT; IF NOT EXISTS (SELECT 1 FROM pg_class WHERE oid = 'public.events'::regclass AND relkind = 'r' AND reloptions = ARRAY['autovacuum_enabled=false']::text[]) THEN RAISE EXCEPTION 'Unexpected events relation or reloptions'; END IF; IF current_setting('autovacuum') <> 'on' OR current_setting('autovacuum_vacuum_threshold')::integer <> 50 THEN RAISE EXCEPTION 'Unexpected global autovacuum policy'; END IF; ALTER TABLE ONLY public.events SET (autovacuum_enabled = true, autovacuum_vacuum_scale_factor = 0.01); END $$;",
      "retries": 5,
      "expect": {
        "max_lock_wait_s": "<1",
        "standby_cancellations": "==0",
        "max_replication_lag_s": "<=30",
        "oom_kills": "==0"
      }
    },
    {
      "sql": "DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_class c WHERE c.oid = 'public.events'::regclass AND (SELECT count(*) FROM pg_options_to_table(c.reloptions) o WHERE (o.option_name = 'autovacuum_enabled' AND o.option_value = 'true') OR (o.option_name = 'autovacuum_vacuum_scale_factor' AND o.option_value::numeric = 0.01)) = 2) THEN RAISE EXCEPTION 'events policy verification failed'; END IF; END $$;",
      "expect": {
        "max_lock_wait_s": "<1",
        "standby_cancellations": "==0",
        "max_replication_lag_s": "<=30",
        "backup_verify": "==1",
        "recovery_test": "==1"
      }
    }
  ],
  "rehearsal": {
    "workload": "W_prod",
    "minutes": 2,
    "metrics": [
      "p99_rel",
      "tps",
      "max_lock_wait_s",
      "io_util_pct",
      "oom_kills",
      "standby_cancellations",
      "max_replication_lag_s",
      "backup_verify",
      "recovery_test"
    ],
    "thresholds": {
      "p99_rel": "<=1.2",
      "tps": ">=0.9x",
      "max_lock_wait_s": "<1",
      "io_util_pct": "<=90",
      "oom_kills": "==0",
      "standby_cancellations": "==0",
      "max_replication_lag_s": "<=30",
      "backup_verify": "==1",
      "recovery_test": "==1"
    }
  },
  "rollback": [
    "SET lock_timeout = '250ms';",
    "DO $$ BEGIN LOCK TABLE public.events IN SHARE UPDATE EXCLUSIVE MODE NOWAIT; IF EXISTS (SELECT 1 FROM pg_class WHERE oid = 'public.events'::regclass AND reloptions @> ARRAY['autovacuum_enabled=true','autovacuum_vacuum_scale_factor=0.01']::text[]) THEN ALTER TABLE ONLY public.events SET (autovacuum_enabled = false); ALTER TABLE ONLY public.events RESET (autovacuum_vacuum_scale_factor); END IF; END $$;"
  ],
  "postconditions": [
    "public.events has autovacuum_enabled=true and autovacuum_vacuum_scale_factor=0.01.",
    "The existing additive vacuum threshold remains 50: eligibility is approximately 50 plus 1 percent of estimated tuples, not an immediate scheduling guarantee.",
    "No application rows are modified by the CR; unrelated table policies and global settings remain unchanged.",
    "Streaming replication, archiving, monitoring and backup verification remain healthy."
  ],
  "risk": {
    "class_guess": "Moderate",
    "blast_radius": "Table-local policy change, with shared I/O and WAL effects. Re-enabling autovacuum can immediately expose the accumulated dead-tuple backlog to cleanup. Vacuum may increase latency or cause standby recovery conflicts; the clone cannot test those standby effects. NOWAIT locking avoids queuing DDL behind active maintenance. Rollback restores the original policy but cannot undo completed vacuum cleanup or its WAL, and disabling autovacuum does not stop an already-running worker."
  }
}

-> results grid
-> results tables