Files
amethyst/commons
Vitor PamplonaandClaude Opus 5.5 98a32f4b68 perf(marmot): confirm a commit at the first relay accept
Creating a Marmot group took about a minute. publishAndConfirm waited for
every relay's verdict (15s plus 5s per transport retry) before reporting
whether any accepted, and group creation makes two commits back to back,
so one silent relay in the outbox cost each of them the whole timeout.
Marmot's publish rule only needs one acknowledged accept.

Adds an opt-in untilFirstAccept to publishAndConfirm/publishAndCollectResults
and uses it for the Marmot publisher in the app and amy. The other relays
still get the event from the pool; only the wait is skipped. Every other
caller keeps waiting for all relays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:19:17 -04:00
..