githubnext/chopinPublic

Let's compose rich plans together

Scope PR readiness scans to event-related stacks #402

MergedMaggieAppletonmerged 2 commits intomainfromrefs/pull/402/head
  1. MA

    ## Why

    Routine CI and PR events were scanning every open PR, costing hundreds of GitHub API reads per event. That would waste Actions time as the readiness workflow expands beyond the pilot.

    ## Change

    - Keep full sweeps for the hourly schedule, `main` pushes, and an explicit manual sweep. - For a PR or CI event, list open PRs once and inspect only the matching PR and its connected stack. Worker completion uses active attempts from signed state, not a mutable run title. - Defer ambiguous or missing event targets to the next full sweep. Canary selection still applies.

    ## Stack and verification

    This change follows #398 in the local preparation stack. It will be restacked onto final `main` when its turn comes. The combined local #402–#404 stack passed 203 maintenance tests, `bun run ci`, `bun run types`, and `bun run build`. CI must run again on the final PR head.

    ## Scan flow

    ![Diagram showing ordinary PR events going from a full 500-read scan to a one-list affected-stack scan](https://github.com/user-attachments/assets/228ecb1e-c4b9-4716-a685-ea0b0f6f8832)

  2. MaggieAppletonauto-rebase-enabledlast month on GitHub

  3. MaggieAppletonauto-merge-disabledlast month on GitHub

  4. MaggieAppletonhead-ref-force-pushed ca1bc676ed31last month on GitHub

  5. MaggieAppletonmerged ec5af0bf6f2alast month on GitHub

  6. MaggieAppletonclosedlast month on GitHub

  7. MaggieAppletonhead-ref-deletedlast month on GitHub

  8. MaggieAppletonreferenced this in Clarify source paths in PR readiness hash reviews #403last month on GitHub

  9. MaggieAppletonreferenced this in Allow guarded CI fixes on stacked PRs #404last month on GitHub