Merge the remote area: remote tokens, role_remote, remote_from, model wins for remote (wp-remote-a)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	app/models.py
This commit is contained in:
Wolf committed 2026-09-30 16:21:57 +02:00
commit e5572cab9d
21 files changed
+1250 -143

No files matched your search

+9 -5
View File
@@ -6,17 +6,19 @@ on. Computed once per pull (`plan`) and handed to each board's batch as the
- **Base reach**: the union of the enabled agents' `any` gates on country,
place (a town or region, mapped to its country through the gazetteer) and
remote. An agent whose `any` group is empty, or holds any other member (a
function, a remote value other than `remote`, a place the gazetteer does
not know), can take a role from anywhere, so the base reach is then
everywhere.
remote; a `remote_from` gate is remote. An agent whose `any` group is
empty, or holds any other member (a function, a remote value other than
`remote`, a place the gazetteer does not know), can take a role from
anywhere, so the base reach is then everywhere.
- **Wide reach, for the companies set to All countries**
(`companies.all_countries`, global): the union over the enabled agents of
their `require` reach, the intersection of each one's `require` gates on
country and place, Europe today, expanded to its countries through the
gazetteer, and the base reach, so the override never reads less than the
board would without it. An agent with no `require` gate on place makes it
everywhere. A role in Freiburg may be open to remote, or worth asking the
everywhere. A `require` gate on remote or `remote_from` next to one on
country adds nothing to it, so remote never widens it past the countries.
A role in Freiburg may be open to remote, or worth asking the
company about for Denmark. Favourite (affinity 2) is scoring only, where
it skips the `any` gates; it does not widen what is fetched.
- **Board override**: a board whose subscription `params` name a country, a
@@ -145,6 +147,8 @@ def gate_reach(gate: Gate, gaz: places.Gazetteer) -> Reach:
everywhere for a gate that says nothing of place or names one the
gazetteer does not know."""
values = [str(v).strip() for v in gate.values if str(v).strip()]
if gate.field == "remote_from":
return Reach(remote=True)
if gate.field == "remote":
return Reach(remote=True) if values and all(v.lower() == "remote" for v in values) \
else EVERYWHERE