Skip to content

docs(policy): Add REVIEW.md, PR template, and workaround gate - #73

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

tony merged 8 commits into
masterfrom
review-rules-gemini

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Member

Closes # N/A

Summary

  • Remove legacy .cursor/rules/* and .windsurfrules assistant instruction files.
  • Add REVIEW.md defining find_repo_type, create_parser, run, and CLI test boundaries.
  • Link REVIEW.md from AGENTS.md and .github/CONTRIBUTING.md.
  • Add .github/PULL_REQUEST_TEMPLATE.md and the production-only revert test-bite command.
  • Add scripts/check_workarounds.py to CI and select PGH003 and PGH004 in pyproject.toml.

Verification

$ git ls-files '.cursor/rules/*' '.windsurfrules'

1. Owner and boundary

  • Rule changed and module that owns it: Repository review, contributor, and workaround governance in REVIEW.md, AGENTS.md, .github/, scripts/check_workarounds.py, and pyproject.toml.
  • 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): Root policy files, lint configuration, and CI checks own architectural review and workaround retirement for g.

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 ., PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py, doctests on scripts/check_workarounds.py, and uv run pytest -q.
  • .github/workarounds.toml updates (None if none): None
  • Tool use: Antigravity (Gemini) drafted REVIEW.md, .github/PULL_REQUEST_TEMPLATE.md, and scripts/check_workarounds.py; verified lint, formatting, ty, doctests, and full test suite locally.

Test plan

  • Verify zero tracked matches for .cursor/rules/* and .windsurfrules
  • uv run ruff check . passes with PGH003 and PGH004 enabled
  • uv run ruff format . --check passes
  • uv run ty check . passes (including scripts/)
  • PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py and doctests pass
  • uv run pytest -q passes

tony added 5 commits December 5, 2026 12:37
why: Keep AGENTS.md, REVIEW.md, and .github/WRITING.md as the single
authoritative agent and contributor instruction set.

what:
- Delete legacy .cursor/rules/*.mdc files
why: Prevent conflicting assistant rules alongside AGENTS.md and
REVIEW.md.

what:
- Delete legacy .windsurfrules from repository root
why: Define function ownership across VCS path detection, CLI parsing,
and subprocess execution alongside falsifiable review verdicts.

what:
- Add root REVIEW.md covering find_repo_type, create_parser, run, and
  CLI tests
- Link REVIEW.md from AGENTS.md policy and change-discipline sections
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
- Link REVIEW.md and add production-only test-bite recipe in
  .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
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (49ac549) to head (052d1a7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #73   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files           5        5           
  Lines         154      154           
=======================================
  Hits          150      150           
  Misses          4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added 3 commits December 5, 2026 15:50
why: The decision section did not say what to do with behavior the base
already has or with a gate nobody ran, or which findings block.

what:
- Add verdict rules: base run, existing and separate, unverified gates,
  behavior defects, and checks and claims
- Link the organization's posture definitions
why: The earlier command restored files in the contributor's checkout. It
could erase an uncommitted edit, and it left the source reverted when a
test did not bite. It counted any nonzero exit as a bite and used
mapfile, which zsh lacks.

what:
- Run the check in a disposable git worktree at HEAD
- Name the regression test in BITE_TEST, and succeed only when the runner
  reports that test as failed
- Default the base to the remote trunk, with BITE_BASE for a pre-fix commit
why: The checker was copied into this repository, so a correction to it
had to land in every copy.

what:
- Delete scripts/check_workarounds.py
- Run libtmux/.github's check-workarounds action in CI, pinned to a commit
- Point the policy files at the action
@tony
tony merged commit d2c965c into master Dec 5, 2026
3 checks passed
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.

2 participants