IQ.

ENGINEERING EVIDENCE / VERIFIED SCOPE

Multilingual public guidance

MigraKompassen / technical review.

How published Swedish-service guidance becomes searchable while the linked authorities remain the source of truth.

EVIDENCE LEVELReviewed private source + public website
ORIGINAL SOURCE REVIEW2026-10-23
PROJECT TYPEIndependent engineering project

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

A documented path through the system.

This is a conceptual, source-scoped diagram—not a packet trace, running backend or measured infrastructure topology.

  1. 01

    Browser

    Published page

    Read a language-specific, public guide and its official-source references.

    Boundary: Only published language variants can be offered.
  2. 02

    Build-time discovery

    Content index

    Generate a searchable index from structured published documents.

    Boundary: Coverage is a source/build claim, not a promise of current official advice.
  3. 03

    Release check

    Route verification

    Check generated links and prevent protected editorial material from being published.

    Boundary: Broken links can be detected; legal accuracy still needs manual review.
  4. 04

    Serverless boundary

    Optional data adapter

    Read selected external transport data only when its integration is available.

    Boundary: An unavailable external key must not result in invented data.

02 / EXPECTED BEHAVIOUR

Contracts and failure cases.

Required contract

Published pages and their source links remain readable even when an optional external service is unavailable.

Negative path

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

What a reviewer can actually inspect.

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.

Reviewed files and explicit limits
AreaSource observationSupportsDoes not prove
Published contentPRIVATE SOURCE REVIEWEDpublic/

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 REVIEWEDscripts/build-search.mjs

A 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 REVIEWEDscripts/verify.mjs

The 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 REVIEWEDapi/resrobot.js

The 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

Evidence before assertions.

Test / review signal

Private source notes describe route and link verification. No current authoritative-source freshness audit is claimed.

What remains open

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.