MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / is_displayable_author_name

Function is_displayable_author_name

agents/master-coordinator/main.py:202–213  ·  view source on GitHub ↗

Filter obviously corrupted author keys from profile summaries.

(author_name: str)

Source from the content-addressed store, hash-verified

200
201
202def is_displayable_author_name(author_name: str) -> bool:
203 """Filter obviously corrupted author keys from profile summaries."""
204 if not author_name:
205 return False
206 stripped = author_name.strip()
207 if not stripped:
208 return False
209 if stripped.startswith("[") or stripped.startswith("{"):
210 return False
211 if len(stripped) > 80:
212 return False
213 return True
214
215
216def load_roles_meta() -> Dict[str, Any]:

Callers 1

format_profile_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected