Repository navigation
Description
Summary
A caller can launch two jobs, read the same final pane from both, and still need to report different output and exit statuses. Add a FIRE test (Fidelity, Isolation, Recovery, Evidence) that exercises the Lua port's public API on an isolated tmux server.
Motivation
On Linux arm64 with native tmux 3.4, two jobs wrote progress A or progress B, then carriage return, erase-to-end-of-line and done. Both full plain captures matched. A pane-output sink saw the distinct prefixes while the children were alive. Their retained exit statuses were 0 and 7. The public reference case describes the observations. Build on the port's pane text wait integration tests.
Proposal
- Target two controlled children through the public API on a fixture-owned server. Give each a unique input token and have it acknowledge the token through an independent channel. Let the visible-text wait succeed on both jobs and check that the exit expectation still distinguishes them.
- Check the screen row, the output interval the API promises and the exit result separately. Name each observer and its target. A native tap supplies a reference for an output claim. Mark unavailable required evidence indeterminate.
- Substitute 0 for job B's reported 7. The exit assertion must fail even though the screen assertion still passes. Keep the replay inputs, expected and actual values, and the result of cleanup. Run this case in the port's native suite with libvt absent.
Verified witness
The witness passed on tmux 3.3a, 3.4 and 3.8. Its negative control caught the incorrect second exit status after the screen comparisons passed in Lua and Neovim. Witness PR · Original test results
Activity
tony commentedon Dec 5, 2026
The job-result concept has a runnable pair of syntax checks that both print
donebut exit 0 and 23. Its test runs each command outside tmux for comparison, then gets the result after the tmux pane has closed. This exercises the exit comparison in this issue. A check of the complete output interval still needs an independent stream witness. Test casestony commentedon Dec 5, 2026
Both jobs acknowledged different input tokens, and the Lua text wait found
donein each pane. The two complete screen captures matched byte for byte. A second tmux control client recorded different progress output, and the children recorded exit 0 and 7. Substituting 0 for the second result failed on both Lua and Neovim after the screen and output comparisons had passed. The regression passed on tmux 3.3a, 3.4 and 3.8.Pull request #208.