File size: 28,066 Bytes
881f9f2
 
 
 
d606d10
881f9f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
{
  "meta": {
    "schema_version": "v1",
    "created": "2026-04-21",
    "owner": "Anonymous reviewer",
    "issue": "#83",
    "description": "Scenario generation support artifact. Provides a scenario family matrix, operational context profiles, DGA trend templates, event/alarm templates, work-order playbooks, and RUL/health-context templates for the PS B scenario generation pipeline (issue #2). Companion to data/knowledge/transformer_standards.json (issue #50).",
    "cross_references": {
      "standards_artifact": "data/knowledge/transformer_standards.json",
      "evaluation_methodology": "docs/ps_b_evaluation_methodology.md",
      "realism_validation": "docs/archive/scenario_realism_validation.md",
      "schema_reference": "data/scenarios/README.md"
    },
    "usage_note": "This file answers HOW to assemble scenarios from the IEC/IEEE facts in transformer_standards.json. It does not replicate standards content. Gas values, fault codes, and condition thresholds must be sourced from transformer_standards.json."
  },

  "scenario_family_matrix": {
    "description": "Defines five scenario families, each with a target count, primary domain, required tools, and per-instance variation axes. The generator must produce at least one scenario per family to meet the PS B coverage requirement.",
    "total_target": 18,
    "families": {
      "FMSR_DGA_DIAGNOSIS": {
        "target_count": 4,
        "primary_domain": "FMSR",
        "domain_tags": ["FMSR"],
        "difficulty_range": ["easy", "medium", "hard"],
        "task_types": ["fault_diagnosis", "root_cause_analysis"],
        "required_tools": ["fmsr.get_dga_record", "fmsr.analyze_dga"],
        "optional_tools": ["fmsr.search_failure_modes", "fmsr.get_sensor_correlation"],
        "variation_axes": {
          "fault_code": "vary across PD, D1, D2, T1, T2, T3 — do not generate two scenarios with the same iec_code",
          "transformer_id": "vary across T-001 to T-020",
          "task_framing": "rotate among: identify primary fault, compare two candidate fault modes, explain dominant gas, recommend next inspection step"
        },
        "ground_truth_must_include": ["iec_code", "dominant_gas_rationale", "recommended_action"],
        "anti_patterns": [
          "Do not frame the task as 'run analyze_dga with these exact numbers' — the agent must retrieve gas values from get_dga_record first.",
          "Do not generate a scenario where the answer is trivially N (normal) with no diagnostic interest."
        ]
      },
      "TSFM_RUL_FORECAST": {
        "target_count": 4,
        "primary_domain": "TSFM",
        "domain_tags": ["TSFM"],
        "difficulty_range": ["easy", "medium", "hard"],
        "task_types": ["rul_forecast", "anomaly_detection", "trend_analysis"],
        "required_tools": ["tsfm.forecast_rul"],
        "optional_tools": ["tsfm.detect_anomalies", "tsfm.trend_analysis", "tsfm.get_rul"],
        "variation_axes": {
          "horizon": "vary among 30-day, 60-day, 90-day forecast horizons",
          "transformer_id": "vary across T-001 to T-020",
          "task_framing": "rotate among: forecast RUL for a specific horizon, detect anomaly in sensor trend, explain a trend reversal, compare RUL against maintenance window"
        },
        "ground_truth_must_include": ["rul_estimate_days", "risk_level_rationale", "recommended_action_horizon"],
        "anti_patterns": [
          "Do not ask for a trend analysis without specifying which sensor parameter.",
          "Do not set expected_tools to forecast_rul only when the task description mentions anomaly detection."
        ]
      },
      "WO_CREATION": {
        "target_count": 4,
        "primary_domain": "WO",
        "domain_tags": ["WO"],
        "difficulty_range": ["easy", "medium"],
        "task_types": ["work_order_creation", "corrective_maintenance", "downtime_estimation"],
        "required_tools": ["wo.create_work_order"],
        "optional_tools": ["wo.estimate_downtime", "wo.list_fault_records", "wo.get_fault_record"],
        "variation_axes": {
          "trigger_type": "vary among: DGA fault confirmed, sensor threshold exceeded, routine scheduled maintenance, post-trip inspection",
          "transformer_id": "vary across T-001 to T-020",
          "urgency": "vary among emergency, high, medium — use work_order_playbook entries in this file for minimum field requirements per urgency tier"
        },
        "ground_truth_must_include": ["work_order_type", "priority", "minimum_fields_from_playbook"],
        "anti_patterns": [
          "Do not create a WO scenario where the fault evidence is absent — the task text must reference a triggering event.",
          "Do not use urgency=emergency for PD or T1 fault codes."
        ]
      },
      "IOT_SENSOR_ANALYSIS": {
        "target_count": 2,
        "primary_domain": "IoT",
        "domain_tags": ["IoT"],
        "difficulty_range": ["easy", "medium"],
        "task_types": ["sensor_threshold_check", "asset_metadata_lookup", "sensor_list_enumeration"],
        "required_tools": ["iot.get_sensor_readings"],
        "optional_tools": ["iot.get_asset_metadata", "iot.list_sensors", "iot.list_assets"],
        "variation_axes": {
          "sensor_parameter": "vary between thermal (oil_temp_c, winding_temp_top_c) and electrical (load_current_a, power_factor, voltage_hv_kv, voltage_lv_kv)",
          "transformer_id": "vary across T-001 to T-020"
        },
        "ground_truth_must_include": ["sensor_value_with_unit", "threshold_comparison", "status_summary"],
        "anti_patterns": [
          "IoT sensors do not include dissolved gas readings. Do not ask for gas values via IoT tools.",
          "Do not ask for DGA-based fault classification from IoT tools alone."
        ]
      },
      "MULTI_DOMAIN_INCIDENT": {
        "target_count": 4,
        "primary_domain": "Multi",
        "domain_tags": ["IoT", "FMSR", "TSFM", "WO"],
        "difficulty_range": ["hard"],
        "task_types": ["end_to_end_incident_response", "integrated_diagnostic", "multi_step_maintenance_decision"],
        "required_tools": [
          "iot.get_sensor_readings",
          "fmsr.analyze_dga",
          "tsfm.forecast_rul",
          "wo.create_work_order"
        ],
        "optional_tools": [
          "fmsr.get_dga_record",
          "fmsr.search_failure_modes",
          "tsfm.detect_anomalies",
          "wo.estimate_downtime",
          "iot.get_asset_metadata"
        ],
        "variation_axes": {
          "fault_code": "vary across D2, T3, D1, T2 — avoid N or PD which produce low-urgency multi-domain paths",
          "transformer_id": "vary across T-001 to T-020",
          "operating_context": "use one of the five named profiles from operational_context_profiles in this file; vary one field per instance"
        },
        "ground_truth_must_include": [
          "iot_evidence_summary",
          "fault_hypothesis_with_iec_code",
          "rul_or_risk_forecast",
          "work_order_recommendation"
        ],
        "anti_patterns": [
          "Do not collapse all four domains into a single lookup; the task narrative must require reasoning across at least three distinct domains.",
          "Do not use the same operational_context_profile for more than two MULTI_DOMAIN_INCIDENT scenarios in a batch."
        ]
      }
    }
  },

  "operational_context_profiles": {
    "description": "Named operating context profiles to assign to multi-domain scenarios. Each profile pre-sets the three must-have fields from transformer_standards.json operational_context.asset_operating_context. Use exactly one profile per multi-domain scenario instance; vary one field at most ±1 tier when generating a new variant of an existing scenario.",
    "profiles": {
      "critical_peak_no_spare": {
        "asset_criticality_tier": "critical",
        "spare_availability": "no_spare",
        "current_loading_pct": 98,
        "urgency_floor": "high",
        "narrative_context": "Feeder transformer carrying peak load with no spare on site. Any forced outage requires load shedding.",
        "suitable_fault_codes": ["D2", "T3"],
        "scenario_families": ["MULTI_DOMAIN_INCIDENT"]
      },
      "critical_lead_time_spare": {
        "asset_criticality_tier": "critical",
        "spare_availability": "lead_time_2_weeks",
        "current_loading_pct": 82,
        "urgency_floor": "high",
        "narrative_context": "Substation main transformer with a spare on order. Fault response must account for the 2-week procurement window.",
        "suitable_fault_codes": ["D2", "T3", "D1", "T2"],
        "scenario_families": ["MULTI_DOMAIN_INCIDENT", "WO_CREATION"]
      },
      "important_spare_in_stock": {
        "asset_criticality_tier": "important",
        "spare_availability": "in_stock",
        "current_loading_pct": 65,
        "urgency_floor": "medium",
        "narrative_context": "Distribution transformer with a local spare available. Planned replacement can be scheduled within the week.",
        "suitable_fault_codes": ["D1", "T2", "PD", "T1"],
        "scenario_families": ["MULTI_DOMAIN_INCIDENT", "WO_CREATION", "FMSR_DGA_DIAGNOSIS"]
      },
      "standard_low_load": {
        "asset_criticality_tier": "standard",
        "spare_availability": "lead_time_3_months",
        "current_loading_pct": 38,
        "urgency_floor": "low",
        "narrative_context": "Rural distribution transformer at low load. Condition monitoring is routine; no immediate intervention required.",
        "suitable_fault_codes": ["PD", "T1", "N"],
        "scenario_families": ["FMSR_DGA_DIAGNOSIS", "TSFM_RUL_FORECAST", "IOT_SENSOR_ANALYSIS"]
      },
      "important_overloaded": {
        "asset_criticality_tier": "important",
        "spare_availability": "in_stock",
        "current_loading_pct": 108,
        "urgency_floor": "high",
        "narrative_context": "Industrial park feeder running over nameplate capacity due to load growth. Thermal fault risk is elevated; forced outage would impact production.",
        "suitable_fault_codes": ["T3", "T2", "D2"],
        "scenario_families": ["MULTI_DOMAIN_INCIDENT", "TSFM_RUL_FORECAST"]
      }
    }
  },

  "dga_trend_templates": {
    "description": "Time-series DGA trend patterns for scenario text and ground-truth construction. Each template describes a progression across two to four sample points. Use these to write scenario text that references observable trends rather than single-point snapshots. IMPORTANT: Every step includes all five fault gases (H2, CH4, C2H2, C2H4, C2H6). The final step of each template uses the exact verified gas profile from transformer_standards.json representative_gas_profiles.profiles[iec_code] for the claimed terminal fault code — these are the values that produce the claimed IEC code when passed to fmsr.analyze_dga. Intermediate steps use plausible values consistent with the claimed intermediate IEC code but are not endpoint-verified.",
    "endpoint_verification_note": "Terminal step gas values are taken from transformer_standards.json representative_gas_profiles (regenerated 2026-04-29 to match IEC 60599:2022 Table 1) and confirmed to produce the claimed IEC code via fmsr.analyze_dga: PD(H2=500,CH4=30,C2H2=3,C2H4=15,C2H6=80), D1(H2=500,CH4=100,C2H2=80,C2H4=60,C2H6=40), D2(H2=500,CH4=200,C2H2=120,C2H4=100,C2H6=30), T1(H2=100,CH4=200,C2H2=2,C2H4=80,C2H6=120), T2(H2=100,CH4=200,C2H2=2,C2H4=150,C2H6=80), T3(H2=100,CH4=600,C2H2=3,C2H4=500,C2H6=80), N(H2=90,CH4=5,C2H2=1,C2H4=50,C2H6=40).",
    "templates": {
      "stable_normal": {
        "iec_code_trajectory": ["N", "N", "N"],
        "description": "All key gases remain at background levels across consecutive samples. No discernible trend. All three steps verified as N via fmsr.analyze_dga — key constraint: R1=CH4/H2 must remain below ~0.1 at every step.",
        "sample_progression": [
          { "step": "T-0 baseline", "H2": 60,  "CH4": 4,  "C2H2": 1, "C2H4": 48, "C2H6": 38, "trend_note": "N — R1=0.067, R2=0.021, R3=1.26", "step_verified": true },
          { "step": "T-30 days",    "H2": 75,  "CH4": 5,  "C2H2": 1, "C2H4": 49, "C2H6": 39, "trend_note": "N — R1=0.067, R2=0.020, R3=1.26, no change", "step_verified": true },
          { "step": "T-60 days",    "H2": 90,  "CH4": 5,  "C2H2": 1, "C2H4": 50, "C2H6": 40, "trend_note": "N — stable at verified N profile", "endpoint_verified": true, "source": "transformer_standards.json N profile" }
        ],
        "scenario_text_cue": "Routine monitoring with no anomalies detected.",
        "urgency": "low",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "IOT_SENSOR_ANALYSIS"]
      },
      "rising_hydrogen_pd": {
        "iec_code_trajectory": ["N", "N", "PD"],
        "description": "H2 rises sharply over 60 days while R1=CH4/H2 stays below 0.1 and R3=C2H4/C2H6 drops below 0.2, transitioning to the PD profile at T-60. All three steps verified via fmsr.analyze_dga under IEC 60599:2022 Table 1.",
        "sample_progression": [
          { "step": "T-0 baseline", "H2": 40,  "CH4": 3,  "C2H2": 1, "C2H4": 20, "C2H6": 50, "trend_note": "N — R1=0.075, R2=0.050, R3=0.40 (R3 above PD ceiling 0.2)", "step_verified": true },
          { "step": "T-30 days",    "H2": 180, "CH4": 10, "C2H2": 2, "C2H4": 18, "C2H6": 70, "trend_note": "N — H2 rising, R1=0.056, R3=0.257 (still above 0.2)", "step_verified": true },
          { "step": "T-60 days",    "H2": 500, "CH4": 30, "C2H2": 3, "C2H4": 15, "C2H6": 80, "trend_note": "PD — verified PD profile; R1=0.06, R3=0.188 (R3 crosses below 0.2)", "endpoint_verified": true, "source": "transformer_standards.json PD profile" }
        ],
        "scenario_text_cue": "Three consecutive DGA samples show a rising hydrogen trend over the past 60 days.",
        "urgency": "medium",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "MULTI_DOMAIN_INCIDENT"]
      },
      "accelerating_arc_d1_to_d2": {
        "iec_code_trajectory": ["D1", "D1", "D2"],
        "description": "C2H4 rises from 60 to 100 ppm, C2H6 drops from 40 to 30 ppm, CH4 climbs 100→200 and C2H2 climbs 80→120 across samples. The D1→D2 transition is driven by R3=C2H4/C2H6 rising from 1.50 to 3.33 (crossing IEC's D2 threshold R3 ≥ 2) combined with R1=CH4/H2 doubling from 0.20 to 0.40. R2 stays in the [0.6, 2.5) D2 window throughout, so R2 alone does not discriminate D1 vs D2 here.",
        "sample_progression": [
          { "step": "T-0 baseline", "H2": 500, "CH4": 100, "C2H2": 80,  "C2H4": 60,  "C2H6": 40, "trend_note": "D1 — verified D1 profile; R1=0.20, R2=1.33, R3=1.50", "endpoint_verified": true, "source": "transformer_standards.json D1 profile" },
          { "step": "T-14 days",    "H2": 500, "CH4": 120, "C2H2": 90,  "C2H4": 70,  "C2H6": 40, "trend_note": "D1 still; R1=0.24, R2=1.286, R3=1.75 — C2H2 + C2H4 rising, C2H6 unchanged, R3 still below 2.0 cap", "step_verified": true },
          { "step": "T-28 days",    "H2": 500, "CH4": 200, "C2H2": 120, "C2H4": 100, "C2H6": 30, "trend_note": "D2 — verified D2 profile; R1=0.40, R2=1.20, R3=3.33 (R3 crosses 2.0 + R1 doubles drive transition)", "endpoint_verified": true, "source": "transformer_standards.json D2 profile" }
        ],
        "scenario_text_cue": "Two prior DGA samples showed D1; the latest sample has significantly elevated C2H2 and ethylene.",
        "urgency": "emergency",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "MULTI_DOMAIN_INCIDENT"]
      },
      "thermal_t1_to_t3_progression": {
        "iec_code_trajectory": ["T1", "T2", "T3"],
        "description": "Methane and ethylene rise steadily across three samples with C2H2 near zero throughout. T1→T2 is driven by R3=C2H4/C2H6 rising from 0.67 to 1.875 (crossing 1.0 into the T2 window); R1=CH4/H2 stays at 2.0. T2→T3 is driven by R3 rising further from 1.875 to 6.25 (crossing 4.0) and R1 rising from 2.0 to 6.0 as CH4 climbs 200→600. All three steps use IEC-aligned profiles from transformer_standards.json.",
        "sample_progression": [
          { "step": "T-0 baseline", "H2": 100, "CH4": 200, "C2H2": 2, "C2H4": 80,  "C2H6": 120, "trend_note": "T1 — verified T1 profile; R1=2.00, R2=0.025, R3=0.67 (R3 below 1.0 keeps T1)", "endpoint_verified": true, "source": "transformer_standards.json T1 profile" },
          { "step": "T-21 days",    "H2": 100, "CH4": 200, "C2H2": 2, "C2H4": 150, "C2H6": 80,  "trend_note": "T2 — verified T2 profile; R1=2.00 (unchanged), R2=0.013, R3=1.875 (↑ from 0.67 drives T1→T2)", "endpoint_verified": true, "source": "transformer_standards.json T2 profile" },
          { "step": "T-42 days",    "H2": 100, "CH4": 600, "C2H2": 3, "C2H4": 500, "C2H6": 80,  "trend_note": "T3 — verified T3 profile; R1=6.00, R2=0.006, R3=6.25 (↑ from 1.875 drives T2→T3)", "endpoint_verified": true, "source": "transformer_standards.json T3 profile" }
        ],
        "scenario_text_cue": "Successive DGA samples over the past six weeks show a consistent rise in methane and ethylene.",
        "urgency": "emergency",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "MULTI_DOMAIN_INCIDENT", "TSFM_RUL_FORECAST"]
      },
      "stable_condition3_d1": {
        "iec_code_trajectory": ["D1", "D1", "D1"],
        "description": "Stable D1 pattern across three samples with slow gas drift around the IEC-aligned D1 profile. R3=C2H4/C2H6 stays in [1.0, 2.0), so the unit remains in D1 (R3 ≥ 2 would trip D2). Condition is serious but not actively escalating.",
        "sample_progression": [
          { "step": "T-0 baseline", "H2": 500, "CH4": 100, "C2H2": 80, "C2H4": 60, "C2H6": 40, "trend_note": "D1 Condition 3 — verified D1 profile; R1=0.20, R2=1.33, R3=1.50", "endpoint_verified": true, "source": "transformer_standards.json D1 profile" },
          { "step": "T-30 days",    "H2": 500, "CH4": 100, "C2H2": 85, "C2H4": 62, "C2H6": 40, "trend_note": "D1 stable; R1=0.20, R2=1.371, R3=1.55 — slight C2H2 + C2H4 drift", "step_verified": true },
          { "step": "T-60 days",    "H2": 500, "CH4": 100, "C2H2": 90, "C2H4": 64, "C2H6": 40, "trend_note": "D1 slow drift, no step change; R1=0.20, R2=1.406, R3=1.60 — R3 still below 2.0 D2 threshold", "step_verified": true }
        ],
        "scenario_text_cue": "Three DGA samples confirm a persistent D1 pattern with no rapid escalation.",
        "urgency": "high",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "WO_CREATION"]
      }
    }
  },

  "event_alarm_templates": {
    "description": "Triggering event and alarm patterns that provide the operational narrative context for scenario tasks. Each template defines an alarm source, the IoT sensor signal (if any), and the diagnostic question it motivates. Use these to populate scenario 'text' fields with realistic operational triggers.",
    "templates": {
      "buchholz_relay_alarm": {
        "alarm_source": "buchholz_relay",
        "iot_signal": null,
        "associated_fault_codes": ["D2", "T3"],
        "urgency": "emergency",
        "scenario_text_cue": "A Buchholz relay alarm was triggered on transformer {transformer_id}. Determine the probable fault type and recommend immediate action.",
        "ground_truth_cue": "Agent must invoke analyze_dga and map result to a condition-4 fault code; recommendation must reference an emergency inspection or de-energization path.",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "MULTI_DOMAIN_INCIDENT"]
      },
      "over_temperature_alert": {
        "alarm_source": "winding_temp_sensor",
        "iot_signal": { "sensor": "winding_temp_top_c", "threshold_note": "exceeds 95°C operating limit" },
        "associated_fault_codes": ["T2", "T3"],
        "urgency": "high",
        "scenario_text_cue": "Transformer {transformer_id} has triggered a sustained over-temperature alert on the top oil winding sensor. Investigate and recommend corrective action.",
        "ground_truth_cue": "Agent must retrieve sensor readings to confirm the thermal exceedance, then correlate with DGA or RUL evidence before issuing a work order.",
        "suitable_families": ["IOT_SENSOR_ANALYSIS", "MULTI_DOMAIN_INCIDENT", "TSFM_RUL_FORECAST"]
      },
      "rising_load_intermittent_temp": {
        "alarm_source": "load_monitoring",
        "iot_signal": { "sensor": "load_current_a", "threshold_note": "above 110% rated current for >4h" },
        "associated_fault_codes": ["T2", "T3"],
        "urgency": "high",
        "scenario_text_cue": "Transformer {transformer_id} shows rising load current with intermittent over-temperature alerts. Investigate recent sensor behavior, infer probable fault mode, and estimate short-term risk.",
        "ground_truth_cue": "Multi-step: IoT retrieval → DGA analysis → RUL forecast → WO recommendation.",
        "suitable_families": ["MULTI_DOMAIN_INCIDENT"]
      },
      "protection_trip_unknown_cause": {
        "alarm_source": "differential_protection",
        "iot_signal": null,
        "associated_fault_codes": ["D2", "D1"],
        "urgency": "emergency",
        "scenario_text_cue": "Transformer {transformer_id} has tripped on differential protection. DGA samples are available. Determine the likely fault cause before re-energization.",
        "ground_truth_cue": "Agent must use analyze_dga to diagnose fault type; answer must explicitly address re-energization risk.",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS", "MULTI_DOMAIN_INCIDENT", "WO_CREATION"]
      },
      "routine_monitoring_elevated_h2": {
        "alarm_source": "scheduled_dga_sampling",
        "iot_signal": null,
        "associated_fault_codes": ["PD", "D1", "N"],
        "urgency": "medium",
        "scenario_text_cue": "Routine DGA sampling for transformer {transformer_id} shows elevated hydrogen compared to the prior sample. Identify the fault mode and recommend a monitoring interval.",
        "ground_truth_cue": "Agent must call get_dga_record and analyze_dga; ground truth includes fault code and a monitoring recommendation aligned with urgency tier.",
        "suitable_families": ["FMSR_DGA_DIAGNOSIS"]
      }
    }
  },

  "work_order_playbook": {
    "description": "Minimum work-order field requirements per fault code / urgency tier. Each entry specifies the WO type, priority, minimum fields required in the scenario's ground_truth, and the time-to-action bound. These supplement the minimum_fields defined in transformer_standards.json operational_context.work_order_minimum_fields.",
    "entries": {
      "D2_C4": {
        "fault_code": "D2",
        "condition_tier": "C4",
        "urgency": "emergency",
        "wo_type": "corrective",
        "priority": "emergency",
        "time_to_action": "hours",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "immediate_action_required",
          "safety_isolation_note",
          "spare_status"
        ],
        "notes": "Arcing fault. Do not re-energize without gas recheck. Spare status determines repair vs replacement path."
      },
      "T3_C4": {
        "fault_code": "T3",
        "condition_tier": "C4",
        "urgency": "emergency",
        "wo_type": "corrective",
        "priority": "emergency",
        "time_to_action": "hours",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "immediate_action_required",
          "thermal_history_note",
          "spare_status"
        ],
        "notes": "High-temperature thermal fault. Check loading history and cooling system status before re-energization."
      },
      "D1_C3": {
        "fault_code": "D1",
        "condition_tier": "C3",
        "urgency": "high",
        "wo_type": "corrective",
        "priority": "high",
        "time_to_action": "days",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "planned_inspection_date",
          "dga_resampling_interval"
        ],
        "notes": "Sparking or low-energy discharge. Schedule inspection within 1 week; resample DGA in 7 days."
      },
      "T2_C3": {
        "fault_code": "T2",
        "condition_tier": "C3",
        "urgency": "high",
        "wo_type": "corrective",
        "priority": "high",
        "time_to_action": "days",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "planned_inspection_date",
          "cooling_check_note"
        ],
        "notes": "Moderate thermal fault. Inspect cooling system and tap changer. Resample DGA within 14 days."
      },
      "PD_C2": {
        "fault_code": "PD",
        "condition_tier": "C2",
        "urgency": "medium",
        "wo_type": "predictive",
        "priority": "medium",
        "time_to_action": "weeks_to_months",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "monitoring_interval",
          "next_review_date"
        ],
        "notes": "Partial discharge at moderate level. Increase DGA sampling frequency. No forced outage required."
      },
      "T1_C2": {
        "fault_code": "T1",
        "condition_tier": "C2",
        "urgency": "medium",
        "wo_type": "predictive",
        "priority": "medium",
        "time_to_action": "weeks_to_months",
        "minimum_fields": [
          "asset_id",
          "fault_type",
          "trigger_evidence",
          "monitoring_interval",
          "next_review_date"
        ],
        "notes": "Low-temperature thermal fault. Verify hotspot indicators. Schedule next DGA within 30–60 days."
      }
    }
  },

  "rul_health_context_templates": {
    "description": "RUL and health-index context templates for TSFM and multi-domain scenarios. Each template provides a named operational state (long_runway, medium_horizon, etc.) with indicative RUL range, health index range, and the maintenance decision it typically motivates. Use the named template when writing scenario text and ground_truth to ensure consistent RUL framing across the batch.",
    "templates": {
      "long_runway": {
        "rul_range_days": [730, 3650],
        "health_index_range": [0.75, 1.0],
        "condition_note": "Healthy long-life transformer. No fault indication. Monitoring only.",
        "typical_decision": "Continue scheduled monitoring. Next DGA in 6–12 months.",
        "suitable_fault_codes": ["N"],
        "suitable_families": ["TSFM_RUL_FORECAST", "IOT_SENSOR_ANALYSIS"]
      },
      "medium_horizon_stable": {
        "rul_range_days": [180, 729],
        "health_index_range": [0.4, 0.74],
        "condition_note": "Aging transformer with some degradation indicators. Stable trend but planning horizon is relevant.",
        "typical_decision": "Plan for replacement or major overhaul within 1–2 years. Increase DGA sampling to quarterly.",
        "suitable_fault_codes": ["PD", "T1", "D1"],
        "suitable_families": ["TSFM_RUL_FORECAST", "FMSR_DGA_DIAGNOSIS"]
      },
      "short_horizon_critical_load": {
        "rul_range_days": [30, 179],
        "health_index_range": [0.15, 0.39],
        "condition_note": "Transformer under critical load with short remaining useful life. Fault escalation risk is high.",
        "typical_decision": "Expedite replacement planning. De-load if possible. Emergency WO if fault code escalates.",
        "suitable_fault_codes": ["T2", "T3", "D1", "D2"],
        "suitable_families": ["TSFM_RUL_FORECAST", "MULTI_DOMAIN_INCIDENT"]
      },
      "critical_immediate": {
        "rul_range_days": [0, 29],
        "health_index_range": [0.0, 0.14],
        "condition_note": "Critically degraded transformer. Immediate intervention required to prevent unplanned outage.",
        "typical_decision": "Issue emergency corrective WO. Confirm spare availability. De-energize if condition-4 gases confirmed.",
        "suitable_fault_codes": ["D2", "T3"],
        "suitable_families": ["MULTI_DOMAIN_INCIDENT", "WO_CREATION"]
      }
    }
  }
}