Skip to main content

ReliabilityReasonCode

Enum ReliabilityReasonCode 

Source
pub enum ReliabilityReasonCode {
Show 44 variants WorkersConfigUnreadable, NoWorkersConfigured, WorkersConfigured, DaemonStatusUnavailable, DaemonHasNoWorkers, AllWorkersUnhealthy, PartialWorkerCapacity, WorkersHealthy, WorkerCircuitOpen, WorkerUnreachable, WorkerDegraded, WorkerReady, WorkerStatusUnrecognized, WorkerCircuitStateUnrecognized, DiskPressureUnavailable, WorkerDiskPressureCritical, WorkerDiskPressureWarning, WorkerDiskPressureHealthy, WorkerDiskPressureTelemetryGap, DiskPressureNoWorkers, ProcessDebtUnavailable, CancellationCleanupHealthy, CancellationCleanupSkipped, CancellationCleanupDegraded, CancellationCleanupFailed, RepoConvergenceUnavailable, RepoConvergenceFailed, RepoConvergenceDrift, RepoConvergenceNoWorkers, RepoConvergenceReady, WorkerRepoNotReady, HelperAvailable, HelperMissing, HelperProbeUnavailable, HookAutoStartEnabled, HookAutoStartDisabled, DaemonHookRepairEnabled, DaemonHookRepairDisabled, ConfigLoadFailed, StatusSurfaceAvailable, RepoConvergenceSurfaceAvailable, DiskPressureSurfaceAvailable, SchemaCompatible, SchemaIncompatible,
}
Expand description

One reason code per emitted reliability diagnostic. Serializes to its canonical RCH-Rnnn string form via Serialize; deserializes the same form via Deserialize.

Variants§

§

WorkersConfigUnreadable

Workers configuration could not be loaded.

§

NoWorkersConfigured

No workers configured (every build runs locally).

§

WorkersConfigured

Workers are configured (Pass).

§

DaemonStatusUnavailable

Daemon status surface is unavailable.

§

DaemonHasNoWorkers

Daemon has no registered workers.

§

AllWorkersUnhealthy

Every worker is unhealthy.

§

PartialWorkerCapacity

Some workers are healthy, some are not.

§

WorkersHealthy

All workers are healthy (Pass).

§

WorkerCircuitOpen

A worker’s circuit breaker is open.

§

WorkerUnreachable

A worker is unreachable / offline / failed.

§

WorkerDegraded

A worker is degraded (half-open circuit or not-ready).

§

WorkerReady

A worker is ready (Pass).

§

WorkerStatusUnrecognized

A worker reported an unrecognized ready_status value (defensive parse).

§

WorkerCircuitStateUnrecognized

A worker reported an unrecognized circuit_state value (defensive parse).

§

DiskPressureUnavailable

Disk-pressure surface is unavailable.

§

WorkerDiskPressureCritical

Worker disk pressure has reached critical.

§

WorkerDiskPressureWarning

Worker disk pressure has reached the warning threshold.

§

WorkerDiskPressureHealthy

Worker disk pressure is healthy (Pass).

§

WorkerDiskPressureTelemetryGap

Worker is missing fresh disk telemetry.

§

DiskPressureNoWorkers

No workers reported disk-pressure telemetry (Info; common for empty fleets).

§

ProcessDebtUnavailable

Process-debt surface is unavailable.

§

CancellationCleanupHealthy

Cancellation cleanup is healthy (Pass).

§

CancellationCleanupSkipped

Cancellation cleanup was skipped (no jobs to triage).

§

CancellationCleanupDegraded

Cancellation cleanup is degraded (some warnings).

§

CancellationCleanupFailed

Cancellation cleanup is failing.

§

RepoConvergenceUnavailable

Repo-convergence surface is unavailable.

§

RepoConvergenceFailed

One or more workers failed repo convergence.

§

RepoConvergenceDrift

Workers are drifting / stale on repo convergence.

§

RepoConvergenceNoWorkers

No workers reported repo-convergence records (Info).

§

RepoConvergenceReady

All workers are repo-converged (Pass).

§

WorkerRepoNotReady

A specific worker’s repo state is not ready.

§

HelperAvailable

A required helper binary is available (Pass).

§

HelperMissing

A required helper binary is missing.

§

HelperProbeUnavailable

The helper compatibility probe itself did not complete.

§

HookAutoStartEnabled

self_healing.hook_starts_daemon is enabled (Pass).

§

HookAutoStartDisabled

self_healing.hook_starts_daemon is disabled.

§

DaemonHookRepairEnabled

self_healing.daemon_installs_hooks is enabled (Pass).

§

DaemonHookRepairDisabled

self_healing.daemon_installs_hooks is disabled.

§

ConfigLoadFailed

Configuration could not be loaded.

§

StatusSurfaceAvailable

Unified status surface is compiled in (Pass).

§

RepoConvergenceSurfaceAvailable

Repo-convergence status endpoint is wired into the CLI (Pass).

§

DiskPressureSurfaceAvailable

Disk-pressure fields are wired into worker status (Pass).

§

SchemaCompatible

Schema versions are compatible (Pass).

§

SchemaIncompatible

Schema versions are incompatible.

Implementations§

Source§

impl ReliabilityReasonCode

Source

pub const ALL: &'static [ReliabilityReasonCode]

Every variant of this enum, useful for exhaustive iteration in tests.

Source

pub const fn name(self) -> &'static str

The CamelCase variant identifier as a static string. Used by rch error explain to render a human-readable name alongside the RCH-Rnnn code.

Source

pub const fn code(self) -> &'static str

The canonical RCH-Rnnn code string for this variant.

Source

pub const fn category(self) -> ReliabilityCategoryKind

The category this variant belongs to.

Source

pub const fn requires_restart(self) -> bool

Whether the configured remediation requires a process restart for the fix to take effect. Consumed by the reliability doctor when building RemediationStep::requires_restart (sibling bead 2s99h.15).

Policy:

  • true when the fix changes a flag/state read at daemon startup, OR when the underlying subsystem caches state at process start.
  • false when the fix is purely external (e.g., disk space, key permissions) OR when the daemon hot-reloads the relevant state.
Source

pub const fn remediation_hint(self) -> &'static str

One-line operator-facing remediation hint. Used as the default suggestion text when the diagnostic doesn’t override it.

Source§

impl ReliabilityReasonCode

Source

pub fn from_code_str(code: &str) -> Option<Self>

Reverse-lookup helper for deserialization.

Trait Implementations§

Source§

impl Clone for ReliabilityReasonCode

Source§

fn clone(&self) -> ReliabilityReasonCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReliabilityReasonCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ReliabilityReasonCode

Source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ReliabilityReasonCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ReliabilityReasonCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ReliabilityReasonCode

Source§

fn eq(&self, other: &ReliabilityReasonCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ReliabilityReasonCode

Source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for ReliabilityReasonCode

Source§

impl Eq for ReliabilityReasonCode

Source§

impl StructuralPartialEq for ReliabilityReasonCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,