10 Commits
Author SHA1 Message Date
osyandClaude Opus 5.5 a2bb874a99 Guest-driver PRs: the GitHub poller and the e2e scenario follow too
answer-utm-issue, the poller's job prompt, test-plugin and the e2e
scenario still said the guest driver is osy's and gets a fix branch
only. It is the org's (utmapp/mesa, utmapp/viogpu-wddm,
utmapp/build-viogpu3d), so a fix there opens a pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 01:15:31 -08:00
osyandClaude Opus 5.5 d9cb29bc4b ghbot: a reply is the bot's only when it is clearly addressed to it
The previous change showed the session the comments other people left
since the bot's last one. That isn't the point: the bot was not the target
of that conversation, whoever the other person is. A maintainer, another
user asking the author something different, or someone answering in the
bot's place all count.

Now, once anyone besides the author and the bot has commented since the
bot joined the thread, each of the author's comments that neither mentions
nor quotes the bot (GitHub's "Quote reply") is marked "Not clearly for
you", with the other participants' names. The session leaves such a
comment unanswered unless it is actionable for its own work: an uploaded
log, results or details it needs, or a clarifying instruction. It no longer
gets the other people's comments in its prompt, and there is no 👀 on such
a comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 18:07:52 -08:00
osyandClaude Opus 5.5 bad13daf44 ghbot: show who else spoke before the author's reply
On #7788 a maintainer asked the reporter whether they had tried 5.0.9, and
the reporter answered them. The poller dropped the maintainer's comment (no
mention, nothing started) and queued the reporter's answers as replies to
the bot. The prompt told the session they were addressed to it, so it
answered as if it had asked.

Each of the author's comments the bot is woken for (a reply or a
follow-up) now carries the comments other people left after this account's
last comment, read from the whole thread because the cursor has often
passed them already. The prompts show those comments once, as context, not
as rounds, before the author's comment, with a note that the author may be
answering them. The reply and follow-up prompts no longer say the comment
is addressed to the bot when someone else spoke: an answer to another
person's question gets no reply unless it bears on the bot's own work. No
👀 goes on such a comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 17:50:45 -08:00
osyandClaude Fable 5.2 6fcc2ddf50 ghbot: sort new issues by their type; the "enhancement" label is retired
Unasked triage takes up only issues of type Bug or with no type. The
Feature template sets its own type, so those need nothing and are never
taken up. No type means the blank form: a bug report filed that way gets
the type Bug (utmbot gh type N --bug, the only type ever set, and never
over one someone chose) and is triaged; anything else filed blank is left
alone. An issue typed Bug that is really a request is left alone too.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-14 22:04:57 -08:00
osyandClaude Fable 5.2 02657fdf72 ghbot: triage every new issue and outside bug-fix pull request unasked
Every issue opened from now on (by anyone but the bot account) and every
open pull request by someone outside the org (not a draft) is taken up
without a call. New threads send the account no notification, so the
issue list is read; nothing older than the switch-on is ever taken up.

Issues (answer-utm-issue --new), in this order:
- a template form left unfilled or filled with garbage: ignored completely;
- opened blank with too little to triage: closed as not planned, with a
  comment asking for one of the templates (utmbot gh no-template);
- a duplicate: closed through GitHub's own close-as-duplicate, which links
  the original on the issue itself (no label), with an invitation to
  reply; a possible relation is only noted, and triage goes on;
- a feature request: "enhancement";
- a filled form that still gives nothing to try: the template's missing
  fields are asked for, "needs info", and 14 days, after which the poller
  closes it. Only where the bot's own marked comment and labelling are on
  the thread, and not when the author commented, the description was
  edited, or an org member wrote since;
- cannot be triaged on this Mac: left alone, no comment;
- the rest is triaged, with "not reproducible" when it does not reproduce;
- a problem outside UTM's control (macOS, iOS, a jailbreak tool, the
  Virtualization framework): "external", and the issue stays open.
Labels come off and the issue is analyzed again when the author replies;
an issue the bot closed is reopened when the reply warrants it.

Pull requests (review-utm-pr --new): a bug fix is reproduced, fixed
independently by a subagent that never sees the pull request, compared,
merged with what the other version lacks, reviewed and validated; the
result is an approval, suggestions, or a branch on the bot's fork. Commits
made for it carry the original commit's author in the Author field. Other
pull requests are left alone.

Strangers start these sessions, so the games-db rules for untrusted input
apply and are enforced where they can be: `utmbot gh label|needs-info|
duplicate|no-template|reopen|attachment` and the posting commands work
only on the session's own thread; four labels; posted text is checked
(nothing that identifies this Mac, no links outside the reference list,
no secrets or home-folder names); attachments come only from GitHub's own
hosts, quarantined, for the sandboxed readers; links are followed only in
text an org member wrote; a pull request that changes anything run at
build time is not built here unless a member asked, and a stranger's code
runs only inside VMs.

Requests go before unasked work: one unasked triage at a time, never in
the last session slot, GHBOT_AUTO_PER_DAY (15) a day, GHBOT_AUTO=0 off.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-14 20:13:45 -08:00
osyandClaude Fable 5.2 56832043eb review-utm-pr: propose changes as suggestions or a commit on the fork, and request changes
The bot usually cannot push to another person's pull request and never
tries. A small change is a GitHub suggestion in the review (`utmbot gh
review --comments-file`); a larger one is a commit on a review/pr-<n>-…
branch of the bot's fork, linked from the comment. Either way the review
requests changes, requested reviewer or not, and a maintainer decides
whether the change goes onto the pull request.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-14 20:13:45 -08:00
osyandClaude Fable 5.2 07cffb8628 ghbot: answer authors who reply to the bot; pull requests to the org's other repositories
Replies: an issue's or pull request's author who writes after this account
commented there is answered, mention or not, whoever started that work.
GitHub's thread decides, not this Mac's records, so a triage run by hand
is covered. With no session to resume, a new one continues the earlier
work instead of starting over. An org member who is the author and
mentions the bot still calls it the usual way. `utmbot gh catchup
[--apply]` finds the replies the cursor already passed.

A fix found from such an answer is opened like any other small fix: the
small-fix rule of answer-utm-issue holds in every round, whoever wrote the
comment, and only an org member's request gets a large fix built. `gh pr
--check` refuses rounds the poller never delivered and notes when a
round's author is not a member.

Also: posting the first answer on an issue no longer fails after the post
(it read the head of a pull request that an issue does not have).

Pull requests: one rule for db-triage and answer-utm-issue, stated in
land-stack-change section 7. A fix in UTM goes through utm-review and
utm-submit as before. A fix in any other repository the org owns is opened
as a pull request there from the bot's fork (`gamesdb fix-branch --pr`,
bracketed by `utmbot gh pr --repo` in poller sessions), with the same
review and validation; on a checkout whose origin is an upstream,
fix-branch names the org's repository of the same name. A repository
someone else holds still gets a branch only. When UTM pins the repository
by commit, the UTM pull request that moves the pin is a draft on the fork
commit until a maintainer says there that the other one is merged; the bot
then pins the merged commit and marks it ready.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-14 20:13:45 -08:00
osyandClaude Opus 5.5 37727b29b1 ghbot: answer org members on the account's own PRs
The poller skipped every PR the bot account opened, so a member's
questions on a fix it submitted (utmapp/UTM#8141) were read and dropped.
Its own PRs and issues are still never reviewed, but any org member's
comment there (no mention needed) is now answered: in the session of the
issue that opened the PR when this Mac has it (opened_prs), else in a new
session told to answer and, if asked, change the PR's branch through
utm-review. A shared session never runs twice at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 18:00:52 -08:00
osyandClaude Opus 5.5 90b284d6a9 agents: run under an ad-hoc signed launcher app, ask for permissions at setup
macOS attributes a dispatched session's local-network connections (SSH to
the VMs) to the LaunchAgent's own program. With Homebrew's Python as that
program the Local Network grant did not hold (Allow helped only the
running process), so dispatcher restarts cut sessions off from the VMs.
Apple programs are exempt only with no non-Apple program (claude) between
them and the agent, so the system Python would not help either.

The dispatcher and the GitHub poller now run under "UTM Bot Agent", a
small ad-hoc signed app (no certificate needed) that spawns the real
command and waits, so it stays the responsible process. It is linked with
a random build UUID and registered with Launch Services before its first
run: macOS matches a blocked process to an app by that UUID, and two
launchers built alike would share it (no prompt, still blocked). It is
rebuilt only when its source or build recipe changes. Tested on macOS 27:
the grant holds across fresh launches.

db-setup and github-setup build it and, while the user is at the Mac, ask
for everything sessions need in a one-shot job under it: Local Network,
controlling UTM (its Info.plist carries the Apple Events usage string,
without which macOS refuses silently), Screen Recording, and UTM's
settings in its container. That last one has no dialog and its per-app
switch does not stick, so setup checks real read/write access (`defaults
export` reads an unreadable domain as empty), opens Full Disk Access and
shows the launcher in Finder. `db-setup --permissions` asks again.
load_agent retries bootstrap while a booted-out agent is still exiting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 23:23:45 -08:00
osyandClaude Opus 5.5 c33d7f18a1 GitHub: review UTM pull requests and answer issues for the bot account
review-utm-pr reviews and tests a PR on every configuration UTM's
CONTRIBUTING.md recommends; answer-utm-issue reproduces an issue, finds
the cause and replies, fixing small ones through UTM's own submission
skills. The poller (scripts/ghbot, github-setup) picks up org members'
mentions and review requests, claims each PR or issue with a 👀 reaction
so several Macs on one account divide the work, and resumes the same
session with follow-ups.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:20:48 -08:00