Track 3 · third draft, for review
Who holds what, now with answers.
The instructors settled where shared data lives and what happens when a party leaves. We settled who holds the key. This draft draws those decisions and marks everything else as proposed or open.
What changed.
Grey is the second draft. White is this one.
- 1
A history store inside the exchange
Data is split by sensitivity into three custody classes
Decided, instructors - 2
Records go, totals stay
A leaving party's data is deleted, and any report that breaks is fixed
Decided, instructors - 3
Keys in the exchange's vault
Each agency holds its own key, in its own account
Decided, team - 4
Live streams for dashboards
The region serves JSON through an API, or GraphQL. Agencies draw their own charts
Decided, instructors - 5
Fare joins in AWS Clean Rooms
Each agency totals its own fares and the region adds them up. The service has no Canadian region
Proposed - 6
Audit in CloudTrail Lake
Write-once storage with signed digests. CloudTrail Lake is closed to new customers
Proposed
Items 5 and 6 come from the research on what next, which carries the sources.
Three custody classes.
Each kind of data has one home, one key rule and one exit rule.
Stays home
- Holds fare records and stop-level history
- Lives in the agency's account
- Region asks, and receives totals only
- Key the agency's
- On exit access ends, nothing to delete
Regional totals
- Holds passengers, cost, revenue-to-cost ratio
- Lives in the region's store
- Region stores and serves them
- Key the agency's, granted to the region
- On exit deleted, reports rebuilt
Public feeds
- Holds timetables, live positions, bike stations
- Lives in a mirror at the region
- Region caches and republishes them
- Key none, the data is open
- On exit dropped from the mirror
Decided: fare records stay home, public totals may be stored, agencies hold keys, exit means deletion. Proposed: stop-level history staying home, mirroring public feeds, and encrypting stored totals with the agency's key. A revoked key blocks reading; the deletion still has to happen.
The whole system, moving.
Pick a story and follow the dots. Tap any part for one line about it.
How the four kinds of analysis are served.
The frame the instructors set. Each box names its path through the system.
Service reports
- Stop visits read in place
- Totals stored by the region
- Served through the data API
Live operations
- Live lane to the public mirror
- Served as a live feed
- Arrival time demo, planned
Ridership reports
- Fare totals asked in place
- Ten-card minimum, proposed
- Totals stored by the region
Live demand
- Passenger counts, no card data
- Live lane to the data API
- Untested: our sample is monthly files
Joining and leaving.
Each party is one template entry. Nobody else changes anything.
- Join 1
Add the entry
- one row in the template
- Join 2
Sign in
- its own accounts
- Join 3
Sign the contract
- sample data must pass
- Join 4
Grant the key
- the agency grants it
- Join 5
Collection starts
- while the contract is active
- Leave 1
Contract ends
- the status check fails
- Leave 2
Collection stops
- requests are refused
- Leave 3
Key revoked
- the agency acts alone
- Leave 4
Data deleted
- totals and mirror
- Leave 5
Reports fixed
- rebuilt without the party
The first data contract, as a sketch.
One table, from one agency's sample month. Not yet agreed.
A contract is the promise a party makes about one table: its shape, its meaning and who may use it. This one covers stop visits, because the adapter prototype already built that table from real files.
We propose loading first and translating at the border (ELT). Raw data stays replayable inside the agency, and the region only ever sees the standard shape. The instructors left this choice to us, with a reason.
- Table
- TIDES
stop_visits, version 0.1 - Owner
- The publishing agency
- Required
service_date,trip_id_performed,trip_stop_sequence- Service type
- Schedule-based or headway-based, since each needs its own on-time measure
- Custody
- Stays home; no card data
- Tested
- All 5.45 million visits pass the schema, for one agency and one vendor format
- To agree
- Freshness, retention, how to report a fault
Where each decision stands.
Decided means made. Proposed means we recommend it. Open means nobody has answered.
Decided
- Track 3 is our scope
- The deliverable is the architecture
- Models stay simple and explainable
- Open standards are the internal contracts
- Raw data stays inside each agency
- One adapter per party, restricted fields stop there
- Local operations never depend on the region
- Agencies hold their keys; instructors yet to confirm
Proposed
- ELT, translating at the border
- Hide fare counts under ten distinct cards
- Managed lakehouse for an agency, with Iceberg
- Cross-account grants for reading in place
- Rules compiled from agreements
- Arrival time prediction as the one model demo
Open
- Team roles
- One use case per kind of analysis
- Tooling for pipelines and models
- Joining one card's taps across agencies
- Models already trained on a leaving party's data
The last two, and the key, are on the open questions page. Nothing here is built, and no agency has agreed to any of it.