Skip to content

docs(running-tend): sweep every pin, not a hand-kept table - #981

Merged
max-sixty merged 2 commits into
mainfrom
simplify-test-runner
Aug 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
simplify-test-runner

Conversation

@max-sixty

@max-sixty max-sixty commented Aug 14, 2026 •

Copy link
Copy Markdown
Owner

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_VERSION arrived exactly that way in #978. What the closed table was hiding, measured on this tree: ruff v0.14.11 → v0.16.3, uv-pre-commit 0.7.12 → 0.12.4, typos v1.42.0 → v1.49.0, vitest 2 → 4, typescript 5 → 7, wrangler 4.90 → 4.123, astro 5 → 7, plus the uv_build range 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:

yq -r '.inputs | to_entries[] | select(.key | test("_version$")) | ...' */action.yaml
git grep -nE '(==|~=|<=?)[0-9]' -- '*pyproject.toml'   # freeze-pins; floors like click>=8.0 stay
uv lock --upgrade --dry-run
uvx pre-commit autoupdate
npm --prefix worker outdated; npm --prefix site outdated
git grep -nE '^[A-Za-z_]*VERSION=' -- '*.sh'

The table survives only for pins whose rule isn't "move to latest and let CI decide" — claude_version tracking latest over stable, 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 during uv build, publish-site.yaml builds site/ on push to main rather than on the PR, and nothing anywhere runs .config/codex-cloud/environment.sh, which dies under set -euo pipefail in 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 under uses: refs (ships-to-adopters / ours-alone) now governs all pins, with majors getting their own PR from either bucket.

WORKTRUNK_VERSION is the test of whether the frame works: #978's row and sed lookup 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-version and requires-python are 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:

  • the yq sweep prints all four action inputs with their file
  • the Python grep returns exactly the two freeze-pins (mitmproxy==, uv_build's cap) and no floors or requires-python
  • uvx pre-commit autoupdate works 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 from
  • npm outdated exits 1 with rows, which is why the comment says so
  • the shell-script grep returns WORKTRUNK_VERSION and nothing else
  • uv build --package tend warns on the stale uv_build range and still succeeds, so the "only this sweep catches it" claim is the observed behavior
  • pre-commit run --all-files passes

This was written by Claude Code on behalf of max-sixty

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 tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .claude/skills/running-tend/SKILL.md Resolved
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]>
@max-sixty
max-sixty merged commit 1fc85f5 into main Aug 14, 2026
9 checks passed
@max-sixty
max-sixty deleted the simplify-test-runner branch August 14, 2026 08:03
max-sixty added a commit that referenced this pull request Aug 14, 2026
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_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants