Pilot guarded PR readiness repairs #399
- 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

MaggieAppletonauto-rebase-enabledlast month on GitHub
MaggieAppletonmerged 7fe7ff022696last month on GitHub
MaggieAppletonhead-ref-deletedlast month on GitHub