Skip to main content

Subdomain Classification

Generated from the model

This page is generated from model/model.yaml by scripts/gen_pages.py. Edit the model, then regenerate; CI fails when the page and the model disagree.

Subdomains are classified by how much competitive advantage they give, not by size.

Bounded contexts​

ContextClassificationDifferentiationComplexityEvolutionBusiness model
dock-schedulingSupporting0.40.45ProductCost reducer (carrier wait, detention, idle dock labour) and revenue protector (on-time inbound)
yard-managementSupporting0.50.6Custom-builtCost reducer (detention, demurrage, lost trailers, idle dock labour) and throughput enabler

Both are Supporting: every site with trucks needs them and the rules (window length, seal policy, dwell thresholds) differ per operator, but the platform does not win on them. See Benchmarks.

Deferred contexts and contexts outside this section​

ContextClassificationNote
outbound-shippingSupportingTrailer load planning, loading, bill of lading and ship-confirm (Gartner lists truck loading and manifesting as WMS capabilities). BUILT on develop as IQVO/outbound-shipping, registered in warehouse-infra (PR 205) and applied to k3s since 2026-11-12, consuming the yard facts; it is outside the yard section (its pages are in the fleet section). Outbound door work is still completed by the dock operator in yard-management.
transport-visibilityGenericACL to a real-time transportation visibility platform for ETAs; stub mode first (network-fulfillment *_MODE=stub precedent). Feeds dock-scheduling ReportEta.
yard-billingGenericDetention and yard service charges; out of scope.

Deliberately not contexts​

ItemReason
gate camera / ANPR / kioskan inbound adapter that issues CheckInVisit (hexagonal), not a context
reefer temperature telemetryphase 3 measurement value object on Trailer fed by an IoT adapter
yard of yards network viewa cross-site read model of YardBoardView (ops agent, console), not a context
autonomous yard trucksa device-control seam like WCS, reserved and unbuilt

Business decisions each context enforces​

dock-scheduling​

  • One owner of door time. Inbound and outbound appointments share one calendar per door; a door whose dockFlow is Both takes either direction.
  • No two active (BOOKED or CHECKED_IN) appointments overlap on the same door. Windows are half-open, so [10:00, 12:00) and [12:00, 14:00) are compatible.
  • An appointment's direction must be allowed by the door's dockFlow.
  • A window lies inside the door's operating hours and outside every closure of that door.
  • The availability query answers at most 14 days per call (from < to) and cuts free windows to minutes, an integer 1..240 that defaults to the site's slot granularity when left out; an explicit minutes=0 is refused over HTTP (400 invalid-query-parameter). A site's maximum window is at most 240 minutes. An Idempotency-Key is 1 to 128 printable ASCII characters and a closure or suspension reason 1 to 200 characters.
  • Arrival and door release are physical facts owned by yard-management; this context applies them from events and never records them from its own API.
  • A BOOKED appointment with no arrival by window_end plus the site's no-show grace becomes NO_SHOW (sweep).
  • An ETA later than window_start plus the arrival tolerance raises an advisory DockAppointmentAtRisk; nothing reschedules automatically.
  • An ASN sits on only one active native appointment (decision D-12); one appointment covers exactly one trailer (X3).
  • COMPLETED, CANCELLED and NO_SHOW are terminal, so a late carrier books anew (D-9). The dock planner may reschedule and cancel (CARRIER_REQUEST, SITE_REQUEST) like the carrier portal (D-5).
  • A booking or reschedule naming the SCAC of a registered SUSPENDED carrier is refused (carrier-suspended); an unregistered SCAC is accepted as before, so the registry is opt-in (ADR 0012). Appointments a carrier already holds are not cancelled by its suspension: a person decides.

yard-management​

  • A trailer on site is at exactly one place - one yard spot, one door, or one open move.
  • A spot or a door holds at most one trailer.
  • A trailer has at most one open move, and a move's destination is reserved when the move is requested.
  • Moves are pulled by hostlers (claim-next with a lease), never pushed, as in fulfillment-execution.
  • A visit checks out only when every trailer it takes is released (on site, no open move, and either parked or docked with door work DONE) and every loaded outbound trailer carries a seal. A trailer that is not released answers 409 trailer-not-released first, so a docked trailer with open door work is refused at check-out as trailer-not-released, never as door-work-open.
  • Walk-ins are allowed into a holding spot unless the site's policy requires an appointment. When every holding spot is taken the check-in does not fail; the trailer goes to the first free Yard spot of the parking zones (any free Yard spot of the site when no zone is declared), by location code. 409 no-free-spot answers only when no spot at all is free.
  • An appointment the visit names must be known for this site and cover exactly one trailer, else 422 unknown-appointment, and that check comes first, so another site's appointment is unknown-appointment even where the site requires appointments. 409 appointment-required answers only when none is named or the named one is known for this site and not BOOKED.
  • A seal mismatch at the gate raises SealExceptionRaised; whether it also rejects the visit is site policy (FLAG or REJECT). The recorded seal is compared with the appointment's expected_seal_number at check-in (SealCheckAtGate, ADR 0002 A9); RecordSeal never compares it.
  • A repeated command has one outcome. Start-door-work and complete-door-work on work that is not in the right state, cancel-move on a COMPLETED or CANCELLED move, and a second check-out of a visit are 409 illegal-transition; release-hold on a trailer that is not on hold is 409 trailer-not-on-hold. Only SecureTrailer with the same method and ClassifyTrailer with the same facts answer the unchanged trailer, saving and raising nothing.
  • The dwell sweep raises TrailerDwellExceeded for a trailer once its dwell reaches its kind's threshold (dwell equal to the threshold alerts), once per trailer.
  • {'A hostler lease has run out at its expiry instant, not after it': 'at exactly lease_seconds after the claim the move is expired by the sweep (the domain, the memory store and Postgres all treat equality as expired).'}
  • Every accepted PUT of the yard policy replaces it and raises its version by one, a body identical to the current policy included (the first declaration takes an undeclared site from version 1 to 2); a stale If-Match is 412 precondition-failed.
  • A container, or a unit declared ISO6346, carries a valid ISO 6346 unit number; a seal carries an optional ISO 17712 class (I, S, H) and a site may set a minimum class (ADR 0012).
  • {'Dock safety interlock (ADR 0013)': 'a DOCKED trailer is secured (RESTRAINT or WHEEL_CHOCKS) before door work starts where the site policy requires it, and a secured trailer leaves neither its door nor the gate until the securing is released.'}
  • {'Hazmat and reefer placement (ADR 0014)': 'a trailer that declares a hazard class or a temperature-control need is placed only on a yard spot whose kind its contents allow.'}