use super::DiagnosticEntry;
#[rustfmt::skip]
pub(super) const CURRENT_REASONS: &[DiagnosticEntry] = &[
DiagnosticEntry::new(1, "ACCESS_UNAVAILABLE", "access", "Access is unavailable.", None),
DiagnosticEntry::new(2, "SECURITY_CAPACITY", "authentication", "Security has reached its limit.", None),
DiagnosticEntry::new(3, "SECURITY_CONFLICT", "authentication", "Security conflicts with current state.", None),
DiagnosticEntry::new(4, "SECURITY_EXPIRED", "authentication", "Security has expired.", None),
DiagnosticEntry::new(5, "SECURITY_FAILED", "authentication", "Security failed.", None),
DiagnosticEntry::new(6, "SECURITY_INACTIVE", "authentication", "Security is inactive.", None),
DiagnosticEntry::new(7, "SECURITY_INVALID", "authentication", "Security is invalid.", None),
DiagnosticEntry::new(8, "SECURITY_INVALID_STATE", "authentication", "Security is invalid for the current state.", None),
DiagnosticEntry::new(9, "SECURITY_ORDERING", "authentication", "Security is out of order.", None),
DiagnosticEntry::new(10, "SECURITY_UNAVAILABLE", "authentication", "Security is unavailable.", None),
DiagnosticEntry::new(11, "CONFIGURATION_CAPACITY", "configuration", "Configuration has reached its limit.", None),
DiagnosticEntry::new(12, "CONFIGURATION_CONFLICT", "configuration", "Configuration conflicts with current state.", None),
DiagnosticEntry::new(13, "CONFIGURATION_DUPLICATE", "configuration", "Configuration is duplicated.", None),
DiagnosticEntry::new(14, "CONFIGURATION_EXPIRED", "configuration", "Configuration has expired.", None),
DiagnosticEntry::new(15, "CONFIGURATION_INACTIVE", "configuration", "Configuration is inactive.", None),
DiagnosticEntry::new(16, "CONFIGURATION_INCOMPLETE", "configuration", "Configuration is incomplete.", None),
DiagnosticEntry::new(17, "CONFIGURATION_INVALID", "configuration", "Configuration is invalid.", None),
DiagnosticEntry::new(18, "CONFIGURATION_INVALID_STATE", "configuration", "Configuration is invalid for the current state.", None),
DiagnosticEntry::new(19, "CONFIGURATION_UNAVAILABLE", "configuration", "Configuration is unavailable.", None),
DiagnosticEntry::new(20, "RUNTIME_INVALID", "runtime", "Runtime is invalid.", None),
DiagnosticEntry::new(21, "AUTHORITY_CAPACITY", "topology_authority", "Authority has reached its limit.", None),
DiagnosticEntry::new(22, "AUTHORITY_CONFLICT", "topology_authority", "Authority conflicts with current state.", None),
DiagnosticEntry::new(23, "AUTHORITY_DUPLICATE", "topology_authority", "Authority is duplicated.", None),
DiagnosticEntry::new(24, "AUTHORITY_FAILED", "topology_authority", "Authority failed.", None),
DiagnosticEntry::new(25, "AUTHORITY_INACTIVE", "topology_authority", "Authority is inactive.", None),
DiagnosticEntry::new(26, "AUTHORITY_INCOMPLETE", "topology_authority", "Authority is incomplete.", None),
DiagnosticEntry::new(27, "AUTHORITY_INVALID", "topology_authority", "Authority is invalid.", None),
DiagnosticEntry::new(28, "AUTHORITY_INVALID_STATE", "topology_authority", "Authority is invalid for the current state.", None),
DiagnosticEntry::new(29, "AUTHORITY_ORDERING", "topology_authority", "Authority is out of order.", None),
DiagnosticEntry::new(30, "AUTHORITY_UNAUTHORIZED", "topology_authority", "Authority is unauthorized.", None),
DiagnosticEntry::new(31, "AUTHORITY_UNAVAILABLE", "topology_authority", "Authority is unavailable.", None),
DiagnosticEntry::new(32, "AUTHORITY_UNEXPECTED_STATE", "topology_authority", "Authority is in an unexpected state.", None),
DiagnosticEntry::new(33, "AUTHORITY_UNSUPPORTED", "topology_authority", "Authority is unsupported.", None),
DiagnosticEntry::new(34, "CATALOG_CONFLICT", "registry_directory", "Catalog conflicts with current state.", None),
DiagnosticEntry::new(35, "CATALOG_INACTIVE", "registry_directory", "Catalog is inactive.", None),
DiagnosticEntry::new(36, "CATALOG_INCOMPLETE", "registry_directory", "Catalog is incomplete.", None),
DiagnosticEntry::new(37, "CATALOG_INVALID", "registry_directory", "Catalog is invalid.", None),
DiagnosticEntry::new(38, "CATALOG_INVALID_STATE", "registry_directory", "Catalog is invalid for the current state.", None),
DiagnosticEntry::new(39, "CATALOG_ORDERING", "registry_directory", "Catalog is out of order.", None),
DiagnosticEntry::new(40, "CATALOG_UNAVAILABLE", "registry_directory", "Catalog is unavailable.", None),
DiagnosticEntry::new(41, "CATALOG_UNEXPECTED_STATE", "registry_directory", "Catalog is in an unexpected state.", None),
DiagnosticEntry::new(42, "LIFECYCLE_CAPACITY", "canister_lifecycle", "Lifecycle has reached its limit.", None),
DiagnosticEntry::new(43, "LIFECYCLE_CONFLICT", "canister_lifecycle", "Lifecycle conflicts with current state.", None),
DiagnosticEntry::new(44, "LIFECYCLE_DUPLICATE", "canister_lifecycle", "Lifecycle is duplicated.", None),
DiagnosticEntry::new(45, "LIFECYCLE_FAILED", "canister_lifecycle", "Lifecycle failed.", None),
DiagnosticEntry::new(46, "LIFECYCLE_INACTIVE", "canister_lifecycle", "Lifecycle is inactive.", None),
DiagnosticEntry::new(47, "LIFECYCLE_INCOMPLETE", "canister_lifecycle", "Lifecycle is incomplete.", None),
DiagnosticEntry::new(48, "LIFECYCLE_INSUFFICIENT", "canister_lifecycle", "Lifecycle is insufficient.", None),
DiagnosticEntry::new(49, "LIFECYCLE_INVALID", "canister_lifecycle", "Lifecycle is invalid.", None),
DiagnosticEntry::new(50, "LIFECYCLE_INVALID_STATE", "canister_lifecycle", "Lifecycle is invalid for the current state.", None),
DiagnosticEntry::new(51, "LIFECYCLE_ORDERING", "canister_lifecycle", "Lifecycle is out of order.", None),
DiagnosticEntry::new(52, "LIFECYCLE_UNAVAILABLE", "canister_lifecycle", "Lifecycle is unavailable.", None),
DiagnosticEntry::new(53, "LIFECYCLE_UNEXPECTED_STATE", "canister_lifecycle", "Lifecycle is in an unexpected state.", None),
DiagnosticEntry::new(54, "ARTIFACT_CONFLICT", "artifact", "Artifact conflicts with current state.", None),
DiagnosticEntry::new(55, "ARTIFACT_DUPLICATE", "artifact", "Artifact is duplicated.", None),
DiagnosticEntry::new(56, "ARTIFACT_INVALID", "artifact", "Artifact is invalid.", None),
DiagnosticEntry::new(57, "ARTIFACT_INVALID_STATE", "artifact", "Artifact is invalid for the current state.", None),
DiagnosticEntry::new(58, "ARTIFACT_UNAVAILABLE", "artifact", "Artifact is unavailable.", None),
DiagnosticEntry::new(59, "PLATFORM_CAPACITY", "platform", "Platform has reached its limit.", None),
DiagnosticEntry::new(60, "PLATFORM_CONFLICT", "platform", "Platform conflicts with current state.", None),
DiagnosticEntry::new(61, "PLATFORM_FAILED", "platform", "Platform failed.", None),
DiagnosticEntry::new(62, "PLATFORM_INACTIVE", "platform", "Platform is inactive.", None),
DiagnosticEntry::new(63, "PLATFORM_INCOMPLETE", "platform", "Platform is incomplete.", None),
DiagnosticEntry::new(64, "PLATFORM_INVALID", "platform", "Platform is invalid.", None),
DiagnosticEntry::new(65, "PLATFORM_INVALID_STATE", "platform", "Platform is invalid for the current state.", None),
DiagnosticEntry::new(66, "PLATFORM_UNAVAILABLE", "platform", "Platform is unavailable.", None),
DiagnosticEntry::new(67, "STORAGE_FAILED", "storage", "Storage failed.", None),
DiagnosticEntry::new(68, "STORAGE_INACTIVE", "storage", "Storage is inactive.", None),
DiagnosticEntry::new(69, "STORAGE_INVALID_STATE", "storage", "Storage is invalid for the current state.", None),
DiagnosticEntry::new(70, "CODEC_CONFLICT", "canonical_state", "Codec conflicts with current state.", None),
DiagnosticEntry::new(71, "CODEC_FAILED", "canonical_state", "Codec failed.", None),
DiagnosticEntry::new(72, "CODEC_INVALID", "canonical_state", "Codec is invalid.", None),
DiagnosticEntry::new(73, "CODEC_INVALID_STATE", "canonical_state", "Codec is invalid for the current state.", None),
DiagnosticEntry::new(74, "CODEC_UNAVAILABLE", "canonical_state", "Codec is unavailable.", None),
DiagnosticEntry::new(75, "CODEC_UNSUPPORTED", "canonical_state", "Codec is unsupported.", None),
DiagnosticEntry::new(76, "DIGEST_CONFLICT", "canonical_state", "Digest conflicts with current state.", None),
DiagnosticEntry::new(77, "DIGEST_FAILED", "canonical_state", "Digest failed.", None),
DiagnosticEntry::new(78, "DIGEST_INVALID", "canonical_state", "Digest is invalid.", None),
DiagnosticEntry::new(79, "DIGEST_UNAVAILABLE", "canonical_state", "Digest is unavailable.", None),
DiagnosticEntry::new(80, "DIGEST_UNEXPECTED_STATE", "canonical_state", "Digest is in an unexpected state.", None),
DiagnosticEntry::new(81, "CAPACITY_LIMIT", "control_plane_state", "Capacity has reached its limit.", None),
DiagnosticEntry::new(82, "CAPACITY_CONFLICT", "control_plane_state", "Capacity conflicts with current state.", None),
DiagnosticEntry::new(83, "CAPACITY_INACTIVE", "control_plane_state", "Capacity is inactive.", None),
DiagnosticEntry::new(84, "CAPACITY_INCOMPLETE", "control_plane_state", "Capacity is incomplete.", None),
DiagnosticEntry::new(85, "CAPACITY_INSUFFICIENT", "control_plane_state", "Capacity is insufficient.", None),
DiagnosticEntry::new(86, "CAPACITY_INVALID", "control_plane_state", "Capacity is invalid.", None),
DiagnosticEntry::new(87, "CAPACITY_INVALID_STATE", "control_plane_state", "Capacity is invalid for the current state.", None),
DiagnosticEntry::new(88, "CAPACITY_ORDERING", "control_plane_state", "Capacity is out of order.", None),
DiagnosticEntry::new(89, "CAPACITY_UNAVAILABLE", "control_plane_state", "Capacity is unavailable.", None),
DiagnosticEntry::new(90, "CAPACITY_UNEXPECTED_STATE", "control_plane_state", "Capacity is in an unexpected state.", None),
DiagnosticEntry::new(91, "CAPACITY_UNSUPPORTED", "control_plane_state", "Capacity is unsupported.", None),
DiagnosticEntry::new(92, "COLLECTION_CAPACITY", "control_plane_state", "Collection has reached its limit.", None),
DiagnosticEntry::new(93, "COLLECTION_CONFLICT", "control_plane_state", "Collection conflicts with current state.", None),
DiagnosticEntry::new(94, "COLLECTION_INCOMPLETE", "control_plane_state", "Collection is incomplete.", None),
DiagnosticEntry::new(95, "COLLECTION_INVALID", "control_plane_state", "Collection is invalid.", None),
DiagnosticEntry::new(96, "COLLECTION_INVALID_STATE", "control_plane_state", "Collection is invalid for the current state.", None),
DiagnosticEntry::new(97, "COLLECTION_ORDERING", "control_plane_state", "Collection is out of order.", None),
DiagnosticEntry::new(98, "COLLECTION_UNAVAILABLE", "control_plane_state", "Collection is unavailable.", None),
DiagnosticEntry::new(99, "COLLECTION_UNEXPECTED_STATE", "control_plane_state", "Collection is in an unexpected state.", None),
DiagnosticEntry::new(100, "EVIDENCE_CONFLICT", "control_plane_state", "Evidence conflicts with current state.", None),
DiagnosticEntry::new(101, "EVIDENCE_DUPLICATE", "control_plane_state", "Evidence is duplicated.", None),
DiagnosticEntry::new(102, "EVIDENCE_EXPIRED", "control_plane_state", "Evidence has expired.", None),
DiagnosticEntry::new(103, "EVIDENCE_INVALID", "control_plane_state", "Evidence is invalid.", None),
DiagnosticEntry::new(104, "EVIDENCE_INVALID_STATE", "control_plane_state", "Evidence is invalid for the current state.", None),
DiagnosticEntry::new(105, "EVIDENCE_ORDERING", "control_plane_state", "Evidence is out of order.", None),
DiagnosticEntry::new(106, "EVIDENCE_UNAVAILABLE", "control_plane_state", "Evidence is unavailable.", None),
DiagnosticEntry::new(107, "EVIDENCE_UNEXPECTED_STATE", "control_plane_state", "Evidence is in an unexpected state.", None),
DiagnosticEntry::new(108, "CONTROL_PLANE_STATE_INACTIVE", "control_plane_state", "Control plane state is inactive.", None),
DiagnosticEntry::new(109, "CONTROL_PLANE_STATE_INVALID", "control_plane_state", "Control plane state is invalid.", None),
DiagnosticEntry::new(110, "POSITION_CAPACITY", "control_plane_state", "Position has reached its limit.", None),
DiagnosticEntry::new(111, "POSITION_CONFLICT", "control_plane_state", "Position conflicts with current state.", None),
DiagnosticEntry::new(112, "POSITION_DUPLICATE", "control_plane_state", "Position is duplicated.", None),
DiagnosticEntry::new(113, "POSITION_INACTIVE", "control_plane_state", "Position is inactive.", None),
DiagnosticEntry::new(114, "POSITION_INCOMPLETE", "control_plane_state", "Position is incomplete.", None),
DiagnosticEntry::new(115, "POSITION_INVALID", "control_plane_state", "Position is invalid.", None),
DiagnosticEntry::new(116, "POSITION_INVALID_STATE", "control_plane_state", "Position is invalid for the current state.", None),
DiagnosticEntry::new(117, "POSITION_ORDERING", "control_plane_state", "Position is out of order.", None),
DiagnosticEntry::new(118, "POSITION_UNAVAILABLE", "control_plane_state", "Position is unavailable.", None),
DiagnosticEntry::new(119, "REQUEST_CAPACITY", "control_plane_state", "Request has reached its limit.", None),
DiagnosticEntry::new(120, "REQUEST_CONFLICT", "control_plane_state", "Request conflicts with current state.", None),
DiagnosticEntry::new(121, "REQUEST_DUPLICATE", "control_plane_state", "Request is duplicated.", None),
DiagnosticEntry::new(122, "REQUEST_FAILED", "control_plane_state", "Request failed.", None),
DiagnosticEntry::new(123, "REQUEST_INACTIVE", "control_plane_state", "Request is inactive.", None),
DiagnosticEntry::new(124, "REQUEST_INCOMPLETE", "control_plane_state", "Request is incomplete.", None),
DiagnosticEntry::new(125, "REQUEST_INSUFFICIENT", "control_plane_state", "Request is insufficient.", None),
DiagnosticEntry::new(126, "REQUEST_INVALID", "control_plane_state", "Request is invalid.", None),
DiagnosticEntry::new(127, "REQUEST_INVALID_STATE", "control_plane_state", "Request is invalid for the current state.", None),
DiagnosticEntry::new(128, "REQUEST_ORDERING", "control_plane_state", "Request is out of order.", None),
DiagnosticEntry::new(129, "REQUEST_UNAVAILABLE", "control_plane_state", "Request is unavailable.", None),
DiagnosticEntry::new(130, "REQUEST_UNEXPECTED_STATE", "control_plane_state", "Request is in an unexpected state.", None),
DiagnosticEntry::new(131, "STATE_CAPACITY", "control_plane_state", "State has reached its limit.", None),
DiagnosticEntry::new(132, "STATE_CONFLICT", "control_plane_state", "State conflicts with current state.", None),
DiagnosticEntry::new(133, "STATE_FAILED", "control_plane_state", "State failed.", None),
DiagnosticEntry::new(134, "STATE_INACTIVE", "control_plane_state", "State is inactive.", None),
DiagnosticEntry::new(135, "STATE_INCOMPLETE", "control_plane_state", "State is incomplete.", None),
DiagnosticEntry::new(136, "STATE_INSUFFICIENT", "control_plane_state", "State is insufficient.", None),
DiagnosticEntry::new(137, "STATE_INVALID", "control_plane_state", "State is invalid.", None),
DiagnosticEntry::new(138, "STATE_INVALID_STATE", "control_plane_state", "State is invalid for the current state.", None),
DiagnosticEntry::new(139, "STATE_ORDERING", "control_plane_state", "State is out of order.", None),
DiagnosticEntry::new(140, "STATE_UNAVAILABLE", "control_plane_state", "State is unavailable.", None),
DiagnosticEntry::new(141, "STATE_UNEXPECTED_STATE", "control_plane_state", "State is in an unexpected state.", None),
DiagnosticEntry::new(142, "TIME_CAPACITY", "control_plane_state", "Time has reached its limit.", None),
DiagnosticEntry::new(143, "TIME_CONFLICT", "control_plane_state", "Time conflicts with current state.", None),
DiagnosticEntry::new(144, "TIME_INVALID", "control_plane_state", "Time is invalid.", None),
DiagnosticEntry::new(145, "TIME_INVALID_STATE", "control_plane_state", "Time is invalid for the current state.", None),
DiagnosticEntry::new(146, "TIME_ORDERING", "control_plane_state", "Time is out of order.", None),
DiagnosticEntry::new(147, "TIME_UNAVAILABLE", "control_plane_state", "Time is unavailable.", None),
DiagnosticEntry::new(148, "TIME_UNEXPECTED_STATE", "control_plane_state", "Time is in an unexpected state.", None),
DiagnosticEntry::new(149, "VERSION_CAPACITY", "control_plane_state", "Version has reached its limit.", None),
DiagnosticEntry::new(150, "VERSION_CONFLICT", "control_plane_state", "Version conflicts with current state.", None),
DiagnosticEntry::new(151, "VERSION_DUPLICATE", "control_plane_state", "Version is duplicated.", None),
DiagnosticEntry::new(152, "VERSION_INACTIVE", "control_plane_state", "Version is inactive.", None),
DiagnosticEntry::new(153, "VERSION_INVALID", "control_plane_state", "Version is invalid.", None),
DiagnosticEntry::new(154, "VERSION_INVALID_STATE", "control_plane_state", "Version is invalid for the current state.", None),
DiagnosticEntry::new(155, "VERSION_UNAVAILABLE", "control_plane_state", "Version is unavailable.", None),
DiagnosticEntry::new(156, "VERSION_UNSUPPORTED", "control_plane_state", "Version is unsupported.", None),
DiagnosticEntry::new(157, "BLOB_INVALID_STATE", "blob", "Blob is invalid for the current state.", None),
DiagnosticEntry::new(158, "AUTH_CERT_EXPIRED", "authentication", "The delegated authentication certificate has expired.", None),
DiagnosticEntry::new(159, "AUTH_TOKEN_EXPIRED", "authentication", "The delegated authentication token has expired.", None),
DiagnosticEntry::new(160, "WASM_STORE_CHUNK_MISSING", "wasm_store", "A required Wasm Store chunk or chunk set is missing.", None),
DiagnosticEntry::new(161, "WASM_STORE_MANIFEST_MISSING", "wasm_store", "A required Wasm Store manifest or exact release is missing.", None),
DiagnosticEntry::new(162, "PLATFORM_INSUFFICIENT_LIQUID_CYCLES", "platform", "The calling canister has insufficient liquid cycles to schedule an outbound call.", Some("Inspect the calling canister's liquid balance and freezing reserve; a positive native balance does not establish usable call headroom. Review funding before retrying.")),
DiagnosticEntry::new(163, "DEPLOYMENT_CYCLE_RESERVE_REQUIRED", "capacity", "The Root lacks the native cycle reserve required for a deployment step.", Some("Inspect the retained allocation and Root balance, then review same-operation native funding. Ready pool capacity does not supply Root execution reserve.")),
];
pub(super) const RETIRED_REASONS: &[super::RetiredDiagnosticEntry] = &[];