Skip to content

Keep CI waits off gh event listen, which gh now suggests to agents - #1708

Merged
max-sixty merged 1 commit into
mainfrom
gh-pr-wait
Nov 19, 2026
Merged

max-sixty merged 1 commit into
mainfrom
gh-pr-wait

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Adds gh event listen to run-tend's Watch commands rule, beside gh run watch and gh pr checks --watch, so CI waits stay on /tend-ci-runner:monitor-ci's poll.

gh 2.105.0, released yesterday, prints a hint to agents after gh pr view, gh pr create, gh run view and PR reads through gh api, telling them to wait with gh event listen instead of polling. That command needs the Event Streams preview, and an account without it gets HTTP 403 at once. In the maintainer's own Claude Code sessions the hint showed up in 300 tool results across 50 sessions in the first day and a half. One session that already had its CI-wait skill loaded followed the hint with stderr silenced, so each 80-second "wait" returned in two seconds. Tend bots run under the same agent detection, so they will get the hint once the runner images carry gh 2.105 (the current ubuntu-24.04 image has 2.104.0). Where the preview is enabled, an event still reports one review or check suite, not the pinned commit's verdict.

To weigh: no eval covers CI waits, so this is validated by review only. Adopting Event Streams inside poll-pr-checks would save at most a poll interval of runner time per wait, which What waste is worth fixing in AGENTS.md doesn't justify, and it would need every consumer's bot enrolled in the preview.

Requested by max-sixty. Pre-commit and the skill tests pass.

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

gh 2.105.0 (2026-11-17) prints a hint after gh pr view, gh pr create,
gh run view and PR reads through gh api, telling an agent to wait with
gh event listen instead of polling. The command needs the Event Streams
preview; on an account without it, it fails at once with HTTP 403. In
the maintainer's own sessions the hint appeared in 300 tool results
across 50 sessions in the first day and a half, and one session that
already had its CI-wait skill loaded followed it instead, with stderr
silenced: each 80-second wait returned in two seconds, seven times in
thirty seconds, then a 45-minute background wait exited at once.

Tend bots run under agent detection too (claude -p sets CLAUDECODE,
codex sets CODEX_*), so they get the hint once runner images carry gh
2.105 (ubuntu24/20261116 ships 2.104.0). Even where the preview is
enabled, an event reports one review or check suite, not the pinned
commit's verdict, so the wait stays with monitor-ci's poll. The rule
joins the existing Watch commands bullet beside gh run watch and
gh pr checks --watch.

Validated by review and the skill tests, not by a model eval: no case
covers CI waits.
@max-sixty
max-sixty merged commit a8507c5 into main Nov 19, 2026
13 checks passed
@max-sixty
max-sixty deleted the gh-pr-wait branch November 19, 2026 03:03
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Nov 21, 2026
Regenerates the Tend workflows for tend 0.3.28 (from 0.3.27). The
workflow files change only in their version pins and one header comment
in `tend-ci-failures.yaml`; the behavior changes ship in the bundled
skills and runtime those pins load.

What changes for this repo once merged:

- **Reviews approve only a PR worth merging, not merely a correct one**
(max-sixty/tend#1651). This is the proportionality rule #4869 proposes
dropping from `running-tend` because Tend's review now owns it.
- **No green verdict on a conflicting head with no CI**
(max-sixty/tend#1713). `poll-pr-checks` no longer approves or reports
green when the PR head conflicts with its base and so no checks ran.
- **CI failure reports:** after triage closes a report, the next failure
on that lane files a new report instead of reopening the closed one
(max-sixty/tend#1715). The regenerated header comment in
`tend-ci-failures.yaml` describes this.
- **Creation-allowance trackers:** one tracker per spell of refused
issue/PR creation, and the tracker itself doesn't count against the cap
(max-sixty/tend#1716).
- **Nested instruction files:** sessions read the `AGENTS.md` nearest
the code they edit or review, such as `tests/AGENTS.md`,
`docs/AGENTS.md`, and `plugins/worktrunk/AGENTS.md` here
(max-sixty/tend#1712).
- **Duplication checks:** review now looks wider for duplicated code,
and the nightly survey pairs copies across files (max-sixty/tend#1646).
- **CI waits** stay off `gh event listen`, which newer `gh` suggests to
agents (max-sixty/tend#1708).

Full upstream diff:
[0.3.27...0.3.28](max-sixty/tend@0.3.27...0.3.28)

Co-authored-by: worktrunk-bot <[email protected]>
leaf-agent added a commit to max-sixty/leaf that referenced this pull request Nov 21, 2026
Regenerates the Tend workflows with tend 0.3.28 (from 0.3.27). The YAML
change is only the version pins on the `setup-runtime`, `claude` and
`land` actions and the generated header, plus a reworded comment in
`tend-ci-failures.yaml`. The behavior changes come with the new action
and skill versions:

- **CI failure reports:** after triage closes a report, the next failure
on that lane files a new report instead of reopening the closed one
(max-sixty/tend#1715).
- **Creation allowance:** when the proxy refuses an issue or PR
creation, Tend files one tracker per spell of refusals, and that tracker
doesn't count against the cap (max-sixty/tend#1716).
- **Reviews:** a review approves only a PR worth merging, not one that
is merely correct (max-sixty/tend#1651). The duplication check now looks
wider, and the nightly survey pairs copies across files
(max-sixty/tend#1646).
- **CI polling:** `poll-pr-checks` no longer reports green, or approves,
on a conflicting PR head where no CI ran (max-sixty/tend#1713). CI waits
stay off `gh event listen` (max-sixty/tend#1708).
- **Instructions:** sessions read the nested instruction files
(`AGENTS.md`) for the code they edit or review (max-sixty/tend#1712).

`.config/tend.yaml` pins no model, so no model default changes here.

Full upstream diff:
max-sixty/tend@0.3.27...0.3.28

Co-authored-by: leaf-agent <[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