Skip to content

fix: restore backward-compatible fields in last-generation.json#584

Merged
pethers merged 2 commits intonews-realtime/2026-02-26-120500-a28e6c8531887396from
copilot/sub-pr-582
Feb 26, 2026
Merged

fix: restore backward-compatible fields in last-generation.json#584
pethers merged 2 commits intonews-realtime/2026-02-26-120500-a28e6c8531887396from
copilot/sub-pr-582

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

The realtime-monitor run restructured news/metadata/last-generation.json, silently dropping generated_at, workflow, run_id, and mcp_data_source — fields that existing workflows and scripts depend on.

Changes

  • news/metadata/last-generation.json — added backward-compatible aliases alongside the new schema fields:
    • generated_at mirrors timestamp
    • workflow: "news-realtime-monitor"
    • run_id: null (not captured at generation time)
    • mcp_data_source object restored (status, sources, accessed_at)
{
  "timestamp": "2026-02-26T12:05:00.000Z",
  "generated_at": "2026-02-26T12:05:00.000Z",
  "workflow": "news-realtime-monitor",
  "run_id": null,
  "type": "realtime-monitor",
  ...
  "mcp_data_source": {
    "status": "live",
    "sources": ["riksdag-regering-mcp"],
    "accessed_at": "2026-02-26T12:05:00.000Z"
  }
}

New fields (timestamp, type, data_sources, events_detected) are preserved unchanged. Both old and new consumers read valid values.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update security and justice reforms proposal details fix: restore backward-compatible fields in last-generation.json Feb 26, 2026
@pethers pethers marked this pull request as ready for review February 26, 2026 13:38
@pethers pethers merged commit c0f7d91 into news-realtime/2026-02-26-120500-a28e6c8531887396 Feb 26, 2026
@pethers pethers deleted the copilot/sub-pr-582 branch February 26, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants