fix(api): clear the due-work gate after a full state re-read of the feed
Follow-up to a review note on #626 that arrived after it merged.
When the event feed position is older than what Ever Platform keeps (410), the scheduler reads the whole state again (consents, entitlements, link) and continues from the position given. A feedFailed gate set by an earlier failed page stayed set after that successful re-read. In interval mode, due maintenance work could then wait another 15 minutes and miss its window. The gate is now cleared once the re-read succeeds, and stays set if it fails (the method throws before the line).
Tests: src/ever-connect unit suites green locally (sqlite); tslint and prettier clean.
š¤ Generated with Claude Code
Summary by cubic
Fixes a follow-up from the review on #626: when the feed position is older than what Ever Platform keeps (410), the scheduler re-reads the full state and continues from the given position. A feedFailed gate set by an earlier failed page stayed set after that successful re-read, so due maintenance work in interval mode could wait another 15 minutes. The gate is now cleared once the re-read succeeds, and stays set if the re-read fails (the method throws before the line).
The test fake now supports answering 410 on the feed and 503 on the integration states. Tests verify due work waits after a failed page and after a failed re-read, and runs in the same round once the re-read succeeds.