Repository navigation
Route CI reports through durable ordinary issue triage - #1580
Merged
Merged
Conversation
tend-agent
approved these changes
Oct 27, 2026
Merged
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
Releases Tend 0.3.17 with bot-token CI reports through ordinary issue triage, daily recovery from open issues without pending state or a one-issue-per-day cap, reduced GitHub reads, and Claude Code 2.1.310. Bumps the package and lockfile together and adds release notes for changes since 0.3.16. Required release targets: #1580 and #1581. Validation: `wt test` passed (1,581 Python tests, 32 worker tests, worker typecheck and 6 capture tests). Full pre-commit checks passed. Publication follows an exact-commit subscription smoke; generated workflows will be updated using the published package. > _This was written by Codex on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 14, 2026
… next failure (#1677) A CI failure report now closes once triage has diagnosed it and every failure has an owner, and the lane's next failure reopens it. Reopening starts ordinary issue triage, so each failed verdict on a branch that stays red gets a session, with no workflow dispatch. ## Why Since #1580, a report enters triage through ordinary issue events: filing it starts a session. But the report stayed open for the whole red spell, so on a branch that stays red, every later failure only added a "Failed again" comment and started nothing until the daily sweep (#1581 accepted that wait). Leaf's `main` has been red since 25 Oct, and its new failures waited 3.8 to 17.7 hours for the sweep to name them. On 9 Nov, sessions started by hand after each failed verdict named every new failure they judged real within 10 to 21 minutes, for $1.24 to $1.85 each. The report stayed open because its open state meant "the lane is red". It now means what an open issue means elsewhere: work not yet handled. #1566 got a session per failure by having the reporter dispatch triage, which #1580 removed. This change keeps #1580's model and gets each session from the issue's own lifecycle. ## How it works - **Triage** (`triage/references/ci-failures.md`, new step 6 of "A report"): the session re-reads the report and diagnoses any run that arrived meanwhile. Once the runs it owes are diagnosed and each failure has an owner, a transient resolution or work a maintainer ended, it closes the report. While a failure has no owner, for example after a refused creation, it leaves the report open for the daily sweep. - **Reporter** (`ci_failure_report.py`): a failed run with no open report reopens the lane's newest report, unless the lane has passed since that report was filed. It comments before reopening, because the reopen starts the session that reads the comment. After a pass, or when the lane has no report yet, it files a new one as before. The pass check reads the run listing the superseded check already fetches. While a report is open, a failure only comments, so a burst of red verdicts starts one session, which reads them all. - **Daily sweep** (`review-runs`): it judges a red lane's newest report, open or closed, against step 6. A closed report that step 6 would no longer close, because a failure's owner lapsed, is reopened with a comment naming that failure's run, which starts its triage. An open report that step 6 would close is finished work its session didn't close, so the sweep closes it, and the next failure reopens it. Any other open report goes to triage as before. - **Review** (`review/references/approving.md`): a PR failure the default branch shares is owned by that workflow's newest report, open or closed, and the owners its diagnosis links, rather than only by an open report. - The docstring, report body, template comment, `AGENTS.md`, the README, `tend.example.yaml`, and the notifications and triage skills describe the new lifecycle. Two limits remain: - If a report session fails, or leaves a failure without an owner, the report stays open. Later failures then only comment until the daily sweep, as every failure does today. 14 of Leaf's last 200 triage runs (3 to 11 Nov) failed. - A closed report no longer means its lane is green. Its last comment says whether a pass or a diagnosis closed it. ## Validation - `uv run pytest`: 1665 passed, and `pre-commit` is clean on the changed files. The only snapshot change is the generated workflow's template comment. - A new reporter test covers the reopen, its ordering, and an earlier spell's pass-closed report. These mutations all fail it or an existing test: reopening the oldest closed report, ignoring a pass since filing, counting any pass, reopening before commenting, and never reopening. - An independent review found the stale sweep and notification wording, the step 6 ambiguities, and edge cases in an earlier previous-verdict rule. All are fixed here. One edge remains: if a maintainer re-runs an older run during a red spell and it passes, the next failure files a second report. None of Leaf's last 100 runs on main was a re-run. - Evals (Claude, current guidance, 3 trials each): `ci-report-progress` (now with a `creation-refused` near miss, where the report must stay open), `ci-report-repair-choice`, `ci-cause-recovery` and `ci-report-run-records` pass 12/12. Their rubrics now expect a diagnosed and owned report to close. I didn't run the historical arm: the old guidance never closes a report, so it could only show the rubric change. One earlier trial failed because the rubric said "close" where the case asks for a proposal. The rubric now says "propose closing". > _This was written by Claude Code on behalf of max-sixty_
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.
CI failure reports now use the bot token and enter ordinary issue triage through issue creation. Reopened issues also trigger triage. Later failure comments retain evidence for the daily sweep; the reporter no longer explicitly dispatches triage.
Triage records
tend-triage-pendingbefore admission, runs one issue worker at a time, and clears pending work only after a successful agent turn. A queued duplicate rechecks current state, and completion preserves newer reopens. Notifications and the daily sweep recover through this same workflow after checking existing ownership and access. The enqueue job executes the generated helper without checking out consumer code.Guidance keeps unfinished engineering diagnosis with the agent, uses supported verification routes before requesting missing access, and shares repair ownership only for a demonstrated common cause. Existing reports retain their identity independently of author.
Validation on the integrated candidate:
wt testpassed 1,606 Python tests, 32 worker tests, worker typecheck and six eval-capture tests. Pre-commit/actionlint and independent integration review pass. The pending-recovery decision case passed 3/3 with current guidance versus 0/3 historically; the other completed cases provide regression coverage. Two cause-recovery attempts timed out. These are local/offline checks, not live validation of the new generated queue.Most added lines are generated workflow snapshots and test fixtures. The pending marker is durable beyond GitHub's finite queue; it is not a provider circuit breaker, and already-queued initial attempts can still encounter an outage. Publication and consumer regeneration are required before the generated changes take effect.