psql "$SUPABASE_DB_URL" -c "\d public.payments"
Table "public.payments"
Column | Type | Collation | Nullable | Default
--------------+--------------------------+-----------+----------+---------
id | integer | | not null |
ref_code | text | | not null |
payer | text | | not null |
amount_cents | integer | | not null |
paid_at | timestamp with time zone | | not null |
Indexes:
"payments_pkey" PRIMARY KEY, btree (id)
psql "$SUPABASE_DB_URL" -c "SELECT * FROM public.payments LIMIT 5;"
id | ref_code | payer | amount_cents | paid_at ----+--------------+------------------+--------------+------------------------ 1 | 6C8935605030 | Payer-caffc0dc43 | 30036 | 2026-03-01 00:07:00+00 2 | 300351D74397 | Payer-b964e8caa9 | 101426 | 2026-03-01 00:14:00+00 3 | 381DA59BBE42 | Payer-77e253b14e | 484618 | 2026-03-01 00:21:00+00 4 | FD441D715532 | Payer-e8610229a5 | 470397 | 2026-03-01 00:28:00+00 5 | 49C2E5E745B1 | Payer-9719c24260 | 193265 | 2026-03-01 00:35:00+00 (5 rows)
psql "$SUPABASE_DB_URL" -c "SELECT COUNT(*) FROM public.payments;"
count
-------
80
(1 row)
pg_dump "$SUPABASE_DB_URL" -t public.payments -f payments_backup.sql
head -n 20 payments_backup.sql
--
-- PostgreSQL database dump
--
\restrict n8P8bnqharHyLgBXacWkcUj8qqz2HMaVAlCdHXY8mt45JtJAnMASIMMWkcnwX98
-- Dumped from database version 17.6
-- Dumped by pg_dump version 18.4 (Debian 18.4-1.pgdg12+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
psql "$SUPABASE_DB_URL" -c "SELECT public.run_incident();"
run_incident ------------------- incident executed (1 row)
psql "$SUPABASE_DB_URL" -c "SELECT COUNT(*) FROM public.payments;"
count
-------
54
(1 row)
psql "$SUPABASE_DB_URL" -c "TRUNCATE TABLE public.payments;"
TRUNCATE TABLE
psql "$SUPABASE_DB_URL" < payments_backup.sql
SET SET SET SET SET SET set_config ------------ (1 row) SET SET SET SET SET SET ALTER TABLE COPY 80 GRANT GRANT GRANT
ERROR: relation "payments" already exists ERROR: multiple primary keys for table "payments" are not allowed
psql "$SUPABASE_DB_URL" -c "SELECT COUNT(*) FROM public.payments;"
count
-------
80
(1 row)
psql "$SUPABASE_DB_URL" -c "SELECT * FROM public.incident_log;"
id | ran_at | details ----+-------------------------------+-------------------------------------- 1 | 2026-07-24 04:42:52.732521+00 | payments corrupted by incident drill (1 row)
psql "$SUPABASE_DB_URL" -c "\d public.payments"
Table "public.payments"
Column | Type | Collation | Nullable | Default
--------------+--------------------------+-----------+----------+---------
id | integer | | not null |
ref_code | text | | not null |
payer | text | | not null |
amount_cents | integer | | not null |
paid_at | timestamp with time zone | | not null |
Indexes:
"payments_pkey" PRIMARY KEY, btree (id)
psql "$SUPABASE_DB_URL" -c "SELECT * FROM public.payments LIMIT 5;"
id | ref_code | payer | amount_cents | paid_at ----+--------------+------------------+--------------+------------------------ 1 | 6C8935605030 | Payer-caffc0dc43 | 30036 | 2026-03-01 00:07:00+00 2 | 300351D74397 | Payer-b964e8caa9 | 101426 | 2026-03-01 00:14:00+00 3 | 381DA59BBE42 | Payer-77e253b14e | 484618 | 2026-03-01 00:21:00+00 4 | FD441D715532 | Payer-e8610229a5 | 470397 | 2026-03-01 00:28:00+00 5 | 49C2E5E745B1 | Payer-9719c24260 | 193265 | 2026-03-01 00:35:00+00 (5 rows)
psql "$SUPABASE_DB_URL" -c "SELECT count(id), count(distinct id) FROM public.payments;"
count | count
-------+-------
80 | 80
(1 row)
psql "$SUPABASE_DB_URL" -c "SELECT pg_get_serial_sequence('public.payments', 'id');"pg_get_serial_sequence ------------------------ (1 row)
A shell script executed against the live project and asserted on the state the agent left behind. No model judged another model.
Raw transcript · Task definition and verifier · Every attempt