Module map
The business parts, their layers, and who asks whom.
The module map follows business ownership. Each part's living document in the
backend (docs/index.html) is authoritative.
Business parts
Each part owns its facts and is meant to run as its own service. The parts stand in layers: a part asks a question only of a part in a lower layer, so no two parts ask each other and no questions run in a loop. Announcements (events) flow either way. The backend's build refuses any other question.
| Layer | Part | Owns |
|---|---|---|
| 1 | referential | Carriers, fleet, permits, topology, service catalog, schedules, authorizations, imports, and the station's rules |
| 2 | traffic | Departures and arrivals: dated departures, vehicle and bay commitments, seats |
| 3 | cycle | Observed vehicle visit and physical movement |
| 4 | ticketing | Sales, tickets, refunds, boarding, cash sessions, and the coach choice |
| 5 | billing | Vehicle-stay invoices, settlement, disputes, evidence |
| 5 | siv | Display points, presentation profiles, and what the panels show |
| 6 | supervision | Operational projections, alerts, operator actions |
| apart | identity | Accounts, with Keycloak; asks no part and no part asks it |
What each part has delivered is in the task list on the product page, never in this table.
Platform modules
| Module | Contract |
|---|---|
common | IDs, time precision, query helpers, connection parsing |
web | Errors, validation, request context, OpenAPI customization |
security | JWT resource server, authority mapping, capabilities, CORS |
messaging | Envelope, publication registry, Kafka externalization and consumption |
testing | Shared Testcontainers integration harness |
audit | Reserved boundary; no shared implementation shipped yet |
Who asks whom
Each arrow climbs from the part that asks to the part that answers.
An arrow is a question through the answering part's published API. It never authorizes table access. The site's check compares this table and these arrows with the backend's own layers and with the questions its code asks.
Capability status rule
A part that compiles has planned ownership. That does not mean its workflows exist. A capability is shipped only when the task list marks it Livré (delivered) or Construit (built).