Skip to content

Say tend-land waits for a test fix's CI, not the session that pushed it - #5789

Merged
max-sixty merged 2 commits into
mainfrom
daily/review-runs-42777800712-ci-wait
Nov 18, 2026
Merged

max-sixty merged 2 commits into
mainfrom
daily/review-runs-42777800712-ci-wait

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Sessions that fix a failing test have been polling their own pull request's CI. With Leaf's await_ci: false, tend-land owns that wait. In one case the polling session also repaired the PR in parallel with tend-land's own repair job. This change rewords the one running-tend sentence that reads as an order to wait. It now points at monitor-ci, Which heads to poll, which says which session waits, instead of reading as an order to poll. Under Leaf's config, that section hands the wait to tend-land and tells the session that pushed to record the push and not poll. The overlay doesn't repeat that rule because the rule depends on await_ci, and a copy here would override the bundled skill if that setting changed. The merge condition itself is unchanged: CI must still reach a terminal result on the exact head before the merge.

Why this sentence. Fixing a CI failure's cause is written as instructions to whoever merges: "Merge a pull request that fixes tests … The pull request's CI must reach a terminal result on the exact head (monitor-ci)." It dates from #2379, when the session fixing a test also merged it. A triage session that opens a test fix reads that pointer as its own job. Tend's monitor-ci, Which heads to poll, says the reverse: after a push to a PR with no human author, record it and don't poll. #5327 removed a similar instruction from this overlay, one that made triage sessions wait hours on a dispatched macOS run.

Effect. In triage batch 42582881973 (2026-11-09), 8 of the 11 sessions that opened a PR polled its checks, each after loading monitor-ci. The #5710 session spent about 38 of its 125 minutes polling. While it diagnosed its red CI, tend-land's repair #5749 job (42592804291) fixed the same failure and pushed first, and the triage session then dropped its own work. The 2026-11-08 sweep recorded the same 12–15 minutes of polling in four other triage sessions (#5641, #5658, #5657, #5463). Those runs and their analysis are in the monthly tracker, #5067.

What remains uncertain. The session logs redact the reasoning behind each poll, so the link from this sentence to the polling is inferred from where it points and from the #5327 precedent. If polling continues after this lands, the next step is the bundled skill.

This touches agent instructions, so it needs the control-plane owner's approval before it lands.

…e session that pushed it

Fixing a CI failure's cause told whoever merges a test fix that its CI must reach a terminal result (monitor-ci). Triage sessions read that as their own wait and polled PRs that tend-land owns under await_ci: false, and one repaired a PR in parallel with tend-land's repair job. The merge condition is unchanged.
@leaf-agent leaf-agent added the review-runs Opened by the tend-review-runs sweep label Nov 10, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The added sentence copies monitor-ci's Which heads to poll without its condition. That rule hands CI to tend-land only "when the prompt says the review's CI wait is off, under yolo"; this overlay says it for every PR with no human author. Because the repo's instructions override the bundled skills, the copy would keep telling sessions not to poll if await_ci in .config/tend.yaml ever turned on, with nobody else waiting. It is also the second copy of a rule another text owns, which this overlay's Review threshold counts as a surface trap. Pointing at the owner gets the same redirect without the copy. I'll push this as a fix.

Comment thread .claude/skills/running-tend/SKILL.md Resolved
The copied rule dropped monitor-ci's condition (the review's CI wait off,
under yolo), so the overlay would override the bundled skill if await_ci
turned on.
@max-sixty
max-sixty merged commit 86efed9 into main Nov 18, 2026
6 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-42777800712-ci-wait branch November 18, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Opened by the tend-review-runs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants