inbound-demand
Operator-declared inbound labour standards and the inbound demand of a site, read from the local read model fed by dock-scheduling's dock appointment events (ADR 0017, source switched by ADR 0020).
Declare the labour minutes a dock appointment costs at a site for a process path
Upserts the inbound labour standard keyed by (location, path_id): fixed `minutes_per_appointment` plus an optional `minutes_per_asn` per ASN the appointment covers (the booked event carries no units, pallets or lines). The standard is a planning parameter owned by this service (docs/adr/0017): nobody upstream publishes it. Without one, dock appointments are recorded but contribute NO labour demand and the plan reports `inbound_standard_missing`; no default number is ever guessed. Nothing derived is stored, so a late declaration applies on the next read.
List the declared inbound labour standards
The standards of one site, or every standard when `location` is omitted, ordered by location then path id, one keyset page at a time (limit + cursor; follow nextCursor until it is absent).
Inbound demand of a site over a window (dock-scheduling read model)
The BOOKED INBOUND dock appointments at a site whose door window STARTS in the half-open window [window_start, window_end), read from the LOCAL read model this service builds from dock-scheduling's DockAppointmentBooked / Rescheduled / Cancelled / NoShow CloudEvents (docs/adr/0017, source switched by docs/adr/0020; never a live call). A rescheduled appointment counts at its new window; a cancelled or no-show one never counts, whatever the arrival order of the events (the producer's aggregate `version` is the ordering guard). OUTBOUND appointments are never counted. `labour_minutes` is what the standard declared for `path_id` attributes to them; with no standard it is 0 and `standard_missing` is true when appointments exist. Each appointment is attributed to the `site_id` of its events, so `location` is that site code; a site with no appointment reads 0. 200 with appointments 0 and as_of null when nothing is known.