githubnext/chopinPublic

Let's compose rich plans together

Recover PR readiness worker dispatch #401

MergedMaggieAppletonmerged 1 commit intomainfromrefs/pull/401/head
  1. MA

    ## Why

    The live #372 retry exposed that the existing maintenance token cannot dispatch Actions workflows. The coordinator reserved an attempt, but no worker run appeared. PR #372 was not changed.

    ## Change

    - Use the coordinator's built-in `GITHUB_TOKEN` to dispatch workers and CI. The guarded worker still uses the maintenance token only to publish validated PR updates. - Let an authorized manual retry replace a reservation after five minutes when recent worker-run discovery finds no matching run. A discovered running worker retains its lock; ordinary abandoned reservations still expire after 45 minutes.

    ## Verification

    `bun test scripts/pr-maintenance`, `bun run ci`, `bun run types`, and `gh aw compile pr-readiness-worker` pass.

    ## Recovery flow

    ![Diagram of built-in-token worker dispatch and authorized retry of an undiscovered reservation](https://github.com/user-attachments/assets/97f543ec-1ab1-410a-abac-8557d1408616)

  2. MaggieAppletonauto-rebase-enabledlast month on GitHub

  3. MaggieAppletonmerged 35549a43499flast month on GitHub

  4. MaggieAppletonclosedlast month on GitHub

  5. MaggieAppletonhead-ref-deletedlast month on GitHub