Skip to content

docs(policy): Add REVIEW.md, Java typing rules, and PR template - #288

Merged
tony merged 5 commits into
masterfrom
review-rules-gemini
Dec 5, 2026
Merged

tony merged 5 commits into
masterfrom
review-rules-gemini

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Closes # N/A

Summary

  • Replace copy-pasted Python typing guidance in AGENTS.md with native Java and JVM rules.
  • Add root REVIEW.md defining ownership across libtmux*, build-logic/, integration-tests/, module-tests/, and scripts/.
  • Route design, planning, and pull request review decisions to REVIEW.md from AGENTS.md.
  • Wire REVIEW.md and a production-only revert test-bite check into .github/CONTRIBUTING.md.
  • Add .github/PULL_REQUEST_TEMPLATE.md linking libtmux/.github writing and AI disclosure policies.

1. Owner and boundary

  • Rule changed and module/package that owns it: Repository review, typing, and contributor governance in REVIEW.md, AGENTS.md, .github/CONTRIBUTING.md, and .github/PULL_REQUEST_TEMPLATE.md.
  • Sibling entry points checked (Java/Kotlin/Scala/Clojure, CommandChain/control, libtmux-mcp/libtmux-workspace, or N/A): N/A (repository documentation and review policy only; CLAUDE.md, libtmux-mcp/CLAUDE.md, and .github/WRITING.md preserved).
  • Why this belongs here (owner fix, boundary adapter, or single-PR ownership transfer): Owner fix defining JVM module boundaries for libtmux-java while inheriting shared libtmux/.github prose and disclosure rules.

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 (documentation and governance policy).
  • Failing input / command and observed failure before the fix: AGENTS.md instructed contributors to annotate with object, Any, and ty instead of JSpecify @NullMarked, NullAway/Error Prone, Java records, Optional<T>, and io.github.libtmux.exception types.

3. Verification and tool disclosure

  • Gates run (plus production-only revert check for behavioral fixes, or 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/A for production-only revert).
  • Declared workarounds in .github/workarounds.toml (None if none): None
  • Tool use: Antigravity (Gemini) 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

  • Verify zero ## Python typing matches remain in AGENTS.md
  • Validate scripts (ruff format --check, ruff check, ty check, pytest scripts) and scripts/ci-check/ci_check.py
  • Verify Markdown code fences in touched policy files stay within 80 columns and contain zero GitHub alert blocks
  • Full JDK 25/27, multi-language JVM, and tmux matrix in CI

tony added 5 commits December 5, 2026 12:40
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
@tony
tony merged commit 851a1b7 into master Dec 5, 2026
21 checks passed
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