Repository navigation
fix(triage): skip bot's own monthly bookkeeping tracking issues - #800
Closed
tend-agent wants to merge 1 commit into
Closed
tend-agent wants to merge 1 commit into
tend-agent wants to merge 1 commit into
Conversation
review-reviewers/review-runs auto-open tracking issues on the 1st of each month; the issues:opened event fired a full tend-triage agent run that read the bot's own issue and silently no-op'd via the self-conversation guard — recurring wasted compute every month. Extend the triage `if:` label skip (already covering `tend-outage`) to the two tend-specific tracking labels. Kept in tend's config, not the generic generator default, since no adopter has these workflows/labels. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Owner
|
Not worth the complication. The wasted runs are real, but each one no-ops through the existing self-conversation guard, so the cost is a few CI minutes a month. Against that, the skip permanently puts tend-internal label names in
|
This was referenced Aug 2, 2026
max-sixty
pushed a commit
that referenced
this pull request
Aug 11, 2026
… dispositions (#833) ## Problem `review-runs` **Step 4: Cross-check outcomes** is the only place a run discovers that a maintainer disagreed with tend's output, and `running-in-ci` → **Learning from Feedback** depends on that discovery. But Step 4's single recipe was `gh pr list --author "$BOT_LOGIN"` — a PR-disposition query — and its prose asked only about merges, closures, and relabels. Every question it posed was answerable from state changes. That misses the most common correction shape on an issue-heavy repo: a maintainer replying in-thread that a bot claim was wrong, leaving the issue's labels and state untouched. Nothing in the section asks for it, so a run following Step 4 as written reports "0 maintainer corrective comments" while one sits in its window. The miss compounds: the all-clear gets written into the monthly tracking issue, and future runs read it as ground truth when counting occurrences under Gate 1 — so a recurring correction never accumulates the occurrences its own gate requires. Structural, not stochastic; there is no decision point. ## Solution Adds the mirror-image query next to the existing disposition one — same repo-wide `since` endpoints, inverted login filter — plus a sentence naming in-thread contradiction as a correction class, and a note that "no maintainer corrections" should only be written after the query ran. `issues/comments` covers issue and PR conversation comments; `pulls/comments` covers inline review replies, where corrections to `tend-review` output land. Both are repo-wide, so it's two calls regardless of how many threads the bot touched. The query is `--paginate`d. That is load-bearing rather than cosmetic: the response is ascending by `created_at`, so a single 100-item page drops the *newest* comments — precisely where a fresh correction sits — and the bot's own comments consume that budget before the login filter runs. A silently truncated result would reintroduce the miss this PR exists to close. The projection reports `updated_at` alongside `created_at`, because `since` filters on `updated_at`: a comment created before the window appears on the strength of an in-window edit. That is worth keeping — an edited claim is still a correction — but without both timestamps it reads as a broken filter. ## Testing Ran the recipe verbatim against this repo. It surfaces exactly the class of comment the disposition query cannot see — e.g. [#800](#800 (comment)) ("Not worth the complication.") and [#817](#817 (comment)), neither reachable from a closed/merged/relabeled signal. Both endpoints accept `since`; the `for endpoint in issues pulls` form and the nested-quoting in the `jq` filter were executed as written, not just composed. Measured the truncation the `--paginate` guards against, over a 7-day window on this repo: the unpaginated call returns 100 rows, `--paginate` returns 142, and the 42 dropped are the newest — the boundary landed at `2026-08-04T16:28:43Z`. In this particular window all 42 were the bot's own comments, so no human comment was actually lost; the mechanism is what's demonstrated, not an observed loss. Confirmed the ordering claim directly: `created_at` is monotonic across the response and `updated_at` is not. Confirmed the `since` semantics the same way — a comment created `2026-08-01T08:39:05Z` appears in a 24h window because it was updated `2026-08-04T08:50:03Z`. Also verified the reported miss reproduces from the skill text alone: Step 4 before this change contained no query filtering for non-bot comments. --- Closes #827 — automated triage --------- Co-authored-by: tend-agent <[email protected]>
tend-agent
added a commit
that referenced
this pull request
Sep 18, 2026
The exception's trailing clause banned proposing a workflow-level skip for the boot the tracker costs. That is tend's own answer to what compute is worth, shipped into every consumer's triage session — #1268 removed the same stance from `review-gates.md` on the ground that the bundled skills carry no view on it. It also sat where the proposals never came from: #800 was a `review-runs` sweep, and a triage session that obeys the preceding sentence ends at Step 2 before any cost judgment. The sentence that identifies the tracker and ends the run is the whole fix.
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.
Problem
tend-triagefires a full agent run on the bot's own monthly bookkeeping issues and exits silently — pure wasted compute, recurring every month.The
review-reviewersandreview-runsworkflows auto-open a tracking issue on the 1st of each month (review-reviewers-tracking: YYYY-MM,review-runs-tracking: YYYY-MM). Theissues: openedevent then triggerstend-triage, whoseif:only skipstend-outage-labeled issues. So triage checks out, sets up, spins up the Claude agent, reads the bot's own tracking issue, and exits via the self-conversation guard without posting anything.Observed this hour: run 30674799487 on issue #799 (
review-reviewers-tracking: 2026-08) — themax-sixty/tend/[email protected]step ran to completion, no comment posted.This is structural (the tracking issue is created deterministically with a fixed label; the trigger always fires and always no-ops) and recurring across every month:
review-reviewers-trackingdup race) + 1× (review-runs-tracking)review-reviewers-tracking+review-runs-tracking(2×)review-reviewers-tracking(1× so far)Fix
Extend the triage
if:label skip — already applied totend-outagein the base template — to also skip the two tend-specific tracking labels. Since no adopter has thereview-*workflows or their labels, the skip lives in tend's.config/tend.yamlrather than the generic generator default (which would leak tend-internal label names into every adopter's generated workflow).This is the accepted loop/no-op-prevention shape per the review-reviewers skill: a label-based skip mirroring the existing
tend-outageprecedent, not an authorship-keyed sender filter.The
.github/workflows/tend-triage.yamlchange is the rendered output ofuvx tend@latest init(0.1.12, matching the pinned action ref) — regenerating touched only this one file.Gate assessment
Evidence log: https://gist.github.com/tend-agent/e08f6e62d6478163cb425a75648eb7e4