diff --git a/.github/skills/flaky-test-detector/SKILL.md b/.github/skills/flaky-test-detector/SKILL.md index 9bcde50a671..5c0a465f17f 100644 --- a/.github/skills/flaky-test-detector/SKILL.md +++ b/.github/skills/flaky-test-detector/SKILL.md @@ -184,6 +184,12 @@ The detector surfaces evidence; it does **not** by itself prove flakiness. Befor **regression**, not a flake — that is a `noop` for quarantine; flag it for human attention. - **Check `relatedIssues`** to avoid duplicate filing; an existing open issue should be updated, not duplicated. +- **A recently-closed (fixed) issue is not automatically a recurrence.** The look-back window + (`-DaysBack`) routinely includes builds from *before* a fix merged. Before commenting "recurred" + on a closed/fixed issue, confirm at least one failure's build **start time** is strictly after the + fixing PR merged (use the closing PR's merge commit time, not just `closedAt`; prefer build start + times over the date-only `lastSeen`). If all evidence predates the fix, it is stale — take no + action on that test. ## Tiered Thresholds (recommended) diff --git a/.github/workflows/flaky-test-detector.agent.md b/.github/workflows/flaky-test-detector.agent.md index 89251e7a95b..11c9878ba76 100644 --- a/.github/workflows/flaky-test-detector.agent.md +++ b/.github/workflows/flaky-test-detector.agent.md @@ -195,8 +195,23 @@ gh issue list --repo dotnet/msbuild --state all --search '"