package hostclaim // SameWriterIdentity ignores claim revisions belonging to unrelated chores. func SameWriterIdentity(a, b Observed) bool { if a.Absent || b.Absent || a.Host != b.Host || a.Claim == nil || b.Claim == nil || a.Claim.Holder == nil || b.Claim.Holder == nil { return false } x, y := a.Claim.Holder, b.Claim.Holder p, q := a.Claim.Op, b.Claim.Op return x.Incarnation == y.Incarnation && x.Stamp == y.Stamp && x.Session == y.Session && x.Generation == y.Generation && x.WriterBox == y.WriterBox && p.ID == q.ID && p.Kind == q.Kind && p.Phase == q.Phase && p.Exec == q.Exec }