Exploration · contracts
The whole month, through a throwaway adapter.
Does "open standards as the internal contract" survive contact with real vendor files? All thirty days of vehicle and counter data and the full fare file were converted into TIDES tables and checked against the published schemas.
- 100%of 5.45 million stop visits passed the TIDES schema, after ten vendor quirks were absorbed
- 99.1%of 1.69 million fare taps passed. Nearly every rejection is a tap location the timetable does not list
- 90.6%of visits carry both a time from the vehicle file and a count from the doors
- 289,871taps name another operator, in a field the standard has nowhere to put
The vehicle file turned out to be the skeleton: exactly one row per scheduled stop visit, every weekday the same 218,554 rows, with actual times filled in where a bus was observed. Counter rows were joined onto it by day, trip, route, stop and stop order. The order matters, because loop routes visit a stop twice in one trip.
The validator reads the TIDES schema files themselves and applies what they state: required fields, types, enums, minimums, uniqueness, and the reference to the timetable's stops. A fault-injection test proves it fires on each kind of error, so a clean pass means something.
The card serial was excluded in the query that read the fare file. It never reached memory, the output, or this page.
- Trip identifier
- Carried as the vendor's. Nothing links it to the timetable, so every reference from visits to the schedule stays open until the trip matching lands
- Counts, not trusted
- Vendor adherence and the on-time label were dropped as recomputable. 2,251 visits report more riders than the bus holds, a flag the schema does not raise
- Fare dates
- 20,356 taps between midnight and 04:00 stay on their calendar date. A production adapter must decide the service day rule
- Withheld
- Rider category, because the fare class is restricted. Capping assumed false, because the extract carries no flag
The gap in the standard. The fare file records which operator a rider transferred from, the one column that links two agencies' legs of a journey. TIDES fare transactions has no field for it. A strict conversion would drop exactly what the region exists to use, so the regional contract needs a profile that extends the standard here, or the field travels beside the table.
Caveats. One agency, one vendor, one month: a clean pass says this file is consistent, not that any file would be. The rule for duplicate counter records is a guess at the vendor's meaning. The fare file's last day is a truncated extract. Reproduce with the commands in explorations/adapter-prototype/README.md; the run takes about thirty seconds once the files are loaded.