//! Shared module-id grammar for identity and declaration keys.
/// 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.