Document the article generation pipeline#1992
Conversation
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1e00f029-b486-441b-b7b4-6eace6944b58 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1e00f029-b486-441b-b7b4-6eace6944b58 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1e00f029-b486-441b-b7b4-6eace6944b58 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/1e00f029-b486-441b-b7b4-6eace6944b58 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: documentation,size-l Label Categories
For more information, see |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
There was a problem hiding this comment.
Pull request overview
Adds a new, end-to-end documentation artifact describing how Riksdagsmonitor turns analysis artifacts into published multilingual news articles, using the 2026-04-24 interpellations run as the worked example.
Changes:
- Introduces
Article-Generation.mddocumenting the agentic workflow → analysis artifacts → aggregation (article.md) → rendering (sanitized HTML) → deployment (Vite + S3/CloudFront) pipeline. - Details the 23-artifact analysis contract, analysis gate, provenance model (sources footer + JSON-LD
isBasedOn), and multilingual rendering/translation approach. - Documents UI/rendering constraints (Mermaid supported; Chart.js/D3 via trusted code + JSON artifacts, not inline scripts).
| | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/*.md` | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/article.md` | | ||
| | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/documents/*.md` | Included under `## Per-document intelligence` | | ||
| | Supplementary `.md` files | Appended after the canonical sequence | | ||
|
|
There was a problem hiding this comment.
The “Aggregator input and output” table implies all analysis/daily/$ARTICLE_DATE/$SUBFOLDER/*.md files feed into article.md, but the current aggregator intentionally excludes README.md (and article.md / article.<lang>.md) from aggregation. Consider adjusting the table to avoid implying that README.md becomes part of the published article, or add an explicit note that README.md is required for the 23-artifact gate but is not included in article.md output.
| | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/*.md` | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/article.md` | | |
| | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/documents/*.md` | Included under `## Per-document intelligence` | | |
| | Supplementary `.md` files | Appended after the canonical sequence | | |
| | Canonical analysis `.md` files in `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/` (excluding `README.md`, `article.md`, and `article.<lang>.md`) | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/article.md` | | |
| | `analysis/daily/$ARTICLE_DATE/$SUBFOLDER/documents/*.md` | Included under `## Per-document intelligence` | | |
| | Supplementary `.md` files in the subfolder, excluding `README.md`, `article.md`, and `article.<lang>.md` | Appended after the canonical sequence | | |
| > **Note:** `README.md` is required for the 23-artifact analysis gate and repository readability, but it is intentionally not aggregated into the published `article.md`. Existing `article.md` and `article.<lang>.md` files are also excluded from aggregation. |
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/7415abc1-6b13-4fca-a01f-0a5026e198a9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Applied the requested documentation change in 2f670d1. The aggregator table now explicitly excludes |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Article-Generation.mdsectionscripts/render-lib/aggregator.tsREADME.md,article.md, andarticle.<lang>.mdexclusions explicitlyREADME.mdis gate-required but not published inarticle.md