mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 16:57:39 +00:00
The previous regression test drove PreferencesAuthApprovalStore against the real java.util.prefs.Preferences.userRoot() backing store, which threw IllegalArgumentException on the macOS CI runner (its preferences backend rejects operations the Linux one accepts). Extract the key derivation into a pure `authApprovalPreferenceKey` function and assert the invariant that actually matters — every derived key stays within Preferences.MAX_KEY_LENGTH, which is exactly the condition put() enforces. No OS I/O, so it runs deterministically on every platform. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015aJPf1AsPTdzdMYR6pZ4e2