GS/BS
← Standards directory
Reliability

Squawk.

Review PostgreSQL migrations for unsafe locks

Lint migrations for operations that can take disruptive locks or rewrite large tables. Pair each warning with a rollout plan for the production schema.

SQL

Community rubric · v1

The evidence

Evidence coverage4 / 8
4 supported · 4 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The require-concurrent-index-creation rule flags index builds that can block writes in PostgreSQL.

    Cited source ↗
  • Measurement

    Verified

    The CLI's migration example reports the risky statement, location, lock effect and rule identifier.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Verified

    The README provides pip, npm and Docker installation paths, then runs squawk on example.sql and shows warnings with line references and proposed fixes.

    Cited source ↗
  • Real-world adoption

    Verified

    CodeRabbit scans changed SQL files in migration directories for PostgreSQL lock and compatibility hazards; ordinary SQL paths are excluded.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Agent prompt

Use Squawk in this repository to meet this standard: Review PostgreSQL migrations for unsafe locks. Lint migrations for operations that can take disruptive locks or rewrite large tables. Pair each warning with a rollout plan for the production schema. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

Squawk documentation ↗