Commit Graph
49 Commits
Author SHA1 Message Date
dependabot[bot] 3e8278508d chore: bump astral-sh/setup-uv from 10.2.0 to 10.3.0 in /.github/actions/tend-setup (#4447)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from
10.2.0 to 10.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/setup-uv/releases">astral-sh/setup-uv's
releases</a>.</em></p>
<blockquote>
<h2>v10.3.0 🌈 Add Python architecture selection</h2>
<h2>Changes</h2>
<p>This release adds the <code>python-arch</code> input to select a
Python architecture independently of the Python version. With
<code>uv</code> 0.13.0 or later, set <code>python-arch: x86_64</code> to
use x64 Python on Windows ARM64 runners.</p>
<p>It also includes embedded checksums for <code>uv</code> releases
through 0.13.0.</p>
<ul>
<li>Use macOS 15 runners for tests <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1081">#1081</a>)</li>
</ul>
<h2>🚀 Enhancements</h2>
<ul>
<li>Add <code>python-arch</code> support <a
href="https://github.com/zanieb"><code>@​zanieb</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1079">#1079</a>)</li>
</ul>
<h2>🧰 Maintenance</h2>
<ul>
<li>chore: update known checksums for 0.13.0 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1089">#1089</a>)</li>
<li>chore: update known checksums for 0.12.24 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1084">#1084</a>)</li>
<li>chore: update known checksums for 0.12.23 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1082">#1082</a>)</li>
<li>chore: update known checksums for 0.12.22 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1080">#1080</a>)</li>
<li>chore: update known checksums for 0.12.21 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1078">#1078</a>)</li>
<li>chore: update known checksums for 0.12.20 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1076">#1076</a>)</li>
<li>chore: update known checksums for 0.12.19 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1068">#1068</a>)</li>
<li>chore: update known checksums for 0.12.18 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1065">#1065</a>)</li>
</ul>
<h2>⬆️ Dependency updates</h2>
<ul>
<li>chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1077">#1077</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/1c37ad07a6a961277cf70c0d37d6f313000f5884"><code>1c37ad0</code></a>
chore: update known checksums for 0.13.0 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1089">#1089</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/b3c9b5fc56ebc90760c43b1ac9552c0d1705d3ca"><code>b3c9b5f</code></a>
chore: update known checksums for 0.12.24 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1084">#1084</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/b06acff4b6a41bdd9cdac56507ead0bd7734e757"><code>b06acff</code></a>
Add <code>python-arch</code> support (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1079">#1079</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/c84232ca4fde9b022e20a930bfbbecd386b56fdf"><code>c84232c</code></a>
chore: update known checksums for 0.12.23 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1082">#1082</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/51fdd265d38a27ffcbca0da885510bc6fcc0ff55"><code>51fdd26</code></a>
Use macOS 15 runners for tests (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1081">#1081</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/a96208bed1fb5efb8da349c9bcc6cc58af9e7d74"><code>a96208b</code></a>
chore: update known checksums for 0.12.22 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1080">#1080</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/0e3884b860e20d3f4d5daa2347130beb51ccde47"><code>0e3884b</code></a>
chore: update known checksums for 0.12.21 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1078">#1078</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/bcf05803b55ef01a5ec6368521ee1b42f97bc438"><code>bcf0580</code></a>
chore: update known checksums for 0.12.20 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1076">#1076</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/b92a892142bde7280cd163c2abff341413314f9f"><code>b92a892</code></a>
chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1077">#1077</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/227a0f6bea25cde3444f52decccf4a18de6635f4"><code>227a0f6</code></a>
chore: update known checksums for 0.12.19 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1068">#1068</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/setup-uv/compare/v10.2.0...v10.3.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astral-sh/setup-uv&package-manager=github_actions&previous-version=10.2.0&new-version=10.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-13 13:19:54 -07:00
Worktrunk Botandworktrunk-bot 8e3bd31a27 ci: bump Nushell pin to 0.116.1 (#4431)
This moves the pinned Nushell from 0.116.0 to
[0.116.1](https://github.com/nushell/nushell/releases/tag/0.116.1) at
every call site: the `hustcer/setup-nu` inputs in `coverage.yaml`,
`nightly.yaml`, `benchmarks.yaml`, and the `test-setup` and `tend-setup`
actions; `.codex/cloud.sh`; and the `setup-web` task in `Taskfile.yaml`.
Nushell is the third tool the Codex Cloud script keeps level with
`test-setup`, which is why those two move together.

This PR is separate from the weekly `cargo-nextest` bump (#4430) because
a Nushell version can change PTY snapshots under `--all-features`. That
keeps any snapshot fallout here. The `code-coverage` and test jobs on
this PR exercise the new version.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-11 05:14:11 -07:00
Worktrunk Botandworktrunk-bot 7f588e01ae ci: bump cargo-nextest pin to 0.9.148 (#4430)
This moves the pinned `cargo-nextest` from 0.9.146 to 0.9.148 everywhere
it's pinned: `coverage.yaml`, the `test-setup` and `tend-setup` actions,
and `.codex/cloud.sh`. All four stay level, as the Codex Cloud script
requires. 0.9.148 needs Rust 1.91, and our toolchain is 1.98.0.

The one behavior change in
[0.9.148](https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.148)
is that setup scripts no longer accept `slow-timeout.on-timeout =
"pass"`. `.config/nextest.toml` doesn't set it. Everything else in the
release is a fix: stress-run exit codes, leak-timeout handling, and how
timeout and cancellation are reported.

The other weekly pin checks found no drift apart from Nushell 0.116.1,
which has its own PR because a Nushell version can move PTY snapshots.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-11 03:15:23 -07:00
Worktrunk Botandworktrunk-bot c911510774 ci: bump cargo-insta pin to 1.49.0 (#4366)
Weekly CI pin bump: `cargo-insta` `=1.48.0` → `=1.49.0` in
`.github/actions/test-setup/action.yaml` and
`.github/actions/tend-setup/action.yaml`, and `INSTA_VERSION` in
`.codex/cloud.sh`, which is kept level with `test-setup`.

`test-setup` feeds the test job on Linux, macOS, and Windows, so this
bump has its own PR and its CI matrix is the test of it.

Compatibility: cargo-insta 1.49.0 declares `rust-version = 1.66.0`, well
under the pinned `1.97.0` toolchain. Its one CLI behavior change is that
`cargo insta test --all-targets --test-runner nextest` no longer runs
doctests; the `insta` pre-merge step in `.config/wt.toml` doesn't pass
`--all-targets`, so it is unaffected. This bumps only the CLI; the
`insta` library version stays with `Cargo.lock`.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-04 04:38:05 -07:00
Worktrunk Botandworktrunk-bot f9dc3e3dc2 ci: bump Nushell pin to 0.116.0 (#4300)
Weekly CI pin bump: Nushell `0.115.1` → `0.116.0`, the latest
[`nushell/nushell`
release](https://github.com/nushell/nushell/releases/tag/0.116.0)
(published 2026-09-26).

Seven sites move together:

- the five `hustcer/setup-nu` inputs: `coverage.yaml`,
`benchmarks.yaml`, `nightly.yaml`, and
`.github/actions/{test,tend}-setup/action.yaml`
- `NU_VERSION` in `.codex/cloud.sh`, which the weekly checklist keeps
level with `test-setup`
- `NU_VERSION` in `Taskfile.yaml`'s `setup-web`

The `nu-0.116.0-x86_64-unknown-linux-gnu.tar.gz` asset that `cloud.sh`
and `setup-web` download is published on the release.

This is in its own PR because Nushell's version moves PTY snapshots
under `--all-features`, and this PR's CI is the only place the bump is
tested on macOS and Windows.

The release's one breaking change that touches this repo is the unified
completer input
([nushell/nushell#18791](https://github.com/nushell/nushell/pull/18791)).
`templates/nushell.nu` already handles it: #4297 moved the completer to
the new `place` input, so 0.116 no longer warns when the integration is
sourced. Locally, with 0.116.0 on `PATH`, the `shell` integration-test
subset gives the same results as with 0.115.1: 193 passed, and the same
16 failures, which are sandbox-environment snapshot failures present on
main.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-27 04:50:29 -07:00
Worktrunk Botandworktrunk-bot 010821c519 ci: bump cargo-nextest pin to 0.9.146 (#4299)
Weekly CI pin bump: cargo-nextest `=0.9.145` → `=0.9.146`.

It moves in four places: `coverage.yaml`,
`.github/actions/test-setup/action.yaml`,
`.github/actions/tend-setup/action.yaml`, and `NEXTEST_VERSION` in
`.codex/cloud.sh`, which the weekly checklist keeps level with
`test-setup`. The
`cargo-nextest-0.9.146-x86_64-unknown-linux-gnu.tar.gz` asset that
`cloud.sh` downloads is published on the release.

Compatibility: 0.9.146 declares `rust-version = 1.91`, below the pinned
`1.97.0` toolchain. The
[release](https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.146)'s
only change is updating the `chacha20` and `der` dependencies to
non-yanked versions, so no test-runner behavior changes.

The `worktrunk` and Nushell pins also drifted this week, and each has
its own PR.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-27 03:22:10 -07:00
dependabot[bot] 6be77f12c9 chore: bump astral-sh/setup-uv from 10.1.0 to 10.2.0 in /.github/actions/tend-setup (#4250)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from
10.1.0 to 10.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/setup-uv/releases">astral-sh/setup-uv's
releases</a>.</em></p>
<blockquote>
<h2>v10.2.0 🌈 Disable automatic cache saves for merge queues</h2>
<h2>Changes</h2>
<p>This release contains the known-checksum of the most recent uv
releases and also disabled the uploading(saving) of the cache when in a
merge queue since theses caches would almost never be used.</p>
<h2>🚀 Enhancements</h2>
<ul>
<li>Disable automatic cache saves for merge queues <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1056">#1056</a>)</li>
</ul>
<h2>🧰 Maintenance</h2>
<ul>
<li>chore: update known checksums for 0.12.17 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1058">#1058</a>)</li>
<li>chore: update known checksums for 0.12.16 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1057">#1057</a>)</li>
<li>chore: update known checksums for 0.12.15 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1054">#1054</a>)</li>
<li>chore: update known checksums for 0.12.14 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1053">#1053</a>)</li>
<li>chore: update known checksums for 0.12.13 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1045">#1045</a>)</li>
</ul>
<h2>📚 Documentation</h2>
<ul>
<li>docs: update version references to v10.1.0 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1044">#1044</a>)</li>
</ul>
<h2>⬆️ Dependency updates</h2>
<ul>
<li>chore(deps): roll up Dependabot updates <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1059">#1059</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/c18668ad3cf93ea998bef934396af7bb5c839dc7"><code>c18668a</code></a>
chore(deps): roll up Dependabot updates (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1059">#1059</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/ffe14763056ca34ecd158146a9fc7e144c8a2753"><code>ffe1476</code></a>
chore: update known checksums for 0.12.17 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1058">#1058</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/f5548c55522a1db0af3c84f2af3d058bc9bc2de2"><code>f5548c5</code></a>
chore: update known checksums for 0.12.16 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1057">#1057</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/a761a4e9afd7b2f353ae020bd6d3a3af34c6c4d5"><code>a761a4e</code></a>
Disable automatic cache saves for merge queues (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1056">#1056</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/3377a30666f438759955882b3eba6a92b2b29b12"><code>3377a30</code></a>
chore: update known checksums for 0.12.15 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1054">#1054</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/dfb5f386776afcea37f271f3b656318d9949b9f1"><code>dfb5f38</code></a>
chore: update known checksums for 0.12.14 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1053">#1053</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/45c121f982720f3bdf236c2ac06f126ca211949c"><code>45c121f</code></a>
chore: update known checksums for 0.12.13 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1045">#1045</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/8073452fd4b566e886f04f731bcdbd8332b0b779"><code>8073452</code></a>
docs: update version references to v10.1.0 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/1044">#1044</a>)</li>
<li>See full diff in <a
href="https://github.com/astral-sh/setup-uv/compare/v10.1.0...v10.2.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astral-sh/setup-uv&package-manager=github_actions&previous-version=10.1.0&new-version=10.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-23 20:58:13 -07:00
Maximilian Roos e99d4ff74e Move Tend tool setup to standard steps and update to 0.3.2 (#4249)
Move the Tend tool probe into standard setup and remove the deprecated
sandbox_setup key. Regenerate the workflows with Tend 0.3.2; restricted
merge policy preserves the current bot authority. The setup action
continues to install the required tools, and a prior nightly run
confirmed pre-commit reaches the agent PATH.

> _This was written by Codex on behalf of max-sixty_
2026-09-23 19:41:13 -07:00
Maximilian Roos 6502630366 docs: share project instructions through AGENTS.md (#4245)
Make `AGENTS.md` the canonical project instructions in nine directories.
Each directory also has a one-line `CLAUDE.md` importing its adjacent
`AGENTS.md`, so Claude Code loads the instructions even on accounts
where native `AGENTS.md` support is gated off. The root `AGENTS.md`
replaces the old symlink; ordinary files work on Windows checkouts
without symlink support. References in source comments, CI, Clawpatch
metadata, maintainer skills, and the demo fixture point to the canonical
paths.

I verified Claude Code's `@` import in a live isolated probe with tools
disabled: a `CLAUDE.md` import loaded a marker found only in the
imported file. The wrappers keep the existing Claude Code
instruction-loading path while Codex reads `AGENTS.md` directly.

Verified: `test_docs_are_in_sync`, `test_plugin_layout_is_consolidated`,
`test_no_host_specific_paths_in_snapshots`, the docs production build,
20 built-site tests, Python compilation of the demo helper, JSON parsing
of the feature metadata, and `git diff --check`.

> _This was written by Codex on behalf of max-sixty_
2026-09-23 03:20:12 -07:00
Worktrunk Botandworktrunk-bot a73730c9af docs(ci): correct the tend sandbox model for 0.2.14's copy-on-write view (#4224)
tend 0.2.14 (landed today in #4222) moved the agent off Anthropic
Sandbox Runtime and onto a hardened systemd unit over a copy-on-write
view of the job's own checkout and home. Four files here still describe
the 0.2.5–0.2.13 arrangement they were written for, and their central
claims are now observably false from inside a session. That matters
because `.github/CLAUDE.md` and `running-tend` are what an agent reads
before touching CI: told the runner's home is unreadable, it keeps
building hand-offs nothing needs and rules out a cache that would now
work. Comments and instructions only — no step, key, or behavior
changes.

## What stopped being true

Probed from tend 0.2.14 sessions:

| Documented claim | Observed |
| --- | --- |
| Agent PATH rewrites a leading `/home/runner` to `/home/tend-sandbox` |
`$HOME` is `/home/runner`, and PATH entries resolve there |
| The agent builds in a disposable `/tmp` clone | cwd is
`/home/runner/work/worktrunk/worktrunk`, the runner's own checkout |
| Sandbox Runtime denies reads across the runner's home and checkout |
`~/.cargo`, `~/.rustup/toolchains` and `~/.cargo-install` all read fine
|
| The cargo tools reach the agent through `/usr/local/bin` | `which -a
cargo-insta` lists
`/home/runner/.cargo-install/cargo-insta/bin/cargo-insta` first,
`/usr/local/bin` second |
| `.config/tend.yaml`'s probe runs inside the sandbox, and a missing
tool files a tend-outage issue | 0.2.14's generator emits the block as
an ordinary runner step *before* `max-sixty/tend/claude`, and the filing
is `report_failure.py`, a step *inside* that action under `if:
failure()` — so a probe failure skips it and leaves only its `::error::`
annotation |
| `running-tend`: the weekly `nix` commands fail with a permission error
| `nix store info` reports `cannot create Unix domain socket: Address
family not supported by protocol` |
| `running-tend`: `-home-runner-work-worktrunk-worktrunk/` "appears only
in runs predating the bump" | This session's logs are under
`/home/tend-sandbox/.claude/projects/-home-runner-work-worktrunk-worktrunk/`
— the prefix is back |

One claim in the same paragraphs was checked and kept: `nix` still
cannot reach the daemon, so `socket(AF_UNIX, …)` is blocked under the
systemd unit too, and the weekly `flake.lock` refresh still needs
max-sixty/tend#1197. Only the errno was wrong, in two places —
`.github/actions/tend-setup/action.yaml` said `EPERM` and `running-tend`
said "a permission error"; both now carry the message the probe actually
prints.

## What this deliberately leaves alone

- **`sandbox_setup:` stays.** #4222 gave the reason: keeping the key
means a release reverting 0.2.14 still finds it. The comment above the
block now says so, so a later sweep reads it as a deliberate hold rather
than drift to fix. Its closing probe is still worth its place — it
asserts the five tools the pre-merge gate needs, whichever step
installed them, and fails the job naming the one that went missing.
- **The `/usr/local/bin` publish step stays**, re-described as the
second copy of those binaries it now is rather than the only route.

## One follow-up this opens but does not take

`tend-setup` carries no `rust-cache` step because a restored `~/.cargo`
and `<checkout>/target` were unreachable and at the wrong path. Both are
now reachable at the path a restore writes them to, so tend sessions
build cold only because nothing restores them. The comment moves from
"blocked until max-sixty/tend#1198" to "a measurement", but no cache is
added here: that is a behavior change with a real download cost across
eight workflows, and it wants its own PR with numbers.

<details><summary>Probe output</summary>

```
$ echo "HOME=$HOME"; whoami; pwd
HOME=/home/runner
tend-sandbox
/home/runner/work/worktrunk/worktrunk

$ which -a cargo-insta
/home/runner/.cargo-install/cargo-insta/bin/cargo-insta
/usr/local/bin/cargo-insta

$ ls ~/.rustup/toolchains
stable-x86_64-unknown-linux-gnu

$ which -a pre-commit
/home/runner/.local/bin/pre-commit

$ ls -d ~/.claude/projects/*/
ls: cannot access '/home/runner/.claude/projects/*/': No such file or directory
$ ls -d /home/tend-sandbox/.claude/projects/*/
/home/tend-sandbox/.claude/projects/-home-runner-work-worktrunk-worktrunk/

$ nix store info
Store URL: daemon
error: cannot create Unix domain socket: Address family not supported by protocol
```

The probe-ordering claim comes from the generated workflows rather than
a runtime probe: `.github/workflows/tend-review.yaml` puts the
`sandbox_setup:` block between `uses: ./.github/actions/tend-setup` and
`uses: max-sixty/tend/claude@0.2.14`, and `claude/action.yaml` at tag
0.2.14 runs `report_failure.py` as its own `if: failure()` step.

</details>

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-21 14:25:41 -07:00
Worktrunk Botandworktrunk-bot 6cd1056d0a ci: bump cargo-affected and cargo-nextest pins (#4196)
Weekly CI pin bump for the two third-party tool pins that drifted this
week.

- **cargo-affected** `=0.4.0` → `=0.4.1` — `affected.yaml`, both call
sites
- **cargo-nextest** `=0.9.144` → `=0.9.145` — `coverage.yaml`,
`.github/actions/test-setup/action.yaml`,
`.github/actions/tend-setup/action.yaml`, and `.codex/cloud.sh`, which
the weekly checklist keeps level with `test-setup`

Toolchain compatibility against the pinned `1.97.0`: `cargo-affected`
0.4.1 declares `rust-version = 1.94`, `cargo-nextest` 0.9.145 declares
`1.91`. Both build under `baptiste0928/cargo-install`. The
`.codex/cloud.sh` tarball URL resolves at the new version —
`cargo-nextest-0.9.145-x86_64-unknown-linux-gnu.tar.gz` is published on
the `cargo-nextest-0.9.145` tag.

The `worktrunk` pin also drifted this week and is in its own PR — it is
the `wt` that drives `wt hook pre-merge` on all three platforms, so a
red matrix there shouldn't hold back these two.

<details><summary>What the two releases change, against this repo's
config</summary>

**cargo-affected 0.4.1** carries two `run` fixes, both landing on the
advisory `affected` legs: a committed uncovered change is now reported
as uncovered rather than as "no changes"
([max-sixty/cargo-affected#92](https://github.com/max-sixty/cargo-affected/pull/92)),
and `run` no longer hands nextest a phantom-only filterset
([#81](https://github.com/max-sixty/cargo-affected/pull/81)).

**cargo-nextest 0.9.145**'s headline changes are profile-inheritance
fixes — overrides defined in intermediate profiles are now applied, and
a profile without `default-filter` inherits from its nearest ancestor
rather than always from `profile.default`. Those are no-ops here:
`.config/nextest.toml` defines only `profile.default` (plus its `junit`
sub-table), sets no `default-filter`, and CI passes no
`--tool-config-file`.

The change that does reach this suite is
[nextest-rs/nextest#3553](https://github.com/nextest-rs/nextest/pull/3553):
on Apple platforms, where the standard library can't create pipes with
`FD_CLOEXEC` atomically, a concurrently-spawned test could inherit a
sibling's capture pipe and the sibling was then reported as having
leaked handles after exit. Nextest now creates capture pipes itself.
That is a macOS-leg flake source removed, not a behavior change the
suite has to absorb.

</details>

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-20 10:37:27 -07:00
Maximilian Roos 7e43837527 Keep composite action pins current (#4101)
Dependabot only scanned workflow action references, so setup-uv in the
Tend composite setup action lagged behind. This aligns setup-uv at
v10.1.0 and extends the existing daily GitHub Actions update to every
composite action directory.

> _This was written by Codex on behalf of @max-sixty_
2026-09-13 23:28:35 -07:00
Worktrunk Botandworktrunk-bot 397c3b2df4 ci: bump cargo-llvm-cov, cargo-nextest, and PowerShell pins (#4089)
Weekly CI pin bump for the three tool pins that drifted this week. All
three are patch-level.

- **cargo-llvm-cov** `=0.9.0` → `=0.9.1` — `coverage.yaml`
- **cargo-nextest** `=0.9.143` → `=0.9.144` — `coverage.yaml`,
`.github/actions/test-setup/action.yaml`,
`.github/actions/tend-setup/action.yaml`, and `.codex/cloud.sh`, which
the weekly checklist keeps level with `test-setup`
- **PowerShell** `7.6.5` → `7.6.6` — `.codex/cloud.sh` and `setup-web`
in `Taskfile.yaml`. Nothing under `.github/` pins PowerShell (CI uses
whatever the runner image ships), so this one answers only to these two
setup paths

Toolchain compatibility against the pinned `1.97.0`: `cargo-llvm-cov`
0.9.1 declares `rust-version = 1.87`, `cargo-nextest` 0.9.144 declares
`1.91`. Both build under `baptiste0928/cargo-install`.

The two download URLs still resolve at the new versions:
`powershell-7.6.6-linux-x64.tar.gz` and
`powershell_7.6.6-1.deb_amd64.deb` are both published on the `v7.6.6`
release, and `cargo-nextest-0.9.144-x86_64-unknown-linux-gnu.tar.gz` on
the `cargo-nextest-0.9.144` tag.

The `worktrunk` pin also drifted this week and is in #4088 instead — it
is the `wt` that drives `wt hook pre-merge` on all three platforms, so a
red matrix there shouldn't hold back these.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-13 10:23:37 -07:00
Worktrunk Botandworktrunk-bot c308b204cf chore: update tend workflows (0.2.0 → 0.2.5) (#4057)
Regenerates the eight `tend-*.yaml` workflows with tend 0.2.5, up from
0.2.0, and adapts this repo's setup to the sandbox boundary that comes
with it. The substantive upstream change is where the agent's code
lives: the action now builds its own disposable `/tmp` clone instead of
the workflow rewriting the runner's checkout, and the Anthropic Sandbox
Runtime fences the agent off from the runner's home and checkout for the
whole lifecycle.

That fence is why this PR is more than a regeneration. Three things this
repo does stopped working across it, all of them silently; each is
handled below.

## Upstream changes

**Agent sessions get an isolated workspace.** Each
`max-sixty/tend/claude` step now takes `checkout_mode` (`base`,
`review`, or `mention`) plus `base_branch`, and creates the tree it
works in itself
([max-sixty/tend#1173](https://github.com/max-sixty/tend/pull/1173)).
The runner's own checkout stays on the base branch, which is what
`.github/actions/tend-setup` and its POST cleanup run against. Three
hand-rolled steps disappear as a result: `tend-review`'s
`refs/pull/N/merge` probe and second `actions/checkout`,
`tend-mention`'s `gh pr checkout` (which also picks up the upstream fix
for a mention on an issue or a closed PR,
[max-sixty/tend#1175](https://github.com/max-sixty/tend/pull/1175)), and
both workflows' "Restore local setup actions for POST cleanup" step —
nothing overwrites `.github/actions/tend-setup` in the runner tree any
more.

**`tend-ci-fix` now fires on cancelled runs, not just failures.** The
job condition becomes `contains(fromJSON('["failure", "cancelled"]'),
…)` and the prompt carries `Conclusion:` so the session can tell the two
apart. A watched workflow that ends `cancelled` on `main` previously
produced no session at all.

**Bundled skills move with the pin.** `review-runs` no longer scopes its
live-work default-branch CI check to `ci-fix`'s watched workflows
([max-sixty/tend#1170](https://github.com/max-sixty/tend/pull/1170)),
outage-row enrichment reads the failing attempt so a rerun-green run
keeps its diagnosis
([max-sixty/tend#1166](https://github.com/max-sixty/tend/pull/1166)),
and the guidance text is now harness-portable
([max-sixty/tend#1188](https://github.com/max-sixty/tend/pull/1188)).
Codex-harness work in this range does not reach this repo, which runs
the `claude` harness.

Full comparison:
[0.2.0…0.2.5](https://github.com/max-sixty/tend/compare/0.2.0...0.2.5).

## What this repo had to change

**The cargo tools move to `/usr/local/bin`.** This was a merge blocker,
not a cleanup. `sandbox_runtime.mjs` configures `denyRead: [runnerHome,
runnerWorkspace]` and `sandbox_setup.py` runs the adopter block *inside*
that boundary under `bash -eo pipefail`, so the two `install -m755
/home/runner/.cargo-install/…` lines every workflow carried would have
aborted the lifecycle before the harness started — a red job and a
`tend-outage` issue on every trigger, in all eight workflows.
`tend-setup` now `sudo install`s both binaries into `/usr/local/bin`
after building them, which is the system-location route `nu` and `nix`
already take, and `.config/tend.yaml` keeps only the `pre-commit` line,
which installs into the sandbox's own home and reads nothing
runner-owned. The closing probe still asserts all five tools.

**The rust-cache restore is removed, along with the `CARGO*`/`RUST*` env
block that existed only to match its key.** With the agent in a `/tmp`
clone and the runner's tree under `denyRead`, a restored `~/.cargo` and
`<runner checkout>/target` are unreachable *and* at the wrong path — the
restore warmed nothing and cost the download in eight workflows. The
capability loss is real and is not caused by this removal: tend sessions
that compile now compile cold, where a 0.2.0 session inherited a 5.1 GB
warm `target/` (measured in a live session on the current pin). I've
asked upstream for a supported hand-off into the agent's own tree,
[max-sixty/tend#1198](https://github.com/max-sixty/tend/issues/1198);
this step comes back if that lands. Happy to restore it now instead if
you'd rather keep the machinery in place while that's open.

**`nix` can no longer reach its daemon, which breaks the weekly
`flake.lock` refresh.** SRT blocks `socket(AF_UNIX, …)` with `EPERM` by
default on Linux, and tend passes neither `allowUnixSockets` nor
`allowAllUnixSockets`. The multi-user Nix client connects to
`/nix/var/nix/daemon-socket/socket`, so `nix flake update rust-overlay`
and `nix eval` in `tend-weekly` fail. Nothing here can fix it — it needs
an upstream lever,
[max-sixty/tend#1197](https://github.com/max-sixty/tend/issues/1197).
The `Install Nix` step stays (it is the half of the route this repo
owns, and `nix` still works for anything running as `runner`), and the
weekly skill now tells that session to report the failure and carry the
rest of the toolchain bump rather than treat it as a broken bump. **This
is the one degradation this PR ships rather than fixes.**

**Three skill claims the bump falsifies are corrected here** rather than
deferred. `nightly-cleaner.md` said `tend-ci-fix` "does not fire on runs
that end `cancelled`", which is exactly what changes above.
`running-tend`'s session-log path can no longer name a literal now that
the artifact directory is slugified from a per-run `/tmp` path. And its
statusline cache-check justified a debug build by `tend-setup`'s
rust-cache step being `save-if: false` under a key no workflow writes —
the step this PR removes; the conclusion survives on the simpler reason
that `tend-weekly` restores no Rust cache at all. That last section is
also trimmed back to the fact local to this repo, since the `find`
recipe it had grown to restate is already in the bundled skills.

## Verification

The regeneration is reproducible: `uvx tend@0.2.5 init` against the
edited `.config/tend.yaml` produced the eight workflow files with no
diff beyond the two removed `install` lines.

Everything else was read out of the pinned sources rather than run,
because no check in this repo exercises a tend job's sandbox — green CI
here is not evidence either way. The first real test of the
`/usr/local/bin` route is the first tend job on the new pin.

<details><summary>What was read, and what it establishes</summary>

- `shared/steps/sandbox_runtime.mjs@0.2.5` — `denyRead: [runnerHome,
runnerWorkspace]`, with `runnerHome` set from
`pwd.getpwuid(os.getuid()).pw_dir` in `proxy/setup_sandbox.py` (i.e.
`/home/runner`). The file does not exist at 0.2.0 and first appears at
0.2.1, so the boundary genuinely arrives with this bump.
- `shared/steps/sandbox_setup.py@0.2.5` — refuses to run unless
`TEND_INSIDE_SANDBOX=1`, and execs the adopter block as `bash -eo
pipefail -c`.
- `shared/steps/prepare_agent_workspace.py@0.2.5` —
`mkdtemp(prefix="tend-agent-workspace-", dir="/tmp")`, "`RUNNER_TEMP`
and the runner checkout are never handed to the agent".
- `@anthropic-ai/sandbox-runtime@0.0.75` README (the version
`claude/action.yaml` pins) — reads are allowed everywhere except
`denyRead`, which puts `/usr/local/bin` in the clear; Unix sockets are
"blocked by default on both platforms", the Linux filter "blocks
creation of `AF_UNIX` sockets by returning `EPERM`", and on Linux
`allowUnixSockets` path allowlisting is ignored, so
`allowAllUnixSockets` is the only lever.
- Probed from a live 0.2.0 session: `/usr/local/bin` is on the sandbox
PATH and world-writable on the runner image; `CARGO_TERM_COLOR`,
`CARGO_INCREMENTAL` and `RUSTFLAGS` are all unset in the agent's
environment, confirming that env block served the cache key alone.

</details>

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-09 03:37:52 -07:00
Worktrunk Botandworktrunk-bot 9bcc071222 ci: bump pinned Nushell to 0.115.1 (#3972)
## Summary

Weekly pin bump: Nushell 0.115.0 → 0.115.1 across all seven pinned
sites. Split from the week's other pin bumps
([#3971](https://github.com/max-sixty/worktrunk/pull/3971)) because the
shell-integration suite runs `--all-features`, so a Nushell version
change can move PTY snapshots — on its own branch, a red matrix decides
only this bump.

Sites moved together, per the weekly checklist: the five
`hustcer/setup-nu` `version:` inputs (`coverage.yaml`, `nightly.yaml`,
`benchmarks.yaml`, and both
`.github/actions/{test,tend}-setup/action.yaml`), plus the two places
that pin Nushell outside `.github/` and are kept level with `test-setup`
— `.codex/cloud.sh`'s `NU_VERSION` and `Taskfile.yaml`'s `setup-web`.

## Verification

The version is the current upstream release (`nushell/nushell`
`0.115.1`, published 2026-08-23). This PR's own `test
(linux|macos|windows)` and `full-tests` legs are where the snapshot
question actually gets answered — I have not run the PTY suite against
0.115.1 locally, since the weekly runner installs no Nushell.

<details><summary>Upstream changes in 0.115.1</summary>

A patch release, mostly completion and config fixes. Nothing that
obviously touches the prompt or wrapper surfaces worktrunk's snapshots
capture, but the completion and REPL changes are the ones to watch if a
snapshot does move:

- `fix(config): merge keybindings by name and key instead of name alone`
(#18870)
- `feat(completions): add a background-completions opt-out` (#18764)
- `fix(completions): keep the REPL usable when a completer runs fzf or
input list` (#18881)
- `Completor Fixes` (#18868)
- `allow $ans to still work after invalid operation` (#18863)
- `fix update to work better with custom values` (#18865)
- `allow boolean comparison with semver` (#18854)
- `Update h2 do to RUSTSEC-2026-0258` (#18875)

</details>

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-08-31 11:36:14 -07:00
Maximilian Roos e5f9589c5c Polish mobile docs terminals (#3936)
## Summary

- re-record and publish both mobile homepage demos with restored ANSI
colors
- preserve exact ANSI roles in every snapshot-backed website terminal
while keeping Markdown portable
- wrap source and command snippets on mobile, contain fixed terminal
tables, and add real WebKit layout and contrast regressions

The corrected GIFs are already published in `max-sixty/worktrunk-assets`
at `4de7bde`.

## Testing

- `cargo run -- hook pre-merge --yes` (4,721 tests passed, 1 skipped)
- `npm --prefix docs run check`
- `npm --prefix docs test`
- `npm --prefix docs run build`
- `npm --prefix docs run test:site`
- independent frame review of both mobile GIF themes
- independent architecture, systematic, and adversarial reviews

Closes #3930
Closes #3931

> _This was written by Codex on behalf of max-sixty._
2026-08-27 12:14:39 -07:00
Maximilian RoosandClaude Opus 5 6b0c0d0f4c ci(tend): assert nix reaches the sandbox alongside the rest of the toolchain (#3909)
`.config/tend.yaml`'s sandbox probe asserted four of the five tools the
agent needs. `nix` — installed by `tend-setup` for the weekly
`flake.lock` refresh — sat outside it, so a regression in that install
would have surfaced only once `tend-weekly` reached for `nix flake
update` and found nothing. That gap is not hypothetical: PR #3428 (`bump
MSRV and toolchain to 1.96`) was the bot, and it updated `Cargo.toml`,
`rust-toolchain.toml` and `tests/helpers/wt-perf/Cargo.toml` while
leaving `flake.lock` stale, because `nix` wasn't there.

`nix` reaches the sandbox by the route `nu` does: `install-nix-action`'s
multi-user daemon install puts `/nix/var/nix/profiles/default/bin` on
`$GITHUB_PATH`, a system path the sandbox PATH derivation carries across
verbatim. So it needs no `sandbox_setup:` line of its own, only the
probe entry. The error message now points at `.github/CLAUDE.md`'s
"Sandbox toolchain" section, since the old "wt hook pre-merge cannot
run" is false for a weekly-only tool.

The probe entry couples the install to every workflow: only
`tend-weekly` runs `nix`, but the probe runs everywhere, so the step can
no longer be gated to one. The `Install Nix` comment records that, in
place of the cost argument that used to carry the question.

Also here: `.github/CLAUDE.md` stated the sandbox PATH rule as
existence-only, where tend additionally requires the sandbox UID to
traverse the directory — the test that decides whether a root-owned
`/nix` carries across, and so the one a reader of that section will
want.

<details>
<summary>Why the install isn't cached, and why it isn't gated to
<code>tend-weekly</code></summary>

Measured from `##[end-action … duration_ms]` markers in four real tend
run logs. `Install Nix` takes **3.46 / 3.97 / 4.13 / 4.24 s** against
**~46–50 s** for the whole `tend-setup` composite, of which the
`rust-cache` restore alone is 26.0–28.5 s and apt (zsh, fish) is
10.9–12.9 s.

Within those 4 s, roughly half is downloading and unpacking the 25.8 MiB
tarball and the rest is creating the nixbld users, `/etc/nix`, the
store, and the `nix-daemon` systemd unit. That second half is root-level
system state no restored `/nix` reproduces, so the install itself is not
cacheable. Caching the *store* on top would serve only the weekly job's
flake fetches while costing a restore in every workflow.

The multi-user daemon install is also what makes `nix` reach the sandbox
at all, so the faster single-user installers are not substitutes.
`nixbuild/nix-quick-install-action` (~1 s) does `sudo install -d -o
"$USER" /nix` and puts only `$HOME/.nix-profile/bin` on `$GITHUB_PATH` —
which the `/home/runner` → `/home/tend-sandbox` rewrite drops, so `nix`
would leave the sandbox PATH entirely.

Self-installation by the agent was considered and rejected. The sandbox
user has no sudo, and the official Nix binary hardcodes its ELF
interpreter to `/nix/store/…-glibc-2.42-67/lib/ld-linux-x86-64.so.2`, so
it cannot run without a root-created `/nix`. A statically linked `nix`
does work for these two commands with no root — verified, using the
automatic `~/.local/share/nix/root` chroot store — but no maintained
build is published (`NixOS/nix` has no GitHub releases;
`releases.nixos.org` serves no static variant; Hydra's `buildStatic`
download URL now redirects to the manual), and a chroot store cannot
build anything.

Gating the install to `tend-weekly` was also rejected. It saves 4 s of a
~46 s setup on a public repo with free Actions minutes, `tend-ci-fix`
watches `nightly` (which hosts the `nix-flake` job) and would lose the
ability to reproduce a red nix build, and — because `sandbox_setup:` is
top-level only in tend's config and cannot see which workflow it is in —
gating would force dropping the probe entry that this PR adds.
max-sixty/tend#1057 removes that last constraint for future cases.

</details>

## Testing

The probe loop was exercised both ways locally under `bash -eo
pipefail`: exit 0 with all five names resolvable, exit 1 naming the
first missing one otherwise. `uvx tend@latest init` (0.1.18, matching
the pinned action) regenerates all eight workflows with exactly the one
changed line each, and re-running it is a no-op. `pre-commit run
--all-files` and `cargo test --test integration test_docs_are_in_sync`
pass.

The probe line itself can only run after merge: the `tend` environment
admits only `main`, so `workflow_dispatch` from this branch is refused,
and `tend-review` here runs under `pull_request_target` against the base
ref, so it exercises `main`'s four-tool probe. The premise underneath it
is verified, though — this PR's own `tend-review` session runs as
`tend-sandbox` with `main`'s `tend-setup` behind it, which already
installs Nix, so it checked the route directly: `command -v nix`
resolves to `/nix/var/nix/profiles/default/bin/nix` (2.35.2), `nix flake
--help` works with `experimental-features = nix-command flakes`
inherited from the system-wide `/etc/nix/nix.conf`, and `nix store info`
reports `Store URL: daemon`. So the added name cannot turn the eight
workflows red, and the weekly recipe's two commands work from the
sandbox rather than just its binary being present.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-25 15:01:56 -07:00
Maximilian RoosandClaude Opus 5 68cc911eb2 ci(tend): reach the pre-merge gate's tools from inside the sandbox (#3897)
The agent tend runs as, `tend-sandbox`, could not reach `cargo-insta`,
`cargo-nextest`, or `pre-commit` — all three of the tools `cargo run --
hook pre-merge --yes` invokes. That command is what `CLAUDE.md` and
`.claude/skills/running-tend/SKILL.md` tell the bot to verify its work
with, and in the sandbox it died at `✗ pre-merge command failed:
pre-commit: exit status: 127`.

Tend derives the sandbox's PATH from the runner's, rewriting a leading
`/home/runner` to `/home/tend-sandbox` and keeping an entry only where
the rewritten directory exists. `useradd -m` seeds the sandbox home from
`/etc/skel`, so a toolchain baked into the runner image has a sibling
there and survives; anything `tend-setup` installs at runtime into the
runner's home has none and is dropped, with nothing logged.
`baptiste0928/cargo-install` forces `--root
$HOME/.cargo-install/<crate>` and `uv tool install` writes to the
runner's `~/.local/bin`, so all three went the second way. `uv` itself
stayed reachable only because `astral-sh/setup-uv` puts it under
`/opt/hostedtoolcache`, a system path the rewrite leaves alone.

`sandbox_setup:` runs as the sandbox user once its PATH is built, with
`~/.local/bin` already first on it. `pre-commit` installs into the
sandbox's own home so uv's shim shebang resolves there; the cargo
binaries are copied from where `tend-setup` already built them, at the
versions pinned there. The closing probe is the assertion —
`sandbox-setup.sh` runs the block under `bash -eo pipefail`, so a tool
that goes missing again fails the job and files a `tend-outage` issue
naming it, rather than degrading quietly.

A fourth tool needed the same treatment by a different route. The gate's
`insta` step runs `--all-features`, which turns on
`shell-integration-tests`; that needs `nu` as much as zsh and fish, and
two tests `.expect()` it outright. `tend-setup` apt-installed only zsh
and fish, so the probe would have cleared the agent to run a gate that
then died on a missing shell. `hustcer/setup-nu` installs under
`/opt/hostedtoolcache`, a system path the derivation carries across
verbatim, so `nu` needs no `sandbox_setup:` line — it just needed
installing. Pinned at 0.115.0, level with `test-setup` and
`dev/codex.sh`; `running-tend`'s weekly pin-bump recipe enumerates the
`setup-nu` call sites, so it gains the fifth.

The remaining `shell-integration-tests` prerequisites — bash, zsh, fish,
pwsh, jq — all resolve from `/usr/bin`, which the derivation keeps, so
they were never affected. The probe deliberately covers only the four
tools `tend-setup` provisions for the agent rather than everything the
gate touches.

The generated `tend-*.yaml` files are `uvx tend@latest init` output
(still 0.1.18); the only change in each is the `sandbox_setup:` block.

#3891 landed mid-review and appended its Nix steps at the same
end-of-file anchor as the nushell step, so this branch carries a merge
resolving that — keeping both, nushell next to the shells it belongs
with. Its Nix comment restated the "system PATH entries carry into the
sandbox verbatim" rule that this PR centralizes in `.github/CLAUDE.md`,
which would have left the rule written three times in one file, so it
now points there and keeps only what's specific to Nix. Every #3891 step
is unchanged.

<details><summary>Evidence, and what it cost</summary>

Sandbox PATH, captured from the agent's own launch env in tend-weekly
run 32630901712:

```
/home/tend-sandbox/.local/bin:/opt/hostedtoolcache/uv/0.12.5/x86_64:/opt/pipx_bin:/home/tend-sandbox/.cargo/bin:/usr/local/.ghcup/bin:/home/tend-sandbox/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
```

`error: no such command: insta` appears in runs 31332910927, 31465475753
and 32436240803; `pre-commit: command not found` in 32662391023. Across
3,057 captured Bash calls the bot never once invoked `cargo nextest`,
and substituted `cargo test` with `INSTA_UPDATE=always` or
`INSTA_FORCE_UPDATE=1` fifteen times — which writes snapshots rather
than checking them, and never runs `--check` or `--unreferenced reject`.

Since 2026-06-18, when #3122 moved the repo to tend 0.1.6 and the agent
first ran sandboxed, 16 of 197 bot PRs pushed a first commit with the
`lint` job red. Over the same window 4 of 350 of the maintainer's own
PRs did. #3845 is the shape: a closure `cargo fmt` wanted on one line,
caught by CI rather than locally.

Verified by simulating the block under `bash -eo pipefail` against a
fake runner home, in both directions: all three tools land on PATH and
it exits 0; remove one and it prints the `::error::` naming it and exits
1. Two things changed after that test — `install -D` is GNU-only, so the
parent directory is created explicitly, and `command -v a b c` exits 0
when any one resolves, so the assertion is a loop rather than a single
call.

</details>

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-24 09:11:01 -07:00
Maximilian RoosandClaude Opus 5 2960bfba2a ci(tend-setup): install Nix so the weekly bot can refresh flake.lock (#3891)
The weekly MSRV/toolchain bump has to refresh `flake.lock` after moving
`rust-toolchain.toml`, and `running-tend` told the bot to install Nix
inside its own session with the Determinate installer. That could never
work: tend runs the agent as a sandbox user created with plain `useradd`
and never granted sudo, so an installer that has to create `/nix` fails
on every run. The `nix eval` check below it was downstream of the same
dead installer.

Nix now gets provisioned in the layer that does have root.
`.github/actions/tend-setup` runs as `runner` before the tend action
starts, so `cachix/install-nix-action` succeeds there — the same action
`nightly.yaml`'s `nix-flake` job already uses. The skill's recipe
becomes `nix flake update` plus `nix eval`.

The codecov section also loses its parenthetical blessing "pre-built
single-script installers like Determinate Nix's", which pointed at the
recipe this removes.

<details>
<summary>Why the sandbox agent sees <code>nix</code> without a
<code>sandbox_path:</code> entry</summary>

Installing as `runner` is necessary but not sufficient — the agent runs
as a different UID with a `PATH` tend derives from the runner's. Each
link was checked against a source or a live run rather than assumed:

| Link | Evidence |
|------|----------|
| The action performs a multi-user install and appends
`/nix/var/nix/profiles/default/bin` to `$GITHUB_PATH` | `install-nix.sh`
takes the daemon branch when `/run/systemd/system` exists, then `echo
"/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"`. The nightly
`nix-flake` job's log shows `installer options: … --daemon
--daemon-user-count 8` |
| tend keeps that entry verbatim | `proxy/setup-sandbox.sh` rewrites
only PATH entries under the runner's home to the sandbox's own copy;
other entries survive if they exist and `sudo -u <sandbox> test -x`
passes |
| …and it does so in practice | A live sandbox `PATH` captured in
tend-weekly run `32630901712` keeps `/opt/pipx_bin`,
`/opt/hostedtoolcache/uv/0.12.5/x86_64`, `/usr/local/.ghcup/bin` and
`/usr/local/bin` verbatim, while rewriting `.cargo/bin` and
`.dotnet/tools` to `/home/tend-sandbox/…`.
`/nix/var/nix/profiles/default/bin` is the first shape, not the second |
| The sandbox UID can traverse it | Nix's `install-multi-user.sh`
creates `/nix`, `/nix/var`, `/nix/var/nix`, `/nix/var/nix/profiles` with
`install -dv -m 0755`, and `/nix/store` with `-m 1775` |
| An unprivileged, non-trusted user can drive the daemon | The daemon's
listening socket is created with `.socketMode = 0666` |
| Fetching works through tend's MITM proxy | `libfetchers/tarball.cc`
fetches in the evaluating client, not the daemon, so it inherits the
sandbox's `https_proxy`. `FileTransferSettings::getDefaultSSLCertFile()`
honours `SSL_CERT_FILE`, which the sandbox sets to the bundle
`update-ca-certificates` put the proxy CA into |

`.config/tend.yaml` is untouched. The first weekly run after this merges
is what confirms the chain end to end.

</details>

A second step then strips a credential the install would otherwise leave
lying around, while `runner` is still the only unprivileged user on the
machine — tend does not create the sandbox user until its own action
starts.

`install-nix.sh` writes `access-tokens = github.com=<job token>` into
`/etc/nix/nix.conf` whenever it can see one, and the action's
`action.yml` passes `GITHUB_TOKEN: ${{ github.token }}` unconditionally,
so `github_access_token: ""` does not suppress it — the script falls
through to the job token. The installer creates `/etc/nix` at `0555` and
`nix.conf` at `0644`, so a sandboxed agent could `cat` a token carrying
`contents: write` and `pull-requests: write`.

That matters more than it first appears. The agent already wields the
bot's identity on GitHub, because the proxy injects it per-request — but
it never *holds* a secret, and nothing blocks egress, so a token in a
readable file could be carried to any host through the CONNECT tunnel.
The step deletes the line and fails if one survives. Nix loses nothing
by it, since the proxy overwrites `Authorization` on every sandbox
request to `github.com`, `codeload.github.com`, and `api.github.com`
regardless of what nix sends.

`DeterminateSystems/nix-installer-action` would avoid the write instead
of undoing it — `github-token: ""` maps to `null` and the
`access-tokens` line is then never appended. That was weighed against a
second Nix installer in the repo, with its own pin for the weekly bump
pass to track, and against `nightly.yaml`'s `nix-flake` job wanting the
opposite (it passes `access-tokens` deliberately, for the rate limit).
One installer plus an explicit scrub won.

Cost is ~4 s, measured off the `Install Nix` step in nightly run
`32592923294`, so every tend workflow pays it rather than gating on
which one is running.

The recipe names the input — `nix flake update rust-overlay` — so a
toolchain-scoped PR doesn't also relock nixpkgs, and says what to do
when `nix` is absent (report that `tend-setup` regressed; don't
hand-compute a lock entry, which is how this failed the first time).

### Overlaps [#3880](https://github.com/max-sixty/worktrunk/pull/3880)

That PR arrived at the same fix independently while this branch was in
flight, then dropped its own `install-nix-action` step; it no longer
touches `.github/actions/tend-setup/action.yaml` at all. Both still edit
the same section of `running-tend`, and they merge without conflict
(`git merge-tree --write-tree`, zero markers) because the wording
converged. #3880 carries the weekly work this unblocks — the MSRV bump,
`flake.lock`, and nightly's `rustup` pins — and its recipe now calls a
`nix` only this PR installs, so it wants this to land first.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-24 08:39:56 -07:00
Maximilian Roos e3adde218f ci: share the docs build action (#3874)
PR validation, nightly link checking, and docs publishing each had their
own copy of the Astro setup and build steps. This moves that sequence
into one local composite action and makes all three jobs run the same
checks, asset fetch, build, and built-site tests.

The workflow path filters now include the shared action, so changes to
it exercise PR validation and the publishing path.

The single `setup-node` pin is v7, superseding the three-copy bump in
#3869.

Tested with the full docs command sequence, Actionlint, YAML validation,
and action metadata validation.

> _This was written by Codex on behalf of @max-sixty_
2026-08-22 12:10:18 -07:00
Worktrunk Botandworktrunk-bot 9c37aae5b9 ci(tend-setup): bound apt-get so a wedged mirror can't burn the job cap (#3855)
Five tend jobs on 2026-08-18/19 hung in `tend-setup`'s `sudo apt-get
update` and were killed at GitHub's 360-minute job cap, each burning six
hours without ever booting the agent. The two calls are now bounded with
`timeout 300`, so an unreachable mirror fails the job in five minutes
instead of six hours. Verification is the next tend run: a healthy
`apt-get update` on these runners takes ~15 s, so a green setup step
confirms the bound is headroom rather than a new failure mode.

The cost isn't only compute. `tend-review`
[32095910705](https://github.com/max-sixty/worktrunk/actions/runs/32095910705)
was the only review #3843 was ever going to get — `pull_request_target`
doesn't re-fire without a push, and that dependabot PR merged at 15:52Z
with `reviews: []` while its review job sat in apt. That is the "missed
review, not late review" case
[max-sixty/tend#962](https://github.com/max-sixty/tend/issues/962) was
closed pending; I've posted the evidence there, since the job-level
`timeout-minutes` question it raises belongs upstream and is a sizing
call, not a bug fix.

<details><summary>Evidence: the five wedged runs</summary>

All five died in the same step (`__self.__run_2`, `Install shells (zsh,
fish)`), with the same `duration_ms` — ~21.59 M, i.e. the 360-minute cap
— and the same terminal `##[error]The operation was canceled.` GitHub
reports a job-timeout kill as `cancelled`, which is why none of them
show as `failure`.

| run | workflow | started | killed | step duration | what it stranded |
|---|---|---|---|---|---|
|
[32095910705](https://github.com/max-sixty/worktrunk/actions/runs/32095910705)
| tend-review | 08-18 03:33Z | 09:33Z | 21,591,590 ms | #3843 merged
unreviewed |
|
[32223334370](https://github.com/max-sixty/worktrunk/actions/runs/32223334370)
| tend-nightly | 08-19 06:25Z | 12:25Z | 21,587,692 ms | one nightly
sweep (next tick recovered) |
|
[32226926018](https://github.com/max-sixty/worktrunk/actions/runs/32226926018)
| tend-mention | 08-19 07:14Z | 13:15Z | 21,608,063 ms | `max-sixty`'s
"can we simplify?" on #3846 |
|
[32230273316](https://github.com/max-sixty/worktrunk/actions/runs/32230273316)
| tend-review-runs | 08-19 07:57Z | 13:57Z | 21,596,592 ms | the 08-19
sweep (this run's window widened to 48 h to cover it) |
|
[32232437597](https://github.com/max-sixty/worktrunk/actions/runs/32232437597)
| tend-notifications | 08-19 08:24Z | 14:24Z | 21,593,512 ms | one poll
(next tick recovered) |

The last log line before each six-hour silence is mid-`apt-get update`,
in the mirror-fallback loop — repeated `Ign:` against
`azure.archive.ubuntu.com`, then `Get:` against `archive.ubuntu.com`,
then nothing:

```
2026-08-19T07:59:14.1259813Z Ign:14 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
2026-08-19T07:59:14.1262122Z Ign:15 http://azure.archive.ubuntu.com/ubuntu noble-updates/main Translation-en
[ ~6 hours of nothing ]
2026-08-19T13:57:55.8550938Z ##[error]The operation was canceled.
```

Because the kill lands before the tend action's failure handler, none of
the five uploaded a session-log artifact or filed a `tend-outage` row —
the outage issue was empty all window, and only the run census caught
them.

The stranded mention did recover, but slowly and by accident:
`tend-notifications`
[32258453408](https://github.com/max-sixty/worktrunk/actions/runs/32258453408)
picked up the unanswered comment at 13:30Z and replied at 13:36Z, 6 h 22
m after it was posted, at $3.00. The safety net worked; it isn't a
substitute for the job not wedging.

</details>

<details><summary>Why `timeout(1)` and not `timeout-minutes`</summary>

`timeout-minutes` isn't among the keys accepted on a step inside a
composite action — [the metadata-syntax
reference](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax)
lists `run`, `shell`, `if`, `name`, `id`, `env`, `working-directory`,
`uses`, `with`, `continue-on-error` and nothing else — so the bound has
to live in the `run:` body. `sudo timeout …` rather than `timeout sudo
…` puts the timer inside the privileged process, so it can signal apt
directly. `-k 30` is what makes the bound a bound: plain `timeout` sends
SIGTERM and then gives up, so an apt — or one of the acquire-method
children it spawns — that doesn't die on that signal would run the step
back out to the 360-minute cap with a bound in place that reads as if it
applied. Either exit fails the step: 124 when SIGTERM lands it, 137
after the SIGKILL escalation.

Scoped to `tend-setup` because that's where the five occurrences are and
where no human is watching a wedged job. The same unbounded `sudo
apt-get update` appears in `.github/actions/test-setup/action.yaml`,
`nightly.yaml` (×2), `coverage.yaml`, and `benchmarks.yaml` — identical
exposure, zero observed occurrences, and a hang there is loud because it
blocks a PR someone is waiting on. Happy to widen if you'd rather have
it uniform; it seemed like your call rather than mine.

</details>

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-08-20 15:14:05 -07:00
Worktrunk Botandworktrunk-bot a06102fdd5 ci(tend-setup): restore the shared rust cache instead of dropping it (#3846)
`tend-setup`'s rust-cache step never restored anything: it looked up
`prefix-key: hashFiles('Cargo.lock')` with no `shared-key`, and computed
its environment hash before `Set build environment` ran, while the
shared cache it could restore is published as `v1-rust`/`shared` with
`CARGO_TERM_COLOR`/`CARGO_INCREMENTAL`/`RUSTFLAGS` already set. This
points it at the shared keys and moves that env step above the cache
step, so a tend job computes
`v1-rust-shared-Linux-x64-6966df26-<lockfile hash>` — the exact key
`test` writes from main. Verified by reproducing rust-cache's key
arithmetic offline: the same hash function that yields today's missing
`dc9f6f9f` from the tend job's environment yields the writer's
`6966df26` from the post-fix one.

One behavior change rides along: `RUSTDOCFLAGS=-Dwarnings` is dropped
rather than worked around. It is the only var here no cache writer sets,
so above the cache step it poisons the key and below it needs a second
env step — and it is redundant either way, since both rustdoc gates set
it inline in `.config/wt.toml` (`doctest`, `doc`), which is what
ci.yaml's `fast-checks` already relies on; that workflow sets no
`RUSTDOCFLAGS` of its own.

<details><summary>The key arithmetic, and how it was verified</summary>

## What was wrong

The shared cache is written by the jobs that call `test-setup` without
`save-cache: false` — `test` and `fast-checks` in ci.yaml, `full-tests`
in nightly.yaml — which publish the Linux entry as
`v1-rust-shared-Linux-x64-6966df26-709538b9` (1034 MB, [run
32157064498](https://github.com/max-sixty/worktrunk/actions/runs/32157064498)).
The nightly tend job
([32106850263](https://github.com/max-sixty/worktrunk/actions/runs/32106850263))
computed `dac153ac…d7975-nightly-Linux-x64-dc9f6f9f-709538b9` and
printed `No cache found.` Three independent mismatches:

1. **prefix** — `hashFiles('Cargo.lock')` vs `v1-rust`.
2. **shared-key** — absent, so rust-cache substitutes the job name
(`nightly`, `handle`, `review`, …) where the writer has `shared`.
3. **env hash** — `dc9f6f9f` vs `6966df26`. Both jobs list the same two
toolchains and the same lockfile hash (`709538b9`); the difference is
entirely which `CARGO*`/`RUST*` vars were exported by the time the cache
step ran. The writer's are `CARGO_INCREMENTAL`, `CARGO_TERM_COLOR`,
`RUSTFLAGS`; the tend job's was `CARGO_INCREMENTAL` alone, because `Set
build environment` sat at the *end* of the composite.

## Verification

rust-cache builds that hash in
[`src/config.ts`](https://github.com/Swatinem/rust-cache/blob/v2/src/config.ts):
sha1 over each installed toolchain's `<release> <host> <commit-hash>`,
then each matching `KEY=VALUE` in sorted key order, truncated to 8 hex
chars. Replaying it against the environments both jobs logged reproduces
both observed hashes exactly, which is what makes the third prediction
trustworthy:

```python
import hashlib
rust = ["1.96.0 x86_64-unknown-linux-gnu ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96",
        "1.97.1 x86_64-unknown-linux-gnu 8bab26f4f68e0e26f0bb7960be334d5b520ea452"]

def env_hash(pairs):
    h = hashlib.sha1()
    for r in rust: h.update(r.encode())
    for k, v in sorted(pairs): h.update(f"{k}={v}".encode())
    return h.hexdigest()[:8]

INCR = ("CARGO_INCREMENTAL", "0")
COLOR = ("CARGO_TERM_COLOR", "always")
FLAGS = ("RUSTFLAGS", "-C debuginfo=0")
DOC = ("RUSTDOCFLAGS", "-Dwarnings")

env_hash([INCR])                      # dc9f6f9f — tend today, matches the logged miss
env_hash([INCR, COLOR, FLAGS])        # 6966df26 — the writer, and this PR
env_hash([INCR, COLOR, DOC, FLAGS])   # 2c91e6ea — RUSTDOCFLAGS kept above the step
```

The third line is why `RUSTDOCFLAGS` had to be dealt with rather than
left alongside the other three: it sorts between `CARGO_TERM_COLOR` and
`RUSTFLAGS`, and no writer sets it, so including it produces a key
nothing has written — the same silent miss, differently caused.

`cache-bin` is the fourth field that had to move, and it is not part of
the key string: it decides the *paths* list, and `actions/cache` derives
an entry's version from those paths — so the old `cache-bin: true` (six
paths, including `~/.cargo/bin`) would have missed the writer's
three-path entry even with a correct key. One incidental detail, since
it explains an odd line in the logs: `CARGO_INCREMENTAL` shows up in the
tend job's considered set even before anything exported it, because
rust-cache's own `restore.ts` calls
`core.exportVariable("CARGO_INCREMENTAL", 0)` first. It is equal on both
sides either way; the composite exports it regardless, to keep the three
in step with ci.yaml's `env:` block for the builds that follow.

There is no live check before merge, and that's worth being explicit
about: every tend workflow runs this composite against the **base** tree
— tend-review is `pull_request_target`, and the scheduled workflows
check out `main` — so this PR's own tend runs still load main's version
and log the old `dac153ac…-review-Linux-x64-dc9f6f9f` key and `No cache
found.` The first tend run after this merges is the confirmation; a
wrong answer shows up as a `No cache found.` line in that job's Cache
Configuration group.

## Cost

A restore moves ~1 GB and takes ~35 s, against ~13 s previously spent
computing a key nothing had written. Compiling sessions win that back
many times over (the nightly session ran 5 `cargo test` invocations plus
clippy and fmt; a Zola-migration session ran 17, with one `--lib --bins`
+ integration block occupying 15.6 min of its 68). No workflow pays it
on an idle tick. `tend-notifications` polls every ~15 min, but its
`actions/checkout` and `tend-setup` steps carry the same
`steps.check.outputs.count != '0' || github.event_name ==
'workflow_dispatch'` condition as the agent step, so a poll that finds
nothing to process skips the composite entirely. Every run that restores
the cache is a run that boots a session — which is where the compiles
are — so the per-workflow carve-out an earlier revision of this
description offered isn't needed.

## History

The key had been untouched since the action was created in #1273
(2026-03-05). #3323 (2026-06-29) introduced the `v1-rust`/`shared`
scheme and moved every other consumer onto it — nightly.yaml's two
restore-only blocks and benchmarks.yaml read identically today — but
didn't reach this file. Observed as a miss on three consecutive daily
sweeps (2026-08-16/17/18), recorded in #3691. The composite was renamed
`claude-setup` → `tend-setup` by #3849 while this PR was open; main is
merged in here, so the change lands on the new path.

</details>

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-08-19 11:59:04 -07:00
Worktrunk Bot 50a5edb412 ci: rename the claude-setup composite to tend-setup (#3849) 2026-08-19 00:14:55 -07:00
Worktrunk Botandworktrunk-bot 1b278042de chore(ci): weekly renovation 2026-08-16 (#3826)
## Summary

Weekly CI renovation check found the following updates:

- `worktrunk`: 0.72.0 → 0.74.0 (MSRV 1.96, compatible with our 1.96.0) —
`ci.yaml` ×2, `nightly.yaml`
- `nushell`: 0.114.1 → 0.115.0 — `nightly.yaml`, `benchmarks.yaml`,
`coverage.yaml`, `actions/test-setup`, and
`scripts/codex-cloud/Taskfile.yaml`
- `pre-commit`: 4.6.1 → 4.6.2 — `scripts/codex-cloud/Taskfile.yaml`
- `PowerShell`: 7.6.4 → 7.6.5 — `scripts/codex-cloud/Taskfile.yaml` and
the root `Taskfile.yaml`'s `setup-web` task

The Codex Cloud archive checksums were recomputed from the new upstream
tarballs, and the resulting `Taskfile.yaml` digest (`f14dbc89…`) is
copied into both README launcher commands.

The `setup-web` PowerShell pin came in as a follow-up commit: the
initial sweep only grepped `.rs`/`.md`/`.toml` for stale versions, so
the root `Taskfile.yaml`'s `PWSH_VERSION="7.6.4"` was missed. Nothing
tests the two PowerShell pins against each other, so that one drifts
silently — worth a note for future renovation runs. The
`powershell_7.6.5-1.deb_amd64.deb` asset the `setup-web` branch
downloads is present in the v7.6.5 release.

## Already up to date

- Rust stable is 1.97.1, so MSRV and toolchain stay at 1.96 (latest
stable − 1) — `Cargo.toml`, `tests/helpers/wt-perf/Cargo.toml`,
`rust-toolchain.toml` need no change, and `flake.lock` is untouched.
- `cargo-insta` 1.48.0, `cargo-nextest` 0.9.143, `cargo-llvm-cov` 0.8.7,
`cargo-msrv` 0.19.3, `cargo-affected` 0.4.0, `cargo-udeps` 0.1.61,
`lychee` 0.24.2
- Task 3.52.0 (mise, Codex Cloud)
- Runner images: ubuntu-24.04, macos-15, windows-2022

## Held back: zola 0.22.1 → 0.23.3

Not bumped. Zola 0.23.0 shipped [Tera2 +
refactoring](https://github.com/getzola/zola/pull/3105), which is a
templating-engine swap rather than a routine release. Building `docs/`
with the 0.23.3 binary fails at the first line of `templates/base.html`:

```
ERROR error: Unknown tag
 --> base.html:1:4
  |
1 | {% import "macros.html" as macros %}
  |    ^^^^^^
```

`templates/base.html` and `templates/macros.html` are the two files that
use the `import`/`macro` pair, so the migration looks small, but it is
template work with its own review rather than a pin bump — kept out of
this PR so the rest can land. Raised separately.

<details><summary>Verification</summary>

- Every version above was read from the upstream source of truth:
`crates.io` for the cargo tools, `nushell/nushell` and
`PowerShell/PowerShell` releases, PyPI for pre-commit, and
`static.rust-lang.org/dist/channel-rust-stable.toml` for Rust stable
(1.97.1).
- Checksums were computed from the downloaded archives and the extracted
binaries were run (`nu --version` → `0.115.0`); the archive layouts
(`nu-<ver>-x86_64-unknown-linux-gnu/nu`, top-level `pwsh`) are
unchanged, so the `install_binary` paths still resolve.
- All six edited YAML files parse.
- The nushell bump was exercised against the shell-integration suite:
`cargo test --features shell-integration-tests --test integration --
nushell` with 0.115.0 on `PATH`. 13 of 14 pass;
`test_nushell_install_target_is_a_vendor_autoload_dir` fails — but it
fails identically on the currently-pinned 0.114.1, and passes on *both*
versions when run alone. It is a pre-existing shared-state race in the
sandbox, not a regression from this bump: the test asserts against the
real user `$nu.vendor-autoload-dirs` entry rather than one under its
temp `HOME` (nu resolves the home dir from the passwd database, so the
test's `HOME` override does not move it), and a sibling uninstall test
in the same filter removes `wt.nu` from that shared directory. Noted
rather than fixed here — it is unrelated to the pins.
- The zola failure above was reproduced with the official 0.23.3
`x86_64-unknown-linux-gnu` release binary against this repo's `docs/`.

</details>

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-08-17 01:48:26 -07:00
Worktrunk Botandworktrunk-bot ec574b6c35 ci: bump pinned cargo-nextest 0.9.143 and worktrunk 0.72.0 (#3783)
## Summary

Weekly CI pin check found the following drift (these inline `version:`
strings are invisible to Dependabot — it follows `Cargo.toml` deps and
`uses: foo@vN` refs, not pinned versions inside `with:` blocks):

- `cargo-nextest`: 0.9.140 → 0.9.143 (MSRV 1.91, compatible with our
1.96) — pinned in `coverage.yaml`, `actions/test-setup`, and
`actions/claude-setup`; all three moved together.
- `worktrunk`: 0.71.0 → 0.72.0 (MSRV 1.96, compatible with our 1.96) —
the CI-installed `wt` that runs `wt hook pre-merge`, bumped to the
current release; pinned in `ci.yaml` (×2) and `nightly.yaml`.

## Already up to date

- `cargo-affected`: 0.4.0, `cargo-insta`: 1.48.0, `cargo-llvm-cov`:
0.8.7, `cargo-msrv`: 0.19.3, `cargo-udeps`: 0.1.61, `lychee`: 0.24.2
- `hustcer/setup-nu` (nushell): 0.114.1 — matches the current nushell
release across all four call sites
- Runner images: ubuntu-24.04, windows-2022

## Notes

- windows-2022 stays pinned
([actions/runner-images#12677](https://github.com/actions/runner-images/issues/12677)
— windows-2025 lacks the D: drive).
- **cargo-nextest 0.9.143 has nothing config-facing to adjust.** The
0.9.140 → 0.9.143 range is dynamic-library-search-path fixes (build-dir
layout v2, `build.build-dir`, `[[example]]` targets), archive filterset
fixes, an opt-in `junit.report-skipped` setting we don't set, and a
listing progress bar. The one behavior change — ordering the Cargo
artifact directory ahead of `deps` on the dylib search path, matching
Cargo since 1.93 — doesn't affect this repo, which links no `dylib`
dependency.
- **worktrunk 0.72.0 is only exercised through `wt hook pre-merge`** in
these three jobs, so the release's `wt merge` / `wt step push` two-tree
changes and the `branch_outcome` JSON rename don't reach CI. The
relevant one is the opposite direction: 0.72.0 fixes `wt` writing ANSI
to a pipe and exiting 101 on `Broken pipe`, which is exactly the non-tty
shape these jobs run in.
- **`zola` is deliberately left at 0.22.1** — see below.

## Deferred: zola 0.22.1 → 0.23.2

`taiki-e/install-action`'s `tool: zola@0.22.1` in `check-docs` (and the
matching pin in `publish-docs.yaml`) is behind, but 0.23.0 is not a
routine bump. Upstream calls it "probably the most breaking version of
Zola that will happen"
([CHANGELOG](https://github.com/getzola/zola/blob/master/CHANGELOG.md)):
**shortcodes are removed entirely** and Tera is updated to v2 with its
own [migration
guide](https://github.com/Keats/tera/blob/master/MIGRATION.md).
`docs/templates/shortcodes/` and `docs/templates/macros.html` both
exist, so this needs a real docs-site migration rather than a
version-string change, and it would land in the same PR as the live-site
publish pin. Left for a separate change; flagging it here so it isn't
silently skipped each week.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-08-09 04:56:50 -07:00
Worktrunk Bot d7e3aac9a0 ci: bump pinned tool versions (cargo-nextest, worktrunk, nushell) (#3429) 2026-07-12 08:16:40 -07:00
Worktrunk Bot 0beeb3b738 chore(ci): weekly renovation 2026-07-05 (#3368) 2026-07-05 06:51:48 -07:00
Maximilian RoosandClaude Opus 4.8 16027a6a58 fix(ci): install zsh/fish via apt-get, drop cache-apt-pkgs-action (#3324)
## What this does

Removes the third-party `awalsh128/cache-apt-pkgs-action` from CI
entirely, installing zsh + fish with a plain `sudo apt-get update &&
sudo apt-get install -y zsh fish` at all four call sites:

- `ci.yaml` — `code-coverage`
- `nightly.yaml` — `feature-powerset` and `benchmarks`
- `.github/actions/test-setup/action.yaml` — composite action used by
the required `test` matrix

It also drops the Dependabot `ignore` entry for the action (no longer
needed once the action is gone).

## Why (and why this supersedes #3321)

`awalsh128/cache-apt-pkgs-action@v1.6.2` (dependabot bump #3311) empties
its own `packages: zsh fish` argument in the "Normalizing package list"
step and aborts with `Packages argument is empty`, in ~20s, before any
compilation — killing `code-coverage` on every PR, which in turn stopped
`codecov/patch` from posting anywhere. Root cause is upstream PR #177
quoting `${packages}`, tracked at
[awalsh128/cache-apt-pkgs-action#210](https://github.com/awalsh128/cache-apt-pkgs-action/issues/210).

#3321 already fixed main by pinning back to `v1.6.1`. This PR takes the
sturdier route — dropping the dependency — based on the upstream's
health:

- Issue #210 is open with **no maintainer engagement**; affected users
call the action "basically non-functional," with a fresh repro confirmed
on 2026-06-29.
- **No open PR** reverts #177 or fixes the regression; v1.6.2 (broken)
is still tagged `Latest`, and contributor PRs sit unmerged for months.
- The action's mutable `v1`/`latest` tags are actively being retargeted
upstream (open PR #211), which is how a `@v1.6.1` ref can resolve to
drifted code — so even the pin isn't a stable anchor.

`zsh` and `fish` are in the standard Ubuntu repos (no PPA), so the
action only *cached* an install of two tiny packages — a negligible
speed-up for a third-party dependency that is under-maintained, broke CI
repo-wide, and can't be stably pinned. Dropping it removes the whole
failure class and matches the existing `musl-tools` install already in
`nightly.yaml`. Verified: the identical `apt-get` step already runs
green in the required `test (linux)` job (installs zsh 5.9 + fish
3.7.0), and a full `code-coverage` run on this branch completed green
end-to-end with `codecov/patch` posting again.

## Guard against recurrence

#3311 merged while its own `code-coverage` was red because
`code-coverage`/`codecov/patch` aren't *required* status checks (only
`test (linux/macos/windows)` are), and `codecov/patch` was absent rather
than red (the job died before uploading), so the mechanical-bump merge
saw nothing blocking. Recommended guard: make the `code-coverage` job a
required status check — it fails only on genuine breakage (the codecov
upload already soft-fails on fork PRs), so it blocks this class without
re-introducing the flake that keeps `codecov/patch` itself advisory.

> _This was written by Claude Code on behalf of max_

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 16:48:37 -07:00
Maximilian RoosandClaude Opus 4.8 225b232b51 ci: gate rust caches to main and share one per OS to fit the 10 GB cap (#3323)
## What

The Actions cache sat at **11.1 GB across 57 caches** against GitHub's
hard **10 GB per-repo cap**, so every run was evicting older caches
LRU-style — constant churn. ~57% of that was single-PR caches
(`refs/pull/N/merge`) that no other PR can ever restore, depositing
budget that evicted the reusable `main` caches.

## Changes

- **`save-if` gated to `main` on every rust-cache call.** PRs restore
`main`'s cache via the restore-key fallback and never deposit their own.
This alone drops the footprint under the cap.
- **One shared cache per OS for the test family.** `test-setup` now sets
`shared-key`, with `test` as the sole saver (new `save-cache` input,
default `true`); `affected-tests` / `collect-affected` /
`release-target` pass `save-cache: "false"`. The PR-only
`affected-tests` job needed this most — it never runs on `main`, so a
per-job key had no baseline and cold-built every PR; it now rides
`test`'s `main` cache.
- **Nightly/release jobs stop saving.** Stable ones (`feature-powerset`,
`benchmarks`, `crate-build`) restore the shared cache read-only; the
nightly-toolchain ones (`check-unused`, `minimal-versions`) and the
cross-target `release-target` just don't save — near-zero reuse against
the cap.
- **`cache-bin: false` applied to the v0 jobs too** (`lint`,
`feature-check`, `msrv`, `code-coverage`), closing the latent
rustup-proxy bug that `test-setup` already guarded against.

## Deliberate non-changes

- `lint` / `feature-check` / `code-coverage` keep their own `main`-gated
caches rather than joining the shared one. They build divergent
artifacts (clippy-check, `--no-default-features`,
coverage-instrumented), and we're no longer space-constrained after the
above — a right-sized own cache beats a 1.3 GB restore for partial
reuse.
- Did **not** add PRQL's `Cargo.lock`-hash-in-prefix-key: rust-cache
already keys on the lockfile, and `save-if: main` already prevents the
PR-junk accumulation that trick fights (one mechanism per guarantee).
- The `awalsh128/cache-apt-pkgs-action` stays pinned at `v1.6.1` (per
#3321, merged into this branch) — not replaced. Only
`Swatinem/rust-cache` config changes here.

Projected active cache: **~3–5 GB**, all `main`-scoped. No `wt` behavior
change, so no changelog entry.

> _This was written by Claude Code on behalf of max_

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 12:39:55 -07:00
Worktrunk Bot 93325018af chore(ci): weekly renovation 2026-06-28 (#3284) 2026-06-28 08:45:45 -07:00
2602a413f7 chore: bump awalsh128/cache-apt-pkgs-action from 1.6.0 to 1.6.1 (#3080)
Bumps
[awalsh128/cache-apt-pkgs-action](https://github.com/awalsh128/cache-apt-pkgs-action)
from 1.6.0 to 1.6.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/awalsh128/cache-apt-pkgs-action/releases">awalsh128/cache-apt-pkgs-action's
releases</a>.</em></p>
<blockquote>
<h2>v1.6.1</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: upgrade actions/cache v4→v5 and upload-artifact v4→v7 (Node 24)
by <a href="https://github.com/pftg"><code>@​pftg</code></a> in <a
href="https://redirect.github.com/awalsh128/cache-apt-pkgs-action/pull/198">awalsh128/cache-apt-pkgs-action#198</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/pftg"><code>@​pftg</code></a> made their
first contribution in <a
href="https://redirect.github.com/awalsh128/cache-apt-pkgs-action/pull/198">awalsh128/cache-apt-pkgs-action#198</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/awalsh128/cache-apt-pkgs-action/compare/v1.5.4...v1.6.1">https://github.com/awalsh128/cache-apt-pkgs-action/compare/v1.5.4...v1.6.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/awalsh128/cache-apt-pkgs-action/commit/681749ae568c81c2037cb9185e38b709b261bd2f"><code>681749a</code></a>
fix: upgrade actions/cache v4→v5 and upload-artifact v4→v7 (Node 24) (<a
href="https://redirect.github.com/awalsh128/cache-apt-pkgs-action/issues/198">#198</a>)</li>
<li>See full diff in <a
href="https://github.com/awalsh128/cache-apt-pkgs-action/compare/v1.6.0...v1.6.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=awalsh128/cache-apt-pkgs-action&package-manager=github_actions&previous-version=1.6.0&new-version=1.6.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-06-14 20:54:58 -07:00
08539dc75a chore(ci): weekly renovation 2026-06-14 (#3071)
## Summary

Weekly CI renovation check found the following pin updates:

- `cargo-insta`: 1.47.2 → 1.48.0 (MSRV 1.66, compatible with our 1.95.0)
— in `claude-setup` and `test-setup` actions
- `worktrunk`: 0.55.0 → 0.58.0 (MSRV 1.95, compatible with our 1.95.0) —
in `ci.yaml`

### cargo-insta 1.48.0 notes

No breaking changes and no MSRV bump. Behavior changes worth noting,
none of which affect our `--check`-based snapshot flow:

- When `CI=true`, explicit handling options like `--accept` now take
precedence over the automatic `--check`.
- `--profile` now translates to `--cargo-profile` for nextest; a new
`--nextest-profile` selects the runner profile.
- New `strip_ansi_escape_codes` filter setting and opt-in YAML literal
blocks (`INSTA_YAML_BLOCK_STYLE=1`).

## Already up to date

- Rust stable: 1.96.0 → MSRV/toolchain stay at 1.95 (latest stable − 1,
no change)
- Runner images: ubuntu-24.04, macos-15, windows-2022
- `cargo-nextest`: 0.9.137, `lychee`: 0.24.2, `cargo-msrv`: 0.19.3,
`cargo-llvm-cov`: 0.8.7, `cargo-udeps`: 0.1.61
- `hustcer/setup-nu`: 0.113.1 (latest nushell release)
- `zola`: 0.22.1
- LLM model pins: Claude Haiku 4.5 and Codex `gpt-5.4-mini` are both
current
- README month blockquote: "June 2026" matches current month

## Notes

- windows-2022 remains pinned (actions/runner-images#12677 —
windows-2025 lacks the D: drive)

---
🤖 Automated weekly renovation

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 10:21:25 -07:00
Worktrunk Botandworktrunk-bot 330fa6ee4e chore(ci): weekly renovation 2026-05-31 (#2948)
## Summary

Weekly CI renovation. MSRV/toolchain bump plus pin bumps where upstream
has moved.

- **MSRV: 1.94 → 1.95** (Rust 1.96.0 went stable 2026-05-28; policy is
latest stable − 1)
- **toolchain channel: 1.94.0 → 1.95.0**
- `cargo-nextest`: 0.9.136 → 0.9.137 (MSRV 1.91, compatible with 1.95.0)
- `worktrunk`: 0.53.0 → 0.55.0 (MSRV 1.94, compatible with 1.95.0)
- `hustcer/setup-nu` nushell: 0.113.0 → 0.113.1
- `flake.lock`: `rust-overlay` bumped to `4a408e1` (ships `1.95.0.nix`
and `1.96.0.nix`); refreshed in the follow-up commit after @max-sixty
asked whether the agent could install Nix — it can, via the Determinate
Systems installer. A separate skill PR will codify the Nix install step
into the weekly workflow so future runs do this automatically.

## Already up to date

- `cargo-insta`: 1.47.2, `cargo-llvm-cov`: 0.8.7, `cargo-msrv`: 0.19.3,
`cargo-udeps`: 0.1.61, `lychee`: 0.24.2
- `taiki-e/install-action` tool: zola@0.22.1
- `taiki-e/install-action` action ref tracked by Dependabot (open in
#2935: 2.79.11 → 2.79.13; latest is 2.80.0 — Dependabot will catch up
next cycle)
- Runner images: ubuntu-24.04, macos-15, windows-2022

## Notes

- windows-2022 remains pinned (actions/runner-images#12677 —
windows-2025 lacks D: drive)

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-06-12 00:30:17 -07:00
Worktrunk Bot b073284391 chore(ci): weekly renovation 2026-05-24 (#2889) 2026-05-24 09:11:11 -07:00
Worktrunk Bot 675209a5e4 chore(ci): weekly renovation 2026-05-17 (#2778) 2026-05-17 09:30:18 -07:00
8fba3f8fd8 fix(ci): drop ~/.cargo/bin from rust-cache to unbreak macOS (#2757)
## Problem

`test (macos)` started failing at the `Install wt` step. Stack:

```
[command]/Users/runner/.cargo/bin/cargo install worktrunk --force --root ... --version 0.49.0 --locked
error: error: unexpected argument 'install' found
Usage: rustup-init[EXE] [OPTIONS]
```

Run:
[25867040335](https://github.com/max-sixty/worktrunk/actions/runs/25867040335).
Same shape on a sibling PR run hours earlier
([25847613183](https://github.com/max-sixty/worktrunk/actions/runs/25847613183)),
so this is durable, not transient.

Root cause: the macos-15 runner image rolled to a new rustup release
some time around 2026-05-13 15:43Z (when `baptiste0928/cargo-install`'s
per-crate cache-key suffix shifted, e.g.
`cargo-install-worktrunk-0.49.0-280a63ff…` → `…-ec5a37f3…`).
`Swatinem/rust-cache@v2` caches `~/.cargo/bin`, which holds the rustup
proxy that backs `cargo`, `rustc`, etc. After the image update the
cached proxy is incompatible with the rest of the toolchain — invoked as
`cargo`, it falls through to `rustup-init`'s installer mode, so `cargo
install …` is rejected as unknown args.

Yesterday's main run
([4cfc8e6a](https://github.com/max-sixty/worktrunk/actions/runs/25813800064))
hit the same poisoned cache but didn't expose it: `Install wt` was a
cache hit on the prior cargo-install key (`280a63ff`), so `cargo
install` never ran. Today, the new suffix (`ec5a37f3`) has no cache →
the action actually invokes `cargo install` → the broken proxy surfaces.

## Solution

Two changes in `.github/actions/test-setup/action.yaml`:

- `cache-bin: false` — stop caching `~/.cargo/bin`. The proxy binary is
part of the runner image and shouldn't be carried across image
generations. Our installed tools (`cargo-insta`, `cargo-nextest`,
`worktrunk`) go to `/Users/runner/.cargo-install/<crate>/bin/` via
`baptiste0928/cargo-install --root`, so nothing else here relies on
`~/.cargo/bin`.
- `prefix-key: v1-rust` — invalidates the existing `v0-rust-test-…`
caches, which already contain the bad bin. Without this, the next run
still restores the broken proxy.

Trade-off: one cache-miss rebuild per OS in test-setup (test
linux/macos/windows, collect-affected, affected-tests). Other workflows
(lint, feature-check, code-coverage, nightly, msrv) don't use test-setup
and keep their existing `v0-rust` caches untouched.

## Testing

Validated by this PR's own `test (macos)` run: with the new
`prefix-key`, the bad cache is bypassed and `cargo install worktrunk`
runs against the fresh runner-image rustup. Will monitor and report.

---
Automated fix for [failed run
25867040335](https://github.com/max-sixty/worktrunk/actions/runs/25867040335).

Co-authored-by: worktrunk-bot <worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-05-14 16:09:28 +00:00
Worktrunk Bot 6882bdd1d3 chore(ci): weekly renovation 2026-05-10 (#2671) 2026-05-10 07:56:41 -07:00
Worktrunk Botandworktrunk-bot 2c1fc9f0f9 ci: pin cache-apt-pkgs-action to v1.6.0 (#2583)
## Summary

- All three `awalsh128/cache-apt-pkgs-action` call sites used `@latest`
— pin them to `@v1.6.0` (current latest, published 2025-10-15).
- Matches the existing pin style for the rest of the workflow actions
(`Swatinem/rust-cache@v2`, `hustcer/setup-nu@v3`,
`taiki-e/install-action@v2.75.27`).
- Surfaced by the nightly survey of
`.github/actions/test-setup/action.yaml`.

## Test plan

- [ ] CI passes on this branch — `test-setup` and the two cargo-affected
jobs all install zsh/fish via the pinned action.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-05-04 07:48:56 +00:00
Maximilian RoosandClaude a1de9c7d0b ci: generalise composite action and use it from test matrix (#2486)
## Summary

Follow-up to #2483. The composite action installed `cargo-affected` and
`llvm-tools`, which the regular `test (linux/macos/windows)` matrix
doesn't need. Lift only the always-shared subset (cargo-insta,
cargo-nextest, rust-cache, OS-conditional shells, nushell) into
`test-setup`, and have the affected-* jobs add `cargo-affected` +
`llvm-tools` inline.

The test matrix now uses the action too: ~50 lines of inline setup
collapse to one `uses:` line. Pinned tool versions (cargo-insta,
cargo-nextest, nushell) serve all four callers from one place.

OS branching that was already inline in test-matrix moves into the
action — same `runner.os` conditionals, just relocated.

Drops the Windows-only informational `echo "Using Git Bash for Windows
tests"` step (was a no-op).

## Test plan
- [x] `pre-commit run` passes on changed files
- [ ] `test (linux/macos/windows)` still install the same toolchain
- [ ] `affected tests (linux, advisory)` still installs cargo-affected +
llvm-tools
- [ ] `collect affected coverage` (gated to push-to-main) still works

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-29 20:00:27 -07:00
Maximilian RoosandClaude 2372212a4a ci(affected): extract shared setup into composite action (#2483)
## Summary

Both `collect-affected` and `affected-tests` (added in #2475) installed
the same 7 setup steps — cargo-insta, cargo-nextest, cargo-affected,
llvm-tools, rust-cache, apt shells, nushell. Lift them into
`.github/actions/affected-setup/action.yaml` so each job replaces the
block with one `uses:` line.

Pinned tool versions now live in one place. No behavior change — same
steps, same order.

## Test plan
- [x] `pre-commit run` passes on changed files
- [ ] `collect-affected` and `affected-tests` jobs still install the
same toolchain in CI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-29 18:48:53 -07:00
Maximilian RoosandClaude 474083a11d perf(ci): speed up CI with D: drive, skip redundant pre-commit, CARGO_INCREMENTAL=0 (#2010)
The CI critical path (test windows) took ~12 minutes. Profiling showed
test execution was 75% of the time, bottlenecked by slow C: drive I/O on
GitHub Actions Windows runners.

**Changes to ci.yaml:**
- Move TEMP/TMP to the D: drive on Windows — tests create hundreds of
temp git repos via `tempfile`; the D: drive is local SSD with [up to 30x
faster I/O](https://github.com/actions/runner-images/issues/8755)
- Skip pre-commit in test jobs — the lint job already covers it. Run
only `wt hook pre-merge --yes insta doctest doc`
- Remove the now-unused uv, pre-commit, and lychee install steps from
test jobs
- Set `CARGO_INCREMENTAL=0` and `RUSTFLAGS=-C debuginfo=0` globally — CI
does clean builds so incremental tracking is pure overhead, and
debuginfo isn't needed

**Cache consistency** (`CARGO_INCREMENTAL` and `RUSTFLAGS` across all
workflows): `Swatinem/rust-cache` hashes `CARGO*` and `RUST*` env vars
into the cache key. All workflows sharing a cache must set the same
values. Added both env vars to `nightly-benchmark.yaml` and
`claude-setup/action.yaml` too. Documented the principle in
`.github/CLAUDE.md`.

**Snapshot test fix** (`tests/common/mod.rs`): added
`add_os_temp_dir_filter()` to redact `tempfile::tempdir()` paths under
non-standard TEMP locations. The existing `add_project_id_filters` had
hardcoded patterns for standard OS temp dirs; the D: drive TEMP needed a
runtime filter. Handles macOS `/private` prefix and quoted paths.

**Other:** bump `wt` to 0.35.2 (multi-filter hook syntax).

**Results** (baseline → final):

| Job | Before | After | Saved |
|-----|--------|-------|-------|
| test (linux) | 4m42s | 3m11s | 1m31s (32%) |
| test (macos) | 8m35s | 5m51s | 2m44s (32%) |
| test (windows) | 11m48s | 8m44s | 3m04s (26%) |

> _This was written by Claude Code on behalf of @max-sixty_

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-08 18:36:12 -07:00
Maximilian RoosandClaude a433285bc1 fix(ci): set uv cache-dependency-glob to silence CI warning (#1740)
The `setup-uv` action enables caching by default with a
`cache-dependency-glob` that looks for Python dependency files
(`requirements.txt`, `pyproject.toml`, `uv.lock`, etc.). Since this is a
Rust project, none match, producing this warning on every CI run:

> No file matched to [...]. The cache will never get invalidated.

The uv cache does help — with a cache hit, `uv tool install pre-commit`
resolves and prepares 10 packages in ~170ms from cached wheels instead
of downloading from PyPI. Set the glob to `.pre-commit-config.yaml` so
the cache invalidates when pre-commit hook configuration changes.

> _This was written by Claude Code on behalf of @max-sixty_

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-25 17:48:31 -07:00
63f1e96440 chore(ci): weekly renovation 2026-03-22 (#1657)
## Summary

Weekly CI renovation check found the following updates:

- `taiki-e/install-action`: v2.69.2 → v2.69.6
- `clechasseur/rs-cargo`: v5.0.1 → v5.0.2
- `cargo-nextest`: 0.9.130 → 0.9.132 (MSRV 1.91, compatible with our
1.94.0)
- `cargo-llvm-cov`: 0.8.4 → 0.8.5 (MSRV 1.87, compatible with our
1.94.0)
- `worktrunk`: 0.29.4 → 0.30.1 (MSRV 1.89, compatible with our 1.94.0)

## Already up to date

- Rust stable: 1.94.0
- Runner images: ubuntu-24.04, macos-15, windows-2022
- cargo-insta: 1.46.3, lychee: 0.23.0, cargo-udeps: 0.1.60, cargo-msrv:
0.19.2
- Nightly: 2026-03-01
- codecov/codecov-action: v5.5.3, codecov/test-results-action: v1.2.1
- astral-sh/setup-uv: v7.6.0

## Notes

- windows-2022 remains pinned (actions/runner-images#12677 —
windows-2025 lacks D: drive)
- All cargo tool MSRV requirements verified against Rust 1.94.0
- Pins updated in both ci.yaml and claude-setup/action.yaml where
applicable

---
🤖 Automated weekly renovation

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 20:40:57 -07:00
Maximilian RoosandClaude 4817604b81 Replace hand-written Claude workflows with generated ones (tend) (#1676)
## Summary

- Replaces 7 hand-written Claude CI workflow files with 6 generated by
`uvx tend init` from `.config/tend.toml`
- Consolidates 5 project-specific skills (`review-pr`, `triage-issue`,
`fix-ci`, `nightly-cleaner`, `running-in-ci`) into a single
`running-tend` overlay skill that extends the generic skills now in the
`tend` repo
- Moves `review-reviewers` skill to the `tend` repo (it's not
project-specific)
- Adds `.github/actions/claude-setup` composite action for project setup
steps
- Adds `.github/tend-security-model.md` documenting worktrunk-specific
security configuration
- Deletes `claude-hourly-review-reviewers.yaml` (moved to tend repo)

The generated workflows are produced by the
[tend](https://github.com/max-sixty/tend) generator, which handles
triggers, conditions, engagement verification, checkout, and the
composite action invocation. Project-specific config (bot name, secrets,
setup steps, watched workflows, cron schedules) lives in
`.config/tend.toml`.

Net: -1585 lines. The deleted code is now in the `tend` repo as reusable
infrastructure.

> _This was written by Claude Code on behalf of @max-sixty_

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-23 21:15:53 -07:00
618518c2a4 chore: bump astral-sh/setup-uv from 7.4.0 to 7.5.0 (#1480)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from
7.4.0 to 7.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/setup-uv/releases">astral-sh/setup-uv's
releases</a>.</em></p>
<blockquote>
<h2>v7.5.0 🌈 Use <code>astral-sh/versions</code> as version
provider</h2>
<h1>No more rate-limits</h1>
<p>This release addresses a long-standing source of timeouts and
rate-limit failures in setup-uv.</p>
<p>Previously, the action resolved version identifiers like 0.5.x by
iterating over available uv releases via the GitHub API to find the best
match. In contrast, latest and exact versions such as 0.5.0 skipped
version resolution entirely and downloaded uv directly.</p>
<p>The <code>manifest-file</code> input was an earlier attempt to
improve this. It allows providing an url to a file that lists available
versions, checksums, and even custom download URLs. The action also
shipped with such a manifest.
However, because that bundled file could become outdated whenever new uv
releases were published, the action still had to fall back to the GitHub
API in many cases.</p>
<p>This release solves the problem by sourcing version data from
Astral’s versions repository via the raw content endpoint:</p>
<p><a
href="https://raw.githubusercontent.com/astral-sh/versions/refs/heads/main/v1/uv.ndjson">https://raw.githubusercontent.com/astral-sh/versions/refs/heads/main/v1/uv.ndjson</a></p>
<p>By using the raw endpoint instead of the GitHub API, version
resolution no longer depends on API authentication and is much less
likely to run into rate limits or timeouts.</p>
<hr />
<blockquote>
<p>[!TIP]
The next section is only interesting for users of the
<code>manifest-file</code> input</p>
</blockquote>
<p>The <code>manifest-file</code> input lets you override that source
with your own URL, for example to test custom uv builds or alternate
download locations.</p>
<p>The manifest file must be in NDJSON format, where each line is a JSON
object representing a version and its artifacts. For example:</p>
<pre
lang="json"><code>{&quot;version&quot;:&quot;0.10.7&quot;,&quot;artifacts&quot;:[{&quot;platform&quot;:&quot;x86_64-unknown-linux-gnu&quot;,&quot;variant&quot;:&quot;default&quot;,&quot;url&quot;:&quot;https://example.com/uv-x86_64-unknown-linux-gnu.tar.gz&quot;,&quot;archive_format&quot;:&quot;tar.gz&quot;,&quot;sha256&quot;:&quot;...&quot;}]}

{&quot;version&quot;:&quot;0.10.6&quot;,&quot;artifacts&quot;:[{&quot;platform&quot;:&quot;x86_64-unknown-linux-gnu&quot;,&quot;variant&quot;:&quot;default&quot;,&quot;url&quot;:&quot;https://example.com/uv-x86_64-unknown-linux-gnu.tar.gz&quot;,&quot;archive_format&quot;:&quot;tar.gz&quot;,&quot;sha256&quot;:&quot;...&quot;}]}
</code></pre>
<blockquote>
<p>[!WARNING]<br />
The old format still works but is deprecated. A warning will be logged
when you use it.</p>
</blockquote>
<h2>Changes</h2>
<ul>
<li>docs: replace copilot instructions with AGENTS.md <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/794">#794</a>)</li>
</ul>
<h2>🚀 Enhancements</h2>
<ul>
<li>Use astral-sh/versions as primary version provider <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/802">#802</a>)</li>
</ul>
<h2>📚 Documentation</h2>
<ul>
<li>docs: add cross-client dependabot rollup skill <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/793">#793</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/e06108dd0aef18192324c70427afc47652e63a82"><code>e06108d</code></a>
Use astral-sh/versions as primary version provider (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/802">#802</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/0f6ec07aafe46cff7a322c837e5ba37d95c82b00"><code>0f6ec07</code></a>
docs: replace copilot instructions with AGENTS.md (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/794">#794</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/821e5c98158b218f7c8e97d0ea3862c6d6425e8b"><code>821e5c9</code></a>
docs: add cross-client dependabot rollup skill (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/793">#793</a>)</li>
<li>See full diff in <a
href="https://github.com/astral-sh/setup-uv/compare/v7.4.0...v7.5.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astral-sh/setup-uv&package-manager=github_actions&previous-version=7.4.0&new-version=7.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-03-17 17:57:02 -07:00
worktrunk-bot bf4ce9009a chore(ci): weekly renovation — Rust 1.94, bump cargo tools and actions (#1538) 2026-03-15 08:11:40 -07:00
4305d61afe chore: bump astral-sh/setup-uv from 7.3.1 to 7.4.0 (#1439)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from
7.3.1 to 7.4.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/setup-uv/releases">astral-sh/setup-uv's
releases</a>.</em></p>
<blockquote>
<h2>v7.4.0 🌈 Add riscv64 architecture support to platform detection</h2>
<h2>Changes</h2>
<p>Thank you <a
href="https://github.com/luhenry"><code>@​luhenry</code></a> for adding
support for riscv64 arch</p>
<h2>🚀 Enhancements</h2>
<ul>
<li>Add riscv64 architecture support to platform detection <a
href="https://github.com/luhenry"><code>@​luhenry</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/791">#791</a>)</li>
</ul>
<h2>🧰 Maintenance</h2>
<ul>
<li>Delete .github/workflows/dependabot-build.yml <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/789">#789</a>)</li>
<li>Harden Dependabot build workflow <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/788">#788</a>)</li>
<li>Fix: check PR author instead of event sender for Dependabot
detection <a
href="https://github.com/eifinger-bot"><code>@​eifinger-bot</code></a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/787">#787</a>)</li>
<li>chore: update known checksums for 0.10.9 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/783">#783</a>)</li>
<li>Add workflow to auto-build dist on Dependabot PRs <a
href="https://github.com/eifinger-bot"><code>@​eifinger-bot</code></a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/782">#782</a>)</li>
<li>chore: update known checksums for 0.10.8 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/779">#779</a>)</li>
<li>chore: update known checksums for 0.10.7 @<a
href="https://github.com/apps/github-actions">github-actions[bot]</a>
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/775">#775</a>)</li>
</ul>
<h2>⬆️ Dependency updates</h2>
<ul>
<li>chore(deps): bump versions <a
href="https://github.com/eifinger"><code>@​eifinger</code></a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/792">#792</a>)</li>
<li>Bump actions/setup-node from 6.2.0 to 6.3.0 @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/790">#790</a>)</li>
<li>Bump eifinger/actionlint-action from 1.10.0 to 1.10.1 @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a> (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/778">#778</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/6ee6290f1cbc4156c0bdd66691b2c144ef8df19a"><code>6ee6290</code></a>
chore(deps): bump versions (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/792">#792</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/9f332a133a60f39d23361d5262fa95793aa02590"><code>9f332a1</code></a>
Add riscv64 architecture support to platform detection (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/791">#791</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/0acf9708cec26cdcd463dd57db30a4eb5b123bda"><code>0acf970</code></a>
Bump actions/setup-node from 6.2.0 to 6.3.0 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/790">#790</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/fe3617d6e9d89d9b2ddd353e1b3c5d20d20c896f"><code>fe3617d</code></a>
Delete .github/workflows/dependabot-build.yml (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/789">#789</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/2ff70eebccce84d92853b5f8343657ea7c422348"><code>2ff70ee</code></a>
Harden Dependabot build workflow (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/788">#788</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/5ba8a7e5d0edc496a1a4eba89351373601667d41"><code>5ba8a7e</code></a>
Fix: check PR author instead of event sender for Dependabot detection
(<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/787">#787</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/4bc8fabc0c006b3ae503c65dde93c57e8374d126"><code>4bc8fab</code></a>
chore: update known checksums for 0.10.9 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/783">#783</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/950b623541cbabb9ec910e89a8956ed098ea34f5"><code>950b623</code></a>
Add workflow to auto-build dist on Dependabot PRs (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/782">#782</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/09ff6fe0ae18efdaf100c858b9088655de5b7258"><code>09ff6fe</code></a>
chore: update known checksums for 0.10.8 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/779">#779</a>)</li>
<li><a
href="https://github.com/astral-sh/setup-uv/commit/bd870193dd98cea382bc44a732c2e0d17379a16d"><code>bd87019</code></a>
Bump eifinger/actionlint-action from 1.10.0 to 1.10.1 (<a
href="https://redirect.github.com/astral-sh/setup-uv/issues/778">#778</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/setup-uv/compare/v7.3.1...v7.4.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astral-sh/setup-uv&package-manager=github_actions&previous-version=7.3.1&new-version=7.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-03-10 20:49:03 -07:00
83a9ca92a3 fix(ci): install pre-commit in claude-setup and replace stale gh-run-watch (#1333)
## Summary

- Install `pre-commit` via `uv tool install pre-commit` in the shared
`claude-setup` action, fixing the root cause of `pre-commit: not found`
failures in Claude workflows
- Replace stale `gh run watch` references with the poll approach from
`running-in-ci` (review-pr, release, triage-issue skill files)

## Evidence

In run
[22795714447](https://github.com/max-sixty/worktrunk/actions/runs/22795714447),
the triage bot's `pre-merge` failed with `pre-commit: not found` because
the `claude-setup` action didn't install it. The CI workflow (`ci.yaml`)
already installs pre-commit via `uv tool install pre-commit` — the same
approach is now used in `claude-setup`.

## Test plan

- [x] `claude-setup` action change matches the `ci.yaml` pattern (`uv
tool install pre-commit`)
- [x] Removed the lint fallback workaround from triage-issue (no longer
needed)
- [x] `gh run watch` replacements are documentation-only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 10:40:51 -08:00
aa46fe5e07 chore: consolidate Claude CI setup into composite action (#1273)
## Summary

- Extracts the repeated cargo-insta, cargo-nextest, rust-cache, and
shell installation steps from all 7 `claude-*` workflows into a single
composite action at `.github/actions/claude-setup/action.yaml`
- Each workflow now calls the composite action in one step instead of
duplicating 4 setup steps
- Updates the `claude-renovate` prompt to reference the composite action
as the canonical location for tool version pins

Net change: **-88 lines** (146 removed, 58 added). Tool version pins are
now in one place — future version bumps update 1 file instead of 7.

<details><summary>Per-workflow changes</summary>

| Workflow | Before | After | Change |
|----------|--------|-------|--------|
| claude-ci-fix | 4 setup steps | 1 composite action call | -13 lines |
| claude-issue-triage | 4 setup steps | 1 composite action call | -13
lines |
| claude-mention | 4 setup steps | 1 composite action call | -13 lines |
| claude-nightly-cleaner | 4 setup steps | 1 composite action call | -13
lines |
| claude-nightly-review-reviewers | 4 setup steps | 1 composite action
call | -13 lines |
| claude-review | 4 conditional steps | 1 conditional composite action
call | -15 lines |
| claude-renovate | 1 cache step | 1 composite action call (tools+shells
disabled) | ±0 lines |

</details>

Closes the follow-up from #1271.

## Test plan

- [x] Workflow YAML is valid (no syntax errors from `gh` push)
- [ ] Next Claude CI run on any workflow confirms the composite action
works

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 03:10:37 +00:00