2026-10-11 18:02 UTC

pg-dry-run’s maintainer claims previewing PostgreSQL mutations and checking xmin concurrency state provides a practical validation gate against unsafe or conflicting writes by AI agents.

state: expiredheat: lowuncertainty: highconvergesscott: mediumagentic-security database-safety tool-validationPolycore

What is this?

pg-dry-run is described as a Polycore-maintained tool that previews PostgreSQL mutations proposed by AI agents before allowing them to execute, using the database’s `xmin` system column to detect whether relevant rows changed after they were read. The supporting snippets establish that `xmin` records the transaction that created a row version and can serve as an optimistic-concurrency token for detecting concurrent modifications. However, the supplied search results do not independently document pg-dry-run itself or substantiate the broader claim that this gate prevents unsafe writes beyond concurrency conflicts.

Why it matters to Scott

pg-dry-run independently implements Scott’s propose–finalise and deterministic execution-boundary pattern at the PostgreSQL write layer, adding a concrete `xmin` optimistic-concurrency check that could inform his agent control planes. It is a useful implementation lead rather than validation of the architecture’s effectiveness, since the supplied evidence does not establish independent testing or protection beyond conflicting row state.
ip:framework.decision-authority-infrastructureip:concept.terminal-mutation-documentdev:concept.propose-finalise-gatedev:concept.deterministic-agent-control-planeradar:agent-acid-rollback-guardrailsradar:microsoft-agent-validation-framework
queries asked of Scott's wikis
  • AI agent database write approval gates
  • preview and validate tool mutations before execution
  • optimistic concurrency for agent actions
  • least-authority database tools for coding agents
  • human-in-the-loop approval of destructive writes
  • transactional safety and rollback in agent harnesses

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

no chain yet — the hourly chain pass fills this in

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Preview Postgres writes from AI agents with xmin checks (pg-dry-run)anarkafkas20
🟧 echo.github ⭐The released tool previews PostgreSQL writes made by AI agents and uses xmin checks to identify conflicting state.Polycore——

Interpretation history

Decision trace