Repository navigation
docs(running-tend): sweep every pin, not a hand-kept table - #981
Conversation
The weekly bump section listed four action inputs, so every other pin in the repo drifted unswept: pre-commit revs (ruff 2 minors behind, uv-pre-commit 5), npm devDependencies (vitest and typescript a major behind, astro too), the `uv_build` backend range, the workspace dev pins. A new pin only entered scope when someone remembered to add a row — `WORKTRUNK_VERSION` arrived that way last week. Each ecosystem now enumerates its own pins, so a pin added later shows up without an edit here. Rules stay only where the default (move to latest, let CI decide) doesn't hold, and runner images, `node-version` and `requires-python` are named as deliberately excluded — platform choices, not upstream tracking. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
WORKTRUNK_VERSION loses its rule row and lands under the new default, "move to latest and let CI decide" — but nothing in CI runs .config/codex-cloud/environment.sh. git grep codex-cloud -- .github/ is empty, and pre-commit's shellcheck hook only parses the file. It's the third pin whose bump CI can't verify, alongside uv_build's warn-only range and the astro build the npm comment already carves out, so it belongs in the table rather than under the default rule.
Concretely: the sweep's shell grep surfaces WORKTRUNK_VERSION=0.73.0, the default rule says move it to latest, CI goes green — and the maintainer's next Codex Cloud setup dies under set -euo pipefail if the release's installer asset name moved or wt config show --format json's .project.identifier changed shape. The script consumes both immediately after installing, so there's no signal before someone opens an environment.
Everything else holds against this tree — all four enumerating commands return what the PR body claims, click>=8.0 in generator/pyproject.toml grounds the floors comment, and nothing outside this file referenced the removed ### Tool versions heading.
The review caught WORKTRUNK_VERSION falling under "move to latest and let CI decide" when nothing in CI runs .config/codex-cloud/environment.sh — it breaks first in a maintainer's Codex Cloud setup. It joins uv_build's warn-only range and the astro build, which were carved out in two other places; all three now sit in the one table, so the default rule means what it says. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two follow-ups from #981's sweep, each a pin whose bump nothing checked. `publish-site.yaml` built `site/` only on push to main, so an astro bump merged green and broke on the way to Pages — which is why the weekly-bump table carried an `astro` row telling the agent to run `npm --prefix site run build` by hand first. The build job now runs on any PR touching `site/` or the workflow file, and `deploy-site` picks up `github.event_name != 'pull_request'`. Extending the workflow that already defines the build beat adding a `ci.yaml` job, which would have been a second copy of the same four steps. The `astro` row is gone with the manual step: it's an ordinary "move to latest and let CI decide" pin now. `.config/codex-cloud/environment.sh` wrote the container's `approvals.toml` from a hand-copied duplicate of `.config/wt.toml`'s command list — correct today, and stranded by the next alias edit, at which point every unattended `wt` run in Codex Cloud fails the approvals gate. `wt config approvals list --format=json` already emits every command the project declares, so the script reads the list from there and drift stops being possible rather than being caught after the fact. `wt config approvals add` is the primitive that should do this whole job, but it refuses a non-TTY even with `--yes` (checked against the pinned 0.73.0 binary, not just a local build), so the file is still written directly. If worktrunk gains a working `add --yes`, the block collapses to one command. What that gives up: the copied list doubled as a review anchor, since a new `wt.toml` command couldn't run in the container until someone edited this script too. It guards nothing here — the container runs `environment.sh` itself from the same branch, so a `wt.toml` a reviewer wouldn't trust arrives with a setup script they wouldn't either. The script now writes to `${XDG_CONFIG_HOME:-$HOME/.config}/worktrunk` rather than a hardcoded `$HOME/.config`. That is where worktrunk documents it looks, and it is what makes the generation testable without touching a real approvals file. <details> <summary>Verification</summary> - against worktrunk v0.73.0 installed to a temp dir, under a temp `XDG_CONFIG_HOME`: the generated `approvals.toml` matches the hand-kept file it replaces exactly, and `wt config approvals list` then reports `approved` with 0 stale - appending a probe alias to `.config/wt.toml` puts it in the generated list and the state check still passes (reverted after) - `wt config approvals add --yes` exits 1 on that same pinned binary, in both flag positions — the comment's claim is observed, not assumed - `npm --prefix site run build` succeeds on this tree, so the new job lands green rather than red - this PR edits `publish-site.yaml`, which is in the new path filter, so `build-site` runs on the PR itself - `pre-commit run --all-files` clean; `uv run pytest` 554 passed </details> > _This was written by Claude Code on behalf of max-sixty_
The weekly bump section was a table of four action inputs, so every other pin in the repo drifted unswept — a pin entered scope only when someone remembered to add a row for it, and
WORKTRUNK_VERSIONarrived exactly that way in #978. What the closed table was hiding, measured on this tree: ruffv0.14.11→v0.16.3, uv-pre-commit0.7.12→0.12.4, typosv1.42.0→v1.49.0, vitest 2 → 4, typescript 5 → 7, wrangler 4.90 → 4.123, astro 5 → 7, plus theuv_buildrange that has excluded the local uv since 0.12.Each ecosystem now enumerates its own pins, so the next one added shows up without an edit to this file:
The table survives only for pins whose rule isn't "move to latest and let CI decide" —
claude_versiontrackinglatestoverstable, mitmproxy dragging the workspace==pin with it — and, after the review, for every pin CI can't verify at all:uv_build's stale range only warns duringuv build,publish-site.yamlbuildssite/on push to main rather than on the PR, and nothing anywhere runs.config/codex-cloud/environment.sh, which dies underset -euo pipefailin a maintainer's Codex Cloud setup rather than in a job. Those three were carved out in three different places in the first push; they're one table now, so the default rule means what it says. The PR-splitting rule that used to sit underuses:refs (ships-to-adopters / ours-alone) now governs all pins, with majors getting their own PR from either bucket.WORKTRUNK_VERSIONis the test of whether the frame works: #978's row andsedlookup are gone, and the shell-script sweep finds the pin on its own. It keeps a row, but for what CI can't check rather than for existing.Runner images,
node-versionandrequires-pythonare named as out of scope rather than silently omitted — platform choices carrying their own rationale, moved when a reason arrives.Verification
Every command run against this tree before it went in:
yqsweep prints all four action inputs with their filemitmproxy==,uv_build's cap) and no floors orrequires-pythonuvx pre-commit autoupdateworks with only uv installed (the weekly job's whole toolchain) — run against a scratch copy of the config, which is where the three rev numbers above come fromnpm outdatedexits 1 with rows, which is why the comment says soWORKTRUNK_VERSIONand nothing elseuv build --package tendwarns on the staleuv_buildrange and still succeeds, so the "only this sweep catches it" claim is the observed behaviorpre-commit run --all-filespasses