Domain-Based Company Identity Architecture

Date: 2026-01-05 Critical Insight: Email domain = Company identity (no random Agent IDs needed)


πŸ”‘ Core Concept

Instead of:

Agent ID: AGENT_ABC123 (random, collision risk)

Use:

Email: zane@t420.io
Company Domain: t420.io (DNS-unique)
Result: All @t420.io users = same company

πŸ’‘ Why This is Game-Changing

1. No Collision Possible

  • Email domains are globally unique (DNS system)

  • No random ID generation needed

  • No database collision checking needed

  • Zero maintenance overhead

2. KILLER Competitive Advantage Over WhatsApp

WhatsApp: Individual conversations only

  • Each person has separate chat

  • Manager can't see dispatch's conversations

  • No team coordination

  • Personal tool, not company tool

FleetOS: Company/Team visibility

WhatsApp CANNOT do this!

3. Natural Organizational Structure

Suppliers (Multi-tech shops):

Fleets (Dispatch operations):


πŸ—οΈ Database Schema

Current Issues to Check:

Proposed Schema:


πŸ“Š Status Options (Functional Design)

Current Statuses:

  1. pending - Request submitted, waiting for supplier

  2. acknowledged - Supplier saw it ("Got it")

  3. accepted - Supplier will do it

  4. in_progress - Tech is working on it

  5. completed - Job done

  6. declined - Supplier can't do it

NEW Status: assigned

Why Needed:

Without "assigned" status:

  • Can't track who's responsible

  • Can't distinguish "waiting for dispatch" vs "waiting for tech"

  • No accountability


πŸ‘οΈ Visibility Matrix (Who Sees What)

Service Request Visibility:

User Role
What They See
Actions

Fleet Operator (submitter)

Own requests only

Create, cancel

Fleet Dispatch

ALL company requests

Create, assign priority

Fleet Manager

ALL company requests

View, export audit

Supplier Tech

Assigned to me

Acknowledge, update status

Supplier Dispatch

ALL company requests

Assign to techs, respond

Supplier Owner

ALL company requests

View, analytics, audit

Example Scenarios:

Scenario 1: Fleet Side

Scenario 2: Supplier Side


🎨 Status Flow & Color Coding (Focus on Function First)

Complete Status Flow:

Status Definitions:

Status
Who Sets
Meaning
Visible To

pending

System (on submit)

Waiting for supplier dispatch

Fleet & Supplier company

assigned

Supplier dispatch

Assigned to specific tech

Supplier company, Fleet sees "processing"

acknowledged

Assigned tech

"I got it, on my way"

Everyone

accepted

Tech or dispatch

"I will do this job"

Everyone

in_progress

Assigned tech

"Working on it now"

Everyone

completed

Assigned tech

"Job done"

Everyone

declined

Supplier dispatch/tech

"Can't do it" + reason

Everyone

Color Coding (Future - Function First):


πŸ” Permission System

Role-Based Permissions:

Fleet Operator:

  • βœ… Submit requests

  • βœ… View own requests

  • ❌ View other team members' requests

  • ❌ Export company audit

Fleet Dispatch:

  • βœ… Submit requests

  • βœ… View ALL company requests

  • βœ… Mark as priority

  • ❌ Export audit (manager only)

Fleet Manager:

  • βœ… View ALL company requests

  • βœ… Export audit trail

  • βœ… Review analytics

  • ❌ Submit requests (not their job)

Supplier Tech:

  • βœ… View assigned requests

  • βœ… Update status (acknowledge, in_progress, complete)

  • ❌ View other techs' requests

  • ❌ Assign work

Supplier Dispatch:

  • βœ… View ALL company requests

  • βœ… Assign to techs

  • βœ… Acknowledge/decline

  • βœ… Respond with quotes

Supplier Owner:

  • βœ… View ALL company requests

  • βœ… View analytics

  • βœ… Export audit

  • ❌ Update individual requests (oversight only)


πŸš€ Implementation Checklist

Phase 1: Database Setup

Phase 2: Domain Extraction Logic

Phase 3: Visibility Rules

Phase 4: Status Flow


🎯 Immediate Next Steps

User said: "I tihnk there are company table you have access via supabase let me know if you have issue"

ACTION: Check Supabase database directly for:

  1. Does companies table exist?

  2. Does user_profiles have company_id or company_name?

  3. Does service_requests have company linking?

Once confirmed, implement:

  1. Domain extraction on signup

  2. Company creation/linking

  3. Add "assigned" status

  4. Role-based visibility


πŸ’° Business Impact

Why This Matters:

Messaging:

"WhatsApp is for individuals. FleetOS is for companies."

Value Props:

For Fleet Managers:

  • See ALL fleet activity (not just own requests)

  • Export company audit trail

  • Track dispatcher performance

  • Compliance in one click

For Supplier Owners:

  • See ALL tech activity

  • Assign work efficiently

  • Track completion rates

  • Identify bottlenecks

Competitive Edge:

  • ❌ WhatsApp: Personal tool, no team features

  • βœ… FleetOS: Company tool, built for teams


Status: Architecture defined, awaiting database schema confirmation Next: Check Supabase for companies table, then implement

Last updated

Was this helpful?