Skip to content

fix(running-in-ci): don't ask outsiders to do work the bot can't do itself - #789

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-788
Jul 22, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-788

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

A tend consumer's bot, after upstreaming a fix to another repo, closed its PR comment with "If you can confirm on a real Windows terminal I'd appreciate it" — handing verification work to the maintainer of another repo who was doing the bot a favor by reviewing and merging the change. #788 flags this as out of bounds and gives the intended hierarchy: do the task itself → offer to make changes so it can do the task itself (e.g. add a Windows CI job) → ask a contributor of its own repo → escalate to its own maintainer; it shouldn't ask outsiders.

Root cause is a bundled-skill gap. The running-in-ci Verifying external-tool behavior section ends with a generic escape hatch — "ask a human with the tool installed to confirm." In an upstream thread the nearest "human with the tool installed" is the reviewing maintainer, so the guidance actively steers the bot toward the behavior #788 objects to. Nothing in the bundled skills established who is and isn't appropriate to ask.

Solution

In plugins/tend-ci-runner/skills/running-in-ci/SKILL.md:

  • Add a Who to ask when you can't do it yourself subsection encoding the maintainer's hierarchy: (1) do it yourself, (2) make it doable yourself in your own repo, (3) ask a contributor of your own repo, (4) escalate to your own maintainer — with an explicit "never route the ask outward, least of all to a maintainer merging your change as a favor." Includes a bad/good example modeled on the Windows-verification case, stated structurally (no case links).
  • Redirect the Verifying external-tool behavior escape hatch away from the bare "ask a human with the tool installed" and toward the new hierarchy, so the gap gets stated honestly and closed back home rather than pushed onto an outside party.

This is a bundled default, so it reaches every tend consumer at the next release. It's complementary to #770 (permit maintainer-invited upstream contributions): #770 says the bot may contribute upstream when invited; this says that while doing so it still owns its own verification and doesn't offload it onto the host maintainer.

Testing

Skill-text change (no code path to unit-test). Reproduction is the linked real-world comment; the fix removes the guidance that steered toward it and states the correct hierarchy. Verified no duplication of this rule exists in the shared system prompt or co-loaded skills before adding it.


Closes #788 — automated triage

…self

When a check needs an environment CI lacks (Windows, hardware), the bot
must not hand the verification to an outside party — least of all an
upstream maintainer reviewing its change as a favor. Adds a 'Who to ask
when you can't do it yourself' hierarchy (do it yourself → make it doable
in your own repo → ask your own contributor → escalate to your own
maintainer) and redirects the 'ask a human' escape hatch in 'Verifying
external-tool behavior' to route through it.

Closes #788
@max-sixty
max-sixty merged commit ba5a7de into main Jul 22, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-788 branch July 22, 2026 22:27
@max-sixty max-sixty mentioned this pull request Jul 24, 2026
2 of 4 tasks
max-sixty added a commit that referenced this pull request Jul 24, 2026
## Summary

Cuts release 0.1.12. 5 commits since 0.1.11:

- Raise default harness timeout to 5h50m (#790)
- Stop asking upstream maintainers to do verification the bot couldn't
do itself (#789)
- Fail loud on transient `gh` errors in `list-recent-runs.sh` instead of
a false all-clear (#784)
- Bump pinned `claude_version` to 2.1.215 (#782)
- Tolerate transient non-JSON `gh api` responses in notifications (#780)

(`#778`, a routine post-0.1.11 workflow regen, is omitted from the
changelog as non-user-facing.)

## Test plan

- [x] `wt test` — 276 passed
- [x] `pre-commit run --all-files` — passed
- [ ] CI green on this PR
- [ ] Tag `0.1.12` and push after merge to trigger PyPI publish + GitHub
Release

> _This was written by Claude Code on behalf of Maximilian Roos_
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Jul 25, 2026
Automated nightly regeneration of tend's workflow files via `uvx
tend@latest init`, picking up the tend release since the last regen.

**tend version:** 0.1.11 → 0.1.12

**Notable changes:**

- **Notifications workflow tolerates transient `gh api` blips** — the
notifications fetch now retries on non-JSON responses (e.g. an HTML
error page returned with a 200 during an API blip) and skips the cycle
cleanly instead of aborting the step red (max-sixty/tend#780).
- **`review-runs` fails loud on transient `gh` errors** — a failed run
enumeration no longer reports a false all-clear; it surfaces the error
so the run isn't silently treated as clean (max-sixty/tend#784).
- **`running-in-ci` guidance** — the bot no longer asks outside
contributors to do work it can't do itself (max-sixty/tend#789).
- **Harness bumps** — Claude harness version bumped to 2.1.215
(max-sixty/tend#782) and the default harness timeout raised to 5h50m
(max-sixty/tend#790).

Compare: max-sixty/tend@0.1.11...0.1.12

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.

what's appropriate to ask others to do

2 participants