Repository navigation
Record the port support script policy - #323
Merged
Merged
Conversation
why: Ports carry Python-libtmux parity harnesses, scripts with no caller, Python tooling in scripting-language ports, vendored copies that drift, and shell steps that stand in for missing APIs. One decision lets each port clean up against the same rules. what: - Keep a script only for a current CI, release, generator, docs or maintainer use; parity with Python libtmux or tmuxp does not count - Treat shell setup in examples and tests as a missing-API issue - Write scripts in the port's language for scripting ports and in typed, tested Python for compiled ports, under scripts/<name>/ with tests - Give shared tooling one home instead of vendored copies
tony
added a commit
to libtmux/libtmux-cxx
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-dotnet
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-elixir
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-erlang
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-go
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-haskell
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-java
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-julia
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-lisp
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-lua
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-ocaml
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-perl
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-powershell
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-raku
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-rs
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-ruby
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-swift
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
tony
added a commit
to libtmux/libtmux-ts
that referenced
this pull request
Nov 15, 2026
why: Ports carry Python-libtmux parity harnesses, scripts nothing calls and tooling in a second language. The libtmux decision in libtmux/docs#323 sets one rule set, and contributors and agents need it in this repository. what: - Add .github/SCRIPTS.md: what may stay, the script language, layout and checks - Link it from AGENTS.md beside the writing guide
This was referenced Nov 15, 2026
why: Elixir, Erlang, PowerShell and Common Lisp count as scripting ports because each runs one file; the decision should say how such a script gets its dependencies. what: - Note Mix.install/2, #Requires -Modules, escript main/1 and explicit ASDF or Quicklisp loading under sbcl --script
This was referenced Nov 15, 2026
tony
added a commit
to libtmux/libtmux-ts
that referenced
this pull request
Nov 15, 2026
why: The ledger recorded a decision for every Python libtmux 0.62.0 symbol, and the format registry was built from a fixture hashed against Python. Parity with Python libtmux is not a use for a support script (libtmux/docs#323), and the maintainer decided the ledger and its format fixture go. `libtmux/formats` held the "Python-compatible" default field lists and a separator override; nothing under src/ read them, so the subpath goes with the ledger and compatibility with callers of it is waived. what: - Delete parity/, check-parity.ts, scripts/parity/, the three parity unit tests, python-0.62.0-format-fields.json and the `parity` script - Delete src/formats.ts, the `./formats` export, LIBTMUX_TMUX_FORMAT_SEPARATOR and their type and contract tests - Merge the Python fixture's fields into tmux-format-fields.json and rebuild the registry from that file alone; generate-formats.ts no longer reads or writes a ledger, and the generated sources are unchanged - Check the registry against the fixture directly in formats.test.ts, and drop the ledger copies from where_generation.test.ts - Drop the ledger sections from AGENTS.md, CONTRIBUTING.md, packages/libtmux/README.md and docs/contracts.md, and the scratch ignores from .gitignore
tony
added a commit
to libtmux/libtmux-ts
that referenced
this pull request
Nov 15, 2026
why: The differential suite ran Python libtmux 0.62.0 against raw tmux for one operation, `list-sessions`. It never called this port's `Server`, so it checked Python, not this port. Parity with Python libtmux is not a use for a support script (libtmux/docs#323). The suite was also a release gate, through the full-scope run the publish workflow asks for; the gate is now the integration suite alone. what: - Delete python_oracle.py, python_client.ts, raw_tmux.ts, differential_substrate.test.ts and run-differential-tests.ts - Drop the `test:differential` script, its entry in check-tmux-compat.ts and package_contract.test.ts, the runner test in test_runners.test.ts, the tooling tsconfig include and the `uv` knip binary - Remove the per-lane clone of Python libtmux, the uv and Python setup and the oracle warm-up from the tmux job, and build the workspace Python test runtime there with `python3 -m venv`, as the gates job does - Drop the differential section and the release-policy bullet from CONTRIBUTING.md
tony
added a commit
to libtmux/libtmux-ts
that referenced
this pull request
Nov 15, 2026
why: The architecture, implementation plan and spike findings under attic/development/ describe the Python-libtmux oracle and differential corpus as the compatibility baseline. That oracle was never built as described, and the differential suite that did exist is deleted (libtmux/docs#323). The maintainer decided the notes go; the history keeps them. what: - Delete attic/development/architecture.md, implementation-plan.md and spike-findings.md - Drop the `attic` line from the README repository map and the attic sentence from AGENTS.md
tony
added a commit
that referenced
this pull request
Nov 16, 2026
why: The Parity page rendered site/src/data/parity.json, which scripts/normalise-parity.mjs built from per-port Python parity ledgers: libtmux-go PARITY.md and its manifest, libtmux-dotnet docs/parity, libtmux-java docs/parity and libtmux-swift Parity/. The port support script policy (#323) says parity with Python libtmux is not a reason to keep a script, and all four ports deleted those ledgers on 2026-11-15, so the data could not be regenerated and nothing else reads it. The page itself stays: its "How each port is built" table is current, and the previous-and-next links at the end of a page send readers to /meta/parity/ to compare languages. what: - Delete parity.json and normalise-parity.mjs - Remove the per-symbol parity sections of the page (legend, per-port summary, by-module matrix and per-ledger notes), its Python-reference lead paragraph and the ledger half of its description - Leave the page's URL, title, redirect and links as they are Not changed: the ledger-only .meta-ok, .meta-warn, .meta-unk, .meta-none, .meta-legend and .meta-fmt rules in site/src/styles/meta.css, which no page uses now. Renaming the page, which now holds only the build table, is a design decision for the maintainer. Source: #323
tony
added a commit
that referenced
this pull request
Nov 16, 2026
why: The Ruby "Attaching to tmux" guide told readers to save a run.sh launcher that started a private tmux server, set LIBTMUX_SOCKET_PATH and stopped the server afterwards. libtmux-ruby examples now own their server with Server.start, as the capture example page already shows, and the support script policy (#323) files shell setup in examples as a missing-API issue instead of shipping it. what: - Start the demonstration server with Server.start, create the work session, and bind a second Server to owner.endpoint, the pattern of libtmux-ruby's README "Use the tmux server you already run" - Drop the launcher block and its prose; the run step is `bundle exec ruby connect.rb` - Say how to open a server of your own with Server.open(socket_path:) - Record the new connect.rb hash and run command in attach-examples.json, and remove the run.sh entry Checked: scripts/check-example-prose.py --example attach --port ruby with Ruby 4.0.7 and Bundler against the page's pinned libtmux-ruby revision, once with tmux 3.3a and once with tmux 3.7c. Both runs exited 0, printed `work` and left no tmux server running. Source: https://github.com/libtmux/libtmux-ruby/blob/2599d45369515aaf2fd5793bfe71cdc20de641b6/gems/libtmux/lib/libtmux/owned.rb#L12
tony
added a commit
that referenced
this pull request
Nov 16, 2026
…removed launchers why: libtmux-lisp deleted tools/lisp.sh and bin/libtmux-workspace when it ported its support scripts to Common Lisp (#323). The port table, the header inventory and the Lisp pages still told readers to run `tools/lisp.sh tools/workspace-cli.lisp` or `bin/libtmux-workspace`, and the inventory linked blob/master/bin/libtmux-workspace, which now returns 404. The README and docs/workspaces.md run `mise exec -- sbcl --script ...`. what: - Give the Lisp port the command `mise exec -- sbcl --script tools/workspace-cli.lisp`, and have the install notice say a checkout runs `sbcl --script tools/workspace-cli.lisp` - Point the header inventory's workspace-command entry at tools/workspace-cli.lisp and replace its destination record with a live check of the new URL (200, dated 2026-11-15) - Detect the workspace script in the manifest reader by tools/workspace-cli.lisp, which the pinned revision and trunk both ship, so manifest-packages.json does not move - Use the new command on the Lisp workspace and examples pages and in the tests and header-links fixture that pin them Not changed: the Lisp examples page links each program at the pinned revision a29c6b96e1c78501dff5073b538ae3180b0e63e3, where examples/worker.sh and the older quickstart still exist. Trunk has examples/worker.lisp and a rewritten quickstart; that page moves with the next Lisp pin. Source: https://github.com/libtmux/libtmux-lisp/blob/de9c2d5b3d74aa6783ede6bfb7f6733d907a0abf/docs/workspaces.md
tony
added a commit
that referenced
this pull request
Nov 16, 2026
…owcase why: Every Rust example workspace listed scripts/tmuxp-parity.py as a scheduled run that loads it. libtmux-rs deleted that script and the weekly parity job (libtmux-rs#160) because parity with tmuxp is not a use under the port support script policy (#323). With the script gone the showcase generator cannot read it at a Rust revision after the cleanup, and the "scheduled" route that only that script used describes nothing. what: - Remove the PARITY test from the Rust sources and regenerate workspace-showcase.json at the current Rust pin; only those 22 records change - Remove the scheduled route from the vocabulary, the page's label and the intro sentence, and from the tests that pinned it - Keep a negative control: a test that reaches its file by the removed scheduled route is refused, and the hand-edit controls for Rust use a library-route test instead Source: libtmux/libtmux-rs@2b2d5cd
tony
added a commit
that referenced
this pull request
Nov 16, 2026
…yout why: The libtmux-rs docs workflow failed in "Build this port's tree" because gen-example-sources read scripts/run-examples.sh at the head revision, and libtmux-rs deleted it when it ported its support scripts to typed Python under scripts/<name>/ run with uv (#323, libtmux-rs#160). core-capabilities.json also quoted the old justfile recipes (`bash scripts/run-examples.sh`, `script-env`) and the shell runner's own lines. The capability test reads each quoted line from the example cache at the revision the API model records, so the table and the pin have to move together, as in the earlier Rust pin. what: - Point the create-windows and send-keys evidence at scripts/run-examples/run_examples.py: the table row, the `uv run scripts/run-examples/run_examples.py` recipe, the api-examples examples example-tables stretch of `just check`, the expected-output test and the exit-status test that replace `! grep -qF` and `set -euo pipefail` - Pin Rust to libtmux/libtmux-rs master at 9ed48211, regenerating its API model and paths, behavior sidecar, cited source files, example cache, product copy, workspace showcase, manifest packages and tmux usage with the repository's generators from a clean clone. The model keeps 1935 symbols with none added or removed. Only revisions move in the product copy, showcase and manifest packages, and the usage file keeps its symbols and commands with new evidence line numbers - Cite Pane.display's display-message by the function around it, since pane.rs now holds that text on eight lines and the stored line number no longer picked one - Move the 31 Rust API example receipts to the new revision. The programs are the same bytes at both revisions (crates/libtmux/examples has no change), and the receipts resolve libtmux from crates.io, not from the checkout. scripts/check-example-prose.py --example api --port rs --page reference/server-server ran the construction programs against tmux 3.7c and exited 0 with the expected output - Name run_examples.py on the Rust attach example page and say what it checks: a nonzero exit, a missing expected line and a leftover socket Not moved: the Rust MCP protocol snapshot, tool catalog, transcript and core recording stay at 6942c1e60, which still describes the MCP server they were captured from. They need the Rust MCP server rebuilt and recorded, which belongs to the next pin. Source: libtmux/libtmux-rs@fa9e21b
tony
added a commit
that referenced
this pull request
Nov 16, 2026
…d-tmux action why: The Julia leg of port-docs.yml built tmux 3.7c by running dev/check-matrix.py build-tmux from the Julia checkout, after apt-installing its build packages, then appended the install's bin directory to $GITHUB_PATH. libtmux-julia deleted dev/check-matrix.py when it ported its support scripts to Julia (#323), so the leg failed before it documented anything. libtmux-julia's own julia.yml now builds tmux with libtmux/.github/actions/build-tmux, which installs its own packages and can add the install to PATH. what: - Replace the Julia branch of "Install native system dependencies" with a "Build tmux 3.7c for Julia" step that uses libtmux/.github/actions/build-tmux at the commit julia.yml pins, with ref 3.7c and add-to-path true, under the old condition (Julia, when the MCP server is documented) - Skip the generic apt step for Julia, and drop its Julia package list and $GITHUB_PATH write - Replace the test that ran the deleted Python script against a stub with two that read the workflow: the Julia step uses the shared action at a 40-hex commit with that ref and add-to-path, and the generic step has no Julia package list, PATH write or check-matrix call. Both fail on the previous workflow Source: https://github.com/libtmux/libtmux-julia/blob/ee21b690cb14653edecc815c7c0a6ca4174b4a0d/.github/workflows/julia.yml#L171
tony
added a commit
that referenced
this pull request
Nov 16, 2026
…ia moved them why: The Julia landing data named dev/check-matrix.py as the command julia.yml runs, and packages/LibTmuxMCP/test/product_client.py as the CI-run client of the installed MCP launcher. libtmux-julia ported both to Julia (#323): julia.yml runs scripts/check-matrix/check-matrix.jl run, and the client is packages/LibTmuxMCP/test/support/product_client.jl. what: - Record scripts/check-matrix/check-matrix.jl run as the Julia workspace example's CI command - Say the installed launcher's CI-run client is a Julia test helper, with its new path Known test result: test/port-landing.test.ts reads julia.yml at the Julia revision the API model pins (f3da513b), so "julia workspace runs in the workflow at that revision" fails on a machine that has the libtmux-julia checkout, until the next Julia pin moves the model past ee21b69. The test skips where no checkout exists, as in CI. Source: https://github.com/libtmux/libtmux-julia/blob/ee21b690cb14653edecc815c7c0a6ca4174b4a0d/.github/workflows/julia.yml#L287
This was referenced Nov 16, 2026
tony
temporarily deployed
to
docs-preview-cleanup
November 21, 2026 15:49 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Adds
notes/decisions/port-support-scripts.md, the maintainer's policy for support scripts in the 18 libtmux ports.The problem
A read-only scan of every port's trunk on 2026-11-15 found:
apt-get.shbyte-identical in 13 repositories;The decision
uv run, ruff, ty, pytest, pytest-asyncio, doctests).scripts/<name>/with a README.Each port will state the policy in
.github/SCRIPTS.md, link it fromAGENTS.md, and track its cleanup in one issue.Checks
Notes-only change; no site code or generated data is touched.