Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Move Tend tool setup to standard steps and update to 0.3.2 (#4249)

Maximilian Roose99d4ff74efa
diff --git a/.config/tend.yaml b/.config/tend.yaml
index df2bfda2f..b1786999f 100644
--- a/.config/tend.yaml
+++ b/.config/tend.yaml
@@ -1,28 +1,9 @@
bot_name: worktrunk-bot
setup:
- uses: ./.github/actions/tend-setup
-# tend 0.2.14 deprecated `sandbox_setup:` and runs its commands as an ordinary
-# `runner` step after `setup:`; the agent then sees what they install through a
-# copy-on-write view of the job's home (see "Sandbox toolchain" in
-# .github/AGENTS.md). #4222 kept the key so a release reverting 0.2.14 would
-# still find it, so this block outliving its original rationale is deliberate,
-# not drift.
-#
-# What that rationale was: `setup:` ran as `runner` and the sandbox denied
-# reads under the runner's home, so pre-commit had to be installed from here,
-# into the sandbox's own home. It now duplicates `tend-setup`'s own pre-commit
-# step and goes when the key does. The probe is what still earns its place:
-# the block runs under `bash -eo pipefail`, so a tool that goes missing fails
-# the job with an `::error::` annotation naming it. No tend-outage issue is
-# filed any more — that is `report_failure.py`, a step inside the tend action
-# under `if: failure()`, and the generator now emits this block ahead of that
-# action, so a failure here skips it. Of the five tools it asserts, four are
-# what the pre-merge gate needs, whichever step installed them; `nix` is for
-# the weekly toolchain bump's `flake.lock` refresh.
-sandbox_setup:
-- mkdir -p ~/.local/bin
-- uv tool install --quiet pre-commit
-- 'for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done'
+# Verify the toolchain installed above before the agent starts. Four tools
+# support the pre-merge gate; nix supports the weekly flake.lock refresh.
+- run: 'for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done'
secrets:
allowed:
- CODECOV_TOKEN
diff --git a/.github/AGENTS.md b/.github/AGENTS.md
index 21ce95708..e7279b98e 100644
--- a/.github/AGENTS.md
+++ b/.github/AGENTS.md
@@ -21,7 +21,7 @@ Generated tend workflows use environment {name: tend, deployment: false}. The de
## Sandbox toolchain
-Tend agents run in a copy-on-write view of the runner checkout and home. tend-setup and sandbox_setup install the gate's tools; the sandbox probe in tend workflows checks their presence. Keep the probe when changing setup. A binary on PATH does not guarantee its service is reachable: Nix currently cannot connect to its daemon from the sandbox, so a flake.lock refresh needs a different execution path.
+Tend agents run in a copy-on-write view of the runner checkout and home. The `tend-setup` action installs the gate's tools; the following `setup` step checks their presence. Keep the probe when changing setup. A binary on PATH does not guarantee its service is reachable: Nix currently cannot connect to its daemon from the sandbox, so a flake.lock refresh needs a different execution path.
## Build environment
diff --git a/.github/actions/tend-setup/action.yaml b/.github/actions/tend-setup/action.yaml
index 8720776ad..2269cece9 100644
--- a/.github/actions/tend-setup/action.yaml
+++ b/.github/actions/tend-setup/action.yaml
@@ -28,8 +28,8 @@ runs:
# agent reads that directly, with the entry ahead of /usr/local/bin on its
# PATH. The publish was the only route while the sandbox denied reads under
# the runner's home (0.2.5–0.2.13) and is now a second copy of the same two
- # binaries; it stays as what keeps `.config/tend.yaml`'s probe green if
- # that isolation returns (see "Sandbox toolchain" in .github/AGENTS.md).
+ # binaries. It stays as a system-path fallback if that isolation returns
+ # (see "Sandbox toolchain" in .github/AGENTS.md).
# Swapping these steps for an action with a different layout breaks the
# publish step, which hardcodes this root; update both sides.
- name: Install cargo-insta
diff --git a/.github/workflows/tend-ci-fix.yaml b/.github/workflows/tend-ci-fix.yaml
index cbca6f690..7afbfdca4 100644
--- a/.github/workflows/tend-ci-fix.yaml
+++ b/.github/workflows/tend-ci-fix.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -43,16 +43,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-mention-relay.yaml b/.github/workflows/tend-mention-relay.yaml
index 4a02c4a4f..18b97cad1 100644
--- a/.github/workflows/tend-mention-relay.yaml
+++ b/.github/workflows/tend-mention-relay.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
diff --git a/.github/workflows/tend-mention.yaml b/.github/workflows/tend-mention.yaml
index b53cd3bab..2269b95c7 100644
--- a/.github/workflows/tend-mention.yaml
+++ b/.github/workflows/tend-mention.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -349,16 +349,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-nightly.yaml b/.github/workflows/tend-nightly.yaml
index 19a8827d1..3d1f7db48 100644
--- a/.github/workflows/tend-nightly.yaml
+++ b/.github/workflows/tend-nightly.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -34,16 +34,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-notifications.yaml b/.github/workflows/tend-notifications.yaml
index c8b703286..e81c0508f 100644
--- a/.github/workflows/tend-notifications.yaml
+++ b/.github/workflows/tend-notifications.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -247,17 +247,13 @@ jobs:
- uses: ./.github/actions/tend-setup
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
- shell: bash
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-review-runs.yaml b/.github/workflows/tend-review-runs.yaml
index a2037f80c..8e84e43e5 100644
--- a/.github/workflows/tend-review-runs.yaml
+++ b/.github/workflows/tend-review-runs.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -34,16 +34,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-review.yaml b/.github/workflows/tend-review.yaml
index c9de853b4..35e4942e6 100644
--- a/.github/workflows/tend-review.yaml
+++ b/.github/workflows/tend-review.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -42,7 +42,7 @@ jobs:
TARGET: issues/${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.TEND_BOT_TOKEN }}
- # The runner checkout stays on the reviewed base tree for `setup:` and
+ # The runner checkout stays on the PR base tree for `setup:` and
# local actions' POST chains; the harness moves the agent's view of it to
# the PR's topology.
- uses: actions/checkout@v7
@@ -52,16 +52,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-triage.yaml b/.github/workflows/tend-triage.yaml
index 544c73489..2ed3591ce 100644
--- a/.github/workflows/tend-triage.yaml
+++ b/.github/workflows/tend-triage.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -46,16 +46,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
diff --git a/.github/workflows/tend-weekly.yaml b/.github/workflows/tend-weekly.yaml
index b8b635c8d..4eba07021 100644
--- a/.github/workflows/tend-weekly.yaml
+++ b/.github/workflows/tend-weekly.yaml
@@ -1,4 +1,4 @@
-# Generated by tend 0.3.1. Regenerate with: uvx tend@latest init
+# Generated by tend 0.3.2. Regenerate with: uvx tend@latest init
#
# Do not edit this file directly — it will be overwritten on regeneration.
# To change this workflow, edit .config/tend.yaml. To change what the agent
@@ -34,16 +34,12 @@ jobs:
token: ${{ secrets.TEND_BOT_TOKEN }}
- uses: ./.github/actions/tend-setup
- - run: |-
- mkdir -p ~/.local/bin
- uv tool install --quiet pre-commit
- for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend sandbox is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- shell: bash
+ - run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
- merge: maintainer
+ merge: restricted
control_plane_owner: ""
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}