Trigger-based recording
I recorded before and after row states under an action identifier, including rows removed by cascading deletes.
Experiments
A PostgreSQL and MCP experiment that records database changes and reverses them, including related deletions. Built and checked a working database spike rather than a complete agent recovery product.
An AI agent can change related records through one database action. Reversing that action needs the before-state of affected rows, including cascading deletions, while protecting later human edits.
I created and built the PostgreSQL and MCP spike.
I recorded before and after row states under an action identifier, including rows removed by cascading deletes.
I implemented undo with later-edit checks, savepoints and foreign-key-aware restoration. Undo actions are recorded too.
I built the gateway and statement restrictions, then exercised the workflow with a scripted MCP client.
Seven spike checks were recorded as passing. A cascade-delete test restored table fingerprints exactly. End-to-end operation with a real language-model agent was not established.
Project owner and developer
AI & automation
Let’s talk about your project
A new website. A product taking shape. A workflow that could work better.
Tell me what you have in mind, what you want to change, and the timeline you’re working toward.
You’ll be talking directly with me.
Connect on LinkedIn