Clean up and normalize prompt output modules
This commit is contained in:
@@ -57,8 +57,8 @@ Important response semantics:
|
||||
- Place `spc_convective_outlooks` under `applicable_risk_products`.
|
||||
- Place `spc_convective_discussion` under `narrative_products`, immediately
|
||||
after `area_forecast_discussion` in report module order when both are present.
|
||||
- Include SPC outlook discussion text only when at least one retained outlook
|
||||
for the report valid period has `severity_rank >= 3`.
|
||||
- Include SPC outlook discussion text only when at least one retained
|
||||
categorical outlook for the report valid period has `severity_rank >= 3`.
|
||||
- Define that threshold as an internal constant so it can be adjusted later
|
||||
without searching through module code.
|
||||
- Treat a non-null run with empty arrays as checked empty data, not missing
|
||||
@@ -104,11 +104,9 @@ briefing:
|
||||
outlook_type: categorical
|
||||
label: SLGT
|
||||
label_text: Slight Risk
|
||||
severity_rank: 3
|
||||
valid_start: "2026-06-12 at 8:00 AM"
|
||||
valid_end: "2026-06-13 at 7:00 AM"
|
||||
period_begins: "2026-06-12 at 8:00 AM"
|
||||
period_ends: "2026-06-13 at 7:00 AM"
|
||||
contains_location: true
|
||||
source_url: "https://..."
|
||||
image_url: "https://..."
|
||||
```
|
||||
|
||||
@@ -119,9 +117,11 @@ briefing:
|
||||
narrative_products:
|
||||
area_forecast_discussion: {}
|
||||
spc_convective_discussion:
|
||||
included_because: "severity_rank >= 3"
|
||||
included_because: "categorical severity_rank >= 3"
|
||||
discussions:
|
||||
- day: 1
|
||||
period_begins: "2026-06-12 at 8:00 AM"
|
||||
period_ends: "2026-06-13 at 7:00 AM"
|
||||
headline: "Severe storms possible"
|
||||
summary: "Scattered severe storms are possible."
|
||||
discussion: "SPC discussion text."
|
||||
|
||||
Reference in New Issue
Block a user