Appearance
Travel policies and regional routing
The engine supports optional travel policies; it does not ship a calibrated US or city-specific travel model. Hosts own source preparation, geography, dated service, population evidence, parameter fitting and held-out evaluation. Omitting the options below preserves their legacy interpretations. Save the normalized input, seed and engine revision with each result; a new installation does not update historical runs.
Mode choice and resources
scenario.mobility.travelChoice version 1 samples among feasible alternatives using temperatureMinutes, mode-specific accessMinutes and parkingMinutes, and the agent's mode preferences. Higher temperature spreads probability across alternatives. Unavailable modes, disconnected routes and unavailable household vehicles do not become feasible merely because their preference is high. The same input, seed and engine version reproduce the choice. Without this policy, mode choice minimizes its comparison cost. Neither policy establishes empirical mode shares.
scenario.mobility.householdTravel version 1 names the driverMode. Households supply vehicle IDs and seat counts; people supply membership, available modes and passenger/escort flags. Runtime checks track vehicle location, reservation and seats. Passengers share an actual compatible journey; their person trips do not multiply vehicle movements or road congestion. Missing resources leave travel unmet.
Optional policies add bounded passenger waits, return-home vehicle commitments, routed gateway exits and conservative home–school–home escort duties. They do not infer vehicle ownership or unrestricted tour chaining. See the scenario guide, event guide and package README.
Dated scheduled transit
scenario.mobility.timetable version 1 contains prepared stops, journeys, calls, pickup/drop-off permissions, transfer rules and optional in-seat continuations. The host converts service dates, calendars and timezone rules into elapsed simulation minutes and maps stop/ride references onto the graph. The engine does not download or parse GTFS archives and does not infer service from a transit-labelled facility.
Journeys contain walking access, waiting, scheduled rides/transfers and walking egress. Timetable waiting replaces the generic boarding penalty. Maximum walking and journey minutes, boarding limits and accessibility constraints bound routing. Same-stop in-seat continuations require explicit dated links; unsupported deadhead connections are not teleported. Live disruptions, vehicle crowding and stochastic service reliability are not modeled.
Explicit walking transfer paths remain supported. Optional walkingTransferStrategy: 'graph-lazy-v1' discovers transfers from the supplied walking graph; it cannot be combined with explicit transfer paths. Geometry is materialized for retained itineraries, with bounded caches and shared immutable path histories to reduce allocation during regional searches. Arrival labels at the same stop share walking-transfer views within one routing round; those views are not retained across stops or route queries.
Arrive-by search first probes the latest candidate departure. It uses binary search only where the arrival deadline also bounds the maximum journey duration, making feasibility monotone. Earlier departures retain the descending scan because their moving journey deadline can break that property. Regression fixtures compare the complete itinerary against the original scan, including the fallback window. Boarding searches select the earliest eligible label in one pass, retaining insertion order on equal arrival times and respecting incoming-trip transfer restrictions. Existing stop-label maps are reused without repeated outer-map writes; distinct incoming journeys and alighting stops remain separate. Transfer rules are indexed by origin and destination stop, then evaluated in one pass without per-boarding filtered arrays. Only the most specific matching rules apply; equally specific rules must all permit the transfer and satisfy their minimum times. A later, more specific exception can override a general prohibition regardless of rule order. This is an equivalence-preserving optimization, not a change to mode preferences, service supply or observed behavior. Synthetic timings are not regional speedup or memory guarantees; production-scale execution must be measured separately.
Fixed destinations and large runs
Optional candidateFacilityIds on fixed agenda items constrain the host-prepared choice set. An empty list deliberately leaves the anchor unresolved; omission retains the activity-wide search. Explicit destinations and known homes take precedence. Constrained assignment accounts for prebound fixed capacity using peak concurrency over half-open intervals; it does not silently repair overbooked inputs. See the package contract.
Optional run.edgeObservationStorage: 'sparse-zero-v1' omits all-zero edge intervals; readers must interpret omissions as zero across the full reporting grid. Household passenger person counts remain distinct from vehicle counts. Streaming codecs, bounded routing caches and reduced temporary allocations improve large-run handling, but execution still retains a complete run and is not out-of-core.
Verification and empirical limits
Run npm run check for formatting, lint, types, unit tests, backend/browser checks, build and package verification. Run npm run docs:test for generated documentation, examples, links and independent package-consumer checks. Routing equivalence, vehicle conservation and deterministic fixtures establish software behavior only.
Regional calibration must separately compare trip volumes, purpose, mode, distance, duration and departure time with compatible geography, periods and denominators. Retain unresolved travelers and failed journeys in coverage reports. Freeze candidate parameters before held-out seeds; document coverage gaps and avoid calling an incomplete regional diagnostic validated. The Alewife/Replica conditional baseline does not establish independent parity or a generally validated regional default. Host-specific coverage results belong in the host evaluation report, not in engine correctness claims.
Shared-journey scheduling cost
Shared agenda planning routes driver offers only when an eligible non-driving household passenger has the same planned origin and destination. Unmatched driver legs still advance the planned origin and availability time. Pickup timing, household matching, driver mode restrictions and actual vehicle reservation stay unchanged. This avoids unused routing searches; it does not create new car access. Routing diagnostic query counts may decrease because they count searches actually performed, not person trips. A smaller query count is not a behavioral improvement.
Supplied local demand
explicitAgents[].conditionedJourneys is a separate opt-in for host-prepared entries, internal journeys and exits. It supplies the local mode and departure time rather than asking the engine's mode-choice policy to predict them. Routing, mode availability, continuity and capacity still determine whether movement can proceed. Source drivers and passengers with unknown vehicle allocation are labelled explicitly; this path does not reconstruct household vehicles or joint tours. See input fields, lifecycle rules and result interpretation.