Required contract
Published pages and their source links remain readable even when an optional external service is unavailable.
ENGINEERING EVIDENCE / VERIFIED SCOPE
Multilingual public guidance
How published Swedish-service guidance becomes searchable while the linked authorities remain the source of truth.
Review scope: The source repository is private. The paths below were inspected by the portfolio owner; visitors can review the live experience, but not the private code.
01 / SYSTEM FLOW
This is a conceptual, source-scoped diagram—not a packet trace, running backend or measured infrastructure topology.
Browser
Read a language-specific, public guide and its official-source references.
Build-time discovery
Generate a searchable index from structured published documents.
Release check
Check generated links and prevent protected editorial material from being published.
Serverless boundary
Read selected external transport data only when its integration is available.
02 / EXPECTED BEHAVIOUR
Published pages and their source links remain readable even when an optional external service is unavailable.
External feeds, untranslated pages and stale official sources require explicit unavailable or review states.
Design decision: Build static and indexable public pages first, then isolate variable external data in optional adapters.
Tradeoff: The approach improves crawlability but creates an ongoing responsibility to review translations, official sources and changes in agency services.
03 / SOURCE & PROVENANCE
No MigraKompassen private source is redistributed. See the reviewed paths and evidence boundaries below.
No MigraKompassen private source is redistributed. See the reviewed paths and evidence boundaries below.
| Area | Source observation | Supports | Does not prove |
|---|---|---|---|
| Published contentPRIVATE SOURCE REVIEWED | public/The repository README documents 81 published HTML pages with language variants and regional records. | A structured public-document layer exists in source. | Page count and translation quality can change; this is not evidence of legal accuracy. |
| Search indexPRIVATE SOURCE REVIEWED | scripts/build-search.mjsA dedicated build script generates a content index, backed by tests for published pages and municipality records. | Search content is assembled from structured sources. | Coverage assertions are build evidence, not proof every official link remains current. |
| Route validationPRIVATE SOURCE REVIEWED | scripts/verify.mjsThe verifier checks routes, HTML, reference paths and exclusion of protected editorial resources. | Invalid public links and accidentally exposed editorial files are considered at build time. | Static checks cannot certify live government information or production editorial permissions. |
| Optional data adaptersPRIVATE SOURCE REVIEWED | api/resrobot.jsThe repository describes an optional ResRobot API integration with explicit unavailable behaviour when no key is set. | Optional transport data is separated from the public content layer. | No live timetable accuracy or API-key availability is asserted. |
04 / VALIDATION & NEXT CHECK
Private source notes describe route and link verification. No current authoritative-source freshness audit is claimed.
Private repository structure and representative files reviewed; the public site is available. No claim that all current public pages match the private repository head.
Next verification: Revalidate the live production route map against the current multilingual index and review official-source freshness.
Private source reviewed on 23 October 2026; the website is public. This is not a live government-service audit.