Reliability Scenarios
Failure exposure, recovery, and operational safeguards.
Source locations
- Inputs and calculations:
mlsysim/engine/scenario_definitions/reliability.py. - Named configurations:
mlsysim/engine/scenario_catalog/reliability/. - Result schemas:
mlsysim/engine/result_types/reliability.py.
Public imports and existing class reference URLs remain stable.
Scenario contracts
- AccuracyDecayScenario: A deployed model read at
initial_accuracyand,elapsedlater, atlater_accuracy;noticedis when someone outside monitoring saw it.decay_ratefitsA(t) = A0 exp(-gamma t)through the two readings. - AutomationBreakevenScenario: A pipeline that costs
build_timeonce, againstmanual_rateof work by hand; the pipeline itself needsupkeep_rate. Break-even isbuild / (manual - upkeep). - AvailabilityScenario: A job that needs all
n_components, each up a fractionavailabilityof the time. - BulkheadAdmissionScenario: One burst of blocking calls to a stalled dependency, uncapped and with a bulkhead.
- CheckpointIntervalScenario: Checkpoints of
workloadwritten atwrite_bandwidth, against failures everymtbf. - CheckpointTraceScenario: Checkpoint
stridespriced onturnsturns that crash after the turns incrashes. - DataParallelAttackSurfaceScenario:
workloadtrained onfleetwithdp_degreedata-parallel replicas: the gradient each step exchanges, the checkpoint it writes, and the traffic of a robust aggregate that gathers every replica’s gradient instead of a ring AllReduce of their sum. - DualBankUpdateScenario: An over-the-air update that keeps a second flash bank: two copies of
modelatbytes_per_paramin the flash ofdevice. - EncryptedInferenceLatencyScenario: One inference at
plaintext_latency, with symmetric encryption around it (encryption_overhead) and computed under homomorphic encryption (fhe_multiplier). - FailureIntervalScenario:
n_componentsidentical components, each withcomponent_mtbf, over a run. - FailureIntervalSweepScenario: Interval between failures of
component_mtbfcomponents, at each job size insizes. - GroupCommitScenario:
batch_sizeintents gathered for up tobatch_timerand acknowledged by oneflush_time. - HealthProbeScenario: A readiness probe every
interval, failing aftertimeout, removing afterfailure_thresholdmisses. - HotSpareScenario:
spare_devicesheld idle beside the job infailures, priced atdevice_hour_rate. - IrreversibleLossScenario: A workload’s wrong-change risk priced with its pre-pivot check, from its agent profile.
- OutputShapingScenario: An API that returns the top
top_kofclass_countscores, rounded fromfrom_decimalstoto_decimalsdecimal places. - ProtectedMemoryFitScenario:
workload’s weights atbytes_per_weightagainsthardware’s protected memory (an enclave page cache), before activations. - QueryExtractionBudgetScenario: An extractor that needs
extraction_queriesanswers from a priced API, under three billing regimes: pay per query, a paid tier capped per day, and a lifetime per-principal allowance after which every query is billed at the per-query price. - RecoveryBudgetScenario: Cold restarts of
workloadafter failures ofn_devicescomponents ofcomponent_mtbf. - ReleaseFootprintScenario: Resident copies of
modelthat release controls hold ondevice. - RepairBreakEvenScenario: One bounded repair attempt against compensating and rebuilding to the same endpoint.
- RetentionCostScenario: One trajectory’s log (
turnsx envelope and payload) and workspace snapshot kept forperiod. - RetryAmplificationScenario: Nested retry layers, each with its own allowance, under one failing logical operation.
- RetryJitterScenario: A cohort of eligible retries released together, synchronized or with full jitter.
- SdcExposureScenario: Silent-corruption exposure of
n_devices, each atevent_rateper device-hour, perstep_timestep. - SeriesFailureScenario: A synchronous job on
n_devicesthat stops when any one component fails. - SkewCostScenario: Training-serving skew that makes
skew_rateofquery_ratewrong, each wrong prediction costingcost_per_error. - SnapshotVolumeScenario: A trajectory of
turnsturns growingstate_growthper turn, checkpointed everystride. - StragglerCostScenario: One of
n_devicesin a synchronous job runs atslow_speedof its normal rate. - ThroughputCostScenario: The same workload and resource budget served at
baseline_ratewithout a set of controls and atcontrolled_ratewith them. - UndetectedLoopScenario: An append-only loop that resends its history, run to a turn ceiling or stopped early.