@mark1russell7/guidebook-preparedness 0.2.3 → 0.3.1

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.2.3",
4
+ "version": "0.3.1",
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",
package/src/data/media.ts CHANGED
@@ -20,6 +20,34 @@ export const MEDIA_UNITS: readonly CitedUnit[] = [
20
20
  source: "backblaze-ssd-2023",
21
21
  locator: "The section of the lifetime rates",
22
22
  },
23
+ {
24
+ id: "media.optical.life",
25
+ use: "fact",
26
+ text: "The NIST and Library of Congress study defines the life expectancy of a disc as the time to 5% failure (95% survival), with 95% confidence, at 25 °C and 50% RH.",
27
+ source: "nist-lc-optical",
28
+ locator: "Section 5, Life Expectancy",
29
+ },
30
+ {
31
+ id: "media.optical.cdr",
32
+ use: "fact",
33
+ text: "All 7 CD-R products of the study had a life expectancy of more than 30 years. 5 of them had more than 45 years.",
34
+ source: "nist-lc-optical",
35
+ locator: "Section 5, Recordable CD, and Fig. 5",
36
+ },
37
+ {
38
+ id: "media.optical.dvd",
39
+ use: "fact",
40
+ text: "Of the 15 recordable DVD products of the study, 7 had a life expectancy of more than 45 years, 4 had 30 to 45 years, 2 had 15 to 30 years and 2 had less than 15 years.",
41
+ source: "nist-lc-optical",
42
+ locator: "Section 5, Recordable and rewritable DVD, and Fig. 6",
43
+ },
44
+ {
45
+ id: "media.optical.limits",
46
+ use: "fact",
47
+ text: "The study modeled only temperature and relative humidity. It did not model light, corrosive gases, contaminants, mishandling or the playback device.",
48
+ source: "nist-lc-optical",
49
+ locator: "Section 1, Introduction",
50
+ },
23
51
  ];
24
52
 
25
53
  /** The yearly loss of each kind with a cited rate, and the unit of the rate. */
@@ -28,5 +56,10 @@ export const MEDIUM_LOSSES: Readonly<Partial<Record<MediumKind, { readonly yearl
28
56
  ssd: { yearlyLoss: 0.009, unit: "media.ssd.afr" },
29
57
  };
30
58
 
31
- /** The kinds with no cited rate. A plan of copies cannot use them until a source gives a rate. */
59
+ /**
60
+ * The kinds with no cited rate. A plan of copies cannot use them until a source gives a rate.
61
+ * - `optical`: the study of NIST and the Library of Congress gives a time to 5% failure, not a yearly rate. The units `media.optical.*` give its facts.
62
+ * An aging disc fails more frequently when it is old, so a constant yearly rate from that time is not a safe bound.
63
+ * - `flash` and `paper`: no open source with a rate was found on 2026-11-22.
64
+ */
32
65
  export const MEDIUM_GAPS: readonly MediumKind[] = ["flash", "optical", "paper"];
package/src/data/rules.ts CHANGED
@@ -15,17 +15,17 @@ export const RULES: readonly Rule[] = [
15
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
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
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." },
18
+ { id: "reflex.attack", kind: "reflex", rank: 4, on: ["civic.ai-collapse"], target: { on: "civic.ai-collapse", phases: NOW }, sources: ["fi-72h-shelter"], when: "A warning tells of a drone threat or an attack, a general warning sounds, or you hear explosions.", then: "Go into the nearest building, away from the windows, and listen to the radio." },
19
+ { id: "reflex.radiation", kind: "reflex", rank: 5, on: ["cbrne.radiological"], target: { on: "cbrne.radiological", phases: ["warned", "P0"] }, sources: ["ready-radiation"], when: "A warning tells of a radiation emergency, or you see the flash of a nuclear detonation.", then: "Get inside, stay inside and keep a radio on for news." },
20
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
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
22
  { id: "reflex.armed-attack", kind: "reflex", rank: 5, on: ["security.armed-conflict"], target: { on: "security.armed-conflict", phases: NOW }, sources: ["se-brochure-en"], when: "There is shooting or an armed attack near you.", then: "Get far away. If you cannot, lock yourself in a room, and put your phone on silent." },
23
- { 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.chemical", kind: "reflex", rank: 6, on: ["cbrne.hazardous-materials"], target: { on: "cbrne.hazardous-materials", phases: NOW }, sources: ["ready-hazmat"], when: "A warning, a cloud or a strange odor tells of a chemical release near you.", then: "Outside, go upwind and away. Inside, close a room and stay in it." },
24
24
  { 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." },
25
25
  { 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." },
26
26
  { 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." },
27
- { 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." },
28
- { 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." },
27
+ { id: "reflex.wildfire", kind: "reflex", rank: 10, on: ["fire.wildfire"], target: { on: "fire.wildfire", phases: NOW }, sources: ["ready-wildfires"], when: "A warning or the smoke tells of a wildfire near you.", then: "Leave immediately, before the fire or the smoke closes the roads." },
28
+ { 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 immediately.", then: "Hang up. Call the person back at a number that you know." },
29
29
 
30
30
  // What is cut? Each rule goes to the module of a cut.
31
31
  { id: "module.power", kind: "module", rank: 1, on: ["power.grid"], target: { on: "power.grid", phases: FIRST_DAYS }, sources: ["ready-power"], when: "There is no power from the grid.", then: "Use the module: no power from the grid." },
@@ -43,17 +43,17 @@ export const RULES: readonly Rule[] = [
43
43
  { id: "module.home", kind: "module", rank: 12, on: ["home.dwelling"], target: { on: "home.dwelling", phases: FIRST_DAYS }, sources: ["ready-recover","epa-coming-home"], when: "Your home is damaged, or you cannot stay in it.", then: "Use the module: damaged home." },
44
44
 
45
45
  // When do I stay?
46
- { 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." },
47
- { 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." },
48
- { id: "stay.safe", kind: "stay", rank: 3, on: [], target: { on: "power.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." },
46
+ { id: "stay.release", kind: "stay", rank: 1, on: [], target: { on: "cbrne.radiological", phases: ["warned", "P0"] }, sources: ["ready-shelter", "uk-hazards"], when: "A warning tells of a release of radiation or chemicals, and your building has no obvious risk.", then: "Stay inside. Close the doors, the windows and the vents, and listen to the radio." },
47
+ { 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, smoke or dust, or the news tells that it is badly contaminated.", then: "Go to an inner room with few windows, and seal it." },
48
+ { id: "stay.safe", kind: "stay", rank: 3, on: [], target: { on: "power.grid", phases: FIRST_DAYS }, sources: ["uk-hazards", "ready-shelter"], when: "The building has no obvious risk, and the danger outside is larger than the danger inside.", then: "Stay where you are, and use your supplies." },
49
49
 
50
50
  // When do I go?
51
- { 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." },
51
+ { id: "go.danger", kind: "go", rank: 1, on: [], target: { on: "met.tropical.hurricane", phases: NOW }, sources: ["uk-hazards", "ready-evacuation"], when: "The danger comes to your place or your route: water, fire, smoke, a cloud or fighting.", then: "Leave immediately. A delay can put your life at risk." },
52
52
  { 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." },
53
53
  { 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." },
54
54
 
55
55
  // When do I go to a fallback place?
56
- { id: "fallback.heat-cold", kind: "fallback", rank: 1, on: ["power.grid"], target: { on: "power.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." },
56
+ { id: "fallback.heat-cold", kind: "fallback", rank: 1, on: ["power.grid"], target: { on: "power.grid", phases: ["P2"] }, sources: ["ready-power"], when: "There is no power, and the heat or the cold is extreme.", then: "Go to a place with heat or cooling: a public building, a library or friends with power." },
57
57
  { 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." },
58
58
 
59
59
  // When do I change to the long plan?
@@ -61,5 +61,5 @@ export const RULES: readonly Rule[] = [
61
61
  { id: "long.medicine", kind: "long-plan", rank: 2, on: ["power.grid", "health.medicine"], target: { on: "power.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." },
62
62
  { id: "long.days", kind: "long-plan", rank: 3, on: [], target: { on: "power.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." },
63
63
  { 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." },
64
- { 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." },
64
+ { 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: "The news or the persons near you tell of a pandemic that spreads in your community.", then: "Stay at home as much as possible, and use the plan of a pandemic." },
65
65
  ];
@@ -66,6 +66,8 @@ 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 joint report of NIST and the Library of Congress. Its authors are NIST employees, so it is a work of the US government. Read on 2026-11-22.
70
+ { ...federal("nist-lc-optical", "NIST and the Library of Congress", "NIST/Library of Congress (LC) Optical Disc Longevity Study: Final Report", "https://www.loc.gov/preservation/resources/rt/NIST_LC_OpticalDiscLongevity.pdf"), checked: "2026-11-22" },
69
71
  // The sources of the nuclear, EMP and solar storm cases, read on 2026-11-22.
70
72
  { ...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
73
  { ...federal("ready-space-weather", "Ready.gov", "Space Weather", "https://www.ready.gov/space-weather"), checked: "2026-11-22" },