Repository navigation
Open
Description
Summary
A fresh review of the support-script cleanup commits on master (bc837b3~1..e388643, the commits closing #96, plus Stop-TmuxServer and the rename cmdlets from #89 and #90) scored 13 dimensions. Twelve applied and none reached 9.5/10. Readability fell below the 8.5 gate at 8.0, and one policy check failed: ci.yml still holds hand-written tmux builds and PowerShell downloads. Close this issue when a new review of these changes scores every applicable dimension at 9.5 or higher and every policy check passes.
Motivation
Scores, with the evidence for each. MCP is N/A: the commits changed no MCP tooling.
| Dimension | Score | Evidence |
|---|---|---|
| Readability | 8.0 | tests/support/HelpExampleAssertions.ps1 holds one 709-line function, Get-HelpExampleAssertion, which the commits grew by 39 lines. 19 lines in the scripts and the attach harness pass 140 characters. |
| tmux fidelity | 8.5 | The Remove suite tests that Stop-TmuxServer ends the daemon within 1000 ms. No test starts a replacement right after it, the race that Server.Kill fixed in the go and swift ports. |
| Docs | 8.5 | PlanMatrix.Tests.ps1 says "every check has a deliberate break" and prints 27 checks and 23 breaks. The PowerShell stand-ins behind "passed 1 of 5 runs" in SCRIPTS.md are not committed. |
| Scannability | 8.5 | The sh exception in SCRIPTS.md is one 50-line list item that ends in a 23-name paragraph. |
| Async correctness | 8.5 | Get-RecordingTmuxBuild calls $lock.WaitOne() with no timeout and no abandoned-mutex handling, around an unbounded dotnet build. |
| AI use | 8.5 | AGENTS.md links SCRIPTS.md but does not say the scripts are PowerShell run with pwsh -File or where they live. |
| Data sourcing | 8.5 | fff506f ("23 event and input combinations"), 469cdda and c009c08 report old-versus-new agreement with no command or SHA. |
| Freshness | 8.5 | scripts/plan-matrix/matrix.json says "eng/ci/plan_matrix.py turns it into the jobs of ci.yml" and "eng/ci/test_matrix_manifest.py checks the documents", both deleted by these commits. |
| DX | 9.0 | One command per suite and no aggregate for the five script suites. |
| Language idioms | 9.0 | The analyzer enables two formatting rules (PSPlaceOpenBrace, PSUseConsistentWhitespace) and no indentation or alignment check. |
| Examples | 9.0 | QuickStart.ps1 now stops its server with Stop-TmuxServer. The untouched docs/input.md and examples/Guides.ps1 still run exec python3 -u -m http.server. |
| Async, control, streaming | 9.0 | No finding beyond Async correctness. |
Policy check that failed:
- Right language: no
*.pyor*.shis tracked, no workflow starts Python, and theshtmux stand-ins have a recorded, measured exception.ci.ymlstill holds three hand-written tmux builds (git clone,autogen.sh,configure,make) in the clone, refusal and old-daemon lanes, the last with abuild()function, and four copies of the PowerShell download withsha256sum.eda26cereplaced only the ref lane with the sharedbuild-tmuxaction.SCRIPTS.mdlets a workflow keeprun:lines that call one command.
Proposal
- Call
libtmux/.github/actions/build-tmuxfor the clone, refusal and old-daemon lanes, and move the PowerShell download and checksum check into one composite action orscripts/command called by a single-linerun:. - Split
Get-HelpExampleAssertioninto one function per cmdlet and wrap the lines over 140 characters. - Fix the two paths in
matrix.jsonand add a test that every path in its$commentexists. - Add a
Remove-suite case that runsStop-TmuxServerand thenNew-TmuxSessionon the same socket, in a loop behindLIBTMUX_TEST_SLOW. - Give
Get-RecordingTmuxBuildaWaitOnetimeout, handleAbandonedMutexException, and bounddotnet build. - Put the old-script SHA and the comparison loop behind each "identical output" claim in the closing comment of Clean up support scripts under SCRIPTS.md #96, and commit or drop the PowerShell stand-in variant behind "1 of 5".
- Say "most checks have a deliberate break" in
PlanMatrix.Tests.ps1, or add the four missing breaks. - Enable
PSUseConsistentIndentationandPSAlignAssignmentStatementinPSScriptAnalyzerSettings.psd1, or runInvoke-Formatterand fail on a diff. - Add one line to
AGENTS.mdnamingscripts/<name>/,pwsh -Fileandeng/Lint.ps1.
References
- Clean up support scripts under SCRIPTS.md #96, the cleanup issue these commits closed, and Add a cmdlet for
kill-server#89 and Add cmdlets forrename-sessionandrename-window#90, the missing APIs they implemented. SCRIPTS.mdat the reviewed head, and libtmux/docs#323, the decision it applies.- Raise each review dimension to 9.5/10 #101, the whole-project issue; this one covers only the commits above.
Metadata
Metadata
Assignees
Labels
No labels
Activity
tests(refactor[help]) Split the help example assertions by cmdlet
tests(fix[RecordingTmux]) Bound the build lock and the build
tests(test[Remove]) Start a session right after Stop-TmuxServer
ai(rules[AGENTS]) Name the script layout and the lint command
docs(scripts[exception]) Give the sh exception a section and measure it
scripts(feat[install]) Add the PowerShell installer and the package v…
ci(refactor[powershell]) Use the installer, the verifier and build-tmux
scripts(fix[install]) Wrap the install README command to 80 columns
tests(fix[RecordingTmux]) Run its test in its own suite
tony commentedon Nov 16, 2026
On
masterat5a244e1;powershellanddocsare green there (https://github.com/libtmux/libtmux-powershell/actions/runs/43806695559, attempt 2: theSandboxcanary "a default socket in a sandbox its children only joined did not fail the run" failed once on PowerShell 7.6.6 / tmux 3.8 and passed on rerun; it passed on the other legs and locally). Commits per item:ci.ymltmux builds and PowerShell downloads: 3b32cab (matrix, reject and old-daemon jobs uselibtmux/.github/actions/build-tmuxat 30f81842, building the commit the table pins;apt-getstep, libtmux-dotnet checkout, cache step andCORE_REVISIONgone) and 903964e (scripts/install-powershell,scripts/verify-package, replacing four download copies and threejq | while sha256sumloops;release.ymlandmacos-trial.ymluse the installer too). The reject and old-daemon lanes run only at scopefull, so I dispatched one to exercise them: https://github.com/libtmux/libtmux-powershell/actions/runs/43807775586.Get-HelpExampleAssertion: 911b4b6 (one function per cmdlet; the 70 entries compare identical before and after, and the Help suite passes against the packaged modules). Lines over 140 characters in the script modules and the attach harness: 3b32cab.matrix.jsonpaths and the test that every path in its comment exists: 3b32cab.Removesuite: a55a779 (one round, 100 withLIBTMUX_TEST_SLOW=1; both pass locally against tmux 3.6b, so the library has no race).Get-RecordingTmuxBuildtimeout, abandoned mutex, bounded build: 1045837 and 5a244e1 (own suite).scripts/: 3b32cab.shexception: f9ccb51 splits it into a section, adds the pane programs (Help, PaneTextWait,InputReceiver.ps1) with ahyperfinemeasurement, and drops the suite figures that came from an uncommitted PowerShell variant.Remaining: the old-script SHA and comparison loop behind the "identical output" claims in the closing comment of #96. The deleted Python scripts are in history; I did not rerun the comparison.
tests(fix[Remove]) Run the stop-then-replace case only with LIBTMUX_T…
tests(fix[RecordingTmux]) Keep the lock test off the parallel batch
tony commentedon Nov 16, 2026
Correction and update. The full-scope run (https://github.com/libtmux/libtmux-powershell/actions/runs/43807775586) passed the rewritten reject and old-daemon lanes and 21 other jobs. Its one real failure was the new
Removecase: a session created right afterStop-TmuxServerfailed withserver exited unexpectedlyon PowerShell 7.6.6 / tmux 3.3a, so the library does have the race I reported as absent. It is #103; the case now runs only withLIBTMUX_TEST_SLOW=1(ec92e88). Two more commits followed: 5a244e1 gave theRecordingTmuxtest its own suite, and fd3cfac keeps it off the parallel batch after the Sandbox canary failed twice on 7.6.6 / tmux 3.8 (a cheaper test and a sequential slot; I did not measure the cause).powershellanddocsare green atfd3cfac: https://github.com/libtmux/libtmux-powershell/actions/runs/43810087347. Left open for the #96 comparison sources and #103.ci(refactor[powershell]) Run each command of the port job as its own …
scripts(feat[release-source]) Check the release tag in a script
scripts(feat[docs-preview-cleanup]) Check and delete the preview in a…
scripts(feat[install]) Install the macOS PowerShell asset
scripts(feat[build-tmux-macos]) Build the pinned macOS tmux in a script
scripts(feat[macos-trial]) Record provenance and report suites in a s…
ci(refactor[macos-trial]) Call the scripts from the trial
tony commentedon Nov 16, 2026
Workflow commands now follow SCRIPTS.md: every
run:in.github/workflowscalls one command (the counter reports 0 of 67 blocks multi-command, 12 of 40 before). Logic moved into PowerShell scripts with a README and tests underscripts/.ced0ed5splits the port job's three multi-command steps into one step per command.f7d817daddsscripts/release-sourcefor the release tag check.53e31c6addsscripts/docs-preview-cleanupfor the preview eligibility check and delete.65bcc78letsInstallPowerShell.ps1install the macOS asset (-Platform,-Sha256).ef133c5addsscripts/build-tmux-macos. The sharedbuild-tmuxaction installs with apt, so it does not run on macOS.249ad55addsscripts/macos-trialfor the provenance record and the suite report.7c0b373switchesmacos-trial.ymlto the scripts.Checks at
7c0b373:docspassed.powershellpassed on its second attempt afterSandbox.Tests.ps1failed on a 7.6.6 leg, tracked in #104. A dispatchedmacos-trialrun passed all eight legs, which exercised the macOS install, build, provenance and report scripts.docs-preview-cleanupruns only when a pull request closes, so it was checked with its tests andactionlint, not run.The other items in this issue are unchanged by this work, so it stays open.