SERVER-138433In Code Review
Effective membership accessor + disagg sentinel
All functional predicates (oplog rid emission, applier rid honoring, rid-inclusive dbhash) and the hello/replSetGetStatus reporting surface need one cheap, unified membership value. Add {{getEffectiveRecordIdsGroupId(opCtx)}} (naming TBD), returning {{boost::optional<\{UUID, OpTime}>\}}: - Attached storage: the persisted marker and cached it in memory. Loaded once at startup before replication starts. Updated transactionally at every mint, every clear, and initial-sync adoption. The cache must