mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
Fail-loud on config that would silently degrade the running relay: - readers = 0 makes every query hang forever on an empty reader pool; readers < 0 crashes with an unrelated message. optimize_interval_seconds <= 0 busy-loops PRAGMA optimize under the writer mutex. StaticConfig .validate() (called at boot) rejects both. - A typo in [[mirror]].filter (e.g. `kindss`) parsed to an empty match-everything filter through the tolerant deserializer — silently widening a trusted upstream's skip-verify scope to the whole firehose. MirrorFilterValidator strict-checks the filter JSON at boot: unknown keys and non-array list fields fail startup. - The self-mirror guard now compares scheme-insensitively (ws:// vs wss:// for the same host is still us) via displayUrl(). - The maintenance loop rethrows CancellationException and no longer swallows Errors. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtDNpayEYvJH7QuPswND3A