Skip to content

fix(triage): open a PR when a maintainer is reasonably likely to merge it - #1471

Merged
max-sixty merged 5 commits into
mainfrom
fix/issue-1470
Oct 2, 2026
Merged

max-sixty merged 5 commits into
mainfrom
fix/issue-1470

Conversation

@tend-agent

@tend-agent tend-agent commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Triage's Step 6 used to fix bug reports and nothing else. A small, settled change that a maintainer would plainly merge therefore ended in a comment, and someone had to mention the bot a second time to get it. Step 6 now opens a PR when a maintainer is reasonably likely to merge it, and leaves a Step 7 report otherwise. The skill names two factors to weigh:

  • What the issue is. A reproduced bug usually clears the bar. A feature request can, when the repository's docs, tests, or neighbouring code settle the behavior. An idea, or a request that leaves a product choice open, usually doesn't. Classification gains an Idea category to separate open-ended proposals from concrete feature requests. The bug bullet now also covers current behavior that gives a wrong or confusing result, even when the reporter asks for an enhancement.
  • Who is asking. A maintainer's or regular contributor's request carries the project's direction. A feature request from a new user usually waits for a maintainer to endorse it. The author_association read moves from Step 7 to Step 2, so Steps 6 and 7 share one read.

A feature PR still has to pass fix-a-bug's gates. A test of the new behavior that fails before the change, or a check the repository already runs over the edited files, stands in for the reproduction. Feature commits and PRs are titled feat:.

The evidence is two Leaf issues where the repository owner had to ask the bot to make the change triage had only diagnosed: leaf#1455 and leaf#1491. Both came from the owner, so under the new rule both would reach Step 6.

Closes #1470 — automated triage

@tend-agent tend-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 feature path can't get past the gate it's sent through. Step 6's next paragraph says /tend-ci-runner:fix-a-bug carries "the reproduction gate" and "Where a gate fails, go to Step 7". fix-a-bug requires "Bug is clearly reproducible (usually, the test written above fails)" and treats a fix without reproduction evidence as non-conservative. A feature request has no bug to reproduce, and the "check the repository already runs over the edited files" route has no failing test at all. Read literally, the motivating case (a guidance edit like leaf#1491) still ends in Step 7. The PR body says the new-behavior test plays the role of the reproduction, but the skill never says so; the suggestion below adds that sentence.

The same suggestion extends feat: to the commit as well as the title. The If fixing recipe hard-codes git commit -m "fix: …", so on its own "Title a feature feat:" leaves the commit message as fix:.

Since this PR is self-authored, I'll push the change.

@max-sixty

Copy link
Copy Markdown
Owner

but how does worktrunk's always attempt a fix? why is leaf's different??

@tend-agent

Copy link
Copy Markdown
Collaborator Author

Worktrunk doesn't have a rule that makes it attempt fixes. Its overlay (running-tend) says nothing that widens Step 6, and when an issue really is a feature request, worktrunk stops at a comment just as leaf does. #3842 and #3365 in worktrunk both got analysis only. The difference is in the issues each repo receives.

  • Worktrunk's triaged issues are mostly symptom reports. They're unlabeled and describe something broken, for example worktrunk#4322: "Bare repository layout leaves worktrees without remote tracking refs". Triage classifies those as bug reports, so they reach Step 6, and that's where the run of fix/issue-N PRs comes from. #4322's fix was even a docs change, which went through because triage read the report as a bug.
  • Both leaf issues were classified as feature requests. You opened leaf#1455 and leaf#1491 with the enhancement label already applied, and chore: bump Claude Code to 2.1.288 #1491's title ("say whether a numeric grid is a table or a chart") asks for a change instead of reporting a failure. On main, Step 6 is "Bug reports only.", so those runs never reached a fix. leaf-agent's follow-up on token_report: count Codex runs, with input meaning the same for both harnesses #1455 traced its first run to this same classification.

So the same skill text behaves differently because of how each repo's issues get classified. Leaf also runs Codex where worktrunk runs Claude, but nothing I found shows that the harness plays a part here.

This PR covers both leaf cases. The classification bullet change routes #1455 (behavior the reporter found confusing) to the bug path. #1491 is a request for a guidance edit with nothing broken, so it needs the new feature path in Step 6.

@max-sixty

Copy link
Copy Markdown
Owner

I think the discriminant should be "reasonably likely to be merged", and a couple of things to look at are:

  • is it a bug / feature request / idea / etc
  • who is requesting: a new user / regular contributor / maintainer / etc

Step 6 now weighs what the issue is (bug, feature request, idea) and who
is asking, read from author_association, instead of a fixed rule about
which categories may reach a change. Adds an Idea category and moves the
author_association read to Step 2 so steps 6 and 7 share it.
@tend-agent tend-agent changed the title fix(triage): attempt a feature request's change when the request settles it fix(triage): open a PR when a maintainer is reasonably likely to merge it Oct 1, 2026
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Done in 552981d. Step 6 now opens a PR when a maintainer is reasonably likely to merge it, and reports in Step 7 otherwise. It weighs two things:

  • What the issue is. A reproduced bug usually clears the bar. A feature request can when the repo's docs, tests, or code settle the behavior. An idea, or a request that leaves a product choice open, usually doesn't. I added an Idea category to classification so open-ended proposals are kept apart from concrete requests.
  • Who is asking. This comes from author_association and the reporter's history in the repo. A maintainer's or regular contributor's request carries the project's direction, while a new user's feature request usually waits for a maintainer to endorse it. The author_association read moved from Step 7 to Step 2 so both steps use the same read.

I kept the verifiability requirement (a failing test or an existing check standing in for the reproduction) as a separate gate, because likely-to-merge doesn't replace it. I've also rewritten the PR title and description to match.

@tend-agent tend-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.

Issues the bot opens itself pass the new "who is asking" test as a maintainer's request. Step 2 sends those issues (nightly findings, code-quality reports) through triage normally, and their author_association is COLLABORATOR, because the bot has write access. Examples are #1449 here and worktrunk#4314. A nightly that filed an issue because the change needed a maintainer's call can now have triage read that issue as maintainer direction and open the PR anyway. The suggestion on the Step 6 bullet excludes them.

The second suggestion restores the duplicate check for ideas. Before this push, an open-ended proposal was classified as a feature request and went through Step 3. Now it skips Step 3, so the Step 7 reply can miss an existing issue that already tracks the same direction.

Since this PR is self-authored, I'll push both.

@max-sixty
max-sixty merged commit 47727fd into main Oct 2, 2026
11 checks passed
@max-sixty
max-sixty deleted the fix/issue-1470 branch October 2, 2026 04:49
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Oct 4, 2026
Regenerates the Tend workflows with tend 0.3.7 (from 0.3.5). The effect
for this repo: the generated workflows now pin third-party actions and
`uv` to commits and checksums, and the bot's sessions pick up
0.3.6–0.3.7's skill and runner fixes. No `.config/tend.yaml` change was
needed.

What changes for worktrunk:

- **Supply-chain pinning** — `actions/checkout` and `astral-sh/setup-uv`
are pinned to commit SHAs (version kept as a comment), and the `uv`
download (bumped to 0.12.22) is verified against a per-arch checksum
(max-sixty/tend#1463).
- **Mention prompt moves into a skill** — `tend-mention` now invokes
`/tend-ci-runner:mention` and passes only the triggering event; the
per-event "read the context, respond, make changes" instructions that
were inlined in the workflow now live in the skill.
- **`fetch-tags: true` is dropped from checkouts.** Every Tend checkout
uses `fetch-depth: 0`, which already fetches all tags, so `build.rs`'s
`git describe` still sees them.
- **CI polling no longer waits on a job held for environment approval**
(max-sixty/tend#1473), and nightly reads the last successful run more
robustly so a cached listing can't widen its review range
(max-sixty/tend#1468).
- **Triage opens a PR when a maintainer is reasonably likely to merge
it** rather than defaulting to a comment (max-sixty/tend#1471), and
repair sessions resume unfinished bot work from the live PR state
(max-sixty/tend#1479).
- Claude Code is bumped to 2.1.288 (max-sixty/tend#1491).

Full upstream diff:
max-sixty/tend@0.3.5...0.3.7

Co-authored-by: worktrunk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Triage should attempt scoped feature fixes instead of stopping at diagnosis

2 participants