You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates quarter-ahead strategic outlook articles and renders HTML in all 14 supported languages in a single agentic run via executive-brief cascade. Long-horizon-forecast workflow with 90-day window — covers next-quarter parliamentary calendar, committee schedules, government propositions tabling deadlines, Riksbank rate decisions, and SCB quarterly NA release. Tier-C aggregation × 1.7 depth multiplier. Runs 1st and 15th of each month.
strict
false
imports
../prompts/00-base-contract.md
../prompts/01-bash-and-shell-safety.md
../prompts/02-mcp-access.md
../prompts/03-data-download.md
../prompts/04-analysis-pipeline.md
../prompts/05-analysis-gate.md
../prompts/06-article-generation.md
../prompts/07-commit-and-pr.md
../prompts/ext/tier-c-aggregation.md
../prompts/ext/long-horizon-forecasting.md
true
schedule
workflow_dispatch
cron
0 9 1,15 * *
inputs
article_date
force_generation
analysis_depth
description
required
Article date (YYYY-MM-DD) for manual backfills. Defaults to today when omitted or scheduled.
false
description
type
required
default
Force generation even if recent articles exist
boolean
false
false
description
required
default
Analysis depth for AI iterations (standard=1-2 iterations, deep=2-3 iterations, comprehensive=3+ iterations). Controls SWOT complexity, stakeholder count, scenario tree depth, and dashboard charts.
Generates deep political intelligence analysis and renders the HTML article in all 14 supported languages for forward-looking quarterly political intelligence (Tier-C aggregation × 1.7 depth multiplier — see ext/tier-c-aggregation.md and ext/long-horizon-forecasting.md) in one single agentic run. The 90-day window covers the next-quarter parliamentary calendar (committee schedules, chamber votes, government propositions tabling deadlines, Lagrådet referrals, Riksbank rate decisions, SCB quarterly NA release).
The dedicated news-translate workflow runs on a separate track and translates executive-brief.md markdown into 13 language siblings (executive-brief_<lang>.md)
What this workflow does
Article type: quarter-ahead (registry id; see analysis/article-types.json)
Scenario count: ≥ 4 distinct scenarios in scenario-analysis.md, probabilities sum to 100 %.
Counterfactuals: ≥ 2 explicit counterfactual paragraphs in devils-advocate.md.
Cross-horizon citations: cite the most recent week-ahead AND month-ahead analyses in cross-reference-map.md. Missing citations fail the gate.
IMF policy: pinned WEO + FM vintage at run start; emit economic-data.json v2.0 with quarterly trajectory series for SWE + Nordic peers (DNK, NOR, FIN).
Forward indicators: ≥ 12 dated indicators across the bands week / month / quarter / year / election.
Word floor: ≥ 2 000 words (versus 1 500 for week-ahead / month-ahead).
Time budget
🟡 Plan to call safeoutputs___create_pull_request by agent minute 42 (hard deadline 45) to reserve job-level headroom for setup variance and the safe-outputs runner. See 00-base-contract.md §Session timing and 07-commit-and-pr.md §Deadline enforcement.
Minutes
Phase
Module
0–3
MCP pre-warm + pre-flight
02 / 03
3–7
Download data + catalogue + IMF pinned vintage
03
7–25
Analysis Pass 1 (all 23 artifacts at 1.7× depth, scenario tree depth 4, ≥ 12 forward indicators)
04 + ext/long-horizon-forecasting
25–36
Analysis Pass 2 (read-back + improvements; ≥ 2 counterfactuals; extended slot reclaims the time freed by removing per-language Markdown translation — see TRANSLATION_GUIDE.md §News articles are translated out-of-band)
Render (scripts/render-articles.ts --lang all → all 14 HTML)
06
42–43
Stage + commit + ONE safeoutputs___create_pull_request — HARD DEADLINE agent minute 45
07
Use the setup-aware agent budget for AI-FIRST iteration; trim scope before quality and open the PR by agent minute 42 (hard 45). Never open a second PR within a run.
Inputs
article_date — override date (defaults to today)
force_generation — regenerate even if today's content exists
analysis_depth — standard | deep (default) | comprehensive
Note: there is no languages input. Every run produces all 14 language HTML files. Translation depth-of-quality scales with the time budget (see the table above).
Run-mode selection
At the start of every run, the pre-flight check in 03-data-download.md detects whether analysis/daily/$ARTICLE_DATE/quarter-ahead/ already contains all 23 required artifacts:
No analysis found → run the full pipeline.
Analysis found → enter improvement-mode (see 04-analysis-pipeline.md §Improvement-mode path); add fresh evidence on top of the snapshotted baseline.