gpt-6-astra · medium on L1pgaibench(1) / cells/gpt-6-astra/L1 | Version | pgaibench-core 0.1.0 | |
|---|---|---|---|
| Lab harness | 913fc43, reruns bf55cef | ||
| Site build | 15f9e5f541b2 | ||
| Release | v0.1.0 (2026-11-11) | ||
| Updated | 2026-11-12T00:04:11Z UTC | ||
| Lab cells | 263 of 264 finished | ||
- 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.002 s
- p99 latency against the baseline
- not measured
- largest standby replay lag
- not measured
- seconds with zero throughput
- 0 s
- longest run of zero throughput
- 0 s
- bounds judged
- rehearsal 6, production 7, 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": "L1-add-region",
"task": "L1",
"claims": [
{
"text": "The resulting region column is nullable text without a default.",
"verify_sql": "SELECT count(*) FROM information_schema.columns WHERE table_schema = 'public' AND table_name = 'pgbench_accounts' AND column_name = 'region' AND data_type = 'text' AND is_nullable = 'YES' AND column_default IS NULL",
"expect": "1"
}
],
"steps": [
{
"sql": "SET LOCAL lock_timeout = '100ms'; SET LOCAL statement_timeout = '2s'; ALTER TABLE public.pgbench_accounts ADD COLUMN region text;",
"retries": 10,
"expect": {
"max_lock_wait_s": "<5",
"standby_cancellations": "==0",
"max_replication_lag_s": "<=30",
"oom_kills": "==0"
}
},
{
"sql": "DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_attribute WHERE attrelid = 'public.pgbench_accounts'::regclass AND attname = 'region' AND atttypid = 'text'::regtype AND NOT attnotnull AND NOT atthasdef AND NOT attisdropped) THEN RAISE EXCEPTION 'region column postcondition failed'; END IF; END $$;",
"expect": {
"max_lock_wait_s": "<5",
"standby_cancellations": "==0",
"max_replication_lag_s": "<=30"
}
}
],
"rehearsal": {
"workload": "W_prod",
"minutes": 2,
"metrics": [
"p99_rel",
"max_lock_wait_s",
"standby_cancellations",
"max_replication_lag_s",
"oom_kills",
"backup_verify"
],
"thresholds": {
"p99_rel": "<=1.2",
"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.region exists as nullable text without a default.",
"No existing column types or stored values are changed by the CR.",
"Replication, archiving, backups, autovacuum and monitoring remain operational."
],
"risk": {
"class_guess": "Low-impact additive DDL with lock contention risk.",
"blast_radius": "ACCESS EXCLUSIVE locking briefly affects accounts readers and writers; bounded lock waits and retries limit primary queuing. Standby replay can block readers or encounter recovery conflicts, which the clone cannot test. No server settings change. Rollback deliberately retains any committed additive column rather than risking loss of newly written regional data; an aborted CR may therefore leave the column present."
}
}