ADR 0023 — Digital events do not make a stay
Status: proposed · 2026-10-13 · narrows SPEC §3.2.3 rule 5 (SPEC 0.4); records what #263 changed in the reference
Context. derive stays clusters the owner's location points. A cluster shorter than stay_min_s (20 minutes) is a stop unless evidence falls inside it, and SPEC §3.2.3 rule 5 promoted it to a stay on any line of the kinds event, transcript, note, call, message and photo. The rule was written when every event/v1 line came from a calendar (ios-calendar, then ics) or from Google Home's history of the door, and each of those puts the owner at a place at a time. Since then the record has taken events from sources that are not physical: sync notion writes a page edited (#253), sync drive a file changed (#256), and until #263 sync gtasks wrote a task created or completed. Such an event happens nowhere. Say Ola Nordmann changes the crew list in a Drive folder Ines shares with him at 14:05, while Ines's phone sits for ten minutes at a café in Oslo. The café became a stay with one event attached, and places propose, which reads the same stays, offered it as a place to name. The more sources a record has, the more stops become stays for reasons that say nothing about where the owner was. #263 changed the reference (stays.somewhere, and the same test in reading.owner_track for places propose) and left the spec as it was, so the text and the reference disagreed.
Decision.
- An event is evidence only when it happened somewhere. It passes any of four tests: its source is a calendar (
ios-calendar,ics); it is Google Home's history (sourcegoogle-takeout,calendar.idgoogle-home); its payload carries alocationwith something other than whitespace in it; or its payload carriesattendees, a list with at least one member. SPEC 0.4 §3.2.3 rule 5 states the four tests exactly; in the reference they arestays.somewhere,stays.CALENDARSandstays.HOME_HISTORY. - What the line carries decides, and a source is named only when its entries are a place and a time whatever they carry. A Wallet pass with its venue, or a ticket with its address, promotes from any source, and a new source needs no change to the rule. An event that carries neither, from a source that is neither (Notion, Drive, a task list), is a digital event. It promotes nothing and
attacheddoes not count it.showstill lists it on its day. - Only events are narrowed. #263 changed the event and nothing else, and this ADR records that and no more: transcripts, notes, calls, messages and photos promote as before, and a line of any other kind (
mail,task,browse, …) was never evidence and is not now. Whether a message that reached the owner's phone in a pocket on a tram is presence is a separate question. A change to it is a new ADR and a new SPEC version.
Alternatives considered.
- Drop events from evidence altogether. A calendar entry and the arrival at the door are the best evidence the record has that a short stop was a visit: the ten-minute meeting, the drop-off at home. Without them, real visits would go back to being stops.
- Name the digital sources instead (
notion,drive, …). Every new adapter that writes events would promote until someone remembered to add it to the list. Naming the physical sources and testing the payload fails closed: a new digital source promotes nothing. - Count a digital event when the owner made it. For most sources the record cannot tell who changed a file. And even an edit the owner made carries no place: it could have been made from anywhere.
- Leave the spec as it was and call the reference's test a reader's own. §3.2 exists so that two implementations derive the same stays. §6.1 compares
segments, and a segment'skind,promotedandattachedall depend on this rule.
Consequences.
- SPEC goes to 0.4, with rule 5 and the inputs of §3.2.3 rewritten and a version history added. The format does not change: §1–§3.1 stay as they are, a record still names
logbook/0.3, no hash changes, and no conformance fixture or head changes. Every event inconformance/carries attendees or a location, and every event of the seed-1 demo record of §6.1 is anios-calendarentry, so each passes the tests as it passed the old rule. From 0.4 on, the document's version and the format's name are two numbers. - A record with digital events derives some stays as stops that it used to promote. Nothing in the record changes; the next run of
derive stays,day,days,tripsandplaces proposeprints the new reading (ADR 0013: derived is disposable). - The
event/v1linessync gtaskswrote before #263 stay in the record. They carry no location and no attendees and come from no calendar, so they promote nothing. - A new source whose entries are a place and a time whatever they carry joins the list in rule 5 and
stays.CALENDARStogether, and that is a SPEC version. Any other source writeslocationorattendeeswhen it has them, and promotes through those. - logbook-ts promotes on every event today (
promotesinsrc/day.ts, at 5452b8a). Until it takes the four tests, the two implementations disagree on a record with digital events. Neither the conformance fixtures nor the demo record holds one, so no comparison that runs today shows the difference. logbook-ts is asked to confirm parity.