mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-15 23:32:46 +00:00
The supervisor's periodic recovery scan asked SQLite for every run that had ever recorded an explicit pull request creation request and then replayed each inactive candidate's full history to learn whether the request was still pending. With projections now loaded on demand that set grows without bound and was replayed every scan. The candidate query now mirrors the projection reducer: a run is a candidate only when its latest creation request has no later request, created, linked, or unlinked event, and no later failure naming the same creation id. Callers still replay each candidate to confirm, so the query only has to avoid omitting a pending run, and the replayed set is bounded by in-flight requests. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||