Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 2.6 KB

CONTRIBUTING.md

File metadata and controls

49 lines (41 loc) · 2.6 KB

Contributing across tmux-python

Open an issue or comment on an existing issue before preparing a pull request, and wait for a maintainer invitation on an agreed scope. Generated code and tests can share the same mistake, so passing CI alone does not show that a change fits the architecture.

Read the target repository's root REVIEW.md and AGENTS.md alongside:

Organization-wide expectations

  1. Fix the owning layer: Trace the defect or feature to the package or module in tmux-python that owns the rule (libtmux, tmuxp, libvt). Boundary adapters translate CLI flags, configuration schemas, errors, and presentation, and must not duplicate tmux or terminal grammar owned by a lower layer.
  2. Prove regression bite: For bug fixes and behavioral changes, make a test fail on <base> (or on <pre_fix_head> when fixing a defect introduced earlier in an open pull request), verify it passes with the fix, and verify that reverting modified non-test production files (and removing newly added production files) breaks the test again.
  3. Track upstream workarounds: List any temporary workaround for an unfixed upstream defect in .github/workarounds.toml with its id cited in source, a pinned upstream issue URL, and a lockfile removal predicate (<pypi|cargo|npm>:<package>>=<version>, or issue_only = true with reason_no_lock for external binaries such as tmux).
  4. Run gates and disclose tool use: Run the repository's format, lint, type-check, workaround, and test gates (against supported tmux versions where applicable), and state which AI or code-generation tools you used and what you verified yourself.

Posture

Each repository's REVIEW.md opens with a posture. It tells a reviewer how to treat a compatibility shim, meaning code kept only so an older caller keeps working:

  • experimental: the public interface can still change between releases. Repair a wrong boundary at its owner and update callers in the same change. A shim is residue unless a named consumer needs it and its removal condition is recorded.
  • stable: users depend on the released interface. A breaking change ships with a shim or a deprecation path, a changelog entry and migration notes. A shim stays until its removal condition is met.
  • private: the repository has no outside consumers. Change every caller in the same pull request and keep no shim.