From 39b365f615daffeda5575eb606cd8ef922c53c54 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 27 Oct 2026 12:08:30 -0700 Subject: [PATCH] devops: triage skill takes next steps itself instead of suggesting them --- .claude/skills/playwright-triage/SKILL.md | 5 +++-- .claude/skills/playwright-triage/triage.md | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.claude/skills/playwright-triage/SKILL.md b/.claude/skills/playwright-triage/SKILL.md index 416afb025353f..70c39f6071348 100644 --- a/.claude/skills/playwright-triage/SKILL.md +++ b/.claude/skills/playwright-triage/SKILL.md @@ -19,8 +19,9 @@ The issue ends in exactly one of: - **A fix proposal**: a verified fix with its regression test, saved for the workflow's publish job, which opens it as a draft PR in `microsoft/playwright` and comments on the issue. -- **An investigation note**, which the workflow posts on the issue. When a team PR is open, the - note says whether that PR fixes the issue. +- **An investigation note**, which the workflow posts on the issue, when the work can't go + further here: not a to-do list of steps you could still take on the runner. When a team PR is + open, the note says whether that PR fixes the issue. - **A "can be merged" verdict** on a third party's linked PR, in the summary, when the PR survives a full review. - **A browser bug report**, next to the note, when the root cause is in Chromium, Firefox or WebKit, diff --git a/.claude/skills/playwright-triage/triage.md b/.claude/skills/playwright-triage/triage.md index 9625d28d2de53..b86d651e00bff 100644 --- a/.claude/skills/playwright-triage/triage.md +++ b/.claude/skills/playwright-triage/triage.md @@ -11,6 +11,12 @@ can't reproduce, needs a design decision, too big for one focused change), the i investigation note instead. A third party's linked PR ends it only when it survives a full review. The skill lists the exact outcomes. +A note is where the work ends because it can't go further here, not where it hands the next step +back. "The next step should be adding logs to the dispatcher" describes work you can still do on +this runner, so it isn't an outcome: add the logs, run it, and report what they showed. Bail when +you've concluded you can't fix the issue, and say why; don't bail while you can still make progress +towards a fix. + ## Before you start an issue Read the whole thread with the GitHub MCP tools: the issue, every comment and its labels. The @@ -196,7 +202,8 @@ miss. In short: substitute individual checks. - **Root cause, not symptom.** Understand why it fails before changing code. A guard that hides the - failure is not a fix. + failure is not a fix. When you don't understand it yet, instrument the code and run it here; a + hypothesis in a note is not a result. - **The condensed repro becomes the regression test,** added to an existing test as described in [Condense the repro into a test](#condense-the-repro-into-a-test). Watch it fail without the fix and pass with it; a test that never failed proves nothing. Check this again right before you @@ -294,6 +301,14 @@ you ran, meaning the full matrix of browsers, versions and variations, not only failed. That way the reader can trust the verdict without re-checking it. Call out any browser divergence. +**No next steps you could take yourself.** A note that ends in "the next step would be to add +logging to X", "someone should bisect this" or "worth checking whether Y" is unsatisfactory: that +step is yours, and the runner is the place to take it. Add the logging, run the bisect, read the +engine's source, try the variation, and come back with what it showed. Write the note only once you +can't make progress any more: the repro needs something the runner doesn't have, the fix needs a +design decision, the bug is in a browser, or every lead you had is exhausted. Then say what blocked +you as a fact, with what you tried, not as a suggestion for someone else. + **Voice.** The workflow posts the note as `github-actions`, so it speaks as the Playwright bot. Write it as [bot-voice.md](bot-voice.md) says: announce the bot in one line, verdict first, everything verbose in closed `
` blocks. The workflow appends a footer that names the bot and links the