Skip to content

docs(contributing): Add breakage graduation policy and PR comparison - #970

Open
tony wants to merge 1 commit into
masterfrom
docs/breaking-changes-policy
Open

tony wants to merge 1 commit into
masterfrom
docs/breaking-changes-policy

Conversation

@tony

@tony tony commented Dec 6, 2026

Copy link
Copy Markdown
Member

Closes #969

Summary

  • Add .github/CONTRIBUTING/BREAKING_CHANGES.md for behavioral changes and API breakages.
  • Define single-release warnings, transitional escape hatches, and hard-break migration recipes.
  • Expand .github/PULL_REQUEST_TEMPLATE.md with trunk-versus-PR comparisons and old-behavior prompts.
  • Link .github/CONTRIBUTING/BREAKING_CHANGES.md from .github/CONTRIBUTING.md and REVIEW.md.

1. Owner and boundary

  • Rule changed and module that owns it: Contributor breakage graduation policy and pull request template in .github/CONTRIBUTING/BREAKING_CHANGES.md, .github/PULL_REQUEST_TEMPLATE.md, .github/CONTRIBUTING.md, and REVIEW.md.
  • Sibling entry points checked (sync/async, CLI/API, single/batch, or N/A): N/A
  • Why this belongs here (owner fix, boundary adapter, or single-PR ownership transfer): .github/ and REVIEW.md own contributor governance, review checklists, and release migration rules for libtmux.

2. Behavioral comparison (N/A for docs, lockfile bumps, or pure refactors)

What trunk (<base> / latest release) actually does

  • Baseline (<base> commit and latest release tag, or <pre_fix_head> SHA if fixing a defect introduced in this PR): N/A
  • Failing input or code path and observed runtime behavior (including accidental or de facto behavior): N/A

What this PR does

N/A (contributor documentation and pull request template only).

How to get the old behavior and graduation path

  • Stage (bug fix on unreachable/dead path, warning release, default flip with escape hatch, or hard break): N/A
  • Warning, keyword parameter (raises=False, kill_on_exit=True), constructor, environment variable (LIBTMUX_*), or code snippet that reproduces the prior behavior: N/A

3. Verification and tool disclosure

  • Gates run (plus production-only revert check for behavioral fixes, or N/A): uv run ruff format --check ., uv run ruff check ., uv run ty check, just build-docs, and uv run pytest docs/ README.md.
  • .github/workarounds.toml updates (None if none): None
  • MIGRATION and CHANGES updates (None if none): None
  • Tool use: Antigravity (Gemini) drafted .github/CONTRIBUTING/BREAKING_CHANGES.md and the .github/PULL_REQUEST_TEMPLATE.md updates, and ran lint, type-check, Sphinx documentation, and doctest gates locally.

Test plan

  • uv run ruff format --check . and uv run ruff check . pass
  • uv run ty check passes
  • just build-docs builds Sphinx HTML and Markdown twins with no broken links
  • uv run pytest docs/ README.md passes all documentation doctests
  • Full tmux version matrix in CI

why: Give contributors and reviewers one repeatable checklist for
comparing trunk against new runtime behavior, staging de facto or
documented API changes behind warnings and escape hatches, and
documenting old-behavior recipes on hard breaks.

what:
- Add .github/CONTRIBUTING/BREAKING_CHANGES.md with graduation stages,
  the pull request comparison layout, and the Server.attached_sessions
  worked example
- Update .github/PULL_REQUEST_TEMPLATE.md section 2 to compare trunk
  against the pull request and record how callers obtain prior behavior
- Link .github/CONTRIBUTING/BREAKING_CHANGES.md from
  .github/CONTRIBUTING.md and REVIEW.md
@codecov

codecov Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.99%. Comparing base (71bdbe2) to head (65ccc35).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #970      +/-   ##
==========================================
- Coverage   62.05%   61.99%   -0.06%     
==========================================
  Files          29       29              
  Lines        5091     5091              
  Branches     1082     1082              
==========================================
- Hits         3159     3156       -3     
- Misses       1592     1595       +3     
  Partials      340      340              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

Document API breakage graduation and behavioral PR comparison

1 participant