fabro/lib/components/fabro-store
Scott Werner 064074233c Narrow pull request recovery to unresolved creation requests
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>
2026-09-02 12:48:21 -04:00
..
src Narrow pull request recovery to unresolved creation requests 2026-09-02 12:48:21 -04:00
tests Add a shared RunSpec test fixture and adopt it 2026-08-19 16:50:37 -04:00
Cargo.toml Move pending CLI authorizations to SQLite 2026-08-24 17:25:19 -04:00