Repository navigation
Have Tend's review close the backlog issues a change settles - #5737
Merged
Merged
Conversation
Tend's PR review now lists the open backlog issues and reads the ones the change touches. The description says `Closes #N` where the change leaves nothing of an issue to do: it finished what remained, removed the issue's premise or recorded a decision against what it asks. It says `Part of #N` and what is left where the change does part. On Tend's own pull request the review edits the description. On someone else's it asks, inside an approval, because tend-review doesn't run again when a description is edited. The 2026-11-04 backlog triage found seven merged PRs that did an open issue's work without closing it. A replay of the rule on `claude-opus-5-5`, one headless run per case with each PR's diff and the backlog as it stood when the PR merged, named the right issue in 6 of those 7. It also closed the issue in a case where the change removed the premise, and got 9 of 9 controls right, with no false closes. The miss is #4124, whose settling call needed an inference the triage itself marked as inferred. Co-authored-by: Claude Opus 5.5 <[email protected]>
max-sixty
marked this pull request as ready for review
November 9, 2026 08:42
leaf-agent
approved these changes
Nov 9, 2026
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.
Tend's PR review now checks each change against the open backlog and gets the description to close what the change settles. Where the change leaves nothing of a
backlogissue to do, by finishing what remains, removing its premise or recording a decision against what it asks, the description saysCloses #N. Where it does part, the description saysPart of #Nand what is left, so the review of the last part can tell that part finishes the issue. On Tend's own pull request the review edits the description. On someone else's it asks in the review, and the ask goes in an approval rather than holding one back. The rule is a new section ofrunning-tend, Issues a change finishes, after Review threshold.Why
Leaf's backlog triage of 2026-11-04 found seven merged pull requests that did an open backlog issue's work without closing it. Four said
Part of #N: #3879, #3902, #3856 and #3868. Three named no issue: #4487, #4124 and #5039. Nothing asked those three to look, since/developing-leafasks forCloses #Nonly of a session that starts from a backlog item. Tend's nightly sweep reads a seventh of the open issues each night, long after the diff has left the reader's context, and, by the triage's count, it commented on none of them in ten nights. The review is the step every change passes with its diff in hand.The replay below sorts the seven more finely than the triage did. #4011, #4036 and #4013 were settled by #3879, #4124 and #5039. #3902 did half of #4023, whose five composition defects stayed open. #3856, #3868 and #4487 each did one item of #4027, which is still open. For those four the right description is
Part of #Nwith what is left. ACloses #Nwould have been wrong.Replay
Each case gets the rule as this branch ships it, together with
running-tend's Review threshold section, which it competes with. It also gets the PR's title, author, description and diff, capped at 80k characters with vendored files left out, and everybacklogissue open when the PR merged, as it read then. That list is rebuilt from the issues' creation and close times, label events and body edit history, plus their comments up to the merge. Each case runs once through a headlessclaude -ponclaude-opus-5-5(the review's model), with no tools, in a scratch home. The JSON verdict is graded against an expected answer fixed before the run.Closes #4037That is 6 of the 7 triage cases, the premise case, and 9 of 9 controls. No run closed or named an issue it shouldn't have. #5020 is a hard negative: it changes held-news notices, which #4013 is about, and the run left #4013 alone. #4124's miss held in all three wordings tried. The triage itself only inferred that the 2026-10-25 call in
reading-place.jscovers #4036's case.The clause for a removed premise or a recorded decision goes beyond the two cases Max named. It is there because the triage closed several issues as obsolete after a landed change removed their premise. Without the clause, the #5331 run read #4060 and declined: "It only makes one sentence of the issue's background out of date". With it, the run closed #4060.
Two grades were corrected after the first run, each on evidence from the record. #5252 says
Part of #5194, but #5194 was labelledbacklogonly on 2026-11-05, after #5252 merged. #5039 left a count that gains a digit outgrowing its room, as its ownthread-card.jscomment says, and #5288 fixed that on 2026-11-04, soPart of #4013naming that is also right at merge time. The final wording closed #4013 anyway.The final wording's 17 runs cost $6.75. All runs together cost $19.64, across three wordings and the two-run ablation. The script, cases, prompts, answers and results are in
.tmp/replay/of the worktree that wrote this PR, not committed. The last run used this text before one sentence was split in two.Decisions Max may reverse
running-tend, which only Tend loads./developing-leaf'sCloses #Nunder Take a backlog item stays as it is. That rule claims an item early: the closing keyword is what makesTODO.md's-linked:prquery skip it. The review then corrects a claim the change only partly fulfils toPart of #N. Repeating the search in the author's skill would make every Leaf session pay for a check the review already makes on every PR.tend-reviewruns onopened,synchronize,ready_for_reviewandreopened, not onedited, so a held approval would wait for the next push. The review approves with the ask as its body.backlog. CI failure reports and cause issues close by their own routes.Not verified