Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e2bcd45
docs(ocaml[workspace]) Add interrupted execution guidance
tony Nov 9, 2026
172556b
docs(ocaml[provenance]) Align manifest and example revisions
tony Nov 9, 2026
b5ecfb0
fix(site[ocaml]) Verify constructor destinations
tony Nov 9, 2026
a6575b8
chore(site[ocaml]) Sync the released docs baseline
tony Nov 10, 2026
ab35dc4
docs(ocaml) Bind recovery guides to published source
tony Nov 10, 2026
4e167e1
haskell(feat[docs]) Export native observation interfaces
tony Nov 9, 2026
22431c4
haskell(feat[docs]) Preserve observation reference ownership
tony Nov 9, 2026
ed62607
haskell(fix[docs]) Wrap long native type signatures
tony Nov 9, 2026
f06ffff
haskell(feat[docs]) Document capture and snapshots
tony Nov 9, 2026
77d4668
haskell(fix[docs]) Link guides to public declarations
tony Nov 9, 2026
1bde147
haskell(docs[links]) Verify the record-dot reference
tony Nov 9, 2026
dbd0b36
haskell(test[reference]) Follow the public module inventory
tony Nov 9, 2026
b32c018
haskell(test[links]) Raise the public reference link floor
tony Nov 9, 2026
514a0ce
haskell(docs[runtime]) Document shared Server lifetimes
tony Nov 9, 2026
d28aab7
haskell(test[xrefs]) Raise the resolved reference floor
tony Nov 9, 2026
60a740b
haskell(test[guides]) Include shared Runtime in reader paths
tony Nov 9, 2026
cfa95b7
haskell(feat[reference]) Export typed queries from native interfaces
tony Nov 10, 2026
549289c
haskell(test[reference]) Qualify query artifacts and authored links
tony Nov 10, 2026
45e8009
test(refactor[tiers]) Separate complete native and catalog audits
tony Nov 10, 2026
9819a54
haskell(feat[guides]) Refresh the capture and query reference
tony Nov 10, 2026
7571334
haskell(docs[home]) Show a real tmux query and linked-window results
tony Nov 10, 2026
b864dbc
haskell(fix[example]) Finish demo cleanup before returning to the shell
tony Nov 10, 2026
4900cc8
haskell(test[reference]) Cover the full exported query surface
tony Nov 10, 2026
72cb37f
Integrate shared landing and build fixes for the Haskell docs refresh…
tony Nov 10, 2026
60173ed
haskell(fix[links]) Resolve query bounds to the standard library
tony Nov 10, 2026
52aac4b
haskell(test[core-home]) Read the rendered lead through its public ac…
tony Nov 10, 2026
3450f01
examples(fix[layout]) Keep programs and setup inside narrow pages
tony Nov 10, 2026
ba55660
haskell(docs[setup]) Describe the implemented capture and query API
tony Nov 10, 2026
cc6f9fc
haskell(test[links]) Protect the expanded query reference links
tony Nov 10, 2026
43ae730
haskell(fix[discovery]) Use the public graph entry points and core de…
tony Nov 10, 2026
f48b847
haskell(test[docs]) Respect prompt task availability during hover
tony Nov 10, 2026
3a85fc2
api-model(fix) Keep Clojure bindings local
tony Nov 10, 2026
9e9b9b9
api-model(test) Verify rendered Clojure arities
tony Nov 10, 2026
f58c5b5
fix(clojure) Rebaseline genuine cross-references
tony Nov 10, 2026
c23ddc7
haskell(feat[export]) Qualify mutation defining sources
tony Nov 10, 2026
aa8fa94
haskell(feat[docs]) Preserve public mutation signatures and recovery …
tony Nov 10, 2026
1bcfcac
haskell(docs[mutations]) Teach checked edits and refreshed observations
tony Nov 10, 2026
ac2b3ab
haskell(fix[provenance]) Qualify the selected-source publication model
tony Nov 10, 2026
f6b2cd4
haskell(fix[examples]) Link the operations used by the mutation program
tony Nov 10, 2026
8886efc
test(fix[install-widgets]) Skip Shiki in the Python MCP picker render
tony Nov 10, 2026
3e0cac9
test(fix[resolver-corpus]) Give the corpus audit its own time budget
tony Nov 10, 2026
1f14a10
scripts(fix[checkout]) Resolve port checkouts in one shared module
tony Nov 10, 2026
9c26ec3
badges(feat[check]) Check every staged port guide's badges at the por…
tony Nov 10, 2026
9608d96
ci(feat[port-heads]) Run port publish steps against each port head we…
tony Nov 10, 2026
4a8d6b8
scripts(fix[checkout]) Read the remaining port checkout overrides thr…
tony Nov 10, 2026
ff38722
scripts(test[lisp]) Make the Lisp package mapping failure testable
tony Nov 10, 2026
2d6a48f
ci(feat[port-heads]) Build every port head through port-docs.yml
tony Nov 10, 2026
0af14e8
scripts(test[checkout]) Copy the resolver into tests that stage a scr…
tony Nov 10, 2026
dbd1592
erlang(fix[home]) Show the tested with_owned program on the landing page
tony Nov 10, 2026
b96b882
tmux-usage(fix[citations]) Find each cited line by its text
tony Nov 11, 2026
dc77440
tmux-usage(refactor[citations]) Drop pinned lines from reviewed rules
tony Nov 11, 2026
cbef595
tmux-usage(fix[go]) Review go claims for the master code
tony Nov 11, 2026
b945a03
erlang(fix[workspace]) Describe the plan, apply and CLI that exist
tony Nov 10, 2026
8a95ff5
lisp(fix[workspace]) Describe owned plans and the inspect and reconci…
tony Nov 10, 2026
88d1686
lisp(feat[guides]) Stage the owned workspace guide and pin libtmux-li…
tony Nov 10, 2026
57247c4
perl(feat[examples]) List every tested program on the examples index
tony Nov 11, 2026
5501f87
docs(chore[mentions]) Regenerate the mention index for the new Lisp a…
tony Nov 11, 2026
f4cef4f
tmux-usage(fix[revisions]) Scope the rule for new code by what it exc…
tony Nov 11, 2026
bd76ecd
tmux-usage(fix[java]) Review java claims for the master code
tony Nov 11, 2026
c76ceee
tmux-usage(fix[revisions]) Keep an unrevisioned rule on its model's r…
tony Nov 11, 2026
ffa8b21
ci(fix[port-heads]) Give julia, powershell, lua and ruby legs their g…
tony Nov 11, 2026
bd7de42
Merge branch 'fix/test-timeouts'
tony Nov 11, 2026
7e17f7d
Merge branch 'fix/usage-citations-by-content'
tony Nov 11, 2026
3671d67
Merge branch 'fix/port-head-coverage'
tony Nov 11, 2026
c05d4c3
Merge branch 'fix/new-port-docs-sweep'
tony Nov 11, 2026
08619fc
Merge fix/clojure-signature-bindings (#299)
tony Nov 11, 2026
13c4d6c
Merge followup/ocaml-workspace-docs-3935b3a (#294)
tony Nov 11, 2026
0066287
Merge followup/ocaml-constructor-anchors (#295)
tony Nov 11, 2026
493f4b7
Merge feat/haskell-mutation-docs (#300)
tony Nov 11, 2026
9754372
integration(fix[manifest-packages]) Re-pin the haskell manifest entry…
tony Nov 11, 2026
d53e01b
integration(fix[tmux-usage-locate]) Make the locate ranges parameter …
tony Nov 11, 2026
73d3db8
llms(fix[index]) List API roots and drop MCP text from ports without MCP
tony Nov 11, 2026
5a52e91
stage-port-docs(fix[descriptions]) Describe guides and menu cards by …
tony Nov 11, 2026
6c248c1
scripts(fix[check-source-links]) Ask GitHub when a checkout has no re…
tony Nov 11, 2026
89bdb20
examples(fix[erlang,lisp,clojure]) List every tested program on the e…
tony Nov 11, 2026
12d1970
ports(docs[mcp]) Say on each landing page that the port ships no MCP …
tony Nov 11, 2026
9d71e6a
stage-port-docs(fix[labels]) Title a link to a staged guide instead o…
tony Nov 11, 2026
a05781d
tmux-links(fix[lisp-family]) Do not read new-session! as the tmux com…
tony Nov 11, 2026
7a58018
clojure(fix[home]) Say the port connects to servers; it does not star…
tony Nov 11, 2026
71908bb
lisp(fix[workspace]) Tell the reader to run the workspace CLI, not bu…
tony Nov 11, 2026
d6b6d68
source-links(test[fixture]) Copy the host check into the staged scrip…
tony Nov 11, 2026
96b0f7a
Merge branch 'fix/r21-docs-findings'
tony Nov 11, 2026
c41a3a1
haskell(feat[examples]) List the six tested programs on the examples …
tony Nov 11, 2026
b3ed5aa
haskell(fix[workspace]) Describe the core as it is, not as typed valu…
tony Nov 11, 2026
0989307
ocaml(feat[examples]) List the 20 tested programs on the examples index
tony Nov 11, 2026
f37cb6d
clojure(fix[core-home]) Label captures and errors as plain maps and e…
tony Nov 11, 2026
fff9e8b
erlang(fix[workspace]) Say the workspace manager is not published
tony Nov 11, 2026
730ec46
test(product-docs[workspace]) Expect the run sentence for a launcher CLI
tony Nov 11, 2026
9954226
Merge branch 'fix/r21-docs-queued'
tony Nov 11, 2026
293d5b1
test(product-docs[availability]) Match "not published" across a line …
tony Nov 11, 2026
bfa63bf
home(fix[haskell]) Give the Haskell Core card the line every port uses
tony Nov 11, 2026
070510d
haskell(fix[core]) Lead the landing page with what the client does
tony Nov 11, 2026
d55b950
ports(fix[core]) Drop the MCP aside from the new ports' landing pages
tony Nov 11, 2026
4cc407d
lisp(docs[baseline]) Record the type-link ceiling at libtmux-lisp e6f…
tony Nov 11, 2026
4b5d7e9
mentions(chore[haskell]) Index the Server mention on the Haskell Core…
tony Nov 11, 2026
e36e62b
clojure(fix[core]) Drop the MCP aside from the landing page
tony Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/port-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ on:
required: false
type: boolean
default: false
source-repository:
description: >
The port repository to build, `owner/name`. Empty builds the calling
repository, which is what every port caller wants. libtmux/docs sets
it to build a port's head without deploying (port-heads.yml).
required: false
type: string
default: ''
tag-prefix:
description: >
Stripped from a release tag to give its version slug, e.g.
Expand Down Expand Up @@ -128,7 +136,7 @@ jobs:
PUBLISH_PREVIEWS: ${{ inputs.publish-previews }}
PR_NUMBER: ${{ github.event.pull_request.number }}
SAME_REPOSITORY_PR: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
REPOSITORY_URL: ${{ github.server_url }}/${{ inputs.source-repository || github.repository }}
run: |
set -euo pipefail
TAGS=$(git ls-remote --tags --refs "$REPOSITORY_URL" | sed 's#.*refs/tags/##')
Expand All @@ -138,7 +146,7 @@ jobs:
env:
IDENTITY_MATRIX: ${{ steps.identity.outputs.matrix }}
PORT: ${{ inputs.port }}
CALLER_REPOSITORY: ${{ github.repository }}
CALLER_REPOSITORY: ${{ inputs.source-repository || github.repository }}
INCLUDE_WRAPPERS: ${{ inputs.include-wrappers }}
run: node scripts/port-docs-matrix.mjs

Expand All @@ -162,6 +170,7 @@ jobs:
}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ inputs.source-repository || github.repository }}
ref: ${{ needs.identity.outputs.source-ref }}
fetch-depth: 0
path: port
Expand Down Expand Up @@ -196,7 +205,11 @@ jobs:
if: matrix.port == 'powershell' || matrix.port == 'julia'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
# A port caller's generator is its own tooling at the caller's commit.
# A docs-repo caller (source-repository set) uses the selected port
# source, which carries that tooling.
repository: ${{ inputs.source-repository || github.repository }}
ref: ${{ inputs.source-repository && needs.identity.outputs.source-ref || github.sha }}
path: docs-generator
persist-credentials: false

Expand Down
215 changes: 215 additions & 0 deletions .github/workflows/port-heads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
name: port-heads

# Runs the steps a port's publish runs, against each port's default-branch
# head and this repository's main, without deploying anything.
#
# A port's own docs workflow regenerates its API model and guides from the
# port's head, so a new package, a new README badge service or a changed guide
# can break that build while docs CI, which reads committed models and guides,
# stays green. Three failures reached release that way: a Lisp package the
# reference table lacked, a wrapper whose build did not name its parent's
# checkout, and unmapped README badges. This workflow finds the next one on a
# schedule instead of in a release.
#
# It is off the pull-request path: schedule and manual dispatch only. The
# `build` jobs call port-docs.yml, the workflow a port publish calls, once per
# library family with the port's repository and head commit and publish false,
# so every port runs its own exporters, toolchains and build-site.sh exactly as
# a release does. No reusable-deploy.yml job follows, so nothing is deployed.
# A wrapper leg sets only the wrapper's LIBTMUX_DOCS_CHECKOUT_<PORT>, as in a
# release. The `badges` jobs add scripts/check-port-badges.mjs, which lists
# every unmapped badge in the port's staged guides rather than the first.
#
# Read-only: no secrets, no write access.

on:
schedule:
- cron: '41 7 * * 1'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: port-heads
cancel-in-progress: false

jobs:
matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
own: ${{ steps.matrix.outputs.own }}
badges: ${{ steps.matrix.outputs.badges }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: '26'
- run: pnpm install --frozen-lockfile
- id: matrix
run: node scripts/check-port-heads.mjs matrix

build:
needs: matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
name: build ${{ matrix.port }}
permissions:
contents: read
uses: ./.github/workflows/port-docs.yml
with:
port: ${{ matrix.port }}
include-wrappers: true
source-repository: ${{ matrix.repo }}
source-ref: ${{ matrix.ref }}
version: latest
version-kind: trunk
is-default: false
publish: false

# Lua and Ruby repositories build their own docs tree in their own docs.yml
# and do not call port-docs.yml, so there is no shared workflow to call. This
# job runs the same exporter and build steps those workflows run, from the
# port head's own export-docs tooling, against docs main.
native:
needs: matrix
runs-on: ubuntu-24.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.own) }}
name: build ${{ matrix.port }}
env:
LIBTMUX_DOCS_PORT: ${{ matrix.port }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ matrix.repo }}
ref: ${{ matrix.ref }}
fetch-depth: 0
path: port
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ matrix.repo }}
ref: ${{ matrix.ref }}
path: docs-generator
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: docs
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: '26'
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
with:
package_json_file: docs/package.json
- run: pnpm install --frozen-lockfile
working-directory: docs

# Lua: the pinned LuaLS exporter, as libtmux-lua's docs.yml runs it.
- if: matrix.port == 'lua'
uses: jdx/mise-action@2d8d4cafcbd33be2ea37d2b6f5ad595363d1f1ca # v5.1.1
with:
version: 2026.9.9
working_directory: port
cache: false
- name: Export the Lua source
if: matrix.port == 'lua'
run: |
set -euo pipefail
python docs-generator/scripts/bootstrap_native.py luals
python docs-generator/scripts/export-docs \
--source "$GITHUB_WORKSPACE/port" \
--luals "$GITHUB_WORKSPACE/docs-generator/.cache/tools/luals-3.19.1/bin/lua-language-server" \
--output "$GITHUB_WORKSPACE/port/docs/_build"

# Ruby: the bundle and exporter, as libtmux-ruby's docs.yml runs them.
- if: matrix.port == 'ruby'
uses: ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8 # v1.327.0
with:
ruby-version: '4.0.7'
working-directory: port
bundler-cache: false
- name: Export the Ruby source
if: matrix.port == 'ruby'
working-directory: port
env:
BUNDLE_FROZEN: 'true'
run: |
set -euo pipefail
bundle install
"$GITHUB_WORKSPACE/docs-generator/scripts/apt-get.sh" update -qq
"$GITHUB_WORKSPACE/docs-generator/scripts/apt-get.sh" install --no-install-recommends -y -qq tmux
bundle exec ruby "$GITHUB_WORKSPACE/docs-generator/scripts/export-docs" \
--source "$GITHUB_WORKSPACE/port" \
--output "$GITHUB_WORKSPACE/port/docs/_build"

- name: Build the port tree against docs main
working-directory: docs
env:
PORT: ${{ matrix.port }}
SOURCE_REF: ${{ matrix.ref }}
LIBTMUX_DOCS_VERSION: latest
LIBTMUX_DOCS_VERSION_KIND: trunk
LIBTMUX_DOCS_IS_DEFAULT: 'false'
LIBTMUX_DOCS_RESOLVES_TO: ''
LIBTMUX_DOCS_GENERATOR_CHECKOUT: ${{ github.workspace }}/docs-generator
run: |
set -euo pipefail
[[ "$PORT" =~ ^[a-z]+$ ]] || { echo "invalid port slug: $PORT" >&2; exit 1; }
export "LIBTMUX_DOCS_CHECKOUT_${PORT^^}=$GITHUB_WORKSPACE/port"
source_sha=$(git -C "$GITHUB_WORKSPACE/port" rev-parse HEAD)
export LIBTMUX_DOCS_SOURCE_SHA="$source_sha"
export LIBTMUX_DOCS_SOURCE_REF="$SOURCE_REF"
node scripts/publication-provenance.mjs snapshot "$RUNNER_TEMP/build-inputs.json" "$PWD"
LIBTMUX_DOCS_INPUT_SNAPSHOT="$RUNNER_TEMP/build-inputs.json" \
./scripts/build-site.sh --ports "$PORT" --versions latest --skip-refs --skip-pagefind

badges:
needs: matrix
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.badges) }}
name: badges ${{ matrix.port }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: docs
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ matrix.repo }}
ref: ${{ matrix.ref }}
path: port
persist-credentials: false
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
with:
package_json_file: docs/package.json
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: '26'
- run: pnpm install --frozen-lockfile
working-directory: docs
- name: Check every staged guide's badges at the port head
working-directory: docs
env:
MEMBERS: ${{ matrix.members }}
PORT_CHECKOUT: ${{ github.workspace }}/port
run: |
set -euo pipefail
for member in $MEMBERS; do
[[ "$member" =~ ^[a-z]+$ ]] || { echo "invalid port slug: $member" >&2; exit 1; }
export "LIBTMUX_DOCS_CHECKOUT_${member^^}=$PORT_CHECKOUT"
done
for member in $MEMBERS; do
node scripts/check-port-badges.mjs --port "$member" --require
done
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ jobs:
fi
env:
PREVIEW_PREFIX: pr-${{ github.event.pull_request.number }}
# check-source-links asks the GitHub API whether a pinned revision is public.
GITHUB_TOKEN: ${{ github.token }}
LIBTMUX_DOCS_CHECKOUT_RUBY: ${{ github.workspace }}/.port-sources/ruby
LIBTMUX_DOCS_CHECKOUT_LUA: ${{ github.workspace }}/.port-sources/lua
LIBTMUX_DOCS_CHECKOUT_OCAML: ${{ github.workspace }}/.port-sources/ocaml
Expand Down
27 changes: 27 additions & 0 deletions docs/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,33 @@ page in the browser is printed as unresolved and never counted as passing, and
a run that leaves more than a twentieth of the destinations unresolved fails,
because a run that asked almost nothing has checked almost nothing.

## Port heads check (`port-heads.yml`)

Runs weekly and on demand, never on a pull request. A port's own docs workflow
regenerates its API model and guides from the port's head, so a new package or
README badge service in the port can break that build while this repository's
CI, which reads committed models and guides, stays green.

The `build` job calls [`port-docs.yml`](../.github/workflows/port-docs.yml), the
workflow every port publish calls, once per library family (a core port and its
wrappers) with the port's repository, the head commit of its default branch,
`publish: false` and the `latest` trunk identity. Every port therefore runs its
own exporters, toolchains and `build-site.sh` exactly as a release does, wrapper
legs set only the wrapper's `LIBTMUX_DOCS_CHECKOUT_<PORT>`, and no
`reusable-deploy.yml` job follows, so nothing is deployed. The matrix
(`scripts/check-port-heads.mjs matrix`) resolves each head with `git ls-remote`.

To allow this, `port-docs.yml` has one optional input, `source-repository`
(string, default empty). Empty keeps today's behavior, building the calling
repository. Set, it names the repository that is checked out, whose tags the
identity step lists and which the matrix checks against `ports.ts`.
`port-docs-identity.sh` also accepts a `schedule` event, treated like a dispatch
that names its inputs, and refuses it when `publish` is true.

The `badges` job runs `scripts/check-port-badges.mjs` over each family's staged
guides at the same head. It lists every unmapped badge with port, file and URL,
where the build stops at the first.

## Secrets this scheme expects

| Secret | Used by | Scope | Storage level |
Expand Down
Loading
Loading