Downloaded data collections from downloadAllDocuments()
Current riksmรถte identifier (e.g. "2025/26")
OptionalmcpToolMap: Partial<Record<DocumentTypeKey, string>>Map of document type โ MCP tool name for provenance
Override for the data root directory (for testing)
Summary of files written and skipped.
Persist all downloaded MCP data to the structured
analysis/data/tree.Documents are organised by type under
analysis/data/documents/{type}/. Date-stamped data (votes, events) is further partitioned by date.Data files contain only raw source data (no metadata injection) to ensure parallel workflows writing the same document produce identical output, preventing git merge conflicts.