metadata
Copy public model identity into pure metadata before serialization. This snapshot contains no live client, credentials, or implementation discriminator. Serializing the live service itself is outside this contract; use this method even when the service is viewed as ModelMetadata.