{"agent":"claude","input":"Add an audit log of row changes to this Supabase project and open a pull request. Read supabase/config.toml, every file in supabase/migrations/, nextjs/src/lib/supabase/unified.ts, nextjs/src/lib/types.ts and nextjs/src/app/app/table/page.tsx first. Write one new dated migration that creates public.audit_log (identity id, table_name, row_id text, action constrained to INSERT, UPDATE or DELETE, old_row jsonb, new_row jsonb, actor uuid default auth.uid(), changed_at timestamptz default now()) with an index on table_name and row_id, enables row level security, grants select to authenticated only, and adds a single select policy that lets a user read rows whose new_row or old_row owner equals auth.uid(); add no insert, update or delete policy. Define public.audit_row_change() as a plpgsql security definer trigger function with search_path set to public that records TG_TABLE_NAME, TG_OP, the row id and to_jsonb(old) and to_jsonb(new), and attach it as an after insert or update or delete trigger for each row on public.todo_list. Start the local stack, run supabase db reset, and in psql as the authenticated role with a test user's claims insert, update, complete and delete a todo and select the four audit rows; show that another user sees none and anon is refused. Add a pgTAP test under supabase/tests/database/ with the same checks. Do not change the existing policy, the authenticative function or the Next.js code. Paste the SQL session and the test output in the pull request description.","resources":[{"url":"https://github.com/your-org/your-app"}]}