The phrase "we cover X countries" hides a stack. Here's what's actually running underneath ours.
Orchestration
We use three orchestrators, each picked for the shape of its job:
Dagster runs the source-discovery and indexing jobs — the big batch transforms that turn raw HTML and PDFs into typed, categorised facts. The graph lives in pipelines/authority_collector/.
Temporal handles the long-running, retryable work: refresh checks across hundreds of sources, with backoff, with circuit breakers. When a labour ministry returns 503 for six hours, Temporal handles it. Workers live in scripts/temporal/country-authority/.
Playwright drives the source captures themselves — many government portals are JavaScript-heavy and don't render server-side. We run headless Chromium with per-source browser profiles so cookies / sessions / language preferences are stable between runs.
All three feed the same source-manifest + raw-document store. None of them ever mutates a customer record directly. The pipeline produces evidence; humans approve.
Schedule
Each source carries an SLA (data/country-intelligence/source-freshness-sla.json):
- Daily — official gazettes, alert feeds, status pages
- Weekly — labour ministries, tax authorities, social security
- Monthly — stable reference (currency lists, ISO codes, treaties)
A source missing its SLA window triggers an authority alert. We publish every alert at /authority-alerts and a JSON feed at /api/feeds/authority-alerts.
Failure modes (and what we do about them)
Source moved. Government portals rotate URLs more often than you'd think. Our update checker detects this via redirect chains and HTTP 301s, captures the new URL, and writes a redirect entry in the source manifest. Customers see no interruption.
Source returns soft 200 with no content. Happens when an authority site goes through a redesign and serves a marketing landing page instead of the law text. We catch this via content-length thresholds and fingerprint diffs — sudden 10× drops raise a content-suspect alert.
Source breaks behind paywalls. Some countries (US states, parts of LATAM) lock primary sources behind paid subscriptions. We don't fake this — when we hit a paywall, we mark the source requires_subscription and source from the next-best public authority. We never present unconfirmed data as authoritative.
What you see as a customer
The pipeline is most visible in three places:
- Country pages show the source library — every URL we cite for that country, last-checked timestamp, and the document categories covered.
- The changelog at /changelog/country-intelligence is the raw tail of every source check we run.
- Authority alerts at /authority-alerts — material changes filtered to the ones that affect employer obligations.
Want a deeper look? The methodology page walks the full six-step framework, and /our-data shows the live numbers.