Repository navigation
Shocks in a repairable diagram: simulated, for members of any lives - #500
Merged
Merged
Conversation
A RepairableRBD takes CCFGroup(members, Shocks(rate, p, lethal_rate)): every set of members a shock can fail is a shared cause on the cause streams, at a rate of its own, and each member keeps its own life. A strike fails the members it names that are up, in the group's order; each is repaired, or found at its test, on its own. Every exact method refuses, naming the simulation. For exponential members a seeded run is the equivalent rate-split group's; no existing seeded result changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Its own life no longer gives its failures, which the group's shocks add to: node_availability, spares_demand and spares_stock refuse, saying to simulate, as analysis_routes() reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A
RepairableRBDnow acceptsCCFGroup(members, Shocks(rate, p, lethal_rate)). The members can have any lives and do not have to be alike. Shocks arrive at their own rate, and each one fails each member with probabilityp; lethal shocks fail every member. When a shock strikes, the members it names that are up fail in the group's order, which is stated as the rule for members struck at the same instant. Each failed member is then repaired on its own. A tested member's failure stays hidden until its test, and a test that can miss uses one coin for all the failures from one strike._ccf_groups._shared_causes, fromShocks.causes) carry the group's causes at their own rates, on the existing cause streams. Each member draws its own life from its own model. For exponential members, a seeded run gives exactly the same result as the equivalent rate-split group, strike for strike. No existing seeded result changes._ccf_ratesand, for a member's own values, a new_requirements._require_own_failures. That coversnode_availability,spares_demandandspares_stock, because a member's own life no longer gives its failures;spares_demand(method="simulate")still counts them.analysis_routes()reports the same refusals.ccf_rate,ccf_pandccf_lethal_rate, with ranges.NonRepairableRBDalready expands the same model toshock_nodes, matching it to the last bit (test_shock_nodes.py).Type of change
Checklist
test_repairable_shocks.py: same seeded run asBetaFactorfor revealed and tested members, the alpha-factor chain's exact value against a plain simulation, a Weibull member against a renewal simulation written in the test, the strike order, refusals, save and load)analysis_routes, catalogue, levers, README table and capability matrices updated (regenerating the matrices changes nothing)CHANGELOG.mdupdated under[Unreleased]Notes for reviewers
Tests run: 94 passed and 4 skipped (the numba engine cases; numba is not installed here). They cover the shock tests,
test_shock_nodes,test_messages, and-k shockacross the routes, catalogue, levers and engine tests, plus the README routes check. Doctests of the touched modules: 5 passed. After the last merge of dev I re-ran the shocks, routes and levers subset: 25 passed. I did not run the full suite or catalogue-wide runs.The general problem of ordering failures that tie at one instant is not addressed here. The rule above only covers the members of one strike.
Generated by Claude Code