pingqiuandClaude Opus 5.5 4c84545c84 authority, master: decide boot grace from the newest fact; record unsupported ready ticks; cap at the effective window
Review of #130 r2 (three P2s):

- The unsupported-volume gate records the current primary's own fresh
  slot fact on every pass (RecordPrimaryBootFact), not only when a
  promotion is considered, so a ready report ends the grace and ready
  restarts count toward flap history.
- The grace decision is ordered like the history: a superseded fact
  (older than the newest recorded one, or equal-time with another
  incarnation) is not a decision input. The decision follows the newest
  recorded fact (its incarnation, placeability and grace clock), and a
  superseded fact's endpoint is never used for a refresh. A fresh fact
  still needs to be placeable and not ready.
- The cap uses the observation store's effective freshness window
  (FreshnessConfig.EffectiveFreshnessWindow), so an omitted window caps
  at its 10s default; an unset or nonpositive grace takes the window.

Lock order unchanged: state under TopologyController.mu; the gate reads
the store snapshot (its own lock, released) before calling the
controller; no new locks.

Refs #128

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