Repository navigation
docs(policy): Add REVIEW.md, Java typing rules, and PR template - #288
Merged
Merged
Conversation
why: AGENTS.md carried a copy-pasted Python typing section referencing object, Any, and ty in a JDK 25 multi-module JVM repository. what: - Replace ## Python typing with ## Java typing and error handling. - Document JSpecify @NullMarked, NullAway/Error Prone, Java records and Optional<T>, JPMS module boundaries, io.github.libtmux.exception types, and @SuppressWarnings discipline.
why: Reviewers and agents need explicit JVM module ownership, control-mode and quarantine invariants, and regression baseline rules. what: - Add root REVIEW.md declaring experimental posture, ownership across libtmux*, build-logic/, integration-tests/, module-tests/, docs/, examples/, benchmarks/, tools/mcp-swap/, and scripts/, plus falsifiable BLOCK / NO FINDINGS criteria. - Route design, planning, and review decisions to REVIEW.md under ## Which policy applies in AGENTS.md.
why: Behavioral fixes need a repeatable production-only revert check and a structured pull request template covering JVM module ownership and tool disclosure. what: - Add .github/PULL_REQUEST_TEMPLATE.md linking AI_POLICY.md and WRITING.md with owner/boundary, failure-before-fix, and verification/tool sections. - Link REVIEW.md and add a production-only revert test-bite command in .github/CONTRIBUTING.md.
why: Outside contributors cannot read the private decisions repository the review rules cited. 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 - Cite libtmux.org where the text named a private repository
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
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
AGENTS.mdwith native Java and JVM rules.REVIEW.mddefining ownership acrosslibtmux*,build-logic/,integration-tests/,module-tests/, andscripts/.REVIEW.mdfromAGENTS.md.REVIEW.mdand a production-only revert test-bite check into.github/CONTRIBUTING.md..github/PULL_REQUEST_TEMPLATE.mdlinkinglibtmux/.githubwriting and AI disclosure policies.1. Owner and boundary
REVIEW.md,AGENTS.md,.github/CONTRIBUTING.md, and.github/PULL_REQUEST_TEMPLATE.md.CommandChain/control,libtmux-mcp/libtmux-workspace, orN/A):N/A(repository documentation and review policy only;CLAUDE.md,libtmux-mcp/CLAUDE.md, and.github/WRITING.mdpreserved).libtmux-javawhile inheriting sharedlibtmux/.githubprose and disclosure rules.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/A(documentation and governance policy).AGENTS.mdinstructed contributors to annotate withobject,Any, andtyinstead of JSpecify@NullMarked, NullAway/Error Prone, Java records,Optional<T>, andio.github.libtmux.exceptiontypes.3. Verification and tool disclosure
N/A):scripts(ruff format --check,ruff check,ty check,pytest scripts),scripts/ci-check/ci_check.py, and 80-column Markdown code-fence verification (N/Afor production-only revert)..github/workarounds.toml(Noneif none):NoneGemini) drafted the policy files and PR body; verified Gradle module layout, symlink integrity, Markdown code-fence widths, and repository script/CI gates locally.Test plan
## Python typingmatches remain inAGENTS.mdscripts(ruff format --check,ruff check,ty check,pytest scripts) andscripts/ci-check/ci_check.py