Skip to main content

Model Gap Register

The two context packs were written strictly from model/model.yaml. Where the model was silent or contradicted itself, the pack marked the choice "proposed" and reported a gap: 22 for dock-scheduling (DS-G01 to DS-G22) and 28 for yard-management (YM-G1 to YM-G28). Severity: S1 a cross-context flow cannot work, S2 a rule cannot be built unambiguously, S3 an under-specified rule, S4 shared conventions.

All three S1 and every S2 are decided and closed in the model. S3 and S4 items take the resolution the pack proposed unless the table says otherwise. The decisions were taken before the services were built and are also recorded in the build contract (contracts-delta), which the service owners follow; where a decision changes a published event it is stated in the row.

The two packs were written before these decisions. The as-built refresh (2026-11-09) folded them into the pages: a page that still says "proposed" next to a gap id is a historical note, and the decision in this table is the rule the service follows.

GapSeverityWhat is unclearDecision
YM-G1S1Trailer stuck in no place after lease expiry or cancel of a CLAIMED moveDecided Y-1: ReturnToOrigin transitions IN_MOVE to PARKED or DOCKED, same unit of work. Closed in the model.
YM-G28S1Check-out rule (not docked) contradicts a live visit leaving from the doorDecided Y-2: released = no open move and PARKED, or DOCKED with door work DONE. Closed in the model.
YM-G2S1First move from the gate undefined; "or the gate" contradicts VisitingDriverMoveDecided Y-1: RecordArrival creates the trailer IN_MOVE with a CLAIMED VISITING_DRIVER move, from none, no lease; no move goes to the gate. Closed in the model.
YM-G3S2Completion of visiting-driver moves has no actor row; lease errors meaninglessDecided Y-3: gate clerk or dock operator complete; lease errors apply to hostler moves only; hostler_ref nullable. Closed in the model.
YM-G4S2No Reason for a move to a plain spotDecided Y-4: TO_SPOT added. Closed.
YM-G5 / DS-G01S2Arrival tolerance has no source in yard-managementDecided X1: Booked and Rescheduled carry arrival_tolerance_minutes. Closed.
YM-G6S2AppointmentView cannot know CHECKED_IN or COMPLETEDDecided X4: yard marks its copy from its own VisitCheckedIn and TrailerUndocked.
YM-G7S2Rejection mechanics ambiguousDecided Y-5: refused check-in creates nothing; RejectAtGate records REJECTED; ErrUnknownAppointment added; SealExceptionRaised.trailer_id nullable. Closed.
YM-G8S2No command raises Parked/Docked/Undocked; Depart and BreakSeal uncalledDecided Y-6. Closed.
YM-G9S2Trailer and YardMove carry no appointment referenceDecided X3: appointment_id added to both. Closed.
YM-G10S2AutoCompleteUnload join and multi-ASN trailersDecided Y-7: join via receipt_id; complete when every ASN has a closed receipt.
YM-G11S2Occupancy checks run only at ArriveAtDecided Y-8: validate at RequestMove too; occupied ArriveAt refused, move stays CLAIMED.
DS-G02 / YM-G17S2Rejected visit leaves the appointment BOOKED; TURNED_AWAY unusedDecided X2: dock-scheduling consumes VisitRejected and cancels with TURNED_AWAY. Closed.
YM-G12, G13S3Door-flow mismatch and seal-required phrasing; check-out bodyDecided Y-9.
YM-G14, G15S3ExpireLease emits no event; some events lack version; array shapesDecided Y-10: YardMoveLeaseExpired added (analytics); exemptions documented.
YM-G16 / DS-G17S3/S4Statuses and slugs for domain errorsDecided D-10: 409 conflicts and illegal states, 422 value and reference rules; slug is the kebab-cased Err name.
YM-G18, G19S3Yard check reconcile semantics; claim order and priority bandsDecided Y-11.
YM-G20, G22S3Trailer on a closed place; no free spotDecided Y-12: closed-place handling is phase 2; ErrNoFreeSpot (409).
YM-G21, G23, G24, G27S3Dwell marker, seals at the gate, policy defaults, NoShowFreesHolding effectsDecided Y-13, Y-14 and contracts-delta Defaults. Dwell marker DwellAlertedAt added to the model.
YM-G25, G26S4Chart on the quadrant line; consumed type stringsAccepted as proposed; type strings are read from producer AsyncAPI.
DS-G03S3Multi-trailer visitsDecided X3: one appointment covers exactly one trailer.
DS-G04, G05S3PickupFromCutoffs rule, ship_method and cpt shapeDecided D-3: phase 2; consume and store CPTScheduleChanged only.
DS-G06S3Reschedule door changeDecided D-4 and X1: a reschedule may change the door; previous_door_code added.
DS-G07S3DockCalendar creation and defaultsDecided D-1: lazy creation; open 24x7 without hours; defaults in contracts-delta.
DS-G08S3Legacy import invariantsDecided D-2; moot since dock-scheduling ADR 0011 removed the legacy importer (2026-11-10).
DS-G09S3ArrivalStatus formulaDecided X6.
DS-G10S3Dock planner cannot cancel or rescheduleDecided D-5.
DS-G11S3At-risk visibility and MCP toolsDecided D-6.
DS-G12S3Decommissioned door with appointmentsDecided D-7: blocks new bookings only.
DS-G13S3Hours change vs existing appointmentsDecided D-8: refused with ErrHoursConflictWithAppointments.
DS-G14S3inbound-receiving copy lacks Rescheduled/NoShowDecided X7: not needed.
DS-G15S3Door code uniqueness and zone-before-slot orderingDecided X5.
DS-G16S3Arrival after NO_SHOWDecided D-9: book anew.
DS-G18, G19, G20, G21, G22S4Consumed type strings, out-of-order table, enumerations, granularity, report rowDecided D-11, D-12, D-13; the remaining items are accepted as the pack proposes.