Skip to content

chore: update tend workflows (0.2.13 → 0.2.14) - #4222

Merged
max-sixty merged 1 commit into
mainfrom
tend-0.2.14
Sep 21, 2026
Merged

max-sixty merged 1 commit into
mainfrom
tend-0.2.14

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Regenerates the tend workflows with tend 0.2.14 ahead of the nightly update, to trial the release here.

0.2.14 runs the agent in a hardened systemd unit instead of Anthropic Sandbox Runtime, over a copy-on-write view of the job's own checkout and home (max-sixty/tend#1346, max-sixty/tend#1354). sandbox_setup: is deprecated, so init now runs its commands as an ordinary step after setup:, as the runner user, and the agent sees what they install through the view. .config/tend.yaml keeps the key for now, so a release that reverts 0.2.14 would still find it.

Release notes: https://github.com/max-sixty/tend/releases/tag/0.2.14

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

🤖 Generated with Claude Code

Regenerated with uvx [email protected] init. sandbox_setup's commands now run
as a setup step before the tend action.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The regeneration itself is faithful: the migrated step's uv resolves because tend-setup runs astral-sh/setup-uv ahead of it, shell: bash keeps the -eo pipefail semantics sandbox_setup: ran under, and the if: guard on tend-notifications' new step matches the one on its tend-setup. What 0.2.14 changes is the model three hand-written files still describe — and the probe this PR moves points a future failing run at one of them.

.github/CLAUDE.md § "Sandbox toolchain" describes the model 0.2.14 replaces. It states that tend derives the agent's PATH from the runner's "by rewriting a leading /home/runner to /home/tend-sandbox", that "the runner's home isn't merely off-PATH but unreadable", and that "Only pre-commit still comes from .config/tend.yaml's sandbox_setup:, because it installs into the sandbox's own home". Under the copy-on-write view the agent gets the job's own PATH and reads the runner's home, and the migrated step installs pre-commit there like every other tool. The block moved in this PR ends with see Sandbox toolchain in .github/CLAUDE.md, so a probe failure sends the reader straight to that section. The same rationale sits in .config/tend.yaml's comment above sandbox_setup: and in the /usr/local/bin hand-off comments in .github/actions/tend-setup/action.yaml — the sudo install step there exists only because the sandbox could not read $HOME/.cargo-install.

The blocker on warm caches closed. That same action's leading comment ("Tend sessions build cold until there is a supported way to warm the agent's own tree") and .github/CLAUDE.md § "Build environment" ("tend sessions compile cold until max-sixty/tend#1198 gives the agent's own tree a supported way to warm") both cite max-sixty/tend#1198, which closed on 2026-09-21; 0.2.14's notes say what setup: prepares — including a warm cache — "is there for the agent at the path setup: left it". Restoring Swatinem/rust-cache needs the matching CARGO*/RUST* handling that section describes, so it is its own change rather than something to fold in here, but the comments currently tell the next reader not to try.

The probe now measures the runner while still naming the sandbox. Running as runner, tend sandbox is missing $t asserts the runner's PATH. 0.2.14 hands the agent the job's PATH, which makes that a good proxy, but not the same set — the unit masks the runner installation directory and GitHub's file-command directory — and the message reads as though it still probed from inside.

Smaller, and only once .config/tend.yaml's key stops earning its keep as revert-safety: uv tool install --quiet pre-commit now duplicates tend-setup's own Install pre-commit step immediately before it in the same user context, and mkdir -p ~/.local/bin is a no-op since setup-uv creates that directory and puts it on PATH. Both were load-bearing while the block ran as the sandbox user.

I can push a commit rewriting the three documentation sites against the 0.2.14 model if you'd like that in this PR.

@max-sixty
max-sixty merged commit 8a48a37 into main Sep 21, 2026
38 checks passed
@max-sixty
max-sixty deleted the tend-0.2.14 branch September 21, 2026 19:51
max-sixty pushed a commit that referenced this pull request Sep 21, 2026
…iew (#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/[email protected]`, 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants