Repository navigation
fix(enrich-tend-outage-issues): batch into one comment per issue - #560
Merged
Merged
Conversation
When a backlog accumulates between nightly ticks (e.g. 57 unenriched runs on #534 today), the previous per-run shape produced one comment each, firing one sibling tend-mention run per comment plus 57 issue bumps and watcher notifications. Collapse into one comment per issue per invocation; markers stay intact (jq scan extracts multiple per body). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
max-sixty
added a commit
that referenced
this pull request
May 19, 2026
## Summary Release 0.0.25. 8 PRs since 0.0.24: - #566 review: push fixes to bot PRs by default, even when the fix needs a judgment call - #563 skills(running-tend): drop stale session-log count - #562 skills: drop dollar-amount cost asides corrupted by arg substitution - #526 fix(list-recent-runs): anchor completion window to the intended cron tick - #559 fix(skills): hard-code /tmp instead of $TMPDIR in worktree recipes - #560 fix(enrich-tend-outage-issues): batch into one comment per issue - #557 config: switch review-reviewers back to claude, demote codex-auth-refresh to reference - #556 config: switch tend's own harness back to claude #566 is the reason for cutting now: it flips the bot-PR review default from "push only mechanical fixes" to "push the fix whenever the review can articulate it, defer only when no defensible default exists." The behavior is release-gated, so it only reaches tend's own dogfooded workflows (and adopters like PRQL) once 0.0.25 is published and the nightly regen repins the action ref. No new breaking changes since 0.0.24. ## Test plan - [ ] CI green (test, test-worker, lint) - [ ] After merge: tag `0.0.25`, PyPI publish (`pypi-release.yaml` on the tag push), `uvx tend@0.0.25 --help` works - [ ] Regenerate tend's own workflows to `@0.0.25` (separate `chore: regenerate` PR, after the tag exists) Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
enrich-tend-outage-issues.shnow collapses all newly-enriched runs for a singletend-outageissue into one comment per nightly invocation, instead of one comment per run.Why
Today's nightly run 26020294231 processed a 57-run backlog on #534 and posted 57 separate comments between 07:45:44Z and 07:47:10Z. Each comment fired an
issue_commentevent, which spun up a siblingtend-mentionrun (correctly skipped by the verify step, but still consuming a runner-minute forSet up job+Complete job). The flood also bumped the issue 57 times and notified watchers each time.The script is structurally one-comment-per-run:
for RUN in unenriched_runs; do gh issue comment ... done. The behavior is independent of how the bot reasons — when a backlog accumulates, it always produces N sibling comments. This is the documented behavior in the nightly skill, and PR #376 introduced the per-run shape; the cost only became visible at the 57-run scale.Batching into one comment per issue:
tend-mentionruns per backlog burst.<!-- enriched-run:RUN_ID -->markers (multiple per comment is fine — the dedupjq scan(...)already extracts all matches per body).Notes
### [Run N](url)instead of a leading paragraph. Job sections demoted to####to keep the heading hierarchy.Evidence gist: https://gist.github.com/436c053100e5a44cdac646c9ebd3ebeb (see
## Run 26021501392).