Repository navigation
docs(policy): Add REVIEW.md, PR template, and workaround gate - #572
Merged
Merged
Conversation
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: Retire duplicate assistant guidelines superseded by AGENTS.md, REVIEW.md, and .github/WRITING.md. what: - Delete legacy .augment-guidelines from repository root
why: Codex loads root AGENTS.md and REVIEW.md directly without needing a separate .codex/instructions.md file. what: - Delete legacy .codex/instructions.md
why: Define layer ownership across libvcs URL, cmd, sync, and _internal modules alongside regression baselines and falsifiable review verdicts. what: - Add root REVIEW.md covering sync, cmd, url, _internal, and pytest fixtures - 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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #572 +/- ##
==========================================
+ Coverage 73.11% 73.14% +0.03%
==========================================
Files 54 54
Lines 12348 12348
Branches 1761 1761
==========================================
+ Hits 9028 9032 +4
+ Misses 2490 2486 -4
Partials 830 830 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes # N/A
Summary
.cursor/rules/*,.windsurfrules,.augment-guidelines, and.codex/instructions.mdfiles.REVIEW.mddefiningsync,cmd,url,_internal, andpytest_pluginboundaries.REVIEW.mdfromAGENTS.mdand.github/CONTRIBUTING.md..github/PULL_REQUEST_TEMPLATE.mdand the production-only revert test-bite command.scripts/check_workarounds.pyto CI and selectPGH003andPGH004inpyproject.toml.Verification
$ git ls-files '.cursor/rules/*' '.windsurfrules' '.augment-guidelines' '.codex/instructions.md'1. Owner and boundary
REVIEW.md,AGENTS.md,.github/,scripts/check_workarounds.py, andpyproject.toml.sync/async, CLI/API, single/batch, orN/A):N/Alibvcs.2. Failure before the fix (
N/Afor docs, lockfile bumps, or pure refactors)<base>commit, or<pre_fix_head>SHA if fixing a defect introduced in this PR):N/AN/A3. Verification and tool disclosure
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 onscripts/check_workarounds.py, anduv run pytest -q tests/url/ README.md --reruns=0..github/workarounds.tomlupdates (Noneif none):NoneREVIEW.md,.github/PULL_REQUEST_TEMPLATE.md, andscripts/check_workarounds.py; verified lint, formatting,ty, doctests, and unit tests locally.Test plan
.cursor/rules/*,.windsurfrules,.augment-guidelines, and.codex/instructions.mduv run ruff check .passes withPGH003andPGH004enableduv run ruff format . --checkpassesuv run ty checkpasses (includingscripts/)PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.pyand doctests passuv run pytest -q tests/url/ README.md --reruns=0passes