10 KiB
Plan: where a remote role may be worked from
Written 2026-09-30 against main at 4cf8143 (schema v26). Built in two work packages, then folded into decisions.md and deleted.
What the data says
Open roles without copies: 20,578. remote is remote on 3,177, hybrid on 3,844, onsite on 1,862 and empty on 11,695. extract has read 554 of them.
The Place field lists remote lines as towns. Typing "remote" suggests "USA (Remote)" 75, "Germany (Remote)" 61, "Remote US" 60, "United States (Remote)" 56, "Remote (UK)" 38, "US (Remote)" 37 and about 60 more, because places._towns takes the first comma part of each place as a town and only drops a leading "Remote -". Each spelling is its own chip, and none of them is a country filter.
The countries in that list come from a few boards, not from an ingest filter. "Spain/Sweden/United States/Germany (Remote)" are Grafana Labs, "Remote India" and "Remote US" Cloudflare and Mozilla, "Remote (UK)" Monzo, "USA (Remote)" Talkdesk, "All France (remote)" Pennylane, the German Länder "(Remote)" 1KOMMA5°. Greenhouse, Ashby and Lever (13,920 open roles) cannot filter and are read whole, so their remote roles of every country come in. The hosts that filter read DK, SE, DE and a remote series, and the remote series returns remote roles of every country too. The list is therefore what the followed companies write, and they are mostly US and UK firms.
Where a remote hire may live, read from the place texts of the 3,177 remote roles:
| Scope | Roles |
|---|---|
| outside Europe only (US, CA, IN, ...) | 1,620 |
| European countries other than Denmark | 705 |
| Europe, EMEA or a list naming Denmark | 297 |
| anywhere ("Worldwide", "Global") | 210 |
| Europe and elsewhere | 103 |
| not stated ("Remote" alone, or a host flag with no place) | 234 |
| Denmark only | 8 |
Denmark has almost no remote roles of its own. Of 1,395 open Danish roles 11 are remote and 101 hybrid. The text of 43 says "remote", mostly as hybrid, as #LI-Remote or as "remote development environments"; 3 say remote within Denmark (Trackunit twice, "remotely from anywhere in Denmark", and Databricks). The remote roles a person in Copenhagen can take are the roughly 300 scoped to Europe or EMEA and the 210 scoped to anywhere, and no filter names them today.
The location line and the text disagree often enough to matter. Of the 333 remote roles with no country, 139 texts say remote-first or anywhere and 7 say US only. Canonical writes "Home Based - Worldwide" and then "based remotely in the EMEA region" in the text, and Mozilla writes "Remote" and then "must reside in the country location". Black Forest Labs' Freiburg roles are OnSite on Ashby while the text offers remote work with an office week a month, and "the board wins" keeps them onsite.
One false positive. A Jobindex role titled "... Remote Sensing ..." reads as remote, because a search role's title is read for the word.
Decisions taken for this plan
-
A remote role has a remote area: the places a remote hire may live in. It is a set of gazetteer places, plus one new place, Anywhere, for "worldwide". A role with no area is "remote, area not stated".
-
The area comes from the first of these that gives one:
- the model's
remote_where, read from the text - the role's place texts marked remote ("Germany (Remote)", "Remote - US", "Home Based - EMEA"; "Worldwide", "Global" and "Anywhere" in a remote text are Anywhere)
- the role's resolved places, when the role is remote and no text is marked (Databricks "Denmark" with the host's remote flag is remote in Denmark)
- else none
A text that is only "Remote" marks nothing and gives no area.
- the model's
-
"Remote · Denmark" means remote roles a person living in Denmark can take. Its area overlaps Denmark: Denmark or a place in it, a place Denmark lies in (Europe, Øresund), or Anywhere. "Remote · Europe" is every remote role whose area is in Europe or is Europe or Anywhere, so it includes "Germany (Remote)". "Remote · anywhere" is only Anywhere. This is one rule, overlap, and covers both cases the owner named: remote Denmark, and all European remote roles.
-
A role whose area is not stated matches no remote chip in the feed. In an agent's gate it is empty, which by the gate rule neither passes nor fails, so it ranks,
extractreads it and the rescore gates it. -
For remote, the model wins, as it does for seniority.
remote_modelis new, andremoteis the model's value, else the host's word, else the place line. The prompt says remote when the hire works from home most of the time, even with a regular office week, and hybrid when there are set office days each week. Black Forest Labs then reads as remote. -
Extract reads the area once more for the roles it has read. A role waits while
remote_where_modelis NULL (never asked).[]means asked and not stated. The existing per-agent bounds apply, so no new cost bound is needed. -
Agents get a gate field
remote_from, whose values are place tokens. It matches as the chip does. The live agent'sremote: [remote]gate keeps working until the owner edits it, since the Where block then writesremote_from.
Contract between the packages
- Token.
remote:<place token>, e.g.remote:country:DK,remote:country:EU,remote:region:oresund, andremote:anywhere.places.parse,known,labeland/api/places/labelsread it. The label is "Remote · Denmark", "Remote · Europe" or "Remote · anywhere".GET /api/roles?place=and/facetsaccept it beside the other place tokens, ORed with them as now. - Suggestions.
/api/suggest/placesalso returnskind: "remote"suggestions, withcountthe open roles the token would find. They are offered whenqstarts "remote", "anywhere" or "worldwide", or starts the name of a country, region or town that has remote roles, and they come after the countries. Remote lines ("USA (Remote)", "Remote US", "Remote Germany") are no longer suggested as towns. - Rows.
RoleandRoleRowgetremote_where: str, the area as a label: "anywhere", "Europe", "Denmark", "United States, Canada". It is '' when the role is not remote or its area is not stated. - Gates.
GateFieldgainsremote_from, whose values are tokens as above without theremote:prefix (country:DK,country:EU,anywhere).reachtreats aremote_fromgate as remote.
WP-A, backend (Opus)
Owns app/places.py, app/models.py, app/prep/, app/storage/, app/jobs/, app/web/api.py, app/cli.py, plugins/ and tests/ except tests/js/.
- Migration 27.
roles.remote_model TEXT NOT NULL DEFAULT ''androles.remote_where_model TEXT(JSON list of names, NULL means never asked).- Table
role_remote(uid, place_id)with an index onplace_id. - Anywhere is a standalone place (kind
continent, keyworld), outside the tree, so thatunderand the Place filter never reach every role. Its aliases are the remote-only words. "global" and "international" alias it only inside a text marked remote, so "Global HQ, Berlin" stays Berlin.
app/prep.- The remote area of each remote role, by decision 2, written to
role_remote. remotecomposed as in decision 5.VERSION3, so every open role is mapped again.- After
set_extracted, the roles extract wrote get theirremoteand area again before the rescore, by marking them due and running prep on them, or by a shared function.
- The remote area of each remote role, by decision 2, written to
app/places.py.- The remote token.
- Overlap: the named places, their ancestors and what lies under them, plus Anywhere.
_townsskips a part that holds a remote word.suggesttakes the remote areas' counts as a second input.
app/storage/store.py._places_sqlhandles the remote token asuid IN (SELECT uid FROM role_remote WHERE place_id IN ...)andremote = 'remote'._gate_sqlhandlesremote_from. It is empty forremote = '', and forremote = 'remote'with no area.open_remote_areas()feeds the suggestions.remote_whereon rows.set_extractedwritesremote_modelandremote_where_modeloutright.
app/jobs/extract.py. It adds theremote_wherefield and the remote wording of decision 5, and makes a role wait whileremote_where_model IS NULL.- Title rule. "remote sensing" (and "remote control", "remote monitoring") in a title is not remote.
- Tests. Tests for each rule use the examples above: Grafana's "Sweden (Remote)", Canonical's "Home Based - EMEA; Home Based - Worldwide", Databricks' "Denmark" with the host flag, Airtame's "København, Denmark; Remote" (area Denmark), "Remote" alone (not stated), "Global HQ, Berlin", Black Forest Labs' onsite host word with remote text.
- Live measurement. On a copy of the live database, run prep, then give the counts of
remote:country:DK,remote:country:EU,remote:anywhereand the not-stated remote roles.
WP-B, pages (Sonnet)
Owns app/static/, app/templates/, app/web/pages.py and tests/js/.
- Place chips. A
remotesuggestion gets the hint "remote · N" and the chip label from the suggestion, and a remote chip reads from the address through/api/places/labels. - Row and reader. The remote badge reads "remote · Europe", "remote · anywhere" or "remote · Denmark" from
remote_where, and "remote" alone when it is empty. - Agents' Where block. "Remote within Europe / anywhere" becomes "Remote, open to someone in:", a chip input on the same suggestions restricted to countries, regions and Anywhere, written as one
anygateremote_from. An agent whose gates hold the oldremote: [remote]any gate loads as remote from Anywhere and saves asremote_from: [anywhere]. The existing "within Europe" require gate is left as the block reads it now. The card sentence says "or remote from Denmark, Sweden or Germany". - Browser check. Use the Chromium recipe on a scratch server, never on port 8790.
After the merge
The planner merges both packages, runs prep on live (or lets the next pull run it) and reports the counts to the owner. Then the planner asks which "remote from" set the owner wants on their agent: Denmark only, Denmark, Sweden and Germany, or Europe. Last, this plan is folded into decisions.md and deleted.