mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Drive a real NostrClient against an in-process geode relay running FullAuthPolicy, publishing a NIP-17 gift wrap through the PoolEventOutbox retry queue. The first EVENT races ahead of AUTH and is rejected `auth-required`; a RelayAuthenticator answers the challenge and the still-pending wrap is resent on the post-AUTH resync and stored. This is the integration counterpart to PoolEventOutboxAuthTest and exercises the "auth-required must not burn the retry budget" fix end-to-end. A control test (no authenticator) proves the relay genuinely gates, so the delivery assertion isn't vacuous. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZjmYpgHP4pf79Sav5QT8a