SmartGare
Backend modules

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.

LayerPartOwns
1referentialCarriers, fleet, permits, topology, service catalog, schedules, authorizations, imports, and the station's rules
2trafficDepartures and arrivals: dated departures, vehicle and bay commitments, seats
3cycleObserved vehicle visit and physical movement
4ticketingSales, tickets, refunds, boarding, cash sessions, and the coach choice
5billingVehicle-stay invoices, settlement, disputes, evidence
5sivDisplay points, presentation profiles, and what the panels show
6supervisionOperational projections, alerts, operator actions
apartidentityAccounts, 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

ModuleContract
commonIDs, time precision, query helpers, connection parsing
webErrors, validation, request context, OpenAPI customization
securityJWT resource server, authority mapping, capabilities, CORS
messagingEnvelope, publication registry, Kafka externalization and consumption
testingShared Testcontainers integration harness
auditReserved 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).

On this page