awesome-copilot icon indicating copy to clipboard operation
awesome-copilot copied to clipboard

Fix stale-content detection workflow

Open aaronpowell opened this issue 5 months ago • 1 comments

Summary

The stale-content detection workflow is not reliably identifying outdated entries.

Workflow links

  • Workflow definition: https://github.com/github/awesome-copilot/blob/staged/.github/workflows/resource-staleness-report.md
  • GitHub run list: https://github.com/github/awesome-copilot/actions/workflows/resource-staleness-report.lock.yml

Scope

  • Diagnose current detection and execution failures
  • Fix detection criteria and/or workflow execution path
  • Validate results against known stale and non-stale samples
  • Document the detection behavior and thresholds

Acceptance criteria

  • Workflow runs successfully on staged
  • Stale content is identified with acceptable precision
  • False positives are limited and explainable
  • Detection criteria/config are documented

Parent

Part of #2076

aaronpowell avatar Jun 22 '26 00:06 aaronpowell

Verified healthy on the upgraded AW (#2092, gh-aw v0.80.9), including a precision spot-check.

Honest status: this workflow was not failing — 19 success / 0 failures over the last 20 runs (the only historical failure, #1375, was back in April, well pre-upgrade). PR #2092 changed only the recompiled .lock.yml; the .md source — and therefore the detection logic — is unchanged. To satisfy the precision/false-positive criteria I audited the output of the latest report (#2058, anchored 2026-06-19) against real git history.

Precision evidence:

  • True positives accurate: sampled 5 flagged-stale files — each report "Last Major Change" date matches git's actual last-commit date to the day, all genuinely >30 days old (e.g. instructions/rust.instructions.md 2025-08-08 / 315d; instructions/terraform.instructions.md 2025-07-27 / 327d).
  • Zero false positives: of 6 files committed in the 14 days before the report, none were wrongly flagged stale — all correctly treated as fresh.
  • Detection is deterministic (days since last major commit), so the classification is precise by construction.

Acceptance criteria:

  • ✅ Runs successfully (v0.80.9 on staged/main, 19/19 green).
  • ✅ Stale content identified with acceptable precision — spot-check matched git dates exactly.
  • ✅ False positives limited and explainable — 0 in sample; criterion is "days since last commit."
  • ✅ Detection criteria documented in resource-staleness-report.md.

Closing as completed.

ayangupt avatar Jun 24 '26 16:06 ayangupt