Branch-per-agent database: every AI agent writes to its own mergeable branch first
Antique-Willow-5841 · reddit · 2026-10-15
Trigger: an agent with write access to a production CRM deleted all lead lists — but read-only wasn't an option since it needed to write. The author is building a branch-per-agent database: each agent gets a private copy ready in under a millisecond, writes freely, then a human reviews row-by-row diffs and merges or discards.
Design details:
- Row-level three-way merges; concurrent production edits to the same row never auto-merge
- The DB records what the agent read; if that data changed mid-run, the merge is held
- Custom SQL checks run against merge results, catching changes fine alone but wrong together
- Rules govern auto-merge: row caps, no deletes, human-required tables; limits counted across the whole run so split deletes can't evade them
- Queued emails/webhooks fire only on merge; agent claims never trusted
Speaks the Postgres protocol (psql and standard drivers work). Public repo, solo-built; seeking real-world testers, Rust devs, and critics.
Related event: Developer Builds Git-Style Branched Postgres After AI Agent Wipes CRM Data(3 posts)→
More from coding & agent
- Software products need an API/MCP/plugin now: agents will drive acquisition and retention — omooretweets · 2026-12-02
- Matt Shumer says collaborating with Jacob humbles his AI-orchestration skills ahead of Spawn — mattshumer_ · 2026-12-02
- LiveCraft benchmark: top agents score just 30.3/100 in real-time Minecraft worlds — Chengxing Xie · 2026-12-02
- LegoReview mines 556k PRs for verifiable review data, boosting SWE-bench Pro V2 Hard to 70.6 — Lego-X · 2026-12-02
- 'Delete it all': the models are better at coding than you, embrace it — deobfuscations · 2026-12-02
- Steve Yegge after a year of software factories: the last bottleneck is human attention — Steve_Yegge · 2026-12-02