Skip to main content

ReliabilityReasonCode

Enum ReliabilityReasonCode 

Source
pub enum ReliabilityReasonCode {
Show 57 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, LocalBuildsDetected, LocalBuildScanUnavailable, LocalBuildAlarmStateUnavailable, LocalBuildsAbsent, RepoConvergenceUnavailable, RepoConvergenceFailed, RepoConvergenceDrift, RepoConvergenceNoWorkers, RepoConvergenceReady, WorkerRepoNotReady, HelperAvailable, HelperMissing, HelperProbeUnavailable, HookAutoStartEnabled, HookAutoStartDisabled, DaemonHookRepairEnabled, DaemonHookRepairDisabled, ConfigLoadFailed, StatusSurfaceAvailable, RepoConvergenceSurfaceAvailable, DiskPressureSurfaceAvailable, HookInstalled, HookNotInstalled, SocketPathConsistent, SocketPathMismatch, SchemaCompatible, SchemaIncompatible, WorkerMirrorOwnershipHealthy, WorkerMirrorOwnershipDrift, WorkerMirrorOwnershipCheckUnavailable, WorkerMirrorOwnershipUnprobeable, MirrorOwnershipNoWorkers,
}
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.

§

LocalBuildsDetected

Unmanaged compiler processes are running on a dispatcher.

§

LocalBuildScanUnavailable

Local compiler process observation could not complete.

§

LocalBuildAlarmStateUnavailable

The shared local-build alarm latch could not be persisted.

§

LocalBuildsAbsent

No unmanaged compiler processes were observed on the dispatcher.

§

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).

§

HookInstalled

The Claude Code PreToolUse rch hook is installed (Pass).

§

HookNotInstalled

The Claude Code PreToolUse rch hook is missing; builds will not offload.

§

SocketPathConsistent

The hook/CLI socket path matches the canonical daemon socket (Pass).

§

SocketPathMismatch

The configured socket path diverges from the canonical daemon socket; the hook may not reach the daemon.

§

SchemaCompatible

Schema versions are compatible (Pass).

§

SchemaIncompatible

Schema versions are incompatible.

§

WorkerMirrorOwnershipHealthy

A worker’s canonical mirror tree has no root-owned entries (Pass).

§

WorkerMirrorOwnershipDrift

A worker’s canonical mirror tree contains root-owned entries that will make rsync-as-ssh-user fail exit 23 until repaired. The dispatch-time preflight self-heals these (bd-8iwkm); this code surfaces the drift proactively, before a dispatch hits it.

§

WorkerMirrorOwnershipCheckUnavailable

The worker’s ownership probe could not run because passwordless sudo is unavailable to the SSH user; dispatch-time repair fails open silently in this state.

§

WorkerMirrorOwnershipUnprobeable

The per-worker ownership probe did not complete (SSH transport error or timeout); drift state on that worker is unknown.

§

MirrorOwnershipNoWorkers

No workers are configured, so there is nothing to probe (Info; the topology probe reports this condition as its own code).

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.

Source§

impl ReliabilityReasonCode

Source

pub fn runbook(self) -> Option<RunbookEntry>

Operator runbook for this reason code. Returns Some(entry) when an authored runbook exists; None for Pass/Info-state codes that don’t need a runbook (they’re not the kind of thing an operator gets paged on). Per br-62u24.20 MVP scope, the highest-leverage operational codes are authored first; remaining codes return None and will be filled in as follow-up work.

Source

pub fn authored_runbook_codes() -> Vec<Self>

Convenience: list every variant that has an authored runbook. Used by rch doctor --runbook-list to enumerate the codes an operator can request a runbook for.

Trait Implementations§

Source§

impl Clone for ReliabilityReasonCode

Source§

fn clone(&self) -> Self

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 Copy for ReliabilityReasonCode

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 Eq for ReliabilityReasonCode

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: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
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 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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