Busflow Docs

Internal documentation portal

Skip to content
Reviewed 04 May 2026

< Prev | Up: Session Overview | Next >

Session 5 β€” Reference Material ​

Goal: Spot-check schemas, events, and protocols for accuracy against the domain model. Estimated time: 60–90 min (skim β€” total ~470 KB)

Schemas ​

#FileLinesContext
1schema-backoffice.md689Operators, tours, vehicles, crew, pricing
2schema-commerce.md383Bookings, payments, tickets, checkout
3schema-operations.md1184Dispatch, service legs, telemetry, boarding
4schema-communications.md394Conversations, messages, templates

Schema review strategy: Pick 3–5 key entities from domain-model.md (e.g., TourTemplate, Booking, ServiceLeg). Find each in the schema file. Confirm columns, types, and constraints match. Check for tenant_id on every domain table.

Events ​

#FileLinesContent
5event-catalog.md~150Master registry of all 53 domain events
6event-contracts-backoffice.md~180Backoffice event payloads
7event-contracts-commerce.md285Commerce event payloads
8event-contracts-operations.md284Operations event payloads
9event-contracts-pricing.md~150Pricing event payloads

Protocols (prioritized by V0.1 relevance) ​

Must read:

Read if time allows:

Skim for later:

  • inbox-protocol (521 lines), incident-broadcast (242 lines), vehicle-swap (228 lines), crew-qualification (165 lines), channel-provisioning (229 lines), invoice-service (149 lines), mcp-agent-bridge (143 lines).

πŸ” What to Validate ​

  • [ ] Do schema columns match domain model entity definitions?
  • [ ] Does the event catalog match the context map in domain-driven-design.md Β§8?
  • [ ] Is schema-operations.md (1184 lines) too large? Consider splitting.
  • [ ] Is notification-pipeline-protocol.md (966 lines) too large?
  • [ ] Are event contracts consistent with current schema column names?
  • [ ] Which protocols describe v0.1 vs. future work? Are they clearly labeled?

πŸ—ΊοΈ Mindmap & Path Optimization ​

Grab your pen and paper:

  • [ ] Map a Cross-Domain Event: Take BookingConfirmed from the Commerce domain. Trace how it updates the Dispatch board in the Operations domain.
    • Observation: You need schema-commerce.md β†’ event-catalog.md β†’ event-contracts-commerce.md β†’ dispatch-availability-engine.md β†’ schema-operations.md.
    • Optimization: Is this 5-hop path too complex for an agent or developer? Should we embed the event payload definitions directly into the schema files next to the tables that trigger them?

πŸ“ Findings & Actions ​

SeverityFile / TopicIssue & Optimization PotentialAction Required

< Prev | Up: Session Overview | Next >

Internal documentation β€” Busflow