githubnext/chopinPublic

Let's compose rich plans together

Pilot guarded PR readiness repairs #399

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

    ## What changed

    - The coordinator handles only selected PRs during the pilot and skips unrelated events before starting a runner. An hourly scan recovers missed events. - The worker investigates failing current-head CI and resolves true merge conflicts with a guarded proposal. It can renew existing design hashes after checking source bytes and recording a rationale. - A trusted job validates the Git graph, allowed paths, exact captured head and base, and verification evidence before publishing. Behind but mergeable branches no longer trigger needless rebases.

    ## Pilot

    Start with #372 after this reaches `main`: set `PR_READINESS_PRS=372`, set `PR_READINESS_HEAD_REFS=design/decision-answered-cue`, enable the worker and coordinator, then set `PR_READINESS_ENABLED=true` and dispatch the coordinator. The two older writers stay disabled until this pilot is verified.

    ## Verification

    `bun test scripts/pr-maintenance` (188 passed), `bun run ci`, `bun run types`, and `gh aw compile pr-readiness-worker` passed.

    ## Flow

    ![PR readiness pilot flow: selected events go through current-head inspection, a bounded agent repair, guarded publication, and CI recheck](https://github.com/user-attachments/assets/9581c21d-4068-4dcb-bfc0-d226db5f0c99)

  2. MaggieAppletonauto-rebase-enabledlast month on GitHub

  3. MaggieAppletonmerged 7fe7ff022696last month on GitHub

  4. MaggieAppletonclosedlast month on GitHub

  5. MaggieAppletonhead-ref-deletedlast month on GitHub