pub fn module_id_path_hazard(module_id: &str) -> Result<(), String>Expand description
Why module_id cannot serve as one literal store-path component.
This refuses path hazards rather than sanitizing identities. Colons are
allowed for reserved-namespace children such as mcp:worker; platform-specific
filename legality belongs to the store, not to the identity grammar.
The daemon’s copy in registry.rs is to be replaced by a call to this helper.