# Autonomous Freight Readiness Architecture and Mission Control Planning

## Status

This document was added in v488.1 as documentation and planned architecture only.

No product workflow, database schema, provider API, Google API, payment/billing behavior, broker distribution rule, owned portal rule, internal load-board access, or Transportation Accounting workflow is activated by this document.

## Purpose

Dispatch Spot must remain useful as trucking shifts from only human-driven freight to mixed human, autonomous, and remote-supervised freight operations.

The goal is not for Dispatch Spot to become an autonomous-driving platform. The goal is for Dispatch Spot to become the operations command system that helps carriers, dispatch companies, fleets, and logistics teams manage freight when a movement may involve:

- a human driver;
- a driver team;
- an autonomous truck;
- a remote operations / mission-control team;
- an autonomy provider;
- a yard, terminal, or local handoff driver;
- a fallback or recovery driver;
- multiple operating legs under one load.

## Strategic direction

The near-term autonomous freight model is expected to be hybrid. Long-haul highway segments may become autonomous first, while human drivers remain important for pickup, delivery, terminal moves, inspections, customer-site work, adverse conditions, exceptions, and local recovery.

Dispatch Spot should therefore be designed around mixed operations instead of assuming every load has one driver from origin to destination.

The long-term product question is:

```text
Where is the freight, who or what is operating it, is that operating mode allowed right now, what source do we trust, what happens if the movement cannot continue, who gets notified, what evidence do we keep, and what does the customer need to know?
```

## Core architecture principle

Dispatch Spot should evolve from a driver-only dispatch system into an operating-entity dispatch system.

Today, a dispatch movement usually looks like:

```text
truck + load + driver + dispatcher
```

Future Dispatch Spot must support:

```text
truck + load + operating entity + source trust + route eligibility + handoff plan + exception plan + dispatcher / mission-control oversight
```

## New planned concept: Operating Entity

A future operating entity is the party or system responsible for a movement segment.

Planned operating entity types:

- Human driver
- Driver team
- Autonomous truck / autonomous vehicle system
- Remote operator
- Mission-control team
- Autonomy provider
- Yard driver
- Local pickup/delivery driver
- Recovery driver
- Carrier operations team
- Customer-site contact when site access controls the next step

The existing driver-centric model should remain valid. The operating-entity model should extend it so current human-driver operations do not break.

## New planned concept: Load movement segments

A single load may eventually have multiple movement segments.

Example:

```text
Segment 1: local driver picks up trailer from shipper.
Segment 2: local driver delivers trailer to autonomous terminal.
Segment 3: autonomous truck moves trailer across approved long-haul lane.
Segment 4: local driver accepts trailer at destination terminal.
Segment 5: local driver completes final delivery.
```

Each segment may have its own:

- operating entity;
- truck/tractor;
- trailer;
- route;
- pickup/handoff/drop location;
- start/stop status;
- source of truth for position;
- dispatch instructions;
- risk state;
- documents;
- audit trail;
- customer update status.

## New planned concept: Autonomous lane eligibility

Autonomous trucks will need lane and condition checks before Dispatch Spot should treat them as eligible for a load.

Future lane eligibility checks should include:

- approved origin/destination corridor;
- approved highway segment;
- approved pickup and delivery terminal/handoff points;
- weather limitations;
- road type limitations;
- time-of-day limitations;
- construction/closure risk;
- customer-site access limitations;
- autonomous provider availability;
- remote-assist coverage;
- fallback/recovery driver availability;
- trailer compatibility;
- cargo restrictions;
- insurance/compliance posture;
- customer permission when required.

## New planned concept: Operating Design Domain readiness

The system should eventually model whether an autonomous truck is inside or outside its allowed operating domain.

Planned ODD fields:

- provider name;
- vehicle/autonomy system identifier;
- approved lane/corridor;
- approved road class;
- approved speed range;
- approved weather conditions;
- approved visibility conditions;
- approved construction/incident rules;
- remote-assist availability;
- map/version readiness;
- sensor health readiness;
- communication health readiness;
- fallback plan readiness.

Dispatch Spot should keep this in plain operational language for normal users. Technical details belong in Super Admin, Workspace Settings, or provider-integration review screens.

## New planned concept: Mission Control

Mission Control should be a future operating view for mixed human/autonomous freight.

It should not replace Dispatch Board, Fleet Map, Routes, or CORI Briefing. It should summarize the movements that need oversight because autonomy, handoff, or exception risk is involved.

Mission Control should show:

- autonomous or hybrid loads currently moving;
- upcoming autonomous lane entries;
- upcoming terminal/handoff events;
- handoff drivers who must be ready;
- autonomy-source signal health;
- remote-assist events;
- ODD warnings;
- sensor/communication warnings;
- stale autonomous signal warnings;
- route-deviation or stopped-too-long warnings;
- weather or route-eligibility concerns;
- customer appointment risk;
- fallback/recovery plan status;
- supervisor review items;
- customer update recommendations.

## Mission Control surface placement

Planned placement:

- Daily operator view: Workspace Operations > Mission Control, only after the workflow has a clear daily job.
- Fleet Map: source trust, position, route, deviation, and movement risk.
- Routes: lane eligibility, route segment planning, handoff planning, and route intelligence.
- Dispatch Board: human-readable operational status and next action.
- CORI Briefing: executive summary of autonomous/hybrid freight risks, handoffs, and needed decisions.
- Super Admin: platform/provider health, tenant-level review, integration risk, and support evidence.
- Workspace Settings / Integrations: autonomy provider setup, credentials, API keys, permissions, and webhook configuration.

Mission Control must not become a provider debug page for normal operators.

## Fleet Map relationship

The current Fleet Map roadmap already prepares critical pieces of autonomous freight readiness:

- non-live marker refresh execution safety;
- rollback and post-refresh review;
- live driver-app GPS eligibility;
- live session consent and privacy readiness;
- driver-app live GPS activation;
- provider-neutral GPS/ELD/telematics connector contract;
- provider sandbox evidence;
- provider-backed source reconciliation;
- Google route geometry readiness;
- traffic-aware ETA and route-deviation readiness.

Autonomous freight should extend this source-trust pattern.

Future position sources may include:

- driver-app GPS;
- ELD/telematics provider;
- autonomy provider;
- dispatcher-confirmed non-live marker;
- terminal/handoff event;
- yard/geofence event;
- broker/customer event;
- route intelligence estimate.

Source trust must remain explicit. Autonomous provider data should not silently override trusted driver-app GPS, terminal events, or supervisor-reviewed exceptions.

## Planned autonomy source contract

A future autonomy-provider source contract should include:

- Dispatch Spot workspace ID;
- truck ID;
- trailer ID when available;
- load ID;
- movement segment ID;
- operating entity ID;
- autonomy provider name;
- provider vehicle ID;
- provider mission/trip ID;
- provider lane/corridor ID;
- provider signal timestamp;
- latitude and longitude;
- heading;
- speed;
- confidence/quality label;
- autonomous mode status;
- remote-assist status;
- ODD status;
- sensor health;
- communication health;
- disengagement/exception state;
- fallback requested flag;
- customer update hold flag;
- supervisor review requirement;
- raw provider event reference for audit only.

## Planned autonomous event types

Future autonomous freight events should be audit-friendly.

Planned event categories:

- autonomous mission planned;
- autonomous mission approved;
- autonomous lane eligibility passed;
- autonomous lane eligibility blocked;
- autonomous segment started;
- autonomous segment paused;
- autonomous segment completed;
- autonomous segment failed;
- autonomous mode active;
- autonomous mode exited;
- remote assist requested;
- remote assist completed;
- disengagement recorded;
- ODD warning recorded;
- ODD exit recorded;
- sensor degraded;
- communication degraded;
- unexpected stop;
- route deviation;
- weather restriction warning;
- handoff driver assigned;
- handoff accepted;
- handoff missed;
- recovery driver dispatched;
- customer update required;
- customer update sent;
- supervisor review completed.

## Planned data model candidates

No Prisma schema is changed in v488.1.

Future schema planning may include:

```text
OperatingEntity
OperatingEntityAssignment
LoadMovementSegment
AutonomousLane
AutonomousLaneEligibilityReview
AutonomyProviderIntegration
AutonomousMission
AutonomousMissionEvent
AutonomySourceSignal
RemoteAssistSession
HandoffPlan
HandoffEvent
RecoveryPlan
AutonomousExceptionPacket
```

These should not be created until the product workflow is ready and the fields are reviewed against existing Dispatch Spot truck, driver, load, route, notification, audit, integration, and billing architecture.

## CORI autonomous freight readiness

CORI should eventually understand autonomous and hybrid freight in plain operational terms.

Future CORI Briefing example:

```text
Truck A-104 is moving the Dallas-to-Houston segment under autonomous supervision. The lane is approved, the provider signal is fresh, and the handoff driver is scheduled at the Houston terminal. Weather is still inside the approved range. The load is 18 minutes behind plan because of modeled traffic. No customer update is required yet.
```

Future CORI actions may include:

- explain why a load is or is not autonomous-eligible;
- summarize handoff risk;
- recommend when to notify a customer;
- draft a customer update;
- recommend a fallback driver;
- summarize provider conflict evidence;
- prepare an exception packet.

CORI should not expose raw provider credentials, technical telemetry details, or debug traces to normal users.

## Notification and escalation relationship

The planned v489 Fleet Map notification/escalation build should stay useful for future autonomous freight by treating alerts as source-neutral.

Future alert categories should be compatible with:

- live GPS stale;
- provider signal stale;
- autonomy provider signal stale;
- driver stopped too long;
- autonomous truck stopped too long;
- ETA likely late;
- route deviation urgent;
- ODD warning;
- ODD exit;
- remote assist requested;
- handoff at risk;
- recovery driver needed;
- customer update required;
- supervisor review required.

v489 does not need to build autonomous alerts yet. It should avoid hard-coding alerts so tightly to human-driver assumptions that autonomous alerts become difficult later.

## Billing and accounting readiness

Future autonomous operations may create new commercial models, such as:

- per autonomous mile monitored;
- per autonomous load supervised;
- per exception handled;
- per remote-assist event reviewed;
- per handoff managed;
- per lane managed;
- per truck/month;
- per provider integration.

The membership/subscription engine and future Transportation Accounting architecture should remain flexible enough to represent these models later. v488.1 does not change billing, entitlements, Stripe, invoices, accounting, or subscription plans.

## Rules for future autonomous freight builds

1. Do not expose provider credentials or technical setup on daily work pages.
2. Do not allow autonomous provider data to move markers until a future explicit activation build approves source trust, conflict handling, and rollback behavior.
3. Do not treat an autonomous truck as eligible for a lane unless lane, ODD, handoff, and fallback readiness are known.
4. Do not make Mission Control a debug dashboard.
5. Do not replace human-driver workflows. Extend them with operating entities and movement segments.
6. Do not activate provider APIs, Google APIs, billing, or accounting as side effects of architecture work.
7. Keep customer-facing communication simple and operational.
8. Keep audit records strong enough for claims, insurance, support, compliance, and customer review.

## Future build sequence after v491

The current Fleet Map roadmap should continue through v489, v490, and v491 first.

After Fleet Map production-readiness closeout, consider this follow-on track:

```text
v492 — Operating Entity model and autonomous freight readiness data-contract planning
v493 — Load movement segment and handoff-leg planning
v494 — Autonomous lane eligibility review foundation
v495 — Mission Control read-only dashboard planning
v496 — Autonomy provider contract readiness
v497 — Autonomous exception and audit packet planning
```

The exact version numbers can change depending on intervening work, but the order should remain: operating entity, segmented movement, lane eligibility, mission-control view, provider contract, exception/audit packet.

## v488.1 decision

v488.1 records the autonomous freight readiness architecture now so v489 notifications, v490 performance/usability, and v491 production-readiness review can be built with future compatibility in mind.

This build is documentation-only. It does not change app behavior.
