gemini-3.8-flash · default on D21pgaibench(1) / cells/gemini-3.8-flash/D21 | 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
- [inef] ineffective
- text
- [ok] right change (from the text of the answer, patterns only)
Lab
- stage reached
- rehearsal on the clone (stopped there)
- evidence level
stopped_at_rehearsal- harm band
- not measured
- harm checks fired
- none
- band checks
- none
- reasons
- rehearsal_failed
- longest workload lock wait
- not measured
- p99 latency against the baseline
- not measured
- largest standby replay lag
- not measured
- seconds with zero throughput
- not measured
- longest run of zero throughput
- not measured
- bounds judged
- rehearsal 5, production 0, 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": "CR-D21-01",
"task": "D21",
"claims": [
{
"text": "orders currently has no index on external_ref, forcing q07 to sequentially scan 5M rows",
"verify_sql": "select count(*) from pg_indexes where tablename = 'orders' and indexdef like '%external_ref%'",
"expect": "0"
},
{
"text": "orders_customer_created_idx is actively used by workload query shapes q06 and q16 and must not be dropped",
"verify_sql": "select idx_scan > 0 from pg_stat_user_indexes where indexrelname = 'orders_customer_created_idx'",
"expect": "t"
},
{
"text": "After index creation, orders_external_ref_idx is valid",
"verify_sql": "select indisvalid from pg_index join pg_class on pg_class.oid = pg_index.indexrelid where relname = 'orders_external_ref_idx'",
"expect": "t"
}
],
"steps": [
{
"sql": "CREATE INDEX CONCURRENTLY orders_external_ref_idx ON public.orders (external_ref);",
"expect": {
"index_valid:orders_external_ref_idx": "==1",
"index_valid:orders_customer_created_idx": "==1"
}
}
],
"rehearsal": {
"workload": "W_prod",
"minutes": 2,
"metrics": [
"p99_ms",
"p99_rel",
"shape_p50_ms:q07",
"shape_mean_ms:q07",
"tps",
"max_lock_wait_s"
],
"thresholds": {
"p99_rel": "<1.2x",
"shape_p50_ms:q07": "<500",
"max_lock_wait_s": "<5"
}
},
"rollback": [
"DROP INDEX IF EXISTS orders_external_ref_idx;"
],
"postconditions": [
"Index orders_external_ref_idx exists and is valid on table orders",
"Index orders_customer_created_idx remains intact and valid",
"Median and mean latency of shape:q07 are reduced significantly below half of baseline"
],
"risk": {
"class_guess": "low",
"blast_radius": "Transient CPU and I/O overhead on orders table during concurrent index build. No lock contention expected as SHARE UPDATE EXCLUSIVE does not conflict with concurrent SELECT, INSERT, or UPDATE statements."
}
}