Files
michilisandClaude Opus 5.5 8b8cf45da1 Let a deploy build while discovery is starved.
cashumints-web.service waited for /api/health to answer 200 before building.
Health answers 503 whenever its status is not ok, and a starved backfill
holds it there until the next backfill reads enough events, which can take
days on a thin relay set. On 2026-10-05 health was 503 against an API serving
91 mints, so no deploy could get past the gate, and the listing-flash fix sat
merged but unpublished.

Wait for /api/mints to answer instead: that is the list the build reads, and
the port being open is all this gate was for. Whether the index is big enough
to build from was already the next gate's job, which counts the list against
MIN_MINTS_FOR_BUILD. An empty database answers [] and is refused there at
zero, so the case the health wait used to cover is still covered. Starvation
still shows up on /api/health for alerting.

Updated in both copies (deploy/ and the README's quoted unit), plus the README
prose and the getHealth docblock that described the old gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 21:08:40 +02:00
..