# Privacy, Terms, Consent, and Data Lifecycle Architecture

Last updated: 2026-04-21  
Status: Draft detailed architecture document accepted for planning use  
Purpose: This document defines how Dispatch Spot should handle legal documents, privacy disclosures, consent, notifications, portability, archive, deletion, and restore across all workspace types. It is meant to be updated alongside the core build architecture as the platform evolves.

---

## 1. Intent

Dispatch Spot is intended to become a trusted operating system for the road freight transportation industry, not just another software tool.

That means users must be able to trust:

- what they agreed to
- what data the platform collects and why
- who can see what
- what happens when terms or policies change
- how their data can be exported
- how closed accounts are archived or deleted
- whether they can restore operations later without rebuilding their business from scratch

This document defines the architecture needed to support that trust.

---

## 2. Core principles

### 2.1 Layered legal architecture
Not every feature should rely on one giant registration click-through.

The platform should use layered legal and consent architecture:

- Terms of Use
- Privacy Notice
- Acceptable Use Policy
- feature-specific disclosures
- just-in-time notices at the moment of higher-risk actions

### 2.2 Role-aware simplicity
Users should not have to read giant legal walls to perform simple tasks.

Instead:
- registration covers core legal acceptance
- sensitive or role-specific features can trigger additional notices later
- updates are communicated clearly and logged

### 2.3 Consent and acceptance must be auditable
Every acceptance, acknowledgment, reminder, and update notice must create an event that can be audited later.

### 2.4 Privacy is product architecture
Privacy is not only a legal page. It affects:
- data modeling
- permissions
- export
- deletion
- restore
- messaging
- document visibility
- shared load timelines

### 2.5 Portability is a trust feature
Users should not feel trapped.

The platform should support structured export and controlled restore so users can leave cleanly and, where permitted, come back cleanly.

### 2.6 Deletion is not the same as disappearance
Because the platform contains shared business records, some data may need to be:
- deleted
- anonymized
- redacted
- archived
- retained for legal/security reasons

The architecture must distinguish these outcomes explicitly.

---

## 3. Scope

This document applies to all workspace types:

- Super Admin
- Dispatcher Workspace
- Company Workspace
- Broker/Shipper Workspace
- Driver Workspace

And to all major data categories:

- identity and account data
- organization/workspace data
- truck, driver, load, and dispatch data
- messages and internal notes
- documents and uploads
- financial and payment-related records
- policy acceptance and privacy event records
- export, archive, deletion, and restore records

---

## 4. Required governing documents

The platform should eventually maintain at least these documents in versioned form:

1. Terms of Use  
2. Privacy Notice  
3. Acceptable Use Policy  
4. Messaging and Communications Disclosure  
5. Data Export and Portability Policy  
6. Retention and Deletion Policy  
7. Trust and Transparency Disclosure  
8. Cookie / Tracking Notice if needed  
9. SMS Consent Terms if SMS is used  
10. AI Feature Disclosure where needed  

These documents should be stored and versioned as policy artifacts, not just static pages.

---

## 5. Policy document architecture

### 5.1 Each policy document should support
- document type
- canonical name
- version number
- effective date
- superseded version
- summary of changes
- required audience
- whether acceptance is required
- whether acknowledgment is enough
- reminder cadence
- notification channels
- grace period if any
- archival state

### 5.2 Audience targeting
Each policy version should define which audiences it applies to, such as:
- all users
- all office users
- dispatcher/company users only
- broker/shipper users only
- drivers only
- admins only
- SMS-enabled users only
- users of a specific feature class

### 5.3 Severity tiers
Each update should be classified so the app knows how to respond.

Recommended tiers:
- informational only
- acknowledgment required
- acceptance required
- re-consent required
- critical update that can block access after grace period

---

## 6. Registration and onboarding acceptance model

### 6.1 Required at registration
At minimum, registration should capture acceptance of:
- Terms of Use
- Privacy Notice
- Acceptable Use Policy

Where relevant, it should also capture:
- Messaging and Communications Disclosure
- SMS consent terms if phone notifications are enabled
- AI feature disclosure if AI-assisted actions are enabled by default

### 6.2 Do not overload registration
Do not force every possible feature explanation into one giant registration flow.

Instead:
- capture core legal acceptance at registration
- use feature-specific disclosures when the user enables or reaches that feature
- use just-in-time notices for actions with elevated sharing or risk

### 6.3 Registration acceptance record
Each acceptance should log:
- user ID
- organization/workspace ID
- policy document type
- version accepted
- timestamp
- IP address
- user agent / device info
- channel
- whether required or optional

---

## 7. Quarterly reminders and update notifications

### 7.1 Quarterly reminder model
The platform should support quarterly reminders for active users.

The reminder engine should:
- identify users who are due
- deliver in-app notice
- send email
- send SMS where configured and permitted
- request acknowledgment where required
- log each event and outcome

### 7.2 Immediate update notifications
When a policy changes, users should be notified through:
- in-app notice
- email
- SMS when configured and permitted

### 7.3 Notification ledger
Every policy/privacy notice event should log:
- user ID
- organization/workspace ID
- policy version
- notice type
- channels used
- send timestamp
- delivery status where available
- open/view status where available
- acknowledgment status
- failure reason if any

### 7.4 Access control after updates
The platform should support rules such as:
- no block, informational only
- soft warning until acknowledged
- feature-level block until accepted
- full login block after grace period for critical updates

---

## 8. Feature-specific disclosures and just-in-time notices

Some features require additional clarity at the moment of use.

Examples:
- shared load chat
- document upload on a shared load
- driver location/status sharing later
- SMS notification enablement
- public/private load posting visibility
- AI-assisted recommendations or automation
- trusted timeline visibility

### 8.1 Example just-in-time notices
- “This thread is shared with the load participants.”
- “Uploading this document makes it available to the parties assigned to this load.”
- “Turning on SMS alerts will send operational texts to this number.”
- “This action will be written to the load timeline.”

### 8.2 Notice events should be logged
Notices should log at least:
- user
- feature
- notice version
- shown timestamp
- action taken

---

## 9. Consent model by category

The platform should distinguish between different legal/operational mechanisms.

### 9.1 Contract-required acceptance
Examples:
- Terms of Use
- Privacy Notice acknowledgment/acceptance
- core operating disclosures

### 9.2 Optional operational consent
Examples:
- SMS alerts
- optional marketplace visibility
- enhanced AI assistance

### 9.3 Marketing consent
This must remain separate from operational communications.

### 9.4 Role-specific disclosure acceptance
Examples:
- broker/shipper shared timeline visibility
- driver mobile data handling disclosures
- office-user audit visibility disclosures

---

## 10. Privacy event logging architecture

Every meaningful privacy/legal event should be logged in an auditable event store.

### 10.1 Event types
- accepted terms
- accepted privacy notice
- accepted acceptable use policy
- accepted messaging disclosure
- enabled SMS consent
- withdrew SMS consent
- viewed policy update
- acknowledged quarterly reminder
- downloaded export
- requested archive
- closed account/workspace
- requested deletion
- completed deletion
- restored archive
- re-imported export package
- changed communication preferences

### 10.2 Minimum event fields
- event type
- user ID
- organization/workspace ID
- related policy version if applicable
- timestamp
- IP address where applicable
- user agent/device info where applicable
- channel
- result status
- actor type (user/system/admin)

### 10.3 Audit properties
Privacy event logs should be:
- append-only or tamper-aware where practical
- exportable for review
- protected from normal user editing
- visible only to authorized roles

---

## 11. Data classification and handling

The platform should classify data so privacy, retention, export, and deletion rules can be applied consistently.

### 11.1 Suggested categories

#### Public / low sensitivity
- help content
- public product copy

#### Internal operational
- basic workflow tasks
- general system state
- non-sensitive UI preferences

#### Confidential business
- load details
- rates
- broker/carrier relationships
- dispatch notes
- operational messages
- documents

#### Sensitive identity/contact
- names
- emails
- phone numbers
- login/session metadata

#### Elevated security/governance
- audit logs
- acceptance records
- security logs
- deletion/export records

### 11.2 Each category should define
- storage location
- allowed roles
- exportability
- retention rules
- deletion rules
- encryption expectations

---

## 12. Data lifecycle model

Every major object class should have an explicit lifecycle.

### 12.1 Generic lifecycle stages
- created
- active
- shared/used in operations
- archived
- exported
- restored/imported
- deleted/anonymized/redacted where applicable

### 12.2 Object families requiring lifecycle rules
- users
- organizations/workspaces
- trucks
- drivers
- loads
- messages
- documents
- tasks/follow-ups
- financial records
- policy and acceptance records

### 12.3 Closure model
A closed account/workspace should not automatically mean full erasure.

Possible end states:
- inactive but restorable
- archived and restorable
- archived then purge after retention period
- partial deletion with required records retained

---

## 13. Export and portability architecture

### 13.1 Export purpose
The platform should let authorized users download their data in a structured way that supports:
- human review
- business continuity
- future restore/re-import
- vendor trust and reduced lock-in fear

### 13.2 Export formats
Exports should support both:

#### Human-readable export
- Excel workbook
- CSV summaries where useful
- PDF summaries where useful
- zipped documents

#### Machine-readable export
- JSON package
- manifest file
- schema version
- structured attachments bundle

Excel alone is not enough for safe restore or long-term portability.

### 13.3 Export package contents
Based on role and permissions, export packages may include:
- organization/workspace metadata
- user roster where permitted
- trucks
- drivers
- loads
- current and historical load summaries
- messages where permitted
- documents where permitted
- tasks/follow-ups
- money/accessorial/expense records where permitted
- policy acceptance records for that organization where appropriate
- manifest and schema version

### 13.4 Export controls
Exports must be:
- permission-gated
- logged
- rate-limited
- optionally step-up authenticated for high-risk roles
- protected from over-export across tenant boundaries

### 13.5 Export log event fields
- who exported
- what scope was exported
- when
- package ID
- size/count summary
- delivery channel

---

## 14. Archive, deletion, and restore architecture

### 14.1 Archive model
When an account/workspace closes, the default safe path should be archive first, not blind destruction.

Archive record should store:
- archive scope
- archive reason
- timestamp
- retention schedule
- encryption state
- export package link/reference if generated
- restore eligibility state

### 14.2 Deletion model
Deletion must support multiple modes:
- user-visible closure only
- soft delete / inactive state
- archive
- selective purge
- anonymization / redaction
- full delete where legally and operationally allowed

### 14.3 Shared-record constraint
Because loads, messages, and documents can involve multiple parties, one user’s deletion cannot corrupt shared system truth.

The architecture must support:
- delete own account identity where allowed
- retain shared operational records where required
- redact personal fields where appropriate
- preserve auditability

### 14.4 Restore model
The platform should support restore from:
- internal archive where policy allows
- user-provided export package

Restore should include:
- schema/version check
- compatibility review
- role/permission validation
- collision handling
- restore scope selection
- restore audit event logging

### 14.5 Re-upload and continue path
The system should eventually support a smart restore flow so a previously closed user or organization can re-upload an export package and resume with minimal disruption.

This does not mean “pretend deletion never happened.”
It means the platform is designed so business continuity can be restored cleanly where permitted.

---

## 15. Retention rules framework

Detailed retention numbers should be defined later by legal/business policy, but the architecture should support retention by object type.

### 15.1 Retention-controlled object groups
- account/profile data
- messages
- documents
- financial records
- audit logs
- policy acceptance records
- export and deletion records

### 15.2 Retention metadata
Each object family should support:
- retention class
- archive eligibility
- purge eligibility
- legal hold flag later if needed
- deletion completion timestamp if purged

---

## 16. Cross-workspace privacy rules

### 16.1 Shared versus internal data
The platform must distinguish clearly between:
- shared operational data
- internal organization-only notes
- cross-party thread content
- admin-only governance/audit content

### 16.2 Broker/Shipper visibility
Broker/Shipper users should not see:
- internal dispatcher notes
- internal company notes
- unrelated truck financial records

### 16.3 Driver visibility
Drivers should not see:
- internal office notes
- pricing strategy notes
- hidden back-office legal or policy controls not relevant to them

### 16.4 Super Admin visibility
Super Admin may inspect governance artifacts, but customer-facing legal records and operational data should still be controlled and logged when viewed.

---

## 17. Security relationship

This privacy and consent architecture depends on security architecture.

It assumes:
- strong authentication and authorization
- secure policy acceptance recording
- secure document storage
- secure export generation and delivery
- audit protection
- secure logging
- Linux/server hardening baseline

Related documents planned:
- SECURITY_ARCHITECTURE
- LINUX_SERVER_HARDENING_BASELINE
- TRUST_AND_TRANSPARENCY_MODEL

---

## 18. Build requirements going forward

### 18.1 Every new feature must answer
- what data does it create?
- who can see it?
- is it shared or internal?
- does it require a new disclosure?
- does it trigger a consent/acceptance need?
- what privacy/security events should be logged?
- can it be exported?
- how is it archived/deleted/restored?

### 18.2 Every new workspace/page must declare
- role visibility
- touched object classes
- policy/consent implications
- notification implications
- export implications
- deletion/archive implications

### 18.3 No legal or privacy change is complete unless
- versioning is defined
- notification path is defined
- acknowledgment/acceptance behavior is defined
- audit event logging is defined

---

## 19. Immediate next planning items

1. define initial Terms of Use structure  
2. define initial Privacy Notice structure  
3. define policy document/version data model  
4. define acceptance ledger data model  
5. define notification ledger data model  
6. define export package schema and manifest structure  
7. define archive/delete/restore state machine  
8. define role-specific disclosures for messaging, documents, and SMS  
9. define retention classes by object family  

---

## 20. Decision rule going forward

Dispatch Spot should not treat privacy, legal acceptance, portability, archive, deletion, and restore as side features.

They are core platform systems.

Future builds should be reviewed against this document before implementation when they introduce:
- new data collection
- new sharing behavior
- new notifications
- new messaging/document flows
- new exportable objects
- new delete/archive/restore behavior


## 18. Live call listening, transcript assist, and voice consent planning

### 18.1 Why this needs a separate privacy layer
Live call listening is more sensitive than ordinary notes because the platform may process spoken content while a call is happening.

That means Dispatch Spot must treat live listening as a separately governed feature, not as an invisible extension of normal calling.

### 18.2 Required control layers before activation
Live listening should not activate unless all of these are true:
- workspace voice policy allows it
- required consent mode is configured
- caller identity is set
- the operator can see the listening posture before the call begins
- the call surface shows whether transcript assist is on, off, blocked, or waiting

### 18.3 Consent modes the architecture should support
Recommended modes:
- admin disabled
- internal-notice only
- one-party consent jurisdictions only
- all-party notice required
- manual per-call enablement by dispatcher
- future carrier / broker specific opt-out lists where required

The product should not assume the same legal posture for every workspace or every lane.

### 18.4 Just-in-time notice model
Before live listening starts, the operator should see a short status message such as:
- Listening blocked by workspace policy
- Listening off until notice is given
- Listening ready after call connect
- Listening on

The goal is to remove ambiguity for the dispatcher.

### 18.5 Audit records
When live listening is eventually enabled, the platform should log:
- workspace ID
- user ID
- call session ID
- consent mode used
- whether notice was required
- whether listening started
- whether transcript assist was shown in UI
- provider session reference if one exists
- listening stop time
- retention outcome

### 18.6 Retention posture for live partial facts
Not all live facts should become permanent records.

The architecture should distinguish between:
- temporary partial facts used only during the live call
- operator-confirmed facts promoted into durable call notes or load continuity
- full transcript artifacts if the workspace is ever allowed to retain them
- redacted or discarded live fragments that should not persist

### 18.7 Deletion and export expectations
If transcript artifacts are ever retained, export and deletion rules must state:
- what is exportable
- what is only audit-visible
- what can be deleted immediately
- what must be retained for dispute or security reasons

### 18.8 UI wording rule
Operator-facing wording must stay simple.

Do not expose legal jargon in the call workspace.
Use short phrases that explain whether live listening can run and why.
