$source) { $entry = $entries[$copyKey] ?? null; $assert(is_array($entry) && ($entry['source'] ?? null) === $source && ($entry['scope'] ?? null) === 'common' && ($entry['page'] ?? null) === 'cloud.detail' && ($entry['editor_surface'] ?? null) === 'admin', 'Operation copy entry is absent or has the wrong runtime/editor owner: ' . $copyKey); } foreach (array_keys(CloudOperationCatalog::kinds()) as $kind) { $keys = CloudOperationCatalog::copyKeys($kind); $assert($keys !== [] && isset($entries[$keys[0]]), 'Operation kind lacks a stable UserCopy key: ' . $kind); } $assert( CloudOperationCatalog::copyKeys('action', 'shutdown') === ['common.operation.action.shutdown'] && CloudOperationCatalog::copyKeys('instance_settings', null, [ 'hostname', 'password', ]) === [ 'common.operation.setting.hostname', 'common.operation.setting.password', ] && CloudOperationCatalog::copyKeys('unknown_internal_job') === [], 'Operation presentation keys do not fail closed around stable catalog codes.' );