Preview
Inspect the affected rows before the mutation is allowed to execute.
Safe DML
UPDATE and DELETE follow a multi-stage approval protocol that binds human approval to the validated plan and rechecks the affected row set inside the commit transaction.
Inspect the affected rows before the mutation is allowed to execute.
Bind a one-time human approval challenge to the validated operation.
Check the row set again inside the transaction before commit.
A confirmation button is not enough when a generated mutation can affect production data. hs-sql-agent separates impact preview, explicit approval, transaction-time revalidation, and commit into distinct stages.
The approval flow is designed around the validated operation and its observed impact. Before commit, the server checks that the plan, policy, challenge, row count, and row set still match the approved context.
Published custom tools that perform DML enter the same typed approval flow rather than bypassing the safety path. The tool abstraction changes how an operation is exposed, not the mutation safety contract.