alexandria.marketplace

whereabouts

Shows members the city you are in now.

Benjamin a. Mowinckel

Members see the city you are in now beside the city you live in, so a friend in Bergen sees you are in town this week, and anyone's model looking you up can say so. Your Mac reads its city every hour and shows it for 36 hours after each reading, so it disappears by itself when the readings stop.

It is offered once after you join, on a Mac laptop; to add it later, ask your model to turn on whereabouts and say who should see it. To turn it off, delete ~/alexandria/system/computer/permissions/whereabouts, or run python3 ~/.local/share/alexandria/scripts/whereabouts.py off to take the city down at once.

Why

  • Where you live and where you are now are two facts. Home is chosen once and the Library sorts by it, while where you are changes by the week, so the second is an optional city beside the first, never a replacement for it.
  • A stale city is worse than none. The one failure that matters is a profile still saying "in New York" weeks after you left, so where you are now is a lease that lapses on its own, never a claim you have to remember to take down.
  • The Mac is the ground truth. It knows where it is the way Maps does, so its own reading wins over anything said, and only a Mac that travels with you can say it: one that stays on a desk would keep saying home while you travel.
  • What it cannot know, you tell it. The Mac knows where it is but not how long you are staying, so a trip's last day comes from what you say, and it can end the lease sooner, never later.
  • A city, and only for the people you choose. A city is enough for a friend to know you are in town, and anything finer would show where to find you. Who sees it is your choice, and only your own step can widen it.

How

It runs from your Mac every hour while it is on, and at each session start; your model writes a note whenever you mention the last day of a trip.

The two facts

The city you live in stays exactly as it is, chosen once, and the Library sorts by it. Where you are now is a second, optional city, city-level only and never finer. You choose who sees it when you turn it on: every member and their models, or only the people you are connected with (who invited you or whom you invited, who shared pages with you or you with, and whom you wrote to or heard from in the last 30 days), and always yourself. It shows on a row as a faint pin and in Bergen, in the directory under Bergen as from San Francisco as well as under your home city, on your profile beside the city you live in, and on the card a model reads as in Bergen now, with , until 12 Oct when a trip's last day is known.

The Mac's reading

The Mac reads its own city, the way Maps knows where it is. macOS lets an app, not a script, use the location, so the signed script builds a small helper app on the Mac, once, from the signed source beside it (whereabouts-location.swift), into ~/.local/share/alexandria/whereabouts/Whereabouts.app, compiled with the Command Line Tools and signed for this Mac only. For each reading the script opens the helper as its own app. It asks macOS for a fix, has Apple's geocoder name the place in English, and prints one line:

<city> | <ISO country code> | <time, ISO 8601 with its offset>

for example Bergen | NO | 2026-10-07T20:00:37+02:00. Then it quits. It has no window and no Dock icon, and beyond asking Apple to name the place, it sends nothing anywhere.

macOS's one question. The first time, macOS asks whether whereabouts may use the location, with the words "Your Mac names the city it is in, so members see where you are now beside where you live." You click Allow. That answer stands until you change it in System Settings, under Privacy & Security, Location Services. The helper is rebuilt only when its signed source changes in a release, because a rebuilt helper is new to macOS and the question comes again, and only a session start or your own command builds it, never the hourly job, so the question appears only when you are at the Mac.

The lease, in plain words

Where you are now is a lease, never a claim (Why, above).

  • Each fresh reading shows the city for 36 hours from the moment it was taken, and the next reading in the same city renews it.
  • With no fresh reading for 36 hours it disappears. The connector holds only the current city and its expiry, replaced each time, never a history.
  • A reading at home clears it at once. A reading in another city replaces it at once. A reading somewhere that is not one of the Library's cities (a small town, say) also clears it, because you are no longer where it last said.
  • A trip's last day can end it sooner, never later. It counts only while the Mac is in that city and the day has not ended; a reading in the same city after that shows the city for the full 36 hours again, because the Mac is the ground truth.
  • A reading from the future, one already sent, or one older than 36 hours sends nothing.

The note

The Mac knows where it is, but not how long you are staying. When you mention a trip with its last day ("I'm in Bergen until the 12th"), your model writes a note:

python3 ~/.local/share/alexandria/scripts/whereabouts.py note 'Bergen' --until 2026-10-12

It is one line in ~/alexandria/system/whereabouts.txt, replaced each time, in the same shape as the Mac's with | until <YYYY-MM-DD> after it. The Mac's own fix always wins for the city, and the note's last day counts only while the fix is in the note's city and that day has not ended. When the Mac has no fix (its location is off, or the Command Line Tools are missing), the note is the reading, so your model can also note the city you say you are in, with its two-letter country code when it knows it; that note lapses 36 hours after it was written like any reading. Writing it sends nothing; the hourly job or the next session start picks it up. While whereabouts is on, session start tells your model all this (factory/context/whereabouts.md).

On the Mac

~/.local/share/alexandria/scripts/whereabouts.py and the helper's source are signed and installed by setup.

  • Session start runs it in the background while the grant is on, and also once the switch is gone while it still holds a published city or the helper, so turning it off takes both away.
  • An hourly job, ~/Library/LaunchAgents/io.alexandria.whereabouts.plist, runs it every hour, at load, and whenever the Mac's time zone (/etc/localtime) changes, which is only a reason to read sooner, never a city. The job's exact path and hash are in ~/.local/share/alexandria/.owned_integrations, so the uninstaller removes it.
  • Its state (the last reading it sent, the last fix, whether a city is shown, its expiry, a trip's last day, why there is no fix) and its log live in the protected runtime, ~/.local/share/alexandria/whereabouts.json and whereabouts.log, never in the alexandria folder.
  • The key is the full account key from the protected runtime.

Its commands are run (what session start and the job do), status (works inside the sandbox, reads no key and asks macOS nothing), note (writes the note and sends nothing), and off.

Turning it on

It is offered once, in one plain line, after you have joined, in setup's join step or on the alexandria session's connector path, on a Mac laptop, asking in the same line who should see it. Only a Mac with a battery reads its city (Why, above).

On your yes, through the host's own approval prompt, because it records the grant outside the sandbox and uses the full key:

bash ~/.local/share/alexandria/scripts/permission.sh grant whereabouts members && python3 ~/.local/share/alexandria/scripts/whereabouts.py run

for every member, or the same command with people in place of members for only your own people. Running it again with the other word changes who sees it from the next reading.

The run builds the helper and waits up to ten minutes while macOS asks whether whereabouts may use the location; you click Allow. python3 ~/.local/share/alexandria/scripts/whereabouts.py status then shows the last fix and what is shown. It needs the Command Line Tools; without them it says so once, shows nothing, and xcode-select --install adds them.

Turning it off

Deleting ~/alexandria/system/computer/permissions/whereabouts turns it off; within the hour, or at the next session start, the city comes down, then the state, the helper and the schedule go. whereabouts.py off does all of that at once, the switch included, through the approval prompt, since it uses the full key.

Limits

When it stays quiet

  • The script and the helper's source run nothing and build nothing until the grant exists.
  • A no is recorded as declined in system/model/practice/checklist.md and never asked again.
  • A place you plan to go, or one you are only talking about, gets no note.
  • Nothing ever asks you to confirm you have left.
  • Without macOS nothing is built or scheduled, and only a note says where you are.

Who never sees it

A stranger never sees it. A member outside the people you chose never sees it, and a search for the city does not find you there. It is never finer than a city.

What waits for your yes

Turning it on, and changing who sees it, run only through the host's approval prompt, because they record the grant outside the sandbox and use the full key. Only that step can widen who sees it, never a file your model writes. whereabouts.py off goes through the same prompt.

What it never touches

The read key, which your model can see, never sends anything. A link planted at the note, the state or the key is never followed.

Network behaviour

DestinationWhenWhat leaves
Apple's location serviceeach reading, from the helper, only while the grant is on and macOS allows itthe Mac's position, for Apple to fix it and name the city and country, as Maps does
Alexandriafrom the Mac, only while the grant is on (or once more after it, to take the city down)the city, its country, an expiry, a trip's last day when one is known, and who may see it, with the full account key; or a request to take the city down. Nothing else about you.

When it is off

Whatever happens, a shown city lapses by itself within 36 hours of its last reading.