Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.102
    Preparing search index...

    Hack23 Logo

    ๐Ÿ”ฎ Riksdagsmonitor โ€” Future Workflows Vision

    ๐Ÿš€ CI/CD Evolution Roadmap: 2026โ€“2037
    ๐ŸŽฏ From AI-Enhanced Automation to Autonomous Political Intelligence

    Owner Version Last Updated Review Cycle

    ๐Ÿ“‹ Document Owner: CEO | ๐Ÿ“„ Version: 6.0 | ๐Ÿ“… Last Updated: 2026-05-02 (UTC) ๐Ÿ”„ Review Cycle: Annual | โฐ Next Review: 2027-05-02 ๐Ÿ”ฎ Horizon: 2026โ€“2037


    This document projects the evolution of Riksdagsmonitor's CI/CD and automation workflows over the next eleven years (2026โ€“2037). Building on the current foundation of 50 workflow files / 36 distinct workflows (including 14 agentic news pipelines), the vision encompasses AI-native pipelines, real-time political intelligence, predictive analytics, and fully autonomous content generation โ€” all while maintaining ISO 27001/NIST CSF/CIS Controls compliance.

    Strategic Alignment:

    • ISO 27001 (A.5.1): Information security policy evolution
    • NIST CSF (GV.SP): Strategic planning for security capabilities
    • CIS Controls (17.3): Automation maturity progression
    Document Focus Description Documentation Link
    Architecture ๐Ÿ›๏ธ Architecture C4 model showing current system structure View Source
    Future Architecture ๐Ÿ›๏ธ Architecture Architectural evolution roadmap View Source
    CI/CD Workflows ๐Ÿ”ง DevOps Current automation processes View Source
    Security Architecture ๐Ÿ›ก๏ธ Security Current defense-in-depth controls View Source
    Future Security Architecture ๐Ÿ›ก๏ธ Security Security roadmap View Source
    Threat Model ๐Ÿ›ก๏ธ Security STRIDE threat analysis View Source
    End-of-Life Strategy ๐Ÿ“… Lifecycle Maintenance and EOL planning View Source
    Secure Development Policy ๐Ÿ› ๏ธ ISMS Development security standards View on ISMS-PUBLIC

    Year AI Capability CI/CD Impact
    2026 Claude Opus 4.8; GitHub Copilot agents; code generation AI-assisted code review, test generation, documentation; Copilot agent-managed issues and PRs
    2027 Multi-modal LLMs; extended context windows AI-generated integration tests from requirements; visual regression testing with AI
    2028 Specialized models; reasoning chains Intelligent test prioritization; AI-driven deployment risk assessment
    2029 Autonomous AI agents Self-healing CI pipelines; autonomous dependency management
    2030โ€“2033 Proto-AGI capabilities Autonomous development workflows; AI-managed release planning
    2034โ€“2037 AGI / near-AGI Self-evolving CI/CD; autonomous software engineering lifecycle

    graph LR
    subgraph "๐ŸŸข Level 1: Automated Reporting (2026)"
    L1["๐Ÿ“ฐ Scheduled article generation<br/>๐Ÿ“Š Data-driven dashboards<br/>๐ŸŒ 14-language translation<br/>โœ… Quality gate enforcement"]
    end

    subgraph "๐Ÿ”ต Level 2: Predictive Intelligence (2027)"
    L2["๐Ÿ”ฎ Voting outcome prediction<br/>๐Ÿ“ˆ Coalition stability forecasting<br/>๐Ÿง  Pattern recognition<br/>๐Ÿ“ก Real-time event detection"]
    end

    subgraph "๐ŸŸฃ Level 3: Autonomous Analysis (2028)"
    L3["๐Ÿค– Self-directed investigation<br/>๐ŸŽฏ Anomaly-driven inquiry<br/>๐Ÿ“Š Causal inference<br/>๐Ÿ”— Cross-parliament correlation"]
    end

    subgraph "๐ŸŸ  Level 4: Ecosystem Intelligence (2029)"
    L4["๐ŸŒ Multi-country monitoring<br/>๐Ÿค Federated intelligence<br/>๐Ÿ“ก OSINT integration<br/>๐Ÿ›๏ธ EU Parliament coverage"]
    end

    subgraph "๐Ÿ”ด Level 5: Transformative Democracy (2030+)"
    L5["๐Ÿงฌ AGI-assisted governance analysis<br/>๐Ÿ“Š Real-time democratic health scoring<br/>๐ŸŒ Global political intelligence<br/>๐Ÿ”ฎ Strategic scenario simulation"]
    end

    L1 --> L2 --> L3 --> L4 --> L5

    style L1 fill:#198754,color:#fff,stroke:#146c43,stroke-width:2px
    style L2 fill:#0d6efd,color:#fff,stroke:#0a58ca,stroke-width:2px
    style L3 fill:#6f42c1,color:#fff,stroke:#59359a,stroke-width:2px
    style L4 fill:#fd7e14,color:#fff,stroke:#ca6510,stroke-width:2px
    style L5 fill:#dc3545,color:#fff,stroke:#b02a37,stroke-width:2px

    flowchart TB
    subgraph "๐ŸŸข 2026 โ€” Foundation"
    A1[โœ… TypeScript Migration Complete]
    A2[โœ… 12 Agentic News Workflows]
    A3[๐Ÿ“Š CIA Data Pipeline]
    A4[โœ… Dual Deploy S3 + GitHub Pages]
    end

    subgraph "๐Ÿ”ต 2027 โ€” Intelligence"
    B1[๐Ÿ“ก Real-Time Data Streams]
    B2[๐Ÿง  ML Prediction Models]
    B3[๐Ÿ” Multi-Source OSINT]
    B4[โœ… Automated Fact-Checking]
    end

    subgraph "๐ŸŸฃ 2028 โ€” Autonomy"
    C1[๐Ÿ”ง Self-Healing Pipelines]
    C2[๐Ÿš€ Predictive Deployment]
    C3[๐Ÿ“‹ AI Editorial Board]
    C4[๐Ÿ“ค Cross-Platform Distribution]
    end

    subgraph "๐ŸŸ  2029 โ€” Ecosystem"
    D1[๐ŸŒ Political Intelligence API]
    D2[๐Ÿค Federated Data Network]
    D3[๐Ÿ“Š Real-Time Democracy Index]
    D4[๐Ÿ›๏ธ Multi-Parliament Coverage]
    end

    subgraph "๐Ÿ”ด 2030-2033 โ€” AI Evolution"
    E1[๐Ÿค– Pre-AGI Model Integration]
    E2[๐ŸŒ 50+ Parliament Coverage]
    E3[๐Ÿ“ฐ Autonomous Content Pipeline]
    E4[๐Ÿ“Š Global Democracy Index]
    end

    subgraph "โšซ 2034-2037 โ€” AGI Era"
    F1[๐Ÿง  AGI-Enhanced Intelligence]
    F2[๐ŸŒ 195 Parliament Network]
    F3[๐Ÿ“ก Real-Time Global Monitoring]
    F4[๐Ÿ›๏ธ Transformative Democracy Tech]
    end

    A1 --> B1
    A2 --> B2
    A3 --> B3
    A4 --> B4

    B1 --> C1
    B2 --> C2
    B3 --> C3
    B4 --> C4

    C1 --> D1
    C2 --> D2
    C3 --> D3
    C4 --> D4

    D1 --> E1
    D2 --> E2
    D3 --> E3
    D4 --> E4

    E1 --> F1
    E2 --> F2
    E3 --> F3
    E4 --> F4

    classDef foundation fill:#4caf50,stroke:#2e7d32,stroke-width:2px,color:white
    classDef intelligence fill:#2196f3,stroke:#1565c0,stroke-width:2px,color:white
    classDef autonomy fill:#9c27b0,stroke:#6a1b9a,stroke-width:2px,color:white
    classDef ecosystem fill:#ff9800,stroke:#e65100,stroke-width:2px,color:white
    classDef evolution fill:#e91e63,stroke:#880e4f,stroke-width:2px,color:white
    classDef agi fill:#795548,stroke:#3e2723,stroke-width:2px,color:white

    class A1,A2,A3,A4 foundation
    class B1,B2,B3,B4 intelligence
    class C1,C2,C3,C4 autonomy
    class D1,D2,D3,D4 ecosystem
    class E1,E2,E3,E4 evolution
    class F1,F2,F3,F4 agi
    Metric Value
    Total Workflow Files 50 (22 YAML + 14 agentic .md + 14 .lock.yml) = 36 distinct workflows
    TypeScript Modules 31 (in src/browser/)
    Unit Tests 2890 (Vitest)
    Language Support 14 languages (incl. RTL)
    Deployment Dual: AWS S3/CloudFront + GitHub Pages
    AI Content 14 agentic workflows (Claude Opus 4.8)
    Security Compliance ISO 27001, NIST CSF 2.0, CIS Controls v8.1

    Status: Delivered via foundation PR + sub-issues Hack23/riksdagsmonitor#2153โ€“#2168.

    The long-horizon forward-look system extends the forward-look family (news-week-ahead, news-month-ahead) with three additional horizons:

    Workflow Horizon Depth ร— Cron Status
    news-quarter-ahead 90 days ร— 1.7 0 9 1,15 * * โœ… Delivered
    news-year-ahead 365 days ร— 2.0 0 9 5 1,7 * โœ… Delivered
    news-election-cycle 1 460 days ร— 2.5 dispatch-only (cron declared, disabled) โœ… Delivered

    Key design decisions:

    • All three share the Tier-C aggregation contract but with progressively higher depth multipliers
    • Additional prompt module: ext/long-horizon-forecasting.md (horizon stratification, scenario-tree depth, IMF projection stamps, PESTLE blocking)
    • Election-cycle further imports ext/cycle-rollover.md (active ยฑ30 days of election anchor)
    • Full pipeline diagrams and ISMS mapping documented in WORKFLOWS.md ยง Stage 6.2
    • Article-type registry metadata: analysis/article-types.json
    • Editorial parameters: Article-Generation.md ยง Forward-Look Horizons

    The registry-driven architecture means the following article types can be added by simply registering them in analysis/article-types.json and creating a new workflow .md source โ€” no script changes to aggregate-analysis.ts or render-articles.ts:

    Future Workflow Horizon Use Case Dependency
    news-budget-bill-ahead 90โ€“180 days BP (Budgetproposition) + VP (Vรฅrproposition) deep-dive Budget committee schedule feed
    news-eu-presidency-ahead 180 days Swedish EU Council presidency rotation impact European Parliament MCP integration
    news-defence-pivot-ahead 365 days Defence spending reallocation (NATO 2% target) IMF GFS_COFOG G02 + FรถU committee data
    news-climate-policy-ahead 365 days Environmental policy trajectory + EU Green Deal SCB environment data + EU ETS pricing

    The future of Riksdagsmonitor's agentic workflows is deep specialisation โ€” each workflow producing analytics that are impossible with any other data source or analysis path.

    graph TB
    subgraph "๐ŸŸข Current (2026 Q1)"
    C1["๐Ÿ“‹ Committee Reports<br/>Basic voting splits"]
    C2["๐Ÿ“œ Propositions<br/>Legislative pipeline"]
    C3["โœŠ Motions<br/>Opposition tracking"]
    C4["โ“ Interpellations<br/>Accountability scoring"]
    end

    subgraph "๐Ÿ”ต Phase 1 (2026 Q2โ€“Q4)"
    P1_1["๐Ÿ“‹ Committee Reports<br/>+ ML vote prediction<br/>+ historical comparison"]
    P1_2["๐Ÿ“œ Propositions<br/>+ budget impact modeling<br/>+ regulatory burden scoring"]
    P1_3["โœŠ Motions<br/>+ co-sponsorship network graphs<br/>+ topic clustering (NLP)"]
    P1_4["โ“ Interpellations<br/>+ evasion NLP scoring<br/>+ minister response tracking DB"]
    end

    subgraph "๐ŸŸฃ Phase 2 (2027)"
    P2_1["๐Ÿ“‹ Committee Reports<br/>+ predictive vote outcome<br/>+ committee influence scoring"]
    P2_2["๐Ÿ“œ Propositions<br/>+ multi-country policy comparison<br/>+ EU law transposition tracking"]
    P2_3["โœŠ Motions<br/>+ Overton window mapping<br/>+ media uptake correlation"]
    P2_4["โ“ Interpellations<br/>+ sentiment trajectory<br/>+ government stress index"]
    end

    subgraph "๐ŸŸ  Phase 3 (2028+)"
    P3_1["๐Ÿ“‹ Committee Reports<br/>+ real-time vote prediction<br/>+ coalition risk dashboard"]
    P3_2["๐Ÿ“œ Propositions<br/>+ causal impact modeling<br/>+ citizen impact simulation"]
    P3_3["โœŠ Motions<br/>+ agenda-setting power index<br/>+ policy adoption probability"]
    P3_4["โ“ Interpellations<br/>+ democratic health index<br/>+ autonomous follow-up detection"]
    end

    C1 --> P1_1 --> P2_1 --> P3_1
    C2 --> P1_2 --> P2_2 --> P3_2
    C3 --> P1_3 --> P2_3 --> P3_3
    C4 --> P1_4 --> P2_4 --> P3_4

    style C1 fill:#198754,color:#fff
    style C2 fill:#0d6efd,color:#fff
    style C3 fill:#fd7e14,color:#fff
    style C4 fill:#dc3545,color:#fff
    style P1_1 fill:#198754,color:#fff,stroke:#fff,stroke-width:2px
    style P1_2 fill:#0d6efd,color:#fff,stroke:#fff,stroke-width:2px
    style P1_3 fill:#fd7e14,color:#fff,stroke:#fff,stroke-width:2px
    style P1_4 fill:#dc3545,color:#fff,stroke:#fff,stroke-width:2px
    style P2_1 fill:#6f42c1,color:#fff,stroke:#fff,stroke-width:2px
    style P2_2 fill:#6f42c1,color:#fff,stroke:#fff,stroke-width:2px
    style P2_3 fill:#6f42c1,color:#fff,stroke:#fff,stroke-width:2px
    style P2_4 fill:#6f42c1,color:#fff,stroke:#fff,stroke-width:2px
    style P3_1 fill:#e91e63,color:#fff,stroke:#fff,stroke-width:2px
    style P3_2 fill:#e91e63,color:#fff,stroke:#fff,stroke-width:2px
    style P3_3 fill:#e91e63,color:#fff,stroke:#fff,stroke-width:2px
    style P3_4 fill:#e91e63,color:#fff,stroke:#fff,stroke-width:2px

    Future Unique Analytics per Article Type

    Workflow Current Unique Analytics Phase 1 Enhancement Phase 2 Vision Phase 3 Autonomous
    Committee Reports Voting splits, reservation analysis ML vote prediction from committee composition + historical voting patterns Committee influence scoring: which committees shape policy most effectively? Real-time vote prediction dashboard during live plenary sessions
    Propositions Legislative pipeline tracking Budget impact modeling using SCB economic data + World Bank benchmarks Multi-country policy comparison (Nordic council + EU) Causal impact simulation: "if this bill passes, what happens to X?"
    Motions Opposition strategy analysis NLP-based topic clustering + co-sponsorship network visualisation Overton window mapping: how opposition motions shift the political debate Policy adoption probability: ML model predicting which motions become policy
    Interpellations Accountability scoring NLP evasion scoring (did the minister actually answer?) + response tracking DB Government stress index: aggregated ministerial pressure metric Autonomous follow-up detection: AI identifies when promised action hasn't occurred
    Evening Analysis Daily parliamentary pulse Multi-source synthesis (Riksdag + Regeringen + SCB same-day) Automated "story of the day" narrative generation Self-prioritising: AI identifies the most important event and leads with it
    Realtime Monitor Breaking event detection Predictive urgency scoring (ML-trained on past breaking events) Cross-source verification (Riksdag + news wire + social media) Autonomous alert system with configurable severity thresholds
    Weekly Review Week-over-week trends Trend significance testing (is this week different or noise?) Predictive weekly preview: "next week we expect X because Y" Self-correcting: compares last week's predictions with actual outcomes
    Month Ahead Strategic calendar Calendar risk modeling (which events have historically caused volatility?) EU legislative calendar integration for Swedish implementation deadlines Autonomous scenario planning: generates 3 political futures per key event

    Priority: Critical Status: Placeholder implemented, fetch logic pending

    flowchart TD
    subgraph "๐Ÿ“Š CIA Intelligence Pipeline v2"
    Schedule[โฐ Daily 03:00 CET] --> Fetch[๐Ÿ“ฅ Fetch 19 CIA Products]
    Fetch --> Validate[โœ… JSON Schema Validation]
    Validate --> Quality[๐Ÿ“Š Data Quality Scoring]
    Quality --> Cache[๐Ÿ’พ Versioned Cache + 7-day Archive]
    Cache --> Transform[๐Ÿ”„ Transform to Static Data]
    Transform --> AutoPR[๐Ÿ”„ Auto-PR with Data Diff]
    end

    subgraph "๐Ÿšจ Alerting"
    Quality --> Alert{Quality Score < Threshold?}
    Alert -->|Yes| CreateIssue[๐Ÿ“‹ Create GitHub Issue]
    Alert -->|No| Continue[โœ… Continue Pipeline]
    end

    classDef schedule fill:#ffecb3,stroke:#f57f17,stroke-width:1.5px,color:black
    classDef pipeline fill:#c8e6c9,stroke:#2e7d32,stroke-width:1.5px,color:black
    classDef alert fill:#ffccbc,stroke:#bf360c,stroke-width:1.5px,color:black
    classDef decision fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:black

    class Schedule schedule
    class Fetch,Validate,Quality,Cache,Transform,AutoPR pipeline
    class Alert decision
    class CreateIssue alert
    class Continue pipeline

    Priority: High

    flowchart LR
    subgraph "๐Ÿงช Test Matrix"
    Browser[๐ŸŒ Browser Matrix] --> Chrome[Chromium]
    Browser --> Firefox[Firefox]
    Browser --> Webkit[WebKit]

    Viewport[๐Ÿ“ฑ Viewport Matrix] --> Mobile[320px]
    Viewport --> Tablet[768px]
    Viewport --> Desktop[1440px]

    Language[๐ŸŒ Language Sample] --> EN[English]
    Language --> SV[Swedish]
    Language --> AR[Arabic RTL]
    Language --> JA[Japanese]
    end

    subgraph "โœ… Test Types"
    VR[๐Ÿ–ผ๏ธ Visual Regression]
    A11y[โ™ฟ Accessibility Audit]
    Perf[โšก Performance Budget]
    KB[โŒจ๏ธ Keyboard Navigation]
    end

    classDef matrix fill:#bbdefb,stroke:#1565c0,stroke-width:1.5px,color:black
    classDef test fill:#c8e6c9,stroke:#2e7d32,stroke-width:1.5px,color:black

    class Browser,Viewport,Language,Chrome,Firefox,Webkit,Mobile,Tablet,Desktop,EN,SV,AR,JA matrix
    class VR,A11y,Perf,KB test

    Priority: Medium โ€” Deploy PR previews to S3 preview bucket (pr-{number}.preview.riksdagsmonitor.com)

    Priority: Medium โ€” Weekly automated dependency management with auto-PR for minor/patch updates


    flowchart TD
    subgraph "๐Ÿ“ก Real-Time Pipeline"
    Poll[โฐ Every 10 min during sessions] --> Detect[๐Ÿ” Detect New Events]
    Detect --> Classify{๐Ÿ“Š Significance?}
    Classify -->|Breaking| BreakingNews[๐Ÿšจ Breaking News]
    Classify -->|Notable| StandardArticle[๐Ÿ“ฐ Standard Article]
    Classify -->|Routine| Archive[๐Ÿ“‹ Archive Only]
    end

    subgraph "๐Ÿšจ Breaking News Flow"
    BreakingNews --> Generate[๐Ÿค– AI Article Generation]
    Generate --> MultiLang[๐ŸŒ 14-Language Translation]
    MultiLang --> ImmediateDeploy[๐Ÿš€ Immediate Deploy]
    ImmediateDeploy --> PushNotify[๐Ÿ“ฑ Web Push Notifications]
    end

    classDef realtime fill:#bbdefb,stroke:#1565c0,stroke-width:1.5px,color:black
    classDef breaking fill:#ffccbc,stroke:#bf360c,stroke-width:1.5px,color:black
    classDef decision fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:black
    classDef ai fill:#9C27B0,stroke:#6a1b9a,stroke-width:2px,color:white

    class Poll,Detect realtime
    class Classify decision
    class BreakingNews,Generate,MultiLang,ImmediateDeploy,PushNotify breaking
    class StandardArticle,Archive realtime
    flowchart TD
    subgraph "๐Ÿง  ML Pipeline"
    DataFetch[๐Ÿ“ฅ 50+ Years Historical Data] --> Train[๐Ÿ‹๏ธ Train/Update Models]
    Train --> Validate[โœ… k-fold Cross-Validation]
    Validate --> Predict[๐Ÿ”ฎ Generate Predictions]
    end

    subgraph "๐Ÿ”ฎ Prediction Models"
    Predict --> VotePred[๐Ÿ“Š Voting Prediction]
    Predict --> CoalitionStab[๐Ÿค Coalition Stability]
    Predict --> SeatProj[๐Ÿ—ณ๏ธ Election Seat Projections ยฑ5]
    Predict --> CareerTraj[๐Ÿ‘ค MP Career Trajectory]
    end

    subgraph "๐Ÿ“ˆ Accuracy Audit"
    VotePred & CoalitionStab & SeatProj & CareerTraj --> Compare[๐Ÿ“Š Compare vs Actual]
    Compare --> Drift{Model Drift?}
    Drift -->|Yes| Retrain[๐Ÿ”„ Retrain]
    Drift -->|No| Publish[๐Ÿ“ค Publish Predictions]
    end

    classDef ml fill:#e1bee7,stroke:#6a1b9a,stroke-width:1.5px,color:black
    classDef prediction fill:#d1c4e9,stroke:#4a148c,stroke-width:1.5px,color:black
    classDef audit fill:#ffecb3,stroke:#f57f17,stroke-width:1.5px,color:black
    classDef decision fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:black

    class DataFetch,Train,Validate,Predict ml
    class VotePred,CoalitionStab,SeatProj,CareerTraj prediction
    class Compare,Drift,Retrain,Publish audit

    Sources: riksdag-open-data-api, government-press-releases, committee-calendar, european-parliament-api, nordic-council-data, public-register-data

    Process: Extract claims โ†’ cross-reference against Riksdag voting records, government publications, SCB statistics โ†’ assign confidence scores โ†’ flag unverifiable claims for human review


    flowchart TD
    subgraph "๐Ÿ”ง Self-Healing Pipeline"
    Failure[โŒ Workflow Failure] --> Diagnose[๐Ÿ” Classify Failure]
    Diagnose --> Transient{Transient?}
    Transient -->|Network/Rate Limit| AutoRetry[๐Ÿ”„ Auto-Retry]
    Transient -->|Dependency| AltVersion[๐Ÿ“ฆ Try Alternative Version]
    Transient -->|Test Flake| Quarantine[๐Ÿ”‡ Quarantine & Retry]
    Transient -->|Build Error| Bisect[๐Ÿ” Bisect Recent Commits]
    Transient -->|Infrastructure| Escalate[๐Ÿšจ Escalate]
    end

    subgraph "๐Ÿ“Š Learning Loop"
    AutoRetry & AltVersion & Quarantine & Bisect --> Verify{Success?}
    Verify -->|Yes| Log[๐Ÿ“‹ Log Pattern]
    Verify -->|No| CreateIssue[๐Ÿ“‹ Create Detailed Issue]
    Log --> UpdateKB[๐Ÿง  Update Knowledge Base]
    UpdateKB --> MonthlyReport[๐Ÿ“ˆ Monthly Reliability Report]
    end

    classDef failure fill:#e74c3c,stroke:#c0392b,stroke-width:1.5px,color:white
    classDef diagnosis fill:#f39c12,stroke:#e67e22,stroke-width:1.5px,color:black
    classDef repair fill:#27ae60,stroke:#1e8449,stroke-width:1.5px,color:white
    classDef learn fill:#3498db,stroke:#2980b9,stroke-width:1.5px,color:white

    class Failure failure
    class Diagnose,Transient diagnosis
    class AutoRetry,AltVersion,Quarantine,Bisect,Verify repair
    class Escalate failure
    class Log,CreateIssue,UpdateKB,MonthlyReport learn

    Process: Deploy to canary (5% traffic) โ†’ Monitor 30 min (error rate < 0.1%, LCP < 2.5s) โ†’ Progressive rollout (25% โ†’ 50% โ†’ 100%) โ†’ If degraded: automatic rollback + incident report

    flowchart TD
    subgraph "๐Ÿ“‹ AI Editorial Board"
    Content[๐Ÿ“ Generated Content] --> Review[๐Ÿ” Multi-Perspective Review]
    Review --> Analyst[๐Ÿ“Š Political Analyst]
    Review --> FactCheck[โœ… Fact-Checker]
    Review --> StyleEdit[โœ๏ธ Style Editor]
    Review --> BiasDetect[โš–๏ธ Bias Detector]
    end

    subgraph "๐Ÿ“Š Consensus"
    Analyst & FactCheck & StyleEdit & BiasDetect --> Aggregate[๐Ÿ“‹ Aggregate Scores]
    Aggregate --> Threshold{Score โ‰ฅ 85%?}
    Threshold -->|Yes| AutoApprove[โœ… Auto-Approve]
    Threshold -->|No| HumanReview[๐Ÿ‘ค Human Editor]
    end

    classDef content fill:#e1bee7,stroke:#6a1b9a,stroke-width:1.5px,color:black
    classDef review fill:#bbdefb,stroke:#1565c0,stroke-width:1.5px,color:black
    classDef decision fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:black
    classDef approve fill:#c8e6c9,stroke:#2e7d32,stroke-width:1.5px,color:black
    classDef human fill:#ffccbc,stroke:#bf360c,stroke-width:1.5px,color:black

    class Content content
    class Review,Analyst,FactCheck,StyleEdit,BiasDetect review
    class Aggregate,Threshold decision
    class AutoApprove approve
    class HumanReview human

    Platforms: Website (HTML + Schema.org), RSS (Atom feed), Newsletter (MJML email), Social Media (platform-specific excerpts), API (JSON endpoint)


    flowchart LR
    subgraph "๐ŸŒ API Endpoints"
    API[Political Intelligence API v1]
    API --> MPs[/api/v1/mps]
    API --> Votes[/api/v1/votes]
    API --> Predictions[/api/v1/predictions]
    API --> Network[/api/v1/network]
    API --> Timeline[/api/v1/timeline]
    API --> Risk[/api/v1/risk-assessment]
    end

    subgraph "๐Ÿ‘ฅ Consumers"
    MPs & Votes & Predictions --> Researchers[๐ŸŽ“ Researchers]
    Network & Timeline --> Journalists[๐Ÿ“ฐ Journalists]
    Risk --> CivicTech[๐Ÿ’ป Civic Tech]
    end

    classDef api fill:#3498db,stroke:#2980b9,stroke-width:1.5px,color:white
    classDef endpoint fill:#bbdefb,stroke:#1565c0,stroke-width:1.5px,color:black
    classDef consumer fill:#c8e6c9,stroke:#2e7d32,stroke-width:1.5px,color:black

    class API api
    class MPs,Votes,Predictions,Network,Timeline,Risk endpoint
    class Researchers,Journalists,CivicTech consumer

    Features: Rate limiting (100 req/min free, 1000 req/min API key), GraphQL endpoint, WebSocket for real-time updates, OpenAPI 3.1, SDK generation (TypeScript, Python, R)

    Target Parliaments: Swedish Riksdag (349 MPs), European Parliament (MEPs), Nordic Council, Finnish Eduskunta, Danish Folketing, Norwegian Storting

    Metrics: Transparency (debate coverage, document accessibility, FOI response times), Participation (voter turnout, public consultation), Accountability (voting discipline, minister responses), Pluralism (media diversity, opposition effectiveness)

    Architecture: IPFS for decentralized data, ActivityPub for inter-platform communication, shared political ontology, privacy-preserving analytics, GDPR-compliant cross-border data sharing


    flowchart TD
    subgraph "๐Ÿค– AI Model Pipeline"
    Evaluate[๐Ÿ“Š Evaluate New Models] --> Benchmark[๐Ÿงช Automated Benchmarking]
    Benchmark --> Compare{Better Than Current?}
    Compare -->|Yes| Integrate[๐Ÿ”„ Integrate Model]
    Compare -->|No| Monitor[๐Ÿ“ก Continue Monitoring]
    Integrate --> Validate[โœ… Quality Validation]
    Validate --> Deploy[๐Ÿš€ Progressive Rollout]
    end

    subgraph "๐Ÿง  Capabilities"
    Deploy --> NearExpert[๐Ÿ“Š Near-Expert Political Analysis]
    Deploy --> DomainSpecialized[๐Ÿ›๏ธ Domain-Specialized Fine-Tuning]
    Deploy --> AutoInvestigation[๐Ÿ” Autonomous Investigative Journalism]
    Deploy --> MultiModal[๐Ÿ“ท Multi-Modal Content]
    end

    classDef ai fill:#9C27B0,stroke:#6a1b9a,stroke-width:2px,color:white
    classDef capability fill:#e1bee7,stroke:#6a1b9a,stroke-width:1.5px,color:black
    classDef decision fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:black

    class Evaluate,Benchmark,Integrate,Validate,Deploy ai
    class Compare decision
    class Monitor ai
    class NearExpert,DomainSpecialized,AutoInvestigation,MultiModal capability

    Target: 50+ parliaments across Europe, Americas, and Asia-Pacific with cross-parliament schema normalization and multi-timezone content scheduling

    Target: < 5% human review required โ€” AI editorial quality score > 95%, fact verification accuracy > 99%, multi-modal content in 50+ languages


    Strategic Considerations:

    • ๐Ÿค– Autonomous analysis: AGI-powered real-time political intelligence across all 195 parliamentary systems
    • ๐ŸŒ Universal language support: Every UN language supported natively
    • ๐Ÿ“Š Predictive governance: Policy impact prediction before legislation is proposed
    • โš–๏ธ Ethical AI governance: Human oversight maintained regardless of AI capability level
    • ๐Ÿ›ก๏ธ Democratic safeguards: Platform architecture prevents weaponization or manipulation
    Year Total Workflows AI Model Key Capability
    2026 47โ€“50 Opus 4.8โ€“4.9 Agentic news generation
    2027 50โ€“55 Opus 5.x Predictive analytics
    2028 55โ€“65 Opus 6.x Multi-modal content
    2029 65โ€“75 Opus 7.x Autonomous pipeline
    2030 75โ€“85 Opus 8.x Near-expert analysis
    2031โ€“2033 85โ€“100 Opus 9โ€“10.x / Pre-AGI Global coverage
    2034โ€“2037 100โ€“120+ AGI / Post-AGI Transformative platform

    Master catalog: these workflows operationalise FUTURE_MINDMAP.md ยงPolitical-Intelligence Capability Catalog and the architecture in FUTURE_ARCHITECTURE.md ยง4A. The phase roadmap above is platform-centric; this section is tradecraft-centric โ€” it names the new intelligence workflows an operative needs and the gh-aw / Step-Functions pipelines that deliver them, all on public data with human-in-the-loop sign-off.

    graph LR
    A["๐ŸŽฏ Direction<br/>pir-generation"]:::g --> B["๐Ÿ“ก Collection<br/>multi-int-fusion"]:::b
    B --> C["โš™๏ธ Processing<br/>provenance-grading"]:::p
    C --> D["๐Ÿง  Analysis<br/>sat + forecast + i&amp;w"]:::o
    D --> E["๐Ÿ“‘ Production<br/>estimative-brief"]:::r
    E --> F["๐Ÿ“ฃ Dissemination<br/>cop + tip-and-cue"]:::c
    F --> G["๐Ÿ” Feedback<br/>calibration-ledger"]:::s
    G --> A
    classDef g fill:#198754,color:#fff;
    classDef b fill:#0d6efd,color:#fff;
    classDef p fill:#6f42c1,color:#fff;
    classDef o fill:#fd7e14,color:#fff;
    classDef r fill:#dc3545,color:#fff;
    classDef c fill:#0dcaf0,color:#000;
    classDef s fill:#ffc107,color:#000;
    Workflow (proposed) Capability (catalog ref) Horizon Trigger Output product
    intel-entity-resolution C1 cross-source entity resolution ๐Ÿ”ต v2.0 weekly + on new MP/registry data resolved-actor graph (static)
    intel-conflict-screen C3 declared-interest vs vote ๐Ÿ”ต v2.0 on votering publish neutral conflict-screen scorecard
    intel-influence-network C19 power-broker analytics ๐Ÿ”ต v2.0 weekly influence/brokerage graph
    intel-narrative-tracker C18 framing lifecycle ๐Ÿ”ต v2.0 daily narrative-evolution timeline
    intel-sat-orchestrator C12 SAT automation (ACH/KAC/premortem) ๐Ÿ”ตโ†’๐ŸŸฃ per analysis run ICD 203-graded SAT bundle
    intel-multi-int-fusion C6 fusion mesh ๐ŸŸฃ v3.0 streaming fused situational graph
    intel-provenance-gate C8/C9 provenance + deepfake ๐ŸŸฃ v3.0 on every evidence intake refuse-to-cite gate verdict
    intel-forecast-calibrate C13/C29 calibrated forecasting ๐ŸŸฃ v3.0 nightly + on event forecast + Brier-scored calibration
    intel-warning-tripwire C14 I&W tripwires ๐ŸŸฃ v3.0 continuous (EventBridge) confidence-scored warnings
    intel-fimi-watch C20 FIMI/CIB detection ๐ŸŸฃ v3.0 continuous foreign-interference alert
    intel-wargame-sim C16 agent-based wargaming ๐ŸŸฃโ†’๐ŸŒŸ on coalition/budget event scenario-tree with probabilities
    intel-daily-brief C23 autonomous Daily Brief ๐ŸŸฃ v3.0 06:00 daily PDB-style brief (14 langs)
    intel-estimative C22 NIE-style key judgments ๐ŸŸฃ v3.0 on standing PIR confidence-scored estimate
    intel-cop-stream C21 Common Operating Picture ๐ŸŸฃโ†’๐ŸŒŸ streaming live COP dashboard feed
    intel-democracy-index C27 democracy-health index ๐ŸŒŸ 2032+ weekly neutral composite barometer
    intel-neutrality-audit C30 bias-symmetry auditor ๐Ÿ”ต (all) pre-publish gate party-symmetry pass/fail
    intel-redteam C31 pipeline red-team ๐ŸŸฃ v3.0 scheduled adversarial findings
    intel-counter-ai-guard C32 counter-AI integrity ๐ŸŸฃ v3.0 per inference injection/poison verdict

    The platform maturity levels (above) gain an explicit intelligence-cycle reading:

    graph LR
    subgraph "๐ŸŸข L1 2026 Report"
    M1["Build-time articles<br/>document-centric"]
    end
    subgraph "๐Ÿ”ต L2 2027 Fuse & Reason"
    M2["Entity resolution<br/>SAT automation<br/>influence networks<br/>neutrality auditing"]
    end
    subgraph "๐ŸŸฃ L3 2028-29 Warn"
    M3["Multi-INT fusion<br/>calibrated forecasting<br/>I&amp;W tripwires<br/>FIMI detection"]
    end
    subgraph "๐ŸŸ  L4 2030-31 Estimate"
    M4["Causal inference<br/>agent wargaming<br/>Common Operating Picture<br/>NIE-style products"]
    end
    subgraph "๐Ÿ”ด L5 2032+ Autonomous"
    M5["Always-on fusion<br/>election-night cell<br/>democracy-health index<br/>multi-parliament COP"]
    end
    M1 --> M2 --> M3 --> M4 --> M5
    style M1 fill:#198754,color:#fff
    style M2 fill:#0d6efd,color:#fff
    style M3 fill:#6f42c1,color:#fff
    style M4 fill:#fd7e14,color:#fff
    style M5 fill:#dc3545,color:#fff

    Governance rails (every intelligence workflow). Public sources only; provenance + Admiralty grade on intake; ICD 203 analytic-integrity scoring; party-neutrality gate before publish; calibrated, documented uncertainty; counter-AI guard on every inference; and a human signs every externally visible judgment per the Hack23 AI Policy. No workflow may take a partisan action, profile a citizen, or publish an unverified claim.


    Year Node.js TypeScript Bundler Test Runner
    2026 Q1 25 (Current) 6.0 Vite 8 Vitest 4
    2026 Q2 26 (Current, upgraded Apr 2026 โœ…; LTS later 2026) 6.0 Vite 8 Vitest 4
    2027 27 LTS 7.x Vite 8 Vitest 5
    2028 28 LTS 7.x Vite 9 / Turbopack Vitest 6
    2029 29 LTS 8.x Next-gen bundler Native test runner
    Year Deploy CDN Monitoring
    2026 S3/CloudFront + GitHub Pages CloudFront Uptime + Lighthouse
    2027 + Preview envs + canary CloudFront + Cloudflare + Real user metrics
    2028 Zero-downtime + auto-rollback Edge compute + ML anomaly detection
    2029 Global edge deployment Distributed CDN mesh Self-healing observability

    gantt
    title Workflow Growth Projection
    dateFormat YYYY-MM-DD
    axisFormat %Y

    section Security
    Current 5 workflows :done, sec0, 2026-01-01, 2026-03-31
    Dependency Auto :sec1, 2026-07-01, 2026-12-31
    Supply Chain v2 :sec2, 2027-01-01, 2027-06-30

    section Testing
    Current 7 workflows :done, tst0, 2026-01-01, 2026-03-31
    Visual Regression :tst1, 2026-04-01, 2026-09-30
    Cross-Browser Matrix :tst2, 2026-07-01, 2026-12-31
    ML Model Validation :tst3, 2027-04-01, 2027-09-30

    section Data Pipeline
    Current 5 workflows :done, dat0, 2026-01-01, 2026-03-31
    CIA Pipeline v2 :dat1, 2026-04-01, 2026-09-30
    OSINT Pipeline :dat2, 2027-01-01, 2027-09-30
    Prediction Pipeline :dat3, 2027-07-01, 2028-03-31

    section Agentic
    Current 12 workflows :done, agt0, 2026-01-01, 2026-03-31
    Fact-Checking :agt1, 2027-01-01, 2027-06-30
    Editorial Board :agt2, 2028-01-01, 2028-06-30
    Multi-Platform :agt3, 2028-04-01, 2028-09-30

    section Deploy
    Current 3 workflows :done, dep0, 2026-01-01, 2026-03-31
    Preview Deploys :dep1, 2026-04-01, 2026-09-30
    Canary Deploys :dep2, 2028-01-01, 2028-06-30
    Self-Healing :dep3, 2028-04-01, 2028-12-31
    Year Projected Distinct Workflows New Capabilities
    2026 Q1 32 (43 files) TypeScript foundation, 11 agentic workflows
    2026 Q2 33 (44 files) Node.js 26 Current upgrade โœ… (Apr 2026); nightly compat check added
    2026 Q4 39 (50 files) CIA pipeline v2, preview deploys, visual regression
    2027 Q4 44 (55 files) Node.js 27 LTS, OSINT pipeline, ML predictions, real-time streams
    2028 Q4 54 (65 files) Node.js 28 LTS, self-healing, canary deploy, AI editorial board
    2029 Q4 64+ (75+ files) Node.js 29 LTS, intelligence API, multi-parliament, federation

    Capability 2026 2027 2028 2029
    ๐Ÿ“Œ SHA Pinning โœ… Manual โœ… Auto-update โœ… Auto + verify โœ… Self-managing
    ๐Ÿ“„ SBOM โœ… Per-release โœ… Per-commit โœ… Real-time โœ… Federated
    ๐Ÿ” Vulnerability Scan โœ… CodeQL + Dependabot + SAST/DAST + Fuzzing + AI-assisted
    ๐Ÿ“‹ Compliance Check โœ… Manual mapping Auto-mapping Continuous Predictive
    ๐Ÿšจ Incident Response โœ… Auto-issue + Auto-diagnose + Auto-remediate + Self-healing
    ๐Ÿ›ก๏ธ Threat Model โœ… STRIDE manual + Auto-update + Real-time + Predictive
    flowchart LR
    subgraph "2026 โ€” Current"
    ISO[๐Ÿ›๏ธ ISO 27001:2022]
    NIST[๐Ÿ”’ NIST CSF 2.0]
    CIS[๐Ÿ›ก๏ธ CIS Controls v8.1]
    end

    subgraph "2027 โ€” Expanded"
    SOC2[๐Ÿ“‹ SOC 2 Type II]
    end

    subgraph "2028 โ€” AI Compliance"
    EUAI[๐Ÿค– EU AI Act]
    end

    subgraph "2029 โ€” Infrastructure"
    NIS2[๐ŸŒ NIS2 Directive]
    end

    ISO --> SOC2
    NIST --> SOC2
    CIS --> EUAI
    SOC2 --> EUAI
    EUAI --> NIS2

    classDef current fill:#4caf50,stroke:#2e7d32,stroke-width:2px,color:white
    classDef expanded fill:#2196f3,stroke:#1565c0,stroke-width:2px,color:white
    classDef ai fill:#9c27b0,stroke:#6a1b9a,stroke-width:2px,color:white
    classDef infra fill:#ff9800,stroke:#e65100,stroke-width:2px,color:white

    class ISO,NIST,CIS current
    class SOC2 expanded
    class EUAI ai
    class NIS2 infra

    Risk Impact Likelihood Mitigation
    ๐Ÿค– AI model hallucination in news content High Medium Multi-agent fact-checking, human-in-the-loop for breaking news
    ๐Ÿ“Š ML prediction model bias High Medium Regular bias audits, diverse training data, transparency reports
    ๐ŸŒ API rate limiting by data sources Medium High Caching, fallback to cached data, multiple source redundancy
    ๐Ÿ’ฐ GitHub Actions cost scaling Medium Medium Self-hosted runners for heavy workloads, workflow optimization
    ๐Ÿ”— Supply chain attacks on MCP servers High Low Version pinning, SRI checks, egress monitoring
    ๐Ÿ”’ GDPR compliance for ML models High Medium Privacy-by-design, differential privacy, data minimization

    • [ ] CIA data pipeline fully operational (19 products daily)
    • [ ] Preview deployments for all PRs
    • [ ] Visual regression testing in CI
    • [ ] Automated dependency updates
    • [ ] Workflow run time < 3 minutes average
    • [ ] Real-time political data processing (< 10 minute latency)
    • [ ] ML prediction accuracy > 80% for voting outcomes
    • [ ] Zero-downtime deployments with automatic rollback
    • [ ] Self-healing pipeline success rate > 95%
    • [ ] Multi-platform content distribution (5+ channels)
    • [ ] Public political intelligence API serving 1000+ consumers
    • [ ] Multi-parliament coverage (5+ Nordic/EU parliaments)
    • [ ] Democracy health index with international comparisons
    • [ ] Fully autonomous content pipeline (human review < 10% of articles)
    • [ ] Federated data network with 10+ partner platforms
    • [ ] Pre-AGI model integration with autonomous evaluation pipeline
    • [ ] 50+ parliament coverage with real-time cross-parliament analysis
    • [ ] < 5% human review required for standard political articles
    • [ ] Global real-time democracy health index covering 195 parliaments
    • [ ] AGI-ready architecture with maintained human oversight and democratic safeguards

    graph TB
    subgraph "๐ŸŒ Data Sources (2027+)"
    RD["๐Ÿ›๏ธ Riksdag"]
    EU["๐Ÿ‡ช๐Ÿ‡บ EU Parliament"]
    NORDIC["๐Ÿ”๏ธ Nordic Parliaments"]
    OSINT["๐Ÿ“ก Open Source Intel"]
    SOCIAL["๐Ÿ“ฑ Social Media"]
    MEDIA["๐Ÿ“บ News Feeds"]
    end

    subgraph "๐Ÿง  AI Intelligence Core (2028+)"
    NLP["๐Ÿ”ค Advanced NLP<br/><i>Multi-language understanding</i>"]
    ML["๐Ÿ“Š ML Prediction<br/><i>Voting & coalition models</i>"]
    CAUSAL["๐Ÿ”— Causal Inference<br/><i>Policy impact chains</i>"]
    ANOMALY["๐Ÿšจ Anomaly Detection<br/><i>Democratic deviation alerts</i>"]
    end

    subgraph "๐Ÿ“ฐ Content Generation (2029+)"
    REALTIME["โšก Real-Time Articles<br/><i>< 5 min latency</i>"]
    DEEP["๐Ÿ”ฌ Deep Analysis<br/><i>Multi-parliament</i>"]
    PREDICT["๐Ÿ”ฎ Predictive Reports<br/><i>Scenario modeling</i>"]
    INDEX["๐Ÿ“Š Democracy Index<br/><i>Health scoring</i>"]
    end

    subgraph "๐ŸŒ Distribution (2029+)"
    WEB["๐ŸŒ Web Platform"]
    API["๐Ÿ”Œ Public API"]
    FEED["๐Ÿ“ก Data Feeds"]
    PARTNER["๐Ÿค Partner Network"]
    end

    RD & EU & NORDIC & OSINT & SOCIAL & MEDIA --> NLP & ML & CAUSAL & ANOMALY
    NLP & ML & CAUSAL & ANOMALY --> REALTIME & DEEP & PREDICT & INDEX
    REALTIME & DEEP & PREDICT & INDEX --> WEB & API & FEED & PARTNER

    style RD fill:#0d6efd,color:#fff,stroke:#0a58ca,stroke-width:2px
    style EU fill:#0d6efd,color:#fff,stroke:#0a58ca,stroke-width:2px
    style NORDIC fill:#0d6efd,color:#fff,stroke:#0a58ca,stroke-width:2px
    style OSINT fill:#6f42c1,color:#fff,stroke:#59359a,stroke-width:2px
    style SOCIAL fill:#6f42c1,color:#fff,stroke:#59359a,stroke-width:2px
    style MEDIA fill:#6f42c1,color:#fff,stroke:#59359a,stroke-width:2px
    style NLP fill:#198754,color:#fff,stroke:#146c43,stroke-width:2px
    style ML fill:#198754,color:#fff,stroke:#146c43,stroke-width:2px
    style CAUSAL fill:#198754,color:#fff,stroke:#146c43,stroke-width:2px
    style ANOMALY fill:#198754,color:#fff,stroke:#146c43,stroke-width:2px
    style REALTIME fill:#fd7e14,color:#fff,stroke:#ca6510,stroke-width:2px
    style DEEP fill:#fd7e14,color:#fff,stroke:#ca6510,stroke-width:2px
    style PREDICT fill:#fd7e14,color:#fff,stroke:#ca6510,stroke-width:2px
    style INDEX fill:#fd7e14,color:#fff,stroke:#ca6510,stroke-width:2px
    style WEB fill:#dc3545,color:#fff,stroke:#b02a37,stroke-width:2px
    style API fill:#dc3545,color:#fff,stroke:#b02a37,stroke-width:2px
    style FEED fill:#dc3545,color:#fff,stroke:#b02a37,stroke-width:2px
    style PARTNER fill:#dc3545,color:#fff,stroke:#b02a37,stroke-width:2px


    ๐Ÿ“‹ Document Owner: CEO | ๐Ÿ“„ Version: 6.0 | ๐Ÿ“… Last Updated: 2026-05-02 (UTC) ๐Ÿ”„ Review Cycle: Annual | โฐ Next Review: 2027-05-02 ๐Ÿข Classification: Public | ๐Ÿ›๏ธ Owner: Hack23 AB (Org.nr 5595347807)


    Baseline: the already-implemented per-workflow IMF dataflow is documented in WORKFLOWS.md ยงIMF. The table below shows how that current integration evolves with additional CI gates (precedence-contract test, provider-mix telemetry alarm) on top of today's pipeline.

    Authoritative hub: analysis/imf/README.md ยท analysis/imf/agentic-integration.md ยท analysis/imf/indicators-inventory.json ยท analysis/imf/data-dictionary.md ยท .github/aw/ECONOMIC_DATA_CONTRACT.md

    Workflow stage IMF dataflow Cadence Caching strategy
    Daily news (news-*.md) WEO + FM + IFS + GFS_COFOG On-demand per article Vintage-tagged Aurora cache
    Week-ahead forecasting WEO projections + DOTS Weekly 7-day rolling cache
    Month-ahead forecasting WEO + FM + ER Monthly 30-day rolling + supersedes-chain
    Weekly review WEO + FM + GFS_COFOG (committee-aligned) Weekly Snapshot per Riksdag week
    Monthly review All IMF dataflows Monthly Full vintage capture
    Real-time monitor IFS (monthly CPI), MFS_IR (rates), ER (FX) Hourly Short-TTL cache
    Translation cascade (14 lang) Inherits article provenance Per article No re-fetch (provenance preserved)
    # .github/workflows/quality-checks.yml (target additions)
    - name: IMF-first economic citation lint
    run: tsx scripts/article-quality-enhancer.ts --enforce-imf-first

    - name: IMF cache integrity (SHA-256 supersedes-chain)
    run: tsx scripts/imf-fetch.ts --verify-cache

    - name: Provider-mix telemetry (alarm if WB economic share > 5%)
    run: tsx scripts/catalog-downloaded-data.ts --provider-mix-report
    Indicator class Primary Secondary Why
    Macro (GDP, growth, unemployment, inflation, fiscal balance, debt, current account) IMF WEO + Fiscal Monitor SCB (Sweden monthly) Freshness + T+5 projections; SNA 2008 / GFSM 2014 / BPM6 cross-country comparability
    Bilateral trade flows IMF DOTS โ€” Partner-country dimension, monthly cadence
    Monthly inflation, policy rates IMF IFS / MFS_IR SCB / Riksbank Standardised cross-country
    Government spending by function (defence/health/education/social protection) IMF GFS_COFOG โ€” Committee-aligned (FรถU/SoU/UbU/SfU)
    Commodity prices, exchange rates IMF PCPS / ER โ€” Canonical benchmarks
    Governance (CC.EST, RL.EST, VA.EST, GE.EST, RQ.EST, PV.EST) World Bank WGI โ€” IMF has no equivalent
    Environment (CO2, renewables, forest, water) World Bank โ€” IMF has no equivalent
    Social/education residue (literacy, school participation, gender ratios) World Bank GFS_COFOG 09 IMF has no equivalent
    Defence spending depth (long historicals) World Bank MS.MIL.* GFS_COFOG 02 WB deeper history
    Swedish ground truth (monthly labour, regional, budget execution) SCB โ€” National statistics authority

    Canonical rule. Every economic claim in a Riksdagsmonitor article cites an IMF dataflow first; World Bank citations are reserved for governance, environment and social residue (the classes IMF does not publish). SCB is the Swedish-specific ground truth layer. See ECONOMIC_DATA_CONTRACT.md v2.1 for the banned-phrase list and vintage discipline (>6 mo โ†’ annotation).


    ๐ŸŒ Platforms ๐Ÿ“ฆ Open-Source Projects ๐Ÿ›ก๏ธ Governance & Standards
    ๐Ÿ—ณ๏ธ Riksdagsmonitor โ€” Swedish Parliament intelligence
    ๐Ÿ‡ช๐Ÿ‡บ EU Parliament Monitor โ€” European coverage
    ๐Ÿ•ต๏ธ Citizen Intelligence Agency โ€” political-data engine
    ๐ŸŒ Hack23 AB โ€” corporate site
    ๐Ÿ“ฐ Hack23 Blog โ€” engineering & policy
    ๐Ÿ’ผ Hack23 on LinkedIn
    ๐Ÿ—ณ๏ธ Hack23/riksdagsmonitor
    ๐Ÿ•ต๏ธ Hack23/cia
    ๐Ÿ‡ช๐Ÿ‡บ Hack23/euparliamentmonitor
    ๐Ÿ”Œ Hack23/european-parliament-mcp
    โœ… Hack23/cia-compliance-manager
    ๐Ÿฅ‹ Hack23/black-trigram
    ๐Ÿ  Hack23/homepage
    ๐Ÿ›ก๏ธ Hack23 ISMS-PUBLIC โ€” public ISMS
    ๐Ÿ”’ Information Security Policy
    ๐Ÿค– AI Policy
    ๐Ÿงช Secure Development Policy
    ๐ŸŽฏ Threat Modeling Policy
    โš ๏ธ Vulnerability Management
    ๐Ÿท๏ธ Classification Framework

    OpenSSF Best Practices OpenSSF Scorecard ISO 27001:2022 NIST CSF 2.0 CIS Controls v8.1 Apache 2.0

    ๐Ÿ—ณ๏ธ Empower citizens ยท ๐Ÿ” Strengthen democratic accountability ยท ๐Ÿ•ต๏ธ Illuminate the political process

    ยฉ 2008โ€“2026 Hack23 AB (Org.nr 559534-7807) ยท Maintainer: James Pether Sรถrling, CISSP CISM