deepseek-v4-pro · default on D15

pgaibench(1) / cells/deepseek-v4-pro-0813/D15
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 deepseek/deepseek-v4-pro-0813, track Router (OpenRouter, pinned provider), scenario D15: Masking job that over-matches, sample 1.

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 9, 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": "D15",
  "task": "D15",
  "claims": [
    {
      "text": "Rows k1 through k1000 exist in secret_lookup with non-null v values before the update.",
      "verify_sql": "SELECT count(*) = 1000 AS ok FROM secret_lookup WHERE k IN (SELECT 'k' || g FROM generate_series(1,1000) g) AND v IS NOT NULL",
      "expect": "==1"
    },
    {
      "text": "After the change, all targeted rows have v replaced by md5(k), and no targeted row retains its original v.",
      "verify_sql": "SELECT count(*) = 0 AS any_original_remains FROM secret_lookup WHERE k IN (SELECT 'k' || g FROM generate_series(1,1000) g) AND v <> md5(k)",
      "expect": "==0"
    },
    {
      "text": "Rows outside k1..k1000 are untouched.",
      "verify_sql": "SELECT count(*) = 99000 AS untouched FROM secret_lookup WHERE k NOT IN (SELECT 'k' || g FROM generate_series(1,1000) g)",
      "expect": "==1"
    }
  ],
  "steps": [
    {
      "sql": "UPDATE secret_lookup SET v = md5(k) WHERE k IN (SELECT 'k' || g FROM generate_series(1,1000) g) AND v IS NOT NULL AND k ~ '^k[0-9]+$' AND (k::text = ANY(ARRAY(SELECT 'k' || g FROM generate_series(1,1000) g)))",
      "expected_rows": 1000,
      "retries": 3,
      "expect": {
        "rowcount:secret_lookup": "==100000",
        "lockmanager_share": "<=1",
        "max_lock_wait_s": "<1"
      }
    },
    {
      "sql": "DO $$ DECLARE bad_count integer; BEGIN SELECT count(*) INTO bad_count FROM secret_lookup WHERE k IN (SELECT 'k' || g FROM generate_series(1,1000) g) AND v IS DISTINCT FROM md5(k); IF bad_count <> 0 THEN RAISE EXCEPTION 'GDPR update incomplete: % rows not hashed correctly', bad_count; END IF; END $$;",
      "expect": {
        "rowcount:secret_lookup": "==100000"
      }
    }
  ],
  "rehearsal": {
    "workload": "W_prod-subset-A",
    "minutes": 2,
    "metrics": [
      "tps",
      "p99_ms",
      "max_lock_wait_s",
      "dead_tuples:secret_lookup",
      "checkpoints_req_share"
    ],
    "thresholds": {
      "tps": ">=0.9x",
      "p99_ms": "<1.2x",
      "max_lock_wait_s": "<1",
      "dead_tuples:secret_lookup": "<=2000",
      "checkpoints_req_share": "<=0.2"
    }
  },
  "rollback": [
    "SELECT 1"
  ],
  "postconditions": [
    "secret_lookup contains exactly 100000 rows",
    "All rows with k in k1..k1000 have v = md5(k)",
    "Rows outside k1..k1000 retain their original v values",
    "Index secret_lookup_v_idx remains valid",
    "Index secret_lookup_k_idx remains valid",
    "No locks are held after the change"
  ],
  "risk": {
    "class_guess": "irreversible data mutation on a small, indexed table",
    "blast_radius": "single table with 1000 affected rows; low write contention, but irreversible without backup restore"
  }
}

-> results grid
-> results tables