The code builds a textual member badge based on shared state and an external signature source. After a recent PR, the behavior became unstable: some errors stopped reaching the caller, and parallel calls sometimes interfere with each other more than expected.
render_badge must return Result<String, BadgeError>.<name> [<role>] - <signature>.BadgeError::Signature.Mutex<State> is needed only to access state data and should not be held unnecessarily during the slow external SignatureSource::load operation.renders counter must increase only after the string is successfully formed.member_badge.rs.SignatureSource::load returns an error.state lock.SignatureSource::load must not turn into a successful result.Alice [admin] - signed is returned.1.85.02021reviewsrc/member_badge.rsSignatureSource::load can be a slow operation and can return an errorUse line comments to explain the problem, its impact, the fix and how to test it.