Skip to content

πŸ“° Committee Reports β€” Civilian Shelter Law & Criminal Corrections β€” 2026-04-03 + Lookback Protection Fix#1524

Merged
pethers merged 3 commits intomainfrom
news/content/2026-04-03/committee-reports-17a15fdd78ea9c4b
Apr 3, 2026
Merged

πŸ“° Committee Reports β€” Civilian Shelter Law & Criminal Corrections β€” 2026-04-03 + Lookback Protection Fix#1524
pethers merged 3 commits intomainfrom
news/content/2026-04-03/committee-reports-17a15fdd78ea9c4b

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 3, 2026

Committee Reports Analysis β€” 2026-04-02 Data

Articles Generated

  • EN: news/2026-04-03-committee-reports-en.html (1,584 words)
  • SV: news/2026-04-03-committee-reports-sv.html (1,253 words)

Committee Reports Analyzed

dok_id Committee Title Significance
HD01FΓΆU12 FΓΆU (Defence) Stronger Protection for Civilians During Heightened Preparedness 8.2/10
HD01JuU15 JuU (Justice) Criminal Corrections Issues 5.4/10

Key Findings

FΓΆU12 β€” Landmark Civilian Protection Law:

  • Endorses Prop. 2025/26:142 creating new shelter & protected spaces framework
  • New "skyddade utrymmen" category alongside traditional "skyddsrum"
  • Municipal information obligations and property owner responsibilities
  • Effective June 1, 2026 β€” 2-month implementation window
  • 6 reservations (S, V, C, MP) β€” notably 3 independent accessibility concerns

JuU15 β€” Criminal Corrections:

  • Rejects all 76 motion demands on criminal corrections policy
  • 8 reservations (S, V, C, MP) including joint Trygghetsberedningen demand
  • Covers prison expansion, women inmates, workplace safety, rehabilitation

Analysis Directory Fix

Root cause: The lookback fallback in doc-type workflows set ARTICLE_DATE to a previous date (2026-04-02) when no data existed for today (2026-04-03). The agent then rewrote analysis files at that historical date, overwriting yesterday's valid 10-document analysis with a new 2-document analysis.

Data fix applied:

  • Copied today's analysis to correct directory analysis/daily/2026-04-03/committeeReports/
  • Reverted analysis/daily/2026-04-02/committeeReports/ to original state (10-document analysis from 04:45 UTC)
  • Updated HTML article analysis references from 2026-04-02 β†’ 2026-04-03

Lookback protection added to 7 agentic workflows:

  • news-committee-reports.md, news-interpellations.md, news-propositions.md, news-motions.md, news-evening-analysis.md, news-realtime-monitor.md, SHARED_PROMPT_PATTERNS.md
  • Pattern: saves ORIGINAL_ARTICLE_DATE before lookback, uses DATA_DATE to track source, then copies (not mutates) analysis from historical date to today's directory, preserving originals

Analysis Artifacts

  • 9 batch analysis files (SWOT, risk, threat, stakeholder, significance, classification, cross-references, synthesis, manifest)
  • 2 per-document analysis files with Mermaid diagrams and evidence tables
  • AI-generated titles replacing banned patterns
  • Analysis references section linked in articles

Quality Validation

  • βœ… HTMLHint: 0 errors
  • βœ… File ownership: content scope verified (EN/SV only)
  • βœ… Language switcher, navigation, footer all present
  • βœ… JSON-LD structured data (3 blocks)
  • βœ… No untranslated Swedish content
  • βœ… No unknown authors
  • βœ… Analysis correctly placed in 2026-04-03/committeeReports/
  • βœ… Historical 2026-04-02/committeeReports/ analysis preserved

Data Sources

  • riksdag-regering MCP: get_betankanden, get_dokument_innehall
  • Analysis methodology: ai-driven-analysis-guide.md v3.0

Generated by News: Committee Reports Β· ● 16.9M Β· β—·

  • expires on Apr 17, 2026, 4:58 AM UTC

- EN/SV articles for 2026-04-03 committee reports analysis
- FΓΆU12: Landmark civilian protection law (Prop. 2025/26:142) - significance 8.2/10
- JuU15: Criminal corrections issues - 76 motions rejected, 8 opposition reservations
- Full analysis suite: SWOT, risk assessment, threat analysis, stakeholder perspectives
- Per-document AI-driven intelligence analysis with Mermaid diagrams
- AI-generated titles replacing banned patterns
- Analysis references section linked in articles

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 04:58
@github-actions github-actions bot review requested due to automatic review settings April 3, 2026 04:58
@pethers
Copy link
Copy Markdown
Member

pethers commented Apr 3, 2026

@copilot analyse agentic workflows used, did overwrite analysis in wrong data directory. copy to correct dir and the revert yesterdays analyse.

Analyse and fix root cause of analysis in wrong folder. also fix any similar issues in other agentic workflows.

@github-actions github-actions bot added documentation Documentation updates html-css HTML/CSS changes translation Translation updates news News articles and content generation size-xl Extra large change (> 1000 lines) labels Apr 3, 2026
…inal state, update article references

Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/451a9c0f-178f-4dfe-b877-72ce974c8c79

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 05:31
@github-actions github-actions bot review requested due to automatic review settings April 3, 2026 05:31
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions bot commented Apr 3, 2026

πŸ” Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟑
Accessibility 95/100 🟒
Best Practices 90/100 🟒
SEO 95/100 🟒

πŸ“₯ Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…ting historical analysis

Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/451a9c0f-178f-4dfe-b877-72ce974c8c79

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 06:00
@github-actions github-actions bot review requested due to automatic review settings April 3, 2026 06:00
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

@copilot analyse agentic workflows used, did overwrite analysis in wrong data directory. copy to correct dir and the revert yesterdays analyse.

Analyse and fix root cause of analysi...

Root cause: The lookback fallback in all doc-type workflows would set ARTICLE_DATE to a previous date when no data existed for today. The agent then rewrote analysis files at that historical date, overwriting yesterday's valid analysis (e.g., 10-document analysis replaced by 2-document analysis).

Fixes applied (commits a015cf8 and 08e7742):

  1. Data fix: Copied today's analysis to correct dir analysis/daily/2026-04-03/committeeReports/, reverted 2026-04-02/committeeReports/ to original state, updated article references.

  2. Root cause fix: Added lookback protection to all 7 workflows (committee-reports, interpellations, propositions, motions, evening-analysis, realtime-monitor, SHARED_PROMPT_PATTERNS template). The fix saves ORIGINAL_ARTICLE_DATE, uses DATA_DATE to track the source, then copies analysis from the historical date to today's directory instead of mutating it. This preserves historical analysis while giving the agent fresh copies to work with.

@github-actions github-actions bot added workflow GitHub Actions workflows ci-cd CI/CD pipeline changes agentic-workflow Agentic workflow changes labels Apr 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions bot commented Apr 3, 2026

πŸ” Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟑
Accessibility 95/100 🟒
Best Practices 90/100 🟒
SEO 95/100 🟒

πŸ“₯ Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI changed the title πŸ“° Committee Reports β€” Civilian Shelter Law & Criminal Corrections β€” 2026-04-03 πŸ“° Committee Reports β€” Civilian Shelter Law &amp; Criminal Corrections β€” 2026-04-03 + Lookback Protection Fix Apr 3, 2026
Copilot AI requested a review from pethers April 3, 2026 06:02
@pethers pethers merged commit 2437d84 into main Apr 3, 2026
19 checks passed
@pethers pethers deleted the news/content/2026-04-03/committee-reports-17a15fdd78ea9c4b branch April 3, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-news agentic-workflow Agentic workflow changes analysis-data ci-cd CI/CD pipeline changes committee-reports documentation Documentation updates html-css HTML/CSS changes news News articles and content generation size-xl Extra large change (> 1000 lines) translation Translation updates workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants