Skip to content

docs(policy): Add PR template and workaround gate - #213

Merged
tony merged 2 commits into
masterfrom
review-rules-gemini
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
review-rules-gemini

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Closes # N/A

Summary

  • Add .github/PULL_REQUEST_TEMPLATE.md with owner, regression baseline, and tool-disclosure prompts.
  • Add production-only revert test-bite command to .github/CONTRIBUTING.md.
  • Add scripts/check_workarounds.py and run it in CI against lockfiles.
  • Select PGH003 and PGH004 in pyproject.toml against bare suppression comments.

1. Owner and boundary

  • Rule changed and module that owns it: Contributor governance and lockfile workaround verification in .github/, scripts/check_workarounds.py, and pyproject.toml; existing REVIEW.md stays unchanged.
  • Sibling entry points checked (sync/async, CLI/API, single/batch, or N/A): N/A
  • Why this belongs here (owner fix, boundary adapter, or single-PR ownership transfer): Repository contributor templates, lint configuration, and CI checks own pull request and workaround enforcement.

2. Failure before the fix (N/A for docs, lockfile bumps, or pure refactors)

  • Baseline (<base> commit, or <pre_fix_head> SHA if fixing a defect introduced in this PR): N/A
  • Failing input or command and observed failure before the fix: N/A

3. Verification and tool disclosure

  • Gates run (plus production-only revert check for behavioral fixes, or N/A): uv run ruff check ., uv run ruff format --check ., uv run ty check, uv run ty check --python-version 3.12 --python-platform win32, PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py, doctests on scripts/check_workarounds.py, and uv run pytest -q README.md tests/test_parser.py.
  • .github/workarounds.toml updates (None if none): None
  • Tool use: Antigravity (Gemini) drafted the template, contributor command, and workaround checker; verified lint, typecheck, doctests, and unit tests locally.

Test plan

  • uv run ruff check . passes with PGH003 and PGH004 enabled
  • uv run ruff format --check . passes
  • uv run ty check and uv run ty check --python-version 3.12 --python-platform win32 pass
  • PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py and python -B -m doctest scripts/check_workarounds.py pass
  • uv run pytest -q README.md tests/test_parser.py passes
  • Full matrix in CI

tony added 2 commits December 5, 2026 12:22
why: Give pull request authors an explicit owner, baseline, and
verification checklist alongside a copy-pasteable production-only revert
command for regression tests.

what:
- Add .github/PULL_REQUEST_TEMPLATE.md with owner, failure baseline, and
  verification prompts
- Add production-only git restore and rm test-bite recipe to
  .github/CONTRIBUTING.md
why: Fail CI once a locked package version satisfies a declared
workaround's removal condition or when a bare suppression comment lands.

what:
- Add scripts/check_workarounds.py and run it in the test workflow
- Select PGH003 and PGH004 in pyproject.toml
@tony
tony merged commit 35a9d46 into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the review-rules-gemini branch December 5, 2026 20:42

This branch was successfully deployed

1 active deployment
docs — 1c3bb8fb Deployed Dec 5, 2026 by tony via build (3.14) #534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant