@mark1russell7/guidebook-preparedness 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/guidebook-preparedness",
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "description": "The preparedness content of the guidebook: cited sources, the steps and marked gaps of 12 cases and 6 cuts, 40 topics in 12 areas, and the catalog of offline bundles.",
6
6
  "keywords": [
7
7
  "guidebook",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@mark1russell7/guidebook": "0.1.1",
59
59
  "@mark1russell7/guidebook-library": "0.1.1",
60
- "@mark1russell7/guidebook-plans": "0.1.1",
60
+ "@mark1russell7/guidebook-plans": "0.1.2",
61
61
  "@mark1russell7/guidebook-topics": "0.1.1"
62
62
  },
63
63
  "scripts": {
@@ -29,6 +29,9 @@ export const OPEN_CELLS: readonly string[] = [
29
29
  "civic.economy.collapse/P0",
30
30
  "civic.economy.collapse/P1",
31
31
  "security.civil-unrest/P3",
32
+ "cbrne.emp/P2",
33
+ "cbrne.emp/P3",
34
+ "geo.space-weather.geomagnetic-storm/P0",
32
35
  "energy.grid/P4",
33
36
  "energy.grid/P5",
34
37
  "water.main/P4",
package/src/data/gaps.ts CHANGED
@@ -6,6 +6,7 @@ const OF_GRID = "This case is the power cut itself. The steps of the cut `energy
6
6
  const OF_WATER = "This case is the water cut itself. The steps of the cut `water.main` apply.";
7
7
  const NO_HOME_STEP = "The emergency team and the hospital give the care after the first minutes. The sources give no household step.";
8
8
 
9
+ const NO_EMP = "The sources give no household step for this phase of an EMP. The steps of the cuts `energy.grid` and `telecom.network` apply.";
9
10
  const NO_LONG_STEP = "The sources give no step for a cut of this length. The steps of the earlier phases continue.";
10
11
 
11
12
  /** The marked gaps of the cases and the cuts. */
@@ -65,4 +66,8 @@ export const GAPS: readonly Gap[] = [
65
66
  { on: "health.medical-emergency", phase: "P1", why: NO_HOME_STEP },
66
67
  { on: "health.medical-emergency", phase: "P2", why: NO_HOME_STEP },
67
68
  { on: "health.medical-emergency", phase: "P3", why: NO_HOME_STEP },
69
+ { on: "cbrne.emp", phase: "warned", why: "The sources give no household step for a warning of a pulse. If the kind of attack is not known, the steps of a nuclear detonation apply." },
70
+ { on: "cbrne.emp", phase: "P2", why: NO_EMP },
71
+ { on: "cbrne.emp", phase: "P3", why: NO_EMP },
72
+ { on: "geo.space-weather.geomagnetic-storm", phase: "P0", why: "A storm builds over hours. The sources give no step for its first 5 minutes." },
68
73
  ];
@@ -0,0 +1,59 @@
1
+ // The trigger rules of the decision chart. Each rule cites the pages that tell its trigger and its action.
2
+ // The places of a household are input data, so the rule of the kind `place` names no place.
3
+
4
+ import type { Rule } from "@mark1russell7/guidebook-plans";
5
+
6
+ const NOW = ["P0"] as const;
7
+ const FIRST_DAYS = ["P0", "P1", "P2", "P3"] as const;
8
+
9
+ /** The trigger rules of the decision chart, by kind and rank. */
10
+ export const RULES: readonly Rule[] = [
11
+ // Where am I?
12
+ { id: "place.where", kind: "place", rank: 1, on: [], sources: ["ready-shelter", "uk-ready"], when: "You can be at home, at work or at another place of your plan.", then: "Use the plan of the place where you are: its contacts, its shelter room and its meeting place." },
13
+
14
+ // Is there an immediate danger? Each rule goes to the first steps of a case.
15
+ { id: "reflex.fire", kind: "reflex", rank: 1, on: ["fire.structure"], target: { on: "fire.structure", phases: NOW }, sources: ["ready-fire"], when: "There is smoke or fire in the building.", then: "Get out, stay out and call 911." },
16
+ { id: "reflex.gas", kind: "reflex", rank: 2, on: ["gas.main"], target: { on: "gas.main", phases: NOW }, sources: ["ready-safety"], when: "You smell gas or hear a hiss.", then: "Open a window, and get all persons out quickly." },
17
+ { id: "reflex.medical", kind: "reflex", rank: 3, on: ["health.medical-emergency"], target: { on: "health.medical-emergency", phases: NOW }, sources: ["cdc-heart", "cdc-stroke"], when: "A person has the signs of a heart attack or a stroke.", then: "Call 911 immediately." },
18
+ { id: "reflex.attack", kind: "reflex", rank: 4, on: ["civic.ai-collapse"], target: { on: "civic.ai-collapse", phases: NOW }, sources: ["fi-72h-shelter"], when: "Officials warn of a drone threat or an attack, or a general warning sounds.", then: "Go into the nearest building, and obey the instructions of the officials." },
19
+ { id: "reflex.radiation", kind: "reflex", rank: 5, on: ["cbrne.radiological"], target: { on: "cbrne.radiological", phases: ["warned", "P0"] }, sources: ["ready-radiation"], when: "Officials warn of a radiation emergency or a nuclear detonation.", then: "Get inside, stay inside and stay tuned." },
20
+ { id: "reflex.flash", kind: "reflex", rank: 5, on: ["cbrne.nuclear-detonation"], target: { on: "cbrne.nuclear-detonation", phases: NOW }, sources: ["fema-nd-guide", "ready-radiation"], when: "You see a sudden, very bright flash of light.", then: "Take cover at once, away from windows. If you are outside, lie face down." },
21
+ { id: "reflex.air-raid", kind: "reflex", rank: 5, on: ["security.nuclear-war"], target: { on: "security.nuclear-war", phases: ["warned", "P0"] }, sources: ["se-brochure-en"], when: "An air raid warning sounds.", then: "Take cover at once in the nearest shelter, cellar or room without windows." },
22
+ { id: "reflex.chemical", kind: "reflex", rank: 6, on: ["cbrne.hazardous-materials"], target: { on: "cbrne.hazardous-materials", phases: NOW }, sources: ["ready-hazmat"], when: "Officials warn of a chemical release near you.", then: "Obey the officials: shelter in place, or leave." },
23
+ { id: "reflex.tornado", kind: "reflex", rank: 7, on: ["met.tornado"], target: { on: "met.tornado", phases: ["warned", "P0"] }, sources: ["ready-tornadoes"], when: "A tornado warning comes.", then: "Go to your safe shelter immediately, away from windows, doors and outside walls." },
24
+ { id: "reflex.earthquake", kind: "reflex", rank: 8, on: ["geo.earthquake"], target: { on: "geo.earthquake", phases: NOW }, sources: ["ready-earthquakes"], when: "The ground shakes.", then: "Drop to your hands and knees, cover your head and neck, and hold on." },
25
+ { id: "reflex.flood", kind: "reflex", rank: 9, on: ["met.flood"], target: { on: "met.flood", phases: NOW }, sources: ["ready-floods"], when: "Flood water rises near you.", then: "Go to a safe shelter. Do not walk, swim or drive through flood water." },
26
+ { id: "reflex.wildfire", kind: "reflex", rank: 10, on: ["fire.wildfire"], target: { on: "fire.wildfire", phases: NOW }, sources: ["ready-wildfires"], when: "Officials tell of a wildfire near you.", then: "Obey the evacuation orders immediately." },
27
+ { id: "reflex.call", kind: "reflex", rank: 11, on: ["civic.ai-collapse"], target: { on: "civic.ai-collapse", phases: NOW }, sources: ["ftc-voice", "ic3-genai"], when: "A call or a message from family asks for money now.", then: "Hang up. Call the person back at a number that you know." },
28
+
29
+ // What is cut? Each rule goes to the module of a cut.
30
+ { id: "module.power", kind: "module", rank: 1, on: ["energy.grid"], target: { on: "energy.grid", phases: FIRST_DAYS }, sources: ["ready-power"], when: "There is no power from the grid.", then: "Use the module: no power from the grid." },
31
+ { id: "module.water", kind: "module", rank: 2, on: ["water.main"], target: { on: "water.main", phases: FIRST_DAYS }, sources: ["ready-water"], when: "There is no safe water from the main.", then: "Use the module: no water from the main." },
32
+ { id: "module.phone", kind: "module", rank: 3, on: ["telecom.network"], target: { on: "telecom.network", phases: FIRST_DAYS }, sources: ["ready-alerts"], when: "The phone or the internet does not operate.", then: "Use the module: no phone or internet." },
33
+ { id: "module.gas", kind: "module", rank: 4, on: ["gas.main"], target: { on: "gas.main", phases: FIRST_DAYS }, sources: ["ready-safety"], when: "There is no gas from the main.", then: "Use the module: no gas from the main." },
34
+ { id: "module.roads", kind: "module", rank: 5, on: ["road.local"], target: { on: "road.local", phases: FIRST_DAYS }, sources: ["ready-evacuation"], when: "The local roads are closed.", then: "Use the module: closed local roads." },
35
+ { id: "module.pharmacy", kind: "module", rank: 6, on: ["store.pharmacy"], target: { on: "store.pharmacy", phases: ["ready", "warned", "P2", "P3"] }, sources: ["fda-drugs"], when: "The pharmacy is closed.", then: "Use the module: closed pharmacy." },
36
+ { id: "module.food", kind: "module", rank: 7, on: ["infra.supply-chain.food"], target: { on: "infra.supply-chain.food", phases: FIRST_DAYS }, sources: ["ready-food", "ready-power"], when: "The shops have no food.", then: "Use your stored food, and the plan of a food supply failure." },
37
+ { id: "module.money", kind: "module", rank: 8, on: ["civic.economy.collapse"], target: { on: "civic.economy.collapse", phases: FIRST_DAYS }, sources: ["ready-financial", "dol-ui"], when: "Cards, banks or your income stop.", then: "Use your cash, and the plan of a financial collapse." },
38
+
39
+ // When do I stay?
40
+ { id: "stay.order", kind: "stay", rank: 1, on: [], target: { on: "cbrne.radiological", phases: ["warned", "P0"] }, sources: ["ready-shelter", "uk-hazards"], when: "Officials tell you to shelter in place, or to go in, stay in and tune in.", then: "Stay inside. Close the doors, the windows and the vents, and listen to the radio." },
41
+ { id: "stay.air", kind: "stay", rank: 2, on: [], target: { on: "cbrne.hazardous-materials", phases: ["P1"] }, sources: ["ready-shelter"], when: "The air outside has much debris, or officials say that it is badly contaminated.", then: "Go to an inner room with few windows, and seal it." },
42
+ { id: "stay.safe", kind: "stay", rank: 3, on: [], target: { on: "energy.grid", phases: FIRST_DAYS }, sources: ["uk-hazards", "ready-shelter"], when: "The officials give no order to leave, and the building has no obvious risk.", then: "Stay where you are, and use your supplies." },
43
+
44
+ // When do I go?
45
+ { id: "go.order", kind: "go", rank: 1, on: [], target: { on: "met.tropical.hurricane", phases: NOW }, sources: ["uk-hazards", "ready-evacuation"], when: "Officials tell you to leave.", then: "Leave immediately. A delay can put your life at risk." },
46
+ { id: "go.risk", kind: "go", rank: 2, on: [], target: { on: "fire.structure", phases: NOW }, sources: ["uk-hazards"], when: "The building has an obvious risk: fire, gas or damage.", then: "Get out, and go to a safe place." },
47
+ { id: "go.early", kind: "go", rank: 3, on: [], target: { on: "met.tropical.hurricane", phases: ["warned"] }, sources: ["ready-evacuation"], when: "A storm comes, and an evacuation seems likely.", then: "Leave early, so that the weather does not trap you." },
48
+
49
+ // When do I go to a fallback place?
50
+ { id: "fallback.heat-cold", kind: "fallback", rank: 1, on: ["energy.grid"], target: { on: "energy.grid", phases: ["P2"] }, sources: ["ready-power"], when: "There is no power, and the heat or the cold is extreme.", then: "Go to a community place with power. Ask the officials which places are open." },
51
+ { id: "fallback.home", kind: "fallback", rank: 2, on: [], target: { on: "met.tropical.hurricane", phases: ["ready"] }, sources: ["ready-evacuation", "ready-shelter"], when: "You cannot stay at home or go back to it.", then: "Go to a fallback place of your plan. To find an open shelter, text SHELTER and your ZIP code to 43362." },
52
+
53
+ // When do I change to the long plan?
54
+ { id: "long.fridge", kind: "long-plan", rank: 1, on: ["energy.grid", "food.energy"], target: { on: "energy.grid", phases: ["P2"] }, sources: ["ready-power", "ready-food"], when: "The power is off for more than 4 hours.", then: "Use the steps of P2. Discard food that was above 40 °F for 2 hours." },
55
+ { id: "long.medicine", kind: "long-plan", rank: 2, on: ["energy.grid", "health.medicine"], target: { on: "energy.grid", phases: ["P2", "P3"] }, sources: ["ready-power"], when: "The power is off for more than 1 day, and a medicine needs a refrigerator.", then: "Speak to your doctor or pharmacist immediately to get a new supply." },
56
+ { id: "long.days", kind: "long-plan", rank: 3, on: [], target: { on: "energy.grid", phases: ["P3"] }, sources: ["uk-ready"], when: "A cut continues past 3 days.", then: "Use the steps of P3 of each cut, and of the case." },
57
+ { id: "long.income", kind: "long-plan", rank: 4, on: ["civic.economy.collapse"], target: { on: "civic.economy.collapse", phases: ["P2", "P3"] }, sources: ["dol-ui"], when: "You lose your job or your income.", then: "File an unemployment claim immediately, and use the plan of a financial collapse." },
58
+ { id: "long.pandemic", kind: "long-plan", rank: 5, on: ["health.outbreak.pandemic"], target: { on: "health.outbreak.pandemic", phases: ["warned", "P1", "P2"] }, sources: ["ready-pandemic"], when: "Officials say that a pandemic spreads in your community.", then: "Stay at home as much as possible, and use the plan of a pandemic." },
59
+ ];
@@ -66,4 +66,32 @@ export const SOURCES: readonly Source[] = [
66
66
  // Backblaze gives the failure rates of the drives of its data centers. The units cite each rate as a fact, so the license permits the use.
67
67
  { id: "backblaze-hdd-2026q2", title: "Backblaze Drive Stats for Q2 2026", url: "https://www.backblaze.com/blog/backblaze-drive-stats-for-q2-2026/", license: "all-rights-reserved", checked: CHECKED, by: "Backblaze" },
68
68
  { id: "backblaze-ssd-2023", title: "SSD Edition: 2023 Drive Stats Mid-Year Review", url: "https://www.backblaze.com/blog/ssd-edition-2023-mid-year-drive-stats-review/", license: "all-rights-reserved", checked: CHECKED, by: "Backblaze" },
69
+ // The sources of the nuclear, EMP and solar storm cases, read on 2026-11-22.
70
+ { ...federal("ready-nd-flyer", "Ready.gov", "Nuclear Detonation Safety: Food, Drinking Water and Medicine", "https://www.ready.gov/sites/default/files/2023-01/ready-gov_nuclear-detonation-safety_flyer1.pdf"), checked: "2026-11-22" },
71
+ { ...federal("ready-space-weather", "Ready.gov", "Space Weather", "https://www.ready.gov/space-weather"), checked: "2026-11-22" },
72
+ { ...federal("cdc-get-inside", "CDC", "What to Do: Get Inside", "https://www.cdc.gov/radiation-emergencies/response/get-inside.html"), checked: "2026-11-22" },
73
+ { ...federal("cdc-stay-inside", "CDC", "What to Do: Stay Inside", "https://www.cdc.gov/radiation-emergencies/response/stay-inside.html"), checked: "2026-11-22" },
74
+ { ...federal("cdc-stay-tuned", "CDC", "What to Do: Stay Tuned", "https://www.cdc.gov/radiation-emergencies/response/stay-tuned.html"), checked: "2026-11-22" },
75
+ { ...federal("cdc-self-decon", "CDC", "How to Self-Decontaminate after a Radiation Emergency", "https://www.cdc.gov/radiation-emergencies/prevention/self-decontaminate.html"), checked: "2026-11-22" },
76
+ { ...federal("cdc-decon-info", "CDC", "Decontamination for Yourself and Others (infographic)", "https://www.cdc.gov/radiation-emergencies/media/pdfs/infographics/Infographic_Decontamination.pdf"), checked: "2026-11-22" },
77
+ { ...federal("cdc-help-others", "CDC", "Stay Tuned to Learn How to Help Others", "https://www.cdc.gov/radiation-emergencies/response/help-others.html"), checked: "2026-11-22" },
78
+ { ...federal("cdc-prepare", "CDC", "Preparing for a Radiation Emergency", "https://www.cdc.gov/radiation-emergencies/safety/index.html"), checked: "2026-11-22" },
79
+ { ...federal("cdc-ki", "CDC", "Potassium Iodide (KI)", "https://www.cdc.gov/radiation-emergencies/treatment/potassium-iodide.html"), checked: "2026-11-22" },
80
+ { ...federal("cdc-food-water", "CDC", "Food, Drinking Water, and Medicine Safety in a Radiation Emergency", "https://www.cdc.gov/radiation-emergencies/safety/food-drinking-water-medicine-safety.html"), checked: "2026-11-22" },
81
+ { ...federal("cdc-pets", "CDC", "How to Decontaminate Pets After a Radiation Emergency", "https://www.cdc.gov/radiation-emergencies/prevention/decontaminate-pets.html"), checked: "2026-11-22" },
82
+ { ...federal("cdc-crc", "CDC", "Community Reception Centers", "https://www.cdc.gov/radiation-emergencies/response/community-reception-centers.html"), checked: "2026-11-22" },
83
+ { ...federal("cdc-shelter", "CDC", "Go to an Emergency Shelter", "https://www.cdc.gov/radiation-emergencies/response/emergency-shelter.html"), checked: "2026-11-22" },
84
+ { ...federal("cdc-prevention", "CDC", "About Preventing and Treating Radiation Injuries and Illness", "https://www.cdc.gov/radiation-emergencies/prevention/index.html"), checked: "2026-11-22" },
85
+ { ...federal("cdc-caring", "CDC", "Radiation Emergencies: Caring for Yourself and Others", "https://www.cdc.gov/radiation-emergencies/caring/index.html"), checked: "2026-11-22" },
86
+ { ...federal("fema-nd-guide", "FEMA", "Planning Guidance for Response to a Nuclear Detonation, Third Edition", "https://www.fema.gov/sites/default/files/documents/fema_nuc-detonation-planning-guide.pdf"), checked: "2026-11-22" },
87
+ { ...federal("swpc-geostorm", "NOAA Space Weather Prediction Center", "Geomagnetic Storms", "https://www.spaceweather.gov/phenomena/geomagnetic-storms"), checked: "2026-11-22" },
88
+ { ...federal("swpc-scales", "NOAA Space Weather Prediction Center", "NOAA Space Weather Scales", "https://www.spaceweather.gov/noaa-scales-explanation"), checked: "2026-11-22" },
89
+ { ...federal("swpc-gps", "NOAA Space Weather Prediction Center", "Space Weather and GPS Systems", "https://www.spaceweather.gov/impacts/space-weather-and-gps-systems"), checked: "2026-11-22" },
90
+ { ...federal("swpc-awa", "NOAA Space Weather Prediction Center", "Alerts, Watches and Warnings", "https://www.spaceweather.gov/products/alerts-watches-and-warnings"), checked: "2026-11-22" },
91
+ { ...federal("swpc-subscribe", "NOAA Space Weather Prediction Center", "Subscription Services", "https://www.spaceweather.gov/content/subscription-services"), checked: "2026-11-22" },
92
+ // The National Risk Register gives the Open Government Licence v3.0, except where it states otherwise.
93
+ { id: "uk-nrr-2025", title: "National Risk Register 2025", url: "https://assets.publishing.service.gov.uk/media/67b5f85732b2aab18314bbe4/National_Risk_Register_2025.pdf", license: "ogl-uk-3.0", checked: "2026-11-22", by: "HM Government (Cabinet Office)" },
94
+ // The Swedish brochure and page give no license. Each step is a summary with a citation.
95
+ { id: "se-brochure-en", title: "In case of crisis or war", url: "https://rib.msb.se/filer/pdf/31523.pdf", license: "all-rights-reserved", checked: "2026-11-22", by: "Swedish Civil Defence and Resilience Agency (MCF)" },
96
+ { id: "se-shelters", title: "Good to know about civil defence shelters", url: "https://www.mcf.se/en/advice-for-individuals/civil-defence-shelters-evacuation-and-warning-systems/good-to-know-about-civil-defence-shelters/", license: "all-rights-reserved", checked: "2026-11-22", by: "Swedish Civil Defence and Resilience Agency (MCF)" },
69
97
  ];
package/src/data/steps.ts CHANGED
@@ -399,6 +399,124 @@ export const CASE_STEPS: readonly Step[] = [
399
399
  ["P2", "neighbours", "If it is safe, check on your neighbours, and give them the important information.", ["uk-hazards"]],
400
400
  ...RECOVERY,
401
401
  ]),
402
+ ...stepsOf("cbrne.nuclear-detonation", [
403
+ ["ready", "know-your-shelter", "Find the nearest strong shelter near home, work and school. Pick a basement or the center of a large brick or concrete building.", ["ready-radiation","fema-nd-guide"]],
404
+ ["ready", "alerts-and-radio", "Have more than 1 way to get emergency alerts. Keep a battery-powered or hand-crank radio.", ["ready-radiation","cdc-stay-tuned"]],
405
+ ["ready", "kit-clothes-bag", "Add to your kit a spare set of clothes for each person and a trash bag for contaminated clothes.", ["ready-radiation"]],
406
+ ["ready", "bottled-water", "Keep bottled water in your kit. Boiling does not remove radioactive material from tap water.", ["cdc-food-water"]],
407
+ ["ready", "know-ventilation", "Learn how to turn off the fans, air conditioning and forced-air heating that bring in outside air.", ["fi-72h-shelter","ready-radiation"]],
408
+ ["ready", "know-facility-plans", "Learn the shelter and evacuation plans of your schools, workplaces and care facilities.", ["ready-radiation"]],
409
+ ["ready", "ki-not-for-fallout", "Do not depend on potassium iodide (KI) after a nuclear explosion. It protects only the thyroid from radioactive iodine.", ["cdc-ki"]],
410
+ ["warned", "stay-where-you-are", "Do not go out to get family members. Schools and care facilities have their own shelter plans.", ["cdc-get-inside","cdc-prepare"]],
411
+ ["warned", "get-inside-now", "Go inside the nearest building immediately. Move away from the windows.", ["ready-radiation"]],
412
+ ["warned", "middle-or-basement", "Go to the basement or the middle of the nearest large building.", ["fema-nd-guide"]],
413
+ ["warned", "cover-from-blast", "If you cannot get inside, take cover behind anything that gives protection from the blast.", ["ready-radiation"]],
414
+ ["warned", "pets-inside", "Bring pets inside. Also bring in the pet supplies from outside for at least 24 hours.", ["cdc-pets"]],
415
+ ["P0", "flash-take-cover", "If you see a sudden bright flash, take cover at once. Get away from windows before the blast arrives.", ["fema-nd-guide"]],
416
+ ["P0", "lie-face-down", "If you are outside, lie face down. This protects your skin from the heat and flying debris.", ["ready-radiation"]],
417
+ ["P0", "inside-after-shockwave", "After the shockwave passes, go inside the nearest building as fast as you can.", ["ready-radiation"]],
418
+ ["P0", "use-10-minutes", "Use the 10 minutes or more before fallout arrives. Go to a basement or a large brick or concrete building.", ["ready-radiation","fema-nd-guide"]],
419
+ ["P0", "not-in-a-car", "Do not shelter in a car. Get out and go inside a building.", ["cdc-prepare","fema-nd-guide"]],
420
+ ["P0", "cover-mouth-nose", "If you must stay outside for a time, cover your mouth and nose with a mask, cloth or towel.", ["cdc-get-inside"]],
421
+ ["P0", "outer-clothes-at-door", "If you can, carefully take off your outer layer of clothes before you go into the building.", ["cdc-get-inside"]],
422
+ ["P1", "move-to-core", "Go to the basement or the middle of the building. Stay far from the outer walls and the roof.", ["cdc-get-inside"]],
423
+ ["P1", "leave-only-for", "Leave the shelter only for a fire, a gas leak, a building collapse or a serious injury.", ["ready-radiation","cdc-prepare"]],
424
+ ["P1", "move-from-weak-shelter", "A wood house without a basement is a weak shelter. If a strong shelter is under 15 minutes away, move there within 30 minutes.", ["fema-nd-guide"]],
425
+ ["P1", "close-up-air", "Close and lock the windows and doors. Turn off fans, air conditioning and forced-air heating. Close fireplace dampers.", ["cdc-get-inside","cdc-stay-inside"]],
426
+ ["P1", "remove-outer-clothes", "Take off your outer layer of clothes. Put them in a sealed plastic bag away from people and pets.", ["cdc-self-decon","ready-radiation"]],
427
+ ["P1", "shower", "Shower with soap and shampoo, or wash uncovered skin at a sink. Do not use conditioner or scrub.", ["cdc-decon-info","cdc-self-decon"]],
428
+ ["P1", "shelter-others", "Let people from outside shelter with you. Ask them to take off their outer clothes before they enter, then wash.", ["cdc-help-others","cdc-get-inside"]],
429
+ ["P1", "wash-pets", "If a pet was outside, wash it with soap and water. Wear waterproof gloves and a dust mask if you can.", ["cdc-pets","ready-radiation"]],
430
+ ["P2", "stay-24-hours", "Stay inside for at least 24 hours, unless officials tell you to leave. Radiation levels drop fast in that time.", ["ready-radiation","cdc-stay-inside","fema-nd-guide"]],
431
+ ["P2", "safe-drinks", "Drink bottled or sealed drinks first. Water from the toilet tank, not the bowl, and the water heater is also safe.", ["cdc-food-water","ready-nd-flyer"], [DRINK]],
432
+ ["P2", "safe-food", "Eat food that was inside or sealed. Wipe containers from outside with a damp cloth before you open them.", ["cdc-food-water","ready-nd-flyer"], [FOOD]],
433
+ ["P2", "keep-taking-medicine", "Continue to take your medicine. Wipe off any medicine container that was outside.", ["cdc-food-water","ready-nd-flyer"], [MEDICINE]],
434
+ ["P2", "watch-symptoms", "Watch for nausea, vomiting or skin burns. Get medical care when officials say it is safe to go out.", ["cdc-prevention"]],
435
+ ["P2", "pregnant-care", "If you are pregnant, follow the instructions of officials. Get medical care as soon as they say it is safe.", ["cdc-caring","cdc-prepare"]],
436
+ ["P2", "keep-away-hospitals", "Stay away from hospitals, fire stations and police stations unless you have a critical injury.", ["cdc-help-others"]],
437
+ ["P2", "leave-on-their-route", "Leave only when officials tell you. Take your kit and pet supplies, and use the route they give.", ["cdc-shelter","cdc-stay-tuned"]],
438
+ ["P3", "no-early-return", "If you evacuated, do not go back home until local officials say it is safe.", ["ready-radiation"]],
439
+ ["P3", "no-garden-food", "Do not eat food from your garden or uncovered food from outside until officials say it is safe.", ["ready-radiation","cdc-food-water"]],
440
+ ["P3", "tap-water-wait", "Drink tap water only after officials say it is safe. You can still use tap water to wash and clean.", ["cdc-food-water","cdc-self-decon"]],
441
+ ["P3", "home-cleanup-on-instruction", "Clean radioactive dust from your home only when officials tell you to. Follow their cleaning instructions.", ["cdc-stay-inside"]],
442
+ ["P3", "register-at-crc", "Go to a community reception center when officials ask. There you can get checked and register for follow-up.", ["cdc-stay-tuned","cdc-crc"]],
443
+ ["P3", "talk-to-someone", "Talk to someone if you feel upset. Surviving a nuclear emergency is a traumatic event.", ["ready-radiation"]],
444
+ ["P4", "health-checks", "Go to the health checks that radiation health experts set up for people from the affected area.", ["cdc-prevention"]],
445
+ ["P4", "long-distress", "If distress continues and support from friends does not help, get help from a health professional.", ["cdc-stay-tuned","uk-nrr-2025"]],
446
+ ["P4", "help-recovery", "To help others, look for calls for support from local officials and charities.", ["uk-nrr-2025","cdc-help-others"]],
447
+ ["P5", "long-term-checks", "Keep going to long-term health checks. High doses of radiation increase the risk of cancer later in life.", ["cdc-prepare","cdc-prevention"]],
448
+ ["P5", "join-recovery", "Take part in the recovery plans of your community. Recovery can take years.", ["uk-nrr-2025"]],
449
+ ...RECOVERY,
450
+ ]),
451
+ ...stepsOf("security.nuclear-war", [
452
+ ["ready", "locate-shelters", "Find civil defence shelters or other protective places near your home, school and workplace.", ["se-shelters","se-brochure-en"]],
453
+ ["ready", "learn-signals", "Learn the warning signals of your area, including the air raid signal and the all clear signal.", ["se-brochure-en","fi-72h-shelter"]],
454
+ ["ready", "one-week-alone", "Prepare to manage at home on your own for at least 1 week.", ["se-brochure-en"]],
455
+ ["ready", "shelter-bag", "Pack a shelter bag with water, food you can eat at room temperature, ID, cash, a phone and a charger.", ["se-shelters"]],
456
+ ["ready", "radio", "Keep a radio that works on batteries, solar power or a hand crank.", ["se-brochure-en","ready-radiation"]],
457
+ ["ready", "kit-clothes-bag", "Add to your kit a spare set of clothes for each person and a trash bag for contaminated clothes.", ["ready-radiation"]],
458
+ ["warned", "air-raid-cover", "At an air raid warning, take cover at once in the nearest shelter, cellar or other protective place.", ["se-brochure-en"]],
459
+ ["warned", "nearest-shelter", "Go to the nearest shelter. You do not have an assigned shelter.", ["se-shelters","se-brochure-en"]],
460
+ ["warned", "room-without-windows", "If no shelter is near, stay indoors in a room without windows.", ["se-brochure-en"]],
461
+ ["warned", "lie-down-outside", "If you are outside with no time to take cover, lie down on the ground, in a pit or ditch.", ["se-brochure-en"]],
462
+ ["warned", "bring-if-time", "If there is time, bring food, warm clothes and toiletries. Be ready to stay a few days.", ["se-brochure-en"]],
463
+ ["warned", "public-warning", "At a public warning signal, go indoors. Close windows and doors, turn off the ventilation and listen to the radio.", ["se-brochure-en","fi-72h-shelter"]],
464
+ ["P0", "nuclear-take-cover", "If nuclear weapons are used, take cover as for an air raid. A civil defence shelter gives the best protection.", ["se-brochure-en"]],
465
+ ["P0", "lie-face-down", "If you are outside at the flash, lie face down. This protects your skin from the heat and flying debris.", ["ready-radiation"]],
466
+ ["P0", "inside-after-shockwave", "After the shockwave passes, go inside the nearest building as fast as you can.", ["ready-radiation"]],
467
+ ["P0", "use-10-minutes", "Use the 10 minutes or more before fallout arrives. Go to a shelter, a basement or a large concrete building.", ["ready-radiation","fema-nd-guide"]],
468
+ ["P1", "stay-until-all-clear", "Stay in the shelter until you hear the all clear signal or officials tell you to leave.", ["se-brochure-en","cdc-prepare"]],
469
+ ["P1", "seal-the-room", "Close doors, windows and vents. Seal gaps with plastic wrap or duct tape. Turn off the ventilation.", ["fi-72h-shelter"]],
470
+ ["P1", "remove-outer-clothes", "Take off your outer layer of clothes. Put them in a sealed plastic bag away from people and pets.", ["cdc-self-decon"]],
471
+ ["P1", "wash", "Wash with soap and shampoo, or wash your hands, face and uncovered skin at a sink. Do not use conditioner.", ["cdc-decon-info","cdc-self-decon"]],
472
+ ["P1", "stay-where-you-are", "Do not go out to get family members. Going outside exposes you and them to dangerous radiation.", ["cdc-get-inside"]],
473
+ ["P1", "iodine-only-if-told", "Take iodine tablets only when officials tell you to. Do not leave your shelter to look for them.", ["fi-72h-shelter","cdc-ki"]],
474
+ ["P1", "phone-lines", "Use the phone only when you must, so that the lines stay open.", ["fi-72h-shelter","cdc-help-others"]],
475
+ ["P2", "stay-a-few-days", "Plan to stay in the shelter for a few days. Radiation levels drop sharply after a couple of days.", ["se-brochure-en"]],
476
+ ["P2", "help-injured", "After the all clear signal, help people who are injured or trapped.", ["se-brochure-en"]],
477
+ ["P2", "safe-food-drink", "Eat and drink only what was inside or sealed. Wipe containers from outside with a damp cloth first.", ["cdc-food-water","ready-nd-flyer"], [DRINK, FOOD]],
478
+ ["P2", "no-boiled-tap-water", "Boiling does not remove radioactive material. Drink bottled water until officials say tap water is safe.", ["cdc-food-water"], [DRINK]],
479
+ ["P2", "check-sources", "Check the news with official sources. Share only information that comes from sources you trust.", ["se-brochure-en","uk-nrr-2025"]],
480
+ ["P3", "evacuate-on-instruction", "If officials order an evacuation, follow the instructions that they give on the radio.", ["se-brochure-en"]],
481
+ ["P3", "evacuation-bag", "For an evacuation, take food and water for a few days, ID, cash, medicines, warm clothes and a map.", ["se-brochure-en"]],
482
+ ["P3", "share-with-neighbours", "Share supplies with your neighbours where you can. In a war, all people must help each other.", ["se-brochure-en"]],
483
+ ["P3", "no-garden-food", "Do not eat food from your garden or uncovered food from outside until officials say it is safe.", ["ready-radiation"]],
484
+ ["P3", "no-early-return", "If you evacuated, do not go back home until local officials say it is safe.", ["ready-radiation"]],
485
+ ["P4", "health-checks", "Go to the health checks that radiation health experts set up for people from the affected area.", ["cdc-prevention"]],
486
+ ["P4", "long-distress", "Look for signs of distress that do not stop, in you and in others. Get help from a health professional.", ["uk-nrr-2025","cdc-stay-tuned"]],
487
+ ["P4", "help-recovery", "To help others, look for calls for support from local officials and charities.", ["uk-nrr-2025"]],
488
+ ["P5", "join-recovery", "Expect recovery to take many years. Take part in the recovery plans of your community.", ["uk-nrr-2025"]],
489
+ ["P5", "long-term-checks", "Keep going to long-term health checks. High doses of radiation increase the risk of cancer later in life.", ["cdc-prepare","cdc-prevention"]],
490
+ ...RECOVERY,
491
+ ]),
492
+ ...stepsOf("cbrne.emp", [
493
+ ["ready", "battery-radio", "Keep a battery-powered or hand-crank radio. AM and FM stations outside the area can still reach it.", ["cdc-stay-tuned","fema-nd-guide"]],
494
+ ["ready", "spare-batteries", "Keep extra batteries for your radio in your emergency kit.", ["cdc-stay-tuned"]],
495
+ ["ready", "surge-protection", "Use surge protection and backup power for your most important electronic devices.", ["fema-nd-guide"]],
496
+ ["P0", "restart-battery-devices", "If a battery device stops working, take out the batteries, put them back and restart it.", ["cdc-stay-tuned","fema-nd-guide"]],
497
+ ["P0", "power-cycle", "Turn a battery device that stopped off, then on again. Most battery equipment is not damaged.", ["fema-nd-guide"]],
498
+ ["P1", "reset-breakers", "Reset tripped switches and circuit breakers to make other devices work again.", ["cdc-stay-tuned"]],
499
+ ["P1", "listen-radio", "Listen to your battery radio for news and instructions from officials.", ["cdc-stay-tuned","fema-nd-guide"]],
500
+ ["P1", "text-not-call", "If a phone call does not connect, send a text message.", ["cdc-stay-tuned"]],
501
+ ...RECOVERY,
502
+ ]),
503
+ ...stepsOf("geo.space-weather.geomagnetic-storm", [
504
+ ["ready", "subscribe-alerts", "Sign up for the space weather alerts, watches and warnings of the NOAA Space Weather Prediction Center.", ["swpc-awa","swpc-subscribe"]],
505
+ ["ready", "plan-two-weeks", "Plan for a storm period of 1 to 2 weeks, with several strong events in that time.", ["uk-nrr-2025"]],
506
+ ["ready", "paper-map", "Keep a paper map and a compass. In an extreme storm, satellite navigation can be poor for days.", ["swpc-scales","se-brochure-en"]],
507
+ ["warned", "act-on-warning", "Act on a storm warning at once. The strongest storms can reach Earth in 18 hours.", ["swpc-geostorm","swpc-awa"]],
508
+ ["warned", "follow-eas", "Follow the instructions of the Emergency Alert System.", ["ready-space-weather"]],
509
+ ["P1", "disconnect-if-told", "Disconnect electrical appliances when local officials tell you to.", ["ready-space-weather"]],
510
+ ["P1", "low-power-use", "Use as little electricity as you can. This helps power companies avoid rolling blackouts.", ["ready-space-weather"]],
511
+ ["P1", "phone-lines", "Use the phone only when you must. Keep the lines open for emergency workers.", ["ready-space-weather"]],
512
+ ["P1", "gps-errors", "Do not depend on GPS during the storm. Its position errors can grow to tens of meters or more.", ["swpc-gps","swpc-scales"]],
513
+ ["P2", "hf-radio-out", "Do not count on HF (shortwave) radio links. In an extreme storm, they can fail for 1 to 2 days.", ["swpc-scales"]],
514
+ ["P2", "satellite-recovery", "Expect satellite services and GPS to take several days to recover.", ["uk-nrr-2025","swpc-scales"]],
515
+ ["P3", "watch-repeat-events", "Keep checking the space weather alerts. Strong events can repeat during the 2-week storm period.", ["uk-nrr-2025","swpc-awa"]],
516
+ ["P3", "flights-weeks", "Expect long flights to take weeks to return to normal. Check your flights before you travel.", ["uk-nrr-2025"]],
517
+ ["P4", "transformer-months", "If officials report damaged transformers, plan for power repairs that take several months.", ["uk-nrr-2025","swpc-scales"]],
518
+ ...RECOVERY,
519
+ ]),
402
520
  ];
403
521
 
404
522
  /** The steps of the cuts. A cut is a service that an event stops. A plan of a case adds the steps of its cuts. */
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export { CHECKED, SOURCES } from "./data/sources.ts";
5
5
  export { CASE_STEPS, CUT_STEPS, STEPS } from "./data/steps.ts";
6
6
  export { GAPS } from "./data/gaps.ts";
7
7
  export { OPEN_CELLS } from "./data/coverage.ts";
8
+ export { RULES } from "./data/rules.ts";
8
9
  export { AREAS, TOPICS } from "./data/topics.ts";
9
10
  export { BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS } from "./data/bundles.ts";
10
11
  export { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LOSSES } from "./data/media.ts";
@@ -32,7 +33,7 @@ export const CASES = [
32
33
  * The cases past v1. Their steps have the same gates as the steps of `CASES`.
33
34
  * The code `civic.ai-collapse` is new. The hazard catalog of `stack-hazards` gives its cuts.
34
35
  */
35
- export const MORE_CASES = ["cbrne.hazardous-materials", "cbrne.radiological", "civic.ai-collapse", "health.outbreak.pandemic", "infra.supply-chain.food", "infra.power.grid-collapse", "cyber.infrastructure-attack", "civic.economy.collapse", "security.civil-unrest"] as const;
36
+ export const MORE_CASES = ["cbrne.hazardous-materials", "cbrne.radiological", "civic.ai-collapse", "health.outbreak.pandemic", "infra.supply-chain.food", "infra.power.grid-collapse", "cyber.infrastructure-attack", "civic.economy.collapse", "security.civil-unrest", "cbrne.nuclear-detonation", "security.nuclear-war", "cbrne.emp", "geo.space-weather.geomagnetic-storm"] as const;
36
37
 
37
38
  /** The cuts of the content. A cut is a service that an event stops. These ids are a proposal until the stack model names them. */
38
39
  export const CUTS = ["energy.grid", "water.main", "road.local", "telecom.network", "gas.main", "store.pharmacy"] as const;