pingqiuandClaude Opus 5.5 bdcc60d7a4 fix(authority): Bind is genesis for the volume, not only the slot
The Publisher checked IntentBind against the (volume, replica) key only,
so Bind(v,r1) then Bind(v,r2) published two epoch-1 lines for one
volume. After a restart the file store reloads only the current slot,
so a Bind for an earlier slot was accepted the same way.

A Bind is now refused with ErrBindAlreadyBound when any slot of the
volume already holds an authority line. Moving to another slot stays
IntentReassign. Same-key double Bind and Bind of a fresh volume are
unchanged.

Fixes #183.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:26:33 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%