Repository navigation
docs(policy): Add verdict rules, posture and a worktree test-bite check - #221
Merged
Merged
Conversation
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 review file did not say what to do with behavior the base already has or with a gate nobody ran, or which findings block. It also did not say how a reviewer treats a compatibility shim. what: - Add verdict rules: base run, existing and separate, unverified gates, behavior defects, and checks and claims - Open REVIEW.md with the repository's posture, experimental - Define experimental, stable and private in .github/CONTRIBUTING.md, because this organization has no shared policy repository
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 - Drop the script from the docs test list of read-only scripts
This branch was successfully deployed
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
Follow-up to #213, which merged before these corrections were written. The same corrections landed in the other repositories that adopted the review policy.
.github/CONTRIBUTING.mdnow runs in a disposablegit worktree. It names the regression test inBITE_TESTand succeeds only when the runner reports that test as failed. The earlier command restored files in the contributor's checkout, counted any nonzero exit as a bite, and usedmapfile, which zsh lacks.REVIEW.mdgains a Verdict section: a misbehavior finding shows its check on the base and on the change, behavior the base already has is existing and separate, a gate nobody ran is unverified, and it says which findings block.REVIEW.mdopens with the repository's posture,experimental..github/CONTRIBUTING.mddefinesexperimental,stableandprivate, because this organization has no shared policy repository.check-workaroundsaction fromlibtmux/.github, pinned to a commit, in place of the 377-line copy inscripts/.1. Owner and boundary
REVIEW.mdand.github/; workaround checking moves to thelibtmux/.githubaction that owns it.sync/async, CLI/API, single/batch, orN/A):tests/_docs_codeblocks.pylisted the deleted script as read-only; the entry is removed. No other file names the script.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): the action's checker run locally against this tree ({"ok": true, "checked": 0, "problems": []}),actionlintontests.yml, andruff format --checkplusruff checkontests/_docs_codeblocks.py. The bite command is the same text that was run in a scratch repository under bash 5.3 and zsh 5.9: a biting test exits 0, a non-biting test exits 1, and an uncommitted edit survives. The fullpytestsuite was not run locally..github/workarounds.tomlupdates (Noneif none):NoneTest plan
actionlintpasses on the edited workflowruff format --checkandruff checkpass on the edited test helper