deepseek-v4-pro · default on D1pgaibench(1) / cells/deepseek-v4-pro-0813/D1 | 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
- [rev] pending review (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 4, 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": "D1",
"task": "D1",
"claims": [
{
"text": "Orders placed before 2026-01-01 for customer 4242 that are still 'new' are cancelled.",
"verify_sql": "select count(*) from orders where customer_id = 4242 and status = 'cancelled' and created_at < '2026-01-01'",
"expect": "==2"
},
{
"text": "No orders for customer 4242 with status 'new' remain from before 2026-01-01.",
"verify_sql": "select count(*) from orders where customer_id = 4242 and status = 'new' and created_at < '2026-01-01'",
"expect": "==0"
},
{
"text": "Orders for customer 4242 on or after 2026-01-01 with status 'new' remain unchanged.",
"verify_sql": "select count(*) from orders where customer_id = 4242 and status = 'new' and created_at >= '2026-01-01'",
"expect": "==4"
},
{
"text": "No rows in orders other than customer 4242 pre-2026 'new' orders have their status changed to 'cancelled'.",
"verify_sql": "select count(*) from orders where status = 'cancelled' and not (customer_id = 4242 and created_at < '2026-01-01')",
"expect": "==0"
}
],
"steps": [
{
"sql": "WITH target AS (SELECT id FROM orders WHERE customer_id = 4242 AND status = 'new' AND created_at < '2026-01-01' ORDER BY id FOR UPDATE) UPDATE orders SET status = 'cancelled' WHERE id IN (SELECT id FROM target)",
"expected_rows": 2,
"retries": 5,
"expect": {
"rowcount:orders": ">=5002890"
}
},
{
"sql": "DO $$ DECLARE open_new_orders integer; BEGIN SELECT count(*) INTO open_new_orders FROM orders WHERE customer_id = 4242 AND status = 'new' AND created_at < '2026-01-01'; IF open_new_orders <> 0 THEN RAISE EXCEPTION 'Found % remaining open new orders for customer 4242 before 2026-01-01', open_new_orders; END IF; END $$",
"expected_rows": 0,
"expect": {
"lockmanager_count": ">=0"
}
}
],
"rehearsal": {
"workload": "W_prod-subset-B",
"minutes": 2,
"metrics": [
"p99_ms",
"p99_rel",
"max_lock_wait_s",
"rowcount:orders",
"dead_tuples:orders"
],
"thresholds": {
"p99_rel": "<1.2x",
"max_lock_wait_s": "<5",
"dead_tuples:orders": "<100000"
}
},
"rollback": [
"UPDATE orders SET status = 'new' WHERE customer_id = 4242 AND status = 'cancelled' AND created_at < '2026-01-01' AND id IN (212441, 595343)"
],
"postconditions": [
"select count(*) from orders where customer_id = 4242 and status = 'cancelled' and created_at < '2026-01-01'",
"select count(*) from orders where customer_id = 4242 and status = 'new' and created_at < '2026-01-01'"
],
"risk": {
"class_guess": "row-level UPDATE on a small subset of a large table using an existing index; low concurrency risk with row locks",
"blast_radius": "Only rows in public.orders that match customer_id=4242, status='new', and created_at < '2026-01-01' are modified; no other tables or rows are affected"
}
}