Skip to content

docs(policy): Add verdict rules, posture and a worktree test-bite check - #221

Merged
tony merged 3 commits into
masterfrom
review-rules-corrections
Dec 6, 2026
Merged

tony merged 3 commits into
masterfrom
review-rules-corrections

Conversation

@tony

@tony tony commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

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.

  • The test-bite command in .github/CONTRIBUTING.md now runs in a disposable git worktree. It names the regression test in BITE_TEST and 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 used mapfile, which zsh lacks.
  • REVIEW.md gains 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.md opens with the repository's posture, experimental. .github/CONTRIBUTING.md defines experimental, stable and private, because this organization has no shared policy repository.
  • CI runs the shared check-workarounds action from libtmux/.github, pinned to a commit, in place of the 377-line copy in scripts/.

1. Owner and boundary

  • Rule changed and module that owns it: contributor and review policy in REVIEW.md and .github/; workaround checking moves to the libtmux/.github action that owns it.
  • Sibling entry points checked (sync/async, CLI/API, single/batch, or N/A): tests/_docs_codeblocks.py listed the deleted script as read-only; the entry is removed. No other file names the script.
  • Why this belongs here (owner fix, boundary adapter, or single-PR ownership transfer): single-PR ownership transfer for the checker; the copy is deleted in the same change that adopts the action.

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): the action's checker run locally against this tree ({"ok": true, "checked": 0, "problems": []}), actionlint on tests.yml, and ruff format --check plus ruff check on tests/_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 full pytest suite was not run locally.
  • .github/workarounds.toml updates (None if none): None
  • Tool use: Claude Code drafted and applied the changes and ran the checks above.

Test plan

  • Shared checker passes against this tree
  • actionlint passes on the edited workflow
  • ruff format --check and ruff check pass on the edited test helper
  • Full matrix in CI

tony added 3 commits December 5, 2026 20:03
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
@tony
tony merged commit 7d39c56 into master Dec 6, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
docs — 7ab28834 Deployed Dec 6, 2026 by tony via build (3.14) #553
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