Skip to content

Analyze remaining gaps after article type improvements; create and assign 4 follow-up issues#594

Merged
pethers merged 2 commits intomainfrom
copilot/improve-extend-article-types
Feb 27, 2026
Merged

Analyze remaining gaps after article type improvements; create and assign 4 follow-up issues#594
pethers merged 2 commits intomainfrom
copilot/improve-extend-article-types

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

All 8 article type improvement issues (#595#602) were completed. Analyzed the current state of all generators, tests (2,026 passing), and workflow files to identify remaining technical debt.

Findings

  • Hardcoded riksmöte '2025/26' in 3 generators (8 instances) — will break at September 2026 session boundary
    • weekly-review.ts (4 places) — already imports getCurrentRiksmote but only uses it in Step 6
    • monthly-review.ts (3 places) — no import at all
    • propositions.ts (1 place) — no import at all
  • All 10 agentic workflow .md prompts hardcode rm: "2025/26" in MCP query examples
  • Outdated TODO in committee-reports.ts:78 references tools that are already implemented
  • No test enforcement — existing test documents hardcoding rather than preventing it

Issues Created & Assigned to Copilot

Issue Priority PR What
#633 HIGH #639 Replace hardcoded riksmöte with getCurrentRiksmote() in 3 generators
#635 MEDIUM #637 Add dynamic riksmöte instructions to 10 workflow prompts
#636 MEDIUM #640 Add regression test preventing hardcoded riksmöte
#634 LOW #638 Remove stale TODO in committee-reports.ts

Reference pattern (already correct in motions.ts:234):

export function getCurrentRiksmote(date: Date = new Date()): string {
  const year = date.getFullYear();
  const month = date.getMonth(); // 0-based; September = 8
  const startYear = month >= 8 ? year : year - 1;
  return `${startYear}/${String(startYear + 1).slice(-2)}`;
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Improve and extend all article types functionality Create 8 issues to improve/extend all article types with MCP tool integrations Feb 26, 2026
Copilot AI requested a review from pethers February 26, 2026 21:04
@github-actions github-actions bot added the size-xs Extra small change (< 10 lines) label Feb 27, 2026
@github-actions
Copy link
Contributor

🔍 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 Create 8 issues to improve/extend all article types with MCP tool integrations Analyze remaining gaps after article type improvements; create and assign 4 follow-up issues Feb 27, 2026
@pethers pethers marked this pull request as ready for review February 27, 2026 18:43
@pethers pethers merged commit d4482c2 into main Feb 27, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-xs Extra small change (< 10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants