name: PRD Gate

# PRD Plugin enforcement gate. Fails the build on duplicate IDs, version-marker
# drift, implemented requests without graduated_to, stranded outbox packages, or
# state-consistency errors. Installed by prd-install; safe to remove if a repo
# does not use GitHub Actions (the same check runs from the local pre-commit
# hook in .githooks/).

on:
  push:
  pull_request:

jobs:
  prd-gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.12'

      - name: PRD Plugin enforcement gate
        run: python .prd_plugin/scripts/prd_gate.py check --format markdown
