Repository navigation
fix(triage): open a PR when a maintainer is reasonably likely to merge it - #1471
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
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.
|
but how does worktrunk's always attempt a fix? why is leaf's different?? |
|
Worktrunk doesn't have a rule that makes it attempt fixes. Its overlay (
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. |
|
I think the discriminant should be "reasonably likely to be merged", and a couple of things to look at are:
|
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.
|
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:
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
left a comment
There was a problem hiding this comment.
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.
…rry no maintainer direction
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]>
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:
author_associationread 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 titledfeat:.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