Files
seaweedfs/seaweed-block/core/host/master
pingqiu 2347ccb72d G5-5A round 54 follow-ups: freshness gate + lineage rule + comment
Architect review round 54 findings (3 items, all addressed):

HIGH 1 — SlotFact ignores freshness:
  ObservationStore explicitly says expired observations stay
  visible but are 'semantically ineligible for supported snapshot
  synthesis'. SlotFact was scanning the full observation map
  without checking ExpiresAt. For peer-set construction this is
  wrong: a stale heartbeat addr is unsafe to dial.
  Fix: SlotFact now skips observations where now > obs.ExpiresAt.
  New test TestObservationStore_SlotFact_ExpiredObservation_FailsClosed
  verifies the boundary (ok=true within FreshnessWindow,
  ok=false past expiry).

HIGH 2 — path 1 mis-stamps live-ship lineage:
  resolvePeers path 1 was using the peer's OWN LastPublished
  Epoch/EV. If LastPublished(v1, r2) returns r2's retained
  historical authority line (e.g., r2 was previously bound at
  Epoch=N before reassignment to r1 at Epoch=N+1), primary r1
  would stamp live-ship frames under r2's old N — breaks the
  apply gate at the replica which expects current authority.
  Fix: BOTH paths now stamp peer.Epoch/EV with subscriber's
  lineage. Authority/observation supplies addresses only;
  subscriber stamps lineage. Updated TestResolvePeers_BothBound
  to pin this (peer's old 4/1 must NOT win over subscriber's
  5/2). path-1-preferred test still passes — it's about which
  ADDR wins, not lineage.

LOW 3 — stale comment:
  collectPeers godoc still claimed observation-derived peers
  'carry Epoch=0 + EndpointVersion=0 to mark observation-derived'.
  Out of date since round-54 inheritance fix. Rewrote comment
  block to reflect current rule: both paths stamp subscriber's
  lineage; authority/observation supplies addresses only.

All G5-5A tests still pass (10/10); cmd/blockvolume G5-4
integration test PASS; full V3 suite green.

Refs: architect round 54 review of 61f5ff6.
2026-04-27 00:30:45 -07:00
..