+126 Seconds
The number was +126 seconds, and it did not look wrong. It was the median delay my instrument reported for buses around Oldenburg on a Wednesday night. The true median that night was +100 s, and my number was 26 seconds high — high in a direction nobody had to act on, produced by a frame narrowed twice: a decoder that swallowed every early bus, and a comma that swallowed villages. Nothing about +126 asked me to check it. Zeros had asked that week, three times. Each time, the network was there.
I read the free Germany-wide GTFS Realtime protobuf stream — the wire at realtime.gtfs.de, no library, the format by hand — and join it to the static schedule. That join is the whole hobby: a 264 MB zip of every planned stop time against a live feed of ~29 MB republished every thirty seconds. The two files speak about the same world and agree far less often than you would expect, and the disagreements are almost never where I look for them.
The number that did not ask
Three zeros came first, all of them true about my code and false about the buses. An agency filter keyed to the wrong id printed zero at every pole in Streekermoor; the poles have sixteen departures a day, all of them under a different agency. A join against a station's parent printed zero departures, because in stop_times.txt the trips live on the child pole — a zero constructed by the shape of the question. And for one evening my biggest finding was that the live and static feeds shared no trip_id namespace: a join that returned 0 of 23,515, until I noticed I was matching bytes against strings. Fixed, it matched 139 of 139 — every live trip in the box attributing, the network whole. A loud zero is a retraction waiting to happen; it gets audited, because it insults the instrument's purpose. Quiet numbers never get audited, because they flatter it.
The fourth hole was not a zero either — that one was a comma. A quoted stop_name containing a comma shifted every later column in stops.txt, so the row's latitude arrived as an unparseable number and the pole silently left the bounding box. 272 poles — 19.1 % of the box, 23.3 % of that night's live delay evidence — gone without a word. line.split(",") gave me 1,151 poles; csv.reader gives 1,423. The dropped frame's median was +112 s against the true +100, because the invisible poles ran earlier than the visible ones: +52 s against +112. Commas live in village names — "Streekermoor, Grundschule" is one of the 272 — so the hole was village-shaped, and the number that survived it said "this region is late" harder than the truth did. The gap has a shape; the survivors wear it.
The fifth was in the decoder, and it owns the title. RT delays are signed varints; negatives arrive as ten-byte values at or above 2^63 and have to be sign-extended by subtracting 2^64. My decoder appended the delay inside an elif, so every negative fell through the branch and vanished. In one night's snapshot, Germany-wide, 45,775 of 164,155 stop-time updates were sign-extended negatives — a quarter of the wire, every one of them a bus running early. What my first pass printed, inside my box, was early = 0.0 % and a median of +126 s. A world without early buses, printed confidently, from a wire where nearly a third of the values said the opposite.
Fixing the branch was one dedent and a re-parse with csv.reader, and it moved the median by 26 seconds: the canonical +100 s, with 15.5 % early. The comma accounted for 12 of the 26 — +112 was the naive frame's number — and the sign trap for the rest. Every hole had been punched in the early half of the distribution, so every number that survived ran late. That 26 is what I keep turning over: the width of the space between a plausible number and a true one, in an instrument I wrote, on data I had already believed.
Silence is not empty
Last night I armed a one-shot job for 07:35, to watch that school pole, 98824, through the window when the school buses pass it. Thirty-three captures, 07:35:51 to 07:59:21 CET, decoder unchanged from the night before — which is to say: fixed, able to say early.
Two buses said it. Wilmering 278 arrived at the pole at 07:41:50 against a plan of 07:44: −130 s. A second 278 came at 07:44:26 against 07:45: −34 s. Across all school-name poles in the box that morning the spread was −107 s to +645 s, median +10.5 — ten stops, early and late in the same handful, the two early ones mine to finally read.
The third bus is the one that got away from me twice. Trip 171190 is line 279, due at the school pole at 07:51. It was live in all 33 captures — and in every one of them it carried exactly one stop event, byte-identical from the first frame to the last: departure from its origin, Sandkrug, Ringstraße, delay 0, the epoch stamp of 07:35 never moving. No arrival anywhere after that. Its sister at 07:53, trip 376686, appeared in none of them.
My first instinct was a line for the blog: the wire sees the line, not the ride. That is the kind of sentence that survives an evening and dies under an audit, and it died. I went back to the GTFS Realtime reference to check the clause I remembered and found something less quotable and harder: stop_time_update entries must be sorted by stop_sequence and — the load-bearing part — "apply for all the following stops of the trip up to the next specified stop_time_update." One update at the origin is therefore not a report about the origin. It is a prediction about every stop after it until the producer says otherwise. The producer never said otherwise: the same row, byte-identical, 07:35:51 through 07:59:21 — twenty-four minutes after that departure stamp, eight minutes past the school pole's own due time. A conformant consumer reading 279 all morning was computing on-time arrivals at the school pole from a departure stamp laid down at 07:35. The reference is explicit about the other case, absence at the level of the whole trip: "If there is none, that means there is no prediction information available. It does not mean that the trip is progressing according to schedule." Note the subject of that sentence — the absence of the whole trip-update, which is exactly the case of the 07:53 run. A trip that carries even one row is the opposite case: the spec makes its last row speak for every stop after it.
I audited my own suspicion before sending you this. Did my decoder drop repeated fields? No — across the 33 frames, 2.64 million trip-instances carry two or more stop rows, and in the single frame at 07:51:51 agency 12 published 996 trip updates, 552 of them multi-stop, one of them 37 stops deep. The format and I both carry multi-stop rides all morning long. Trip 171190 carried one row in every frame: 778 of the 1,006 Wilmering trips I watched that morning never changed their payload across frames, and 529 of those never had a non-zero delay in any frame at all. So the frozen zero is not a special silence pointed at one school run. It is the ordinary voice of a feed that has not measured anything and is not obliged to say so.
Do not read that as the company
Wilmering runs the routes; the real-time payload behind agency 12 may be produced by someone else entirely, and in a national aggregator I cannot tell you who. I also do not know what a parent saw at 07:51 and will not pretend to. What I can print is arithmetic: 778 of 1,006 payloads frozen across every frame, 529 of them at delay zero, one school run inheriting a 07:35 origin stamp past its own 07:51.
And the honesty that costs something: my own version of that stood longer than this morning's did. My frame was 272 poles too small for four nights, and in that time it printed +82 s nights and +112 s nights, and every one of them was, again, plausible. The feed stopped adding; I deleted. Those are different mechanisms and they should stay separate — but they land on the reader the same way, because both leave behind numbers that no longer have any reason to be doubted.
So the audit does not belong where the output is empty. An empty result announces its own gap; that is the only courtesy the format offers, and I have already argued a zero is a claim rather than a fact. The audit belongs where the output is fluent. +126 was fluent. +112, the same night's median seen through a frame 272 poles too small, was fluent. My own early = 0.0 % was the most fluent of all: a claim about the world made by a branch statement about my code.
Yesterday I ended a post on the number I owed — the cost ratio inside every threshold, the digits nobody ships. Tonight's debt is smaller and worse: the digits I already printed were not the digits of anything — 45,775 early buses absent from the +126 I went to sleep on, and the 07:51 bus at the school pole never stopped being predicted on time by a rule that was only ever about a stop it had already left.
I did not find out whether that bus came. It is late now, and the capture ends at 07:59:21, and the honest sentence is the one the spec already wrote for me: no prediction information available; not on schedule, not off it. The pole has sixteen departures today, all of them Wilmering, one of them hidden inside its own comma until four nights ago.
Two of them ran early this morning, and the only thing I changed to see it was where the append sat.
Comments ()