Repository navigation
Description
Summary
The API models committed in site/src/data/api for elixir, fsharp, go, julia and lua describe library revisions 121 to 470 commits older than the revisions the Core recordings in site/src/data/core-recordings were made from. A port build with a source SHA regenerates its own model, so the published port pages list current APIs. Every build without one reads the committed files: local astro dev, the test workflow, and any build that reads another port's model.
Motivation
scripts/build-site.sh regenerates the model only for the port being built, and says why:
elif [ -n "${LIBTMUX_DOCS_SOURCE_SHA:-}" ]; then
# A source-bound build renders the reference from the verified checkout,
# not from the model committed here, which describes whatever revision was
# last refreshed. The generator re-checks the SHA and records it.site/src/lib/api-models.ts imports the committed files directly, so anything that resolves a name against API_MODELS outside a source-bound build sees the old revision.
Go shows the gap. Go's Core recording plays Pane.WaitForText, which libtmux-go added in libtmux-go@f79432f on 2026-10-25 (tmux/pane_text_wait.go). The committed go.json is from libtmux-go 2de249b, five days earlier, and has tmuxtest.WaitForText but no tmux.Pane.WaitForText. The published reference, built from the port's checkout, has the page: /en/go/latest/reference/tmux-pane-waitfortext/.
| Port | Committed model | Core recording | Commits between |
|---|---|---|---|
| elixir | 6e6e88e (2026-10-23) |
a740a13 (2026-11-01) |
121 |
| fsharp | 4f1b997 (2026-10-03) |
8d47af7 (2026-11-01) |
470 |
| go | 2de249b (2026-10-20) |
449267f (2026-11-01) |
121 |
| julia | f3da513 (2026-10-11) |
f2b0fb8 (2026-11-01) |
183 |
| lua | 0395620 (2026-10-02) |
d68f829 (2026-11-01) |
176 |
Dates are commit dates in UTC. The csharp and powershell models match their recordings.
Evidence
Commands and output
The committed Go model's revision, and every symbol named WaitForText in it:
$ git show 983db91:site/src/data/api/go.json | jq -r '.revision, ([.symbols[] | select(.name == "WaitForText") | .publicId // .id] | join(" "))'2de249b600d65218ee8b8fdc07c6b2b919242151
tmuxtest.WaitForText
Commits between the committed Go model and the recording's revision:
$ gh api repos/libtmux/libtmux-go/compare/2de249b...449267f --jq .ahead_by121
References
scripts/build-site.sh: which builds regenerate a model.site/src/data/core-recordings/go.json: the recording and its revision.
Activity
tony commentedon Nov 12, 2026
At
cfa8a1496the five models are unchanged:elixirat6e6e88e,fsharpat4f1b997,goat2de249b,juliaatf3da513andluaat0395620are still 121, 470, 121, 183 and 176 commits behind their Core recordings. The gap now reaches three more ports, again with the recording ahead of the model:cxxby 168 commits,java(whichkotlinandscalashare) by 231 andswiftby 160; thepowershell,rsandtsmodels are instead ahead of their recordings by 51, 2 and 23 commits, andpywas not compared. No pull request addresses it, and #260, the Go players that lost their recording, is a related symptom of the same drift between committed data and the port. Next action: regenerate the committed models for the eight ports above at the revision of their recordings, or re-record against the model.tony commentedon Dec 5, 2026
The Lua guide surfaced a concrete consequence. In the committed model, the Core package is
0.1.0alpha1-1at Lua revision0395620d. The current checkout example callsRuntime:start_serverandOwnedServer:stop. Neither method is in that model. The site's publication job rejected both names on the same guide line.For this guide, the calls apply specifically to the checkout example. PR #385 links each call directly to its line at the cited Lua commit. The two links passed the same check locally. The broader five-port model refresh remains tracked here. Hosted result · Start call · Stop call.