![]()
๐ก๏ธ Secure Contribution Guidelines
๐ฏ Building Democratic Transparency Through Collaborative Excellence
๐ Document Owner: CEO | ๐ Version: 1.0 | ๐
Last Updated: 2026-02-20 (UTC)
๐ Review Cycle: Quarterly | โฐ Next Review: 2026-05-20
๐ข Owner: Hack23 AB (Org.nr 5595347807) | ๐ท๏ธ Classification: Public
This contributing guide establishes secure contribution procedures for Riksdagsmonitor, implementing Secure Development Policy and Change Management from Hack23 AB's ISMS framework.
We believe in security through transparency and continuous improvement, welcoming contributions that enhance democratic transparency while maintaining our high security standards.
โ James Pether Sรถrling, CEO/Founder
Hi there! We're thrilled that you'd like to contribute to Riksdagsmonitor. Your help is essential for keeping it great.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them.
We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR.
npm installnpm testgit checkout -b my-branch-namenpm run htmlhintHere are a few things you can do that will increase the likelihood of your pull request being accepted:
Work in Progress pull requests are also welcome to get feedback early on.
| Directory | Purpose |
|---|---|
*.html | Multi-language index pages (14 languages) |
styles.css | Cyberpunk theme design system |
js/ | Dashboard JavaScript modules (Chart.js, D3.js, Mermaid init) |
dashboard/ | Interactive intelligence dashboards |
news/ | Rendered political news articles ($DATE-$SUB-$LANG.html) |
analysis/daily/$DATE/$SUB/ | Per-day analysis artifacts consumed by the aggregator |
analysis/methodologies/ | Editorial method files (source of truth for how analysis is done) |
analysis/templates/ | Output section templates (source of truth for what goes in an article) |
scripts/aggregate-analysis.ts | Concatenates daily artifacts โ canonical article.md + manifest |
scripts/render-articles.ts + scripts/render-lib/ | Markdown โ sanitised HTML (unified / remark / rehype) |
scripts/ | Other build, generation, and utility scripts |
tests/ | Vitest unit tests |
cypress/ | Cypress E2E tests |
cia-data/ | CIA platform data exports |
The legacy content-generator approach (generate-news-enhanced, article-template) has been removed. To add a new news type:
interpellations-deep) โ this becomes analysis/daily/$DATE/$SUB/.analysis/templates/ โ this determines narrative flow without touching TypeScript..md from .github/workflows/news-*.md (e.g. news-propositions.md) and adapt:.github/prompts/05-analysis-gate.md)gh aw compile to produce the matching .lock.yml.$DATE-$SUB-en.html + $DATE-$SUB-sv.html; the rest are the sole responsibility of the news-translate workflow.See WORKFLOWS.md ยง5 for the full agentic-workflow structure, and ARCHITECTURE.md ยง"News Generation Pipeline Architecture" for the aggregator/renderer contract.
All PRs must pass these quality gates before merge:
| Check | Tool | Purpose |
|---|---|---|
| HTML Validation | HTMLHint | Standards compliance |
| Link Checking | Linkinator | Verify internal/external links |
| JavaScript Linting | ESLint | Code quality |
| Unit Tests | Vitest | Functionality verification |
| Security Scanning | CodeQL, Dependabot | Vulnerability detection |
| Secret Scanning | GitHub | Credential leak prevention |
Riksdagsmonitor supports 14 languages. When making content changes:
lang attribute on <html> tagsindex_ar.html) and Hebrew (index_he.html)hreflang tags for SEOThis project has 14 specialized GitHub Copilot agents to assist development:
Learn more in AGENTS.md.
๐ Document Control:
โ
Approved by: James Pether Sรถrling, CEO
๐ค Distribution: Public
๐ท๏ธ Classification:
๐
Effective Date: 2026-02-20
โฐ Next Review: 2026-05-20
๐ฏ Framework Compliance:
| ๐ 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 |
๐ณ๏ธ Empower citizens ยท ๐ Strengthen democratic accountability ยท ๐ต๏ธ Illuminate the political process
ยฉ 2008โ2026 Hack23 AB (Org.nr 559534-7807) ยท Maintainer: James Pether Sรถrling, CISSP CISM