Repository navigation
Open
Description
Summary
A fresh review of the support-script cleanup commits on master (0f1aa38~1..04b936c, the Lua ports, the Lua integration harness and Runtime:start_server from #103) scored 13 dimensions. Twelve applied and none reached 9.5/10. Freshness fell to 7.5, and Examples, Async correctness, Data sourcing and Readability to 8.0, all below the 8.5 gate. One policy check failed: shell programs remain in docs.yml and ci.yml. 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 |
|---|---|---|
| Freshness | 7.5 | The docs workflow fails on every master push since 2585dc9 with "Invalid complete Lua examples: unexpected launcher path": daac280 dropped setup.launcher from examples/api/manifest.json, and libtmux/docs lua-examples.ts still requires it. libtmux/docs port-heads.yml still runs python docs-generator/scripts/bootstrap_native.py luals and export-docs, both deleted here. #106 is open with one unchecked task and an unmet acceptance line. |
| Examples | 8.0 | Every example starts and stops its own server and none shells out, but the docs build that publishes them is red for the reason above. They default to /usr/bin/tmux (#109). |
| Async correctness | 8.0 | support/proc.lua kills only the direct child on timeout. Under nvim -l with vim.uv for luv, proc.run({"/bin/sh", "-c", "sleep 8 & sleep 8"}, {timeout = 1}) returned after 8.0 seconds with timed_out = true, because the backgrounded sleep held stdout open. The mid budget of check.lua bounds nothing in that case. |
| Data sourcing | 8.0 | a879ff6 ("8235 event, scope, ref, option and NEEDS inputs"), 8dc4642 ("byte-identical except exporter.name"), d3e9567 and cba7633 ("4 of 60 Python runs and 1 of 60 Lua runs") report comparisons against deleted Python with no command or SHA. |
| Readability | 8.0 | scripts/check_editor/script.lua M.build is 204 lines, scripts/check/gates.lua M.steps 181, and scripts/ci_plan/tests/test_ci_plan.lua 1380. |
| DX | 8.5 | Every script has a README, but any script test needs a LuaJIT built from source with CMake first, and the CI step "Run offline gates" does not say which gate it runs. |
| Language idioms | 8.5 | support/shell.lua builds a shell string for io.popen and reads the exit status from a printf sentinel. Its header says it is for scripts that have no luv yet; SCRIPTS.md records no exception. |
| Docs | 8.5 | The root README quick start calls Runtime:start_server, which the published rock lacks (#108). |
| Scannability | 8.5 | scripts/ci_plan/README.md has an 11-line prose block. |
| Async, control, streaming | 8.5 | support.proc returns output only when the child ends. |
| AI use | 8.5 | AGENTS.md links SCRIPTS.md but does not say the scripts are Lua on LuaJIT or where the gates live. |
| tmux fidelity | 9.0 | start_server checks sun_path and the integration gate ran 3.3a to next-3.9; the examples hard-code /usr/bin/tmux (#109). |
Policy check that failed:
- Right language: no
*.pyor*.shis tracked and no test startssh -c, butdocs.ymlkeeps the bashidentityjob, andci.ymlholds shell programs inrun: |steps: interpreter selection with nestedif, the tool-identity brace group, and the release check with asource_argsarray.SCRIPTS.mdlets a workflow keeprun:lines that call one command.
Proposal
- Merge ci(docs) Pin the docs workflows to libtmux/docs a76b1a3b8 #111, make
lua-examples.tsinlibtmux/docsaccept a manifest withoutsetup.launcher, pointport-heads.ymlatluajit scripts/docs/docs.lua exportafter the Lua bootstrap, and confirmdocsis green at themasterhead. - Start the child in its own process group in
support.procand kill the group on timeout, or close the read pipes when the timer fires, with a test that backgrounds asleep. - Move the
docs.ymlidentityjob onto the sharedport-docs.ymlas Clean up support scripts under SCRIPTS.md #106 plans, and turn each shell step ofci.ymlinto onescripts/Lua command called by a single-linerun:. - Record the
support/shell.luaexception inSCRIPTS.mdwith what the bootstrap measured, or replace theio.popenstring with LuaJIT FFIposix_spawn. - 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 #106.
- Split
M.build,M.stepsandtest_ci_plan.luaby concern. - Name the gate in the "Run offline gates" step, and add one line to
AGENTS.mdnaming LuaJIT,scripts/<name>/andcheck.lua. - Mark the README quick start with the release that ships
start_server, and close Clean up support scripts under SCRIPTS.md #106 once its last task lands.
References
- Clean up support scripts under SCRIPTS.md #106, the cleanup issue these commits worked through, and No way to start a server from Lua, so examples need run.sh #103, the missing API they implemented.
SCRIPTS.mdat the reviewed head, and libtmux/docs#323, the decision it applies.- Raise each review dimension to 9.5/10 #112, the whole-project issue; this one covers only the commits above.
Metadata
Metadata
Assignees
Labels
No labels
Activity
scripts(fix[proc]) End the process group on a timeout and stop reading
scripts(refactor[check]) Split M.steps by gate
scripts(refactor[check_editor]) Split M.build by what each part types
scripts(feat[bootstrap]) Add select-lua to choose the job's test inte…
scripts(feat[ci_plan]) Add identity to print the versions a job ran with
ci(refactor[workflow]) Leave only single-command run steps in ci.yml
docs(scripts[shell]) Record the shell.lua exception with its measurement
docs(agents[scripts]) Say the scripts are Lua and where the gates live
docs(readme[quick-start]) Say start_server is not in the published rock
scripts(refactor[ci_plan]) Split the plan tests by concern
scripts(docs[readme]) Point the ported scripts at their old script an…
scripts(fix[ci_plan]) Load support.proc only when identity runs
tony commentedon Nov 16, 2026
Pushed to
master. At546dc53,CI(run 43807853368, 12 of 12 jobs) anddocs(run 43807853772) pass. The first push,52be855, failed inplan:identity.luarequiredsupport.procat load, which needs luv, and theplanandrequiredjobs install only thedevrocks.546dc53loads it only when a command runs and adds a test that fails on the earlier file.Commits per item:
docsworkflow andport-heads.yml: wave items on the docs branch.docspasses atcfd0622,52be855and546dc53since ci(docs) Pin the docs workflows to libtmux/docs a76b1a3b8 #111 merged;libtmux/docsport-heads.ymlstill calls the deleted Python entry points.support.proctimeout:16e132dstarts a child with a timeout as a process-group leader, kills the group, and stops reading the pipes when the timer fires. Both new tests fail on the old file:sleep 3 & sleep 3with a 0.3 s timeout took 3.00 s, andsleep 30 & ...took 30.00 s.ci.ymland thelua-toolsaction now have only single-commandrun:steps (9fa870e), usingbootstrap.lua select-lua(77d2a5e) andci_plan.lua identity(4ab3ff2,546dc53).test_ci_workflow.luareports anyrun: |block with more than one command, and it flagged seven steps on the old file. Still open: thedocs.ymlidentityjob (it moves onto the sharedport-docs.yml, a docs-repo change) and the shell steps ofpublish.ymlanddocs-preview-cleanup.yml, which this review did not name.shell.luaexception:b81f35frecords it inSCRIPTS.mdwith the measurement (mise exec -- lua -e 'print(pcall(require, "luv"))'and the same forffiprintfalseon Lua 5.5.1). Scripts that still callshell.luaafter the bootstrap:support/runtime.lua,docs/export.lua,release/release.lua,package/package.lua,generate/fields.luaandgenerate/render.lua; they move tosupport.procas a follow-up.52be855). Not re-measured: the release and package comparison ofd3e9567and the "4 of 60 Python runs and 1 of 60 Lua runs" ofcba7633.a6793e8splitsM.steps,0209799splitsM.build,21d6783splitstest_ci_plan.lua(same 93 tests, same names). The steps of all 11 gates and the editor document are identical before and after.AGENTS.mdline: the gate step is "Run the gate" in9fa870e;097568aadds the Lua line.d6ed98dsaysstart_serverships after0.1.1-1. Clean up support scripts under SCRIPTS.md #106 stays open for the docs-workflow task.scripts(feat[release]) Add upload and github-release to main.lua
scripts(feat[docs]) Add delete-preview to docs.lua
ci(fix[publish]) Call one command per run step in publish and the pre…
scripts(fix[release]) Clear the luacheck warnings in the publish comm…
tony commentedon Nov 16, 2026
Pushed to master;
CI(run 43835382591) anddocs(run 43835382651) pass at b8c2143. The first push (845f0b6) failedOuter currentandOuter flooron three luacheck warnings in the new code, fixed in b8c2143.The leftover shell steps named in the earlier comment are done:
publish.yml: 6cba76d addsmain.lua uploadandgithub-release(pure command builders,support.procto run them, tests with an injected runner that fail on the oldrelease.lua), and 845f0b6 switches the two bash steps to them. The artifacts are named from the version in place of adist/*glob, an emptyLUAROCKS_API_KEYstops beforeluarocksruns, and the job installs theliverocks for luv.docs-preview-cleanup.yml: cf43070 addsdocs.lua delete-preview(refuses a non-numeric number or an unset bucket before it startsaws), and 845f0b6 runs it after a checkout and the Lua tools. The workflow runs onpull_request_target, so it builds the base branch's script.test_ci_workflowcase that reports any step of those two files with more than one command; it names bothpublish.ymlsteps on the old file.publish.ymlruns only for a pushed tag and the cleanup only when a pull request closes, so neither workflow ran in this CI. The script commands were run by hand with a stand-inaws, and the tests cover the rest.Still open: the
docs.ymlidentityjob and its bootstrap steps (they move onto the sharedport-docs.yml, alibtmux/docschange), and the other items listed above.