4 Commits
Author SHA1 Message Date
osyandClaude Opus 5.5 357c00fe30 Auto-Triage: a report is done when every reported symptom is; an independent check verifies it
Report 4 (Forspoken) finished fix_proposed with the crash fixed and the
reporter's own complaint ("0 x 0", the resolution cannot be changed)
listed as still open, a design question left for a maintainer, and DXMT
validation not run.

db-triage: a report can hold several layered bugs, and fixing one crash
does not finish it.  Every symptom the reporter describes is fixed with
evidence from their path, or settled as outside UTM's control.  The
triage makes design decisions itself (the reviewer only accepts or
rejects a branch), and an explicit due-diligence list (both stacks,
attribution with CrossOver, a probe, the reporter's path rerun, the full
matrix on both backends, a perf A/B, review, published branches) comes
before fix_proposed.

The result check: finishing statuses go out through `gamesdb final`,
which in auto mode posts nothing and records the draft;
`gamesdb triage-status` refuses them there.  The dispatcher holds the
job ("checking", lease kept) and runs /utmapp-bot:db-triage-check, a
fresh read-only session that compares the draft with the report and the
evidence and records `gamesdb verdict pass|fail`.  Pass: the dispatcher
posts the comment and status (as this machine, under the job's lease).
Fail: the same triage session is resumed, context and prompt cache
intact, with the findings.  The triage has the last word: `final
--overrule REASON` after a send-back publishes unchecked, and after
three send-backs the next final is published unchecked, so the two never
loop.  A posted final stays public: a later final (a reviewer's further
changes through `dispatch retry`) is a follow-up that says why the work
continued and covers only what changed, and the check judges the thread
with `--follows-up`.

Tested on a copy of report 4 in the local db (a fork of its session):
the check failed production's draft for the open 0 x 0 (2 min, $0.56),
then for two unreviewed commits and a missing MSDN check, then passed
the result that fixes all three reported problems across four repos.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 14:57:27 -08:00
osyandClaude Opus 5.5 01f8700e46 dispatch: count real activity, wait in short steps, report only reproduced blockers
The silence watchdog read only the session log's mtime, so a quiet
3DMark A/B in a background task was killed after 45 min.  activity() now
also counts the CPU time of the session's commands (its process group,
without claude itself) and the UTM lease it touches; a session is silent
when none of them moved for 30 min.

Every dispatched session is now told: wait in steps of at most 5 minutes
and look every 1-5 minutes (a dialog or a failure is seen within
minutes, not at the end of a long timeout); never quit, kill or close an
app or VM it did not start; and report a blocker only after reproducing
it in this run, never from earlier context, a handoff or another
session's findings (a session blocked on a permission a person had
granted an hour before).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 14:57:27 -08:00
osyandClaude Opus 5.5 cb7f3937a4 dispatch: read the state fresh each round so retry takes effect
The agent loaded its state once at start and saved its in-memory copy every
minute, so a `gamesdb dispatch retry` (or `tick`, `session`) from another
process was silently overwritten. Every writer now goes through
locked_state(): read under a lock, written back when done, also after an
error as the loop always did.

`retry` gains --prompt (what the resumed session is told), refuses jobs
that are running, and says it takes effect within a minute.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 23:23:45 -08:00
osyandClaude Opus 5.5 f10d0257f3 games database: unattended Auto-Triage, moderation and Steam work
bin/gamesdb and scripts/gamesdb: the internal API through a kept-up SSH
tunnel, validated backups, and a dispatcher that runs the db skills in
unattended Claude Code sessions (usage limits, outages, blockers over
Remote Control and phone notifications, triage leases with heartbeats so
several Macs never take the same report). The db skills: setup, triage,
attachment summaries, moderation, and the Steam VM (baseline, installs,
gifts, cleanup). scripts/agentlib: session code shared with the GitHub
poller.

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