Repository navigation
docs(policy): Adopt review policy and retire legacy AI rules - #366
Merged
Merged
Conversation
why: `AGENTS.md` (with `CLAUDE.md` symlinked to it), `REVIEW.md`, `.github/CONTRIBUTING.md`, and `.github/WRITING.md` are the canonical policy files; `.cursor/rules/*` duplicated gate and commit rules. what: - Delete `.cursor/rules/avoid-debug-loops.mdc`, `dev-loop.mdc`, `git-commits.mdc`, and `notes-llms-txt.mdc`
why: `.windsurfrules` carried a stale `libtmux` copy-paste header and duplicated formatting and docstring rules governed by `.github/WRITING.md` and `AGENTS.md`. what: - Delete `.windsurfrules`
why: Codify the thin-adapter boundary between `cihai-cli` (`cli`, `_formatter`, `_colors`) and upstream `cihai` alongside subcommand symmetry and offline-fixture test rules. what: - Add root `REVIEW.md` covering module ownership, `Changing the map`, rejected patterns, and falsifiable `BLOCK` / `NO FINDINGS` criteria - Link `REVIEW.md` from `AGENTS.md` while keeping `CLAUDE.md` intact
why: Regression tests prove nothing if reverting production edits still passes, and pull requests need explicit owner, baseline, and tool-use disclosures. what: - Link `REVIEW.md` and add the Python production-only revert check and workaround check to `.github/CONTRIBUTING.md` - Add `.github/PULL_REQUEST_TEMPLATE.md` covering owner boundary, pre-fix failure baseline, verification gates, and tool disclosure
why: Temporary upstream workarounds linger past the release that fixes them unless lockfile bumps fail once the target version lands in `uv.lock`. what: - Add `scripts/check_workarounds.py` to validate `.github/workarounds.toml` entries against repository lockfiles
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 89.47% 89.47%
=======================================
Files 12 12
Lines 703 703
=======================================
Hits 629 629
Misses 74 74 ☔ 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.
Summary
.cursor/rulesand.windsurfrulesassistant instruction files.REVIEW.mddefining the CLI adapter boundary overcihai.REVIEW.mdfromAGENTS.mdwhile keepingCLAUDE.mdintact..github/CONTRIBUTING.mdand add.github/PULL_REQUEST_TEMPLATE.md.scripts/check_workarounds.pyto check.github/workarounds.tomlpredicates againstuv.lock.Changes by area
Legacy assistant rules
.cursor/rules/avoid-debug-loops.mdc,.cursor/rules/dev-loop.mdc,.cursor/rules/git-commits.mdc,.cursor/rules/notes-llms-txt.mdc,.windsurfrules: remove duplicated gate instructions and stalelibtmuxboilerplate superseded byAGENTS.md,REVIEW.md,.github/CONTRIBUTING.md, and.github/WRITING.md.Review and contributor policy
REVIEW.md: defineexperimentalrepository posture, ownership acrosssrc/cihai_cli/{cli,_formatter,_colors}.pyand upstreamcihai/cihai,Changing the mapsingle-PR ownership transfers, rejected patterns (duplicatedcihaiquery/bootstrap internals,info/reversesubcommand asymmetry, import-time side effects, live network calls or mocked owners), and falsifiableBLOCK/NO FINDINGScriteria.AGENTS.md: linkREVIEW.mdunderWhich policy applieswhile preservingCLAUDE.mdand module tables..github/CONTRIBUTING.md: linkREVIEW.md, addscripts/check_workarounds.pyunder the gates, and document the Python production-only revert check..github/PULL_REQUEST_TEMPLATE.md: prompt contributors for owning module, sibling entry points, pre-fix failure baseline, verification gates, workaround updates, and tool disclosure.scripts/check_workarounds.py: validate.github/workarounds.tomlentries againstuv.lock,Cargo.lock,pnpm-lock.yaml, andpackage-lock.json.Owner, baseline, and tool disclosure
REVIEW.md,AGENTS.md,.github/CONTRIBUTING.md,.github/PULL_REQUEST_TEMPLATE.md,scripts/check_workarounds.py);N/Afor runtime sibling entry points.N/A(governance and contributor documentation).ruff,ty,pytest, and workaround doctest gates.Verification
Confirm legacy assistant rule files are absent:
$ rg --files --hidden -g '!.git' -g '.cursor/**' -g '.windsurfrules' .Test plan
.cursor/rulesand.windsurfrulesfilesscripts/check_workarounds.py(uv run ruff check .,uv run ruff format . --check)uv run ty check .)uv run pytest)scripts/check_workarounds.pyand its doctests (PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py,PYTHONDONTWRITEBYTECODE=1 uv run python -B -m doctest scripts/check_workarounds.py)