Repository navigation
fix(mention): compute the queue delay before checkout and setup - #1365
Conversation
Deploys 0.2.14 to tend's own workflows: uvx [email protected] init, plus the hand-maintained review-reviewers.yaml ref restamped to @0.2.14. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The handle job's prompt tells the agent it was queued when the delay between the triggering event and the job's start exceeds ~40s. The step that measures it ran after checkout and `setup:`, so the delay counted the consumer's setup as queue time. In worktrunk, whose setup installs cargo tools, shells and Nix, two unqueued mentions whose handle jobs started 19s and 13s after their runs were created reported 59s and 44s, past the threshold. The step now runs before checkout, so it measures only the wait for the job to start. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
The reorder is correct — the step reads only EVENT_TS, so nothing about it needed the checkout, and the four [mention] regtest diffs are the step move alone. Full generator suite passes locally.
One coordination point: #1364 is the same fix to the same files, opened earlier, and it carries Closes #1363. Merging this one leaves both the issue and that PR to be closed by hand. The substantive difference between them is the test: #1364 keeps test_mention_handle_has_queue_delay as-is and adds a case that generates with a setup: step and asserts the delay precedes both the checkout and that setup step. This PR's rewritten assertion (delay_idx < checkout_idx, minimal config) covers setup: only transitively, through test_setup_before_pr_checkout_in_mention's checkout < setup. Either is defensible; worth a look before picking which to close.
Generates with a `setup:` step so the test pins the order the fix is about directly, rather than through checkout < setup in another test. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Bumps the generator to 0.2.15, syncs `uv.lock`, and adds the 0.2.15 changelog section. The release ships the restrict-updates ruleset requirement and the `AGENTS.override.md` pin (#1367), the follow-up review that focuses on the pushed commits (#1368), a rising bar for further fix rounds on PRs with no human author (#1366), #1365, #1362, and the setup-uv v10.2.0 bump (#1359, #1360). `uv run pytest` (1216 passed), the worker's vitest suite and typecheck, and every pre-commit hook pass on this commit. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Regenerates tend's `tend-*.yaml` workflows with `uvx [email protected] init`, which moves the action ref to `max-sixty/tend/[email protected]`, setup-uv to v10.2.0, and mention's queue-delay step ahead of checkout (#1365). `review-reviewers.yaml`, which `init` doesn't touch, is restamped onto the same ref. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Regenerates the nine `tend-*` workflows on tend 0.2.15, up from 0.2.14. Every job now pins `max-sixty/tend/[email protected]`, so merging adopts that release's agent behaviour as well as the YAML below. ## What changes for this repo **`tend check` holds branch protection to a ruleset the bot cannot bypass.** Required reviews alone no longer pass the `branch-protection:main` check: the bot holds write, so its own approval satisfies a review requirement on a pull request someone else opened, and it can then merge. A read it cannot decode is now a failed read rather than a pass — previously an unreadable protection response reported the check green without having verified anything. Leaf already carries the `Merge access` restrict-updates ruleset, so this check stays `PASS`; `tend check --fix` now offers to create that ruleset for any failing branch, not only for the specific "bot can still merge" message. **`tend-mention` measures its queue delay before checkout and `setup:`.** The delay step moved ahead of both, so the number it reports is the wait for the job to start rather than that wait plus however long this repo's `setup:` takes. Leaf's mention runs will report a smaller delay than before for the same actual queue time. **Reviews open with a finding.** A review body no longer spends its first lines restating where GitHub shows the verdict, a follow-up review focuses on what was pushed while keeping the whole PR in view, and each further fix round on a PR with no human author has to clear a higher bar before the bot pushes again. **Action pins.** `astral-sh/setup-uv` moves from v10.1.0 to v10.2.0 in the two workflows that set it up directly (`tend-mention`, `tend-notifications`). [Compare 0.2.14...0.2.15](max-sixty/tend@0.2.14...0.2.15) <details><summary>Upstream commits in this range</summary> - `chore: regenerate workflows with tend 0.2.14` (max-sixty/tend#1358) - `fix(review): say where GitHub shows a review's verdict, so the body opens with a finding` (max-sixty/tend#1362) - `fix(mention): compute the queue delay before checkout and setup` (max-sixty/tend#1365) - `fix(review): raise the bar for each further fix round on a PR with no human author` (max-sixty/tend#1366) - `Require a restrict-updates ruleset, pin AGENTS.override.md, and rewrite the security docs` (max-sixty/tend#1367) - `chore: bump setup-uv to v10.2.0` (max-sixty/tend#1359) - `chore: bump repo-local setup-uv and wrangler pins` (max-sixty/tend#1360) - `chore(token-usage): drop the stream-json artifact copy its own comment marked for removal` (max-sixty/tend#1361) - `fix(review): focus a follow-up review on what was pushed, with the whole PR in view` (max-sixty/tend#1368) - `chore: release 0.2.15` (max-sixty/tend#1369) The `AGENTS.override.md` pin in max-sixty/tend#1367 and the dropped stream-json artifact copy in max-sixty/tend#1361 have no effect here — the first applies to the Codex harness and the second to tend's own repository. </details> Co-authored-by: leaf-agent <[email protected]>
Regenerates the nine `tend-*.yaml` workflows with tend 0.2.15 (from 0.2.14). The version bump and the `astral-sh/setup-uv` pin (v10.1.0 → v10.2.0, in the `tend-mention` and `tend-notifications` preflight jobs) are mechanical; one step actually moves, in `tend-mention.yaml`. **`tend-mention` measures its queue delay before checkout and setup.** The "Compute queue delay" step used to run after `actions/checkout` and `./.github/actions/tend-setup`, so the number it recorded was the wait for the job to start *plus* the several minutes this repo's setup action takes to install the Rust toolchain and sandbox tools. It now runs first, and the delay reports the queue wait alone ([max-sixty/tend#1365](max-sixty/tend#1365)). Behavior that arrives inside the action rather than in these files, and that shows up in what the bot posts here: - **PR reviews lead with a finding.** A review body now opens with something actionable instead of restating the verdict GitHub already renders in its own header ([max-sixty/tend#1362](max-sixty/tend#1362)), and a follow-up review scopes itself to what the latest push changed while still reading the whole PR ([max-sixty/tend#1368](max-sixty/tend#1368)). - **Fewer self-directed fix rounds on bot PRs.** On a PR with no human author the review session applies its own findings; each further round now has to clear a higher bar, so a bot PR stops accumulating marginal follow-up commits ([max-sixty/tend#1366](max-sixty/tend#1366)). - **`AGENTS.override.md` joins the pinned instruction paths.** Codex reads it in preference to `AGENTS.md`, so on a PR-derived checkout it is now restored from the base commit alongside `CLAUDE.md`, `AGENTS.md`, `.claude/`, and `.agents/` — a fork can no longer reach the session through that filename. The same release makes a restrict-updates ruleset a `tend check` requirement; this repo already satisfies it (`tend check` passes every line today) ([max-sixty/tend#1367](max-sixty/tend#1367)). Full comparison: [0.2.14...0.2.15](max-sixty/tend@0.2.14...0.2.15). Co-authored-by: worktrunk-bot <[email protected]>
The mention handle job's prompt tells the agent it was queued when the delay between the triggering event and the job's start exceeds ~40s. The step that measures it ran after checkout and
setup:, so the delay counted the consumer's setup as queue time. In worktrunk, whose setup installs cargo tools, shells and Nix, two mentions that weren't queued reported 59s and 44s: their handle jobs started 19s and 13s after the runs were created (35614904598, 35611849540). numbagg's bot review of numbagg/numbagg#831 raised it, since that PR moveduv syncahead of the step.The step now runs before checkout, so it measures only the wait for the job to start, which is what the prompt and CLAUDE.md describe.
test_mention_handle_has_queue_delaynow generates with asetup:step and asserts the delay step precedes both checkout and that step; the mention snapshots move the step.Closes #1363. Supersedes #1364, the same fix.
🤖 Generated with Claude Code