* topology: record when the cluster started
StartedAt rides on MaxVolumeIdCommand; the first non-zero value wins so
replayed or racing entries cannot move it, and the max volume id mirror
file keeps it across raft state loss.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: carry StartedAt through raft apply and snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: leader records StartedAt once per cluster
The leader records it right after the topology id. A cluster that predates
the record gets the time its first upgraded leader runs. /dir/status shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: use current StartedAt values
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* topology: never lower the mirrored max volume id
A mirror rewrite for a StartedAt change could carry a bound older than
one already persisted. Keep the highest bound, and read StartedAt under
the file lock.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* topology: let the latest applied StartedAt win
With first-wins, a master that restored an older-version snapshot without
the field could record a second value while the others kept the first.
Following the raft order makes every master converge on the same value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>