Skip to main content

Module types

Module types 

Source
Expand description

Common types used across RCH components.

Structs§

AffinityConfig
Cache affinity settings for project-to-worker pinning.
AlertsConfig
Worker health alerting configuration.
ApiConfig
Daemon status API over TCP ([api]).
BuildCancellationMetadata
Structured cancellation metadata attached to cancelled build records.
BuildCancellationWorkerHealth
Worker health snapshot captured when a cancellation completes.
BuildHeartbeatRequest
Request to update liveness/progress for an active build.
BuildRecord
Record of a completed build.
BuildRecordInput
Input payload for recording a completed build.
BuildStats
Aggregate terminal-command statistics for build history.
CircuitBreakerConfig
Circuit breaker configuration.
CircuitStats
Circuit breaker statistics for tracking state transitions.
CommandTimingBreakdown
Timing breakdown for a single command pipeline.
CompilationConfig
CompilationMetrics
Comprehensive metrics for a single compilation.
CompilationTimer
Timer for tracking compilation phases.
CompilationTimingBreakdown
Breakdown of timing for each compilation phase.
DashboardConfig
Where the fleet dashboard is served ([dashboard]).
DoctorConfig
Doctor reliability subsystem configuration.
DoctorWebhookEndpoint
A single webhook destination for verdict transitions.
DoctorWebhooksConfig
Webhook notification surface for reliability verdict transitions.
EnvironmentConfig
Environment variable passthrough configuration.
ExecutionConfig
Execution allowlist configuration for remote builds (bd-785w).
FairnessConfig
Fairness settings for the fair_fastest selection strategy.
FleetConfig
Fleet operation configuration.
GeneralConfig
JobsConfig
Job-mode configuration ([jobs]).
Layer0Config
Layer 0 configuration pack knobs (bd-bqu38).
MetricsAggregator
Aggregator for compilation metrics with statistics.
OutputConfig
Hook output configuration.
PathTopologyConfig
Path topology configuration.
RchConfig
RCH configuration.
ReleaseRequest
Request to release reserved worker slots.
RetryConfig
Configuration for retry behavior on transient errors.
SavedTimeStats
Saved time statistics from remote builds.
SelectedWorker
Details about a selected worker for remote compilation.
SelectionConfig
Configuration for the worker selection algorithm.
SelectionDiagnostics
Machine-readable worker selector diagnostics for a selection request.
SelectionRequest
Worker selection request sent from hook to daemon.
SelectionResponse
Worker selection response from daemon to hook.
SelectionWeightConfig
Weight configuration for the balanced selection strategy.
SelfHealingConfig
Self-healing behaviors for the hook and daemon.
SelfTestConfig
Self-test scheduling and behavior configuration.
TransferConfig
WebhookConfig
Webhook configuration for alert dispatch.
WorkerCapabilities
Runtime capabilities detected on a worker.
WorkerConfig
Configuration for a remote worker.
WorkerId
Unique identifier for a worker in the fleet.
WorkerSelectionDiagnostic
Per-worker selector facts captured at worker-selection time.
WorkerToolProbe
One operator-declared tool probe as it appears in workers.toml.

Enums§

BoxRole
Box-level role (bd-wywsj): what this MACHINE is for, so “never build locally” is configuration rather than a per-call env var.
BuildHeartbeatPhase
Build execution phase for daemon heartbeat tracking.
BuildLocation
Location where a build was executed.
CircuitState
Circuit breaker state for a worker.
ColorMode
Color mode for remote command output.
CommandPriority
Per-command priority hint for worker selection.
DoctorWebhookFormat
Built-in webhook payload formats.
OutputVisibility
Visibility level for hook output.
RemoteBuildJobs
How rch derives the CARGO_BUILD_JOBS it injects into a remote build.
RequiredRuntime
Required runtime for command execution.
SelectionReason
Reason for worker selection result.
SelectionStrategy
Worker selection strategy determining how workers are chosen for jobs.
SelfHealingLogLevel
Log level for self-healing diagnostic output.
SelfTestFailureAction
Action to take when a scheduled self-test fails.
SelfTestWorkers
Which workers to include in self-test runs.
WorkerSelectionDiagnosticDecision
Final selector decision for a worker considered during routing.
WorkerStatus
Status of a worker in the fleet.

Constants§

BUILTIN_EXECUTION_BASES
Default allowlist of commands that can be executed remotely. Aligned with the classifier’s supported CompilationKind values. Command bases of every compilation kind rch knows how to offload.
LAYER0_PACK_VERSION
Version of the Layer 0 configuration pack schema (bd-bqu38 / M-1 §149).
OS_TAG_PREFIX
Tag prefix reserved for the operator-declared host OS.
SELECTION_RESPONSE_PROTOCOL_VERSION
Wire protocol version for daemon /select-worker responses.

Functions§

declared_os
The host OS an operator declared for a worker, from its tags.
default_remote_base
Default remote base path for project transfers.
default_socket_path
os_tag
Build the reserved tag for a declared OS.
validate_remote_base
Validate and normalize a remote base path. Returns an error if the path is not absolute or contains traversal sequences.
x86_64_microarch_level_from_flags
Classify an x86-64 microarchitecture level (1..=4) from a /proc/cpuinfo flags line (bd-6qchz).