The State Machine

From resident report to verified close:
The 8-Stage Lifecycle

Every maintenance request follows a deterministic finite state machine. Precondition guards prevent skipped stages, and domain events keep managers, vendors, and tenants in sync.

The Linear Path (Happy Path)

What happens when work executes smoothly from start to finish.

Stage 1

REPORTED

Resident captures issue photo, unit identifier, and brief description through their mobile PWA. Issue enters triage queue.

Emits MaintenanceReported
Stage 2

TRIAGED

AI classifies trade category and urgency level. Vector embeddings run against active tickets to identify duplicates. Policy rules recommend vendor match.

Emits MaintenanceTriaged
Stage 3

ASSIGNED

Work order routed to preferred vendor or contractor based on trade certification and past SLA performance rating.

Emits WorkAssigned
Stage 4

QUOTE_SUBMITTED

Contractor inspects unit and submits itemized estimate (parts, labor, scheduled arrival date) directly through mobile vendor app.

Emits QuoteSubmitted
Stage 5

APPROVED

Quote auto-approved if within organization threshold, or digitally signed off by property manager. Financial commitment locked.

Emits QuoteApproved
Stage 6

SCHEDULED & IN_PROGRESS

Arrival slot confirmed with resident. Technician arrives on-site, confirms arrival via GPS geo-fence, and executes physical repairs.

Emits WorkStarted
Stage 7 • Rule 6 Guard

COMPLETION_SUBMITTED

Technician uploads mandatory post-repair photos, actual parts cost, and physical completion confirmation. Guard strictly rejects completion without files.

Emits CompletionSubmitted
Stage 8

CLOSED

Resident verifies satisfaction or confirmation timer elapses. Ticket becomes an immutable ledger entry. Vendor performance metrics updated.

Emits WorkOrderClosed
Guarded Loopbacks

What Happens When Things Go Wrong?

Real operations are messy. Quotes get rejected, and repairs are sometimes disputed. Nivora enforces explicit loopbacks that prevent tickets from dying in limbo.

Quote Rejected Loop

APPROVED → ASSIGNED

If an operations manager determines a contractor quote is inflated or unreasonable, rejecting the quote does not cancel the ticket. The state machine transitions back to ASSIGNED, allowing the contractor to revise their estimate or allowing the manager to reassign to a secondary vendor.

Event: QuoteRejected • SLA clock resumes
Disputed Completion Loop

VERIFICATION_PENDING → REOPENED → ASSIGNED

If a resident tests their AC and finds it still rattling, they dispute the completion. The work order transitions to REOPENED. Direct closure is strictly blocked. The manager must reassign the work order to the technician for mandatory on-site rework.

Event: WorkOrderDisputed • Vendor penalty applied
User Journeys

How Each Stakeholder Experiences Nivora

Resident Flow

Report in 30 seconds. Track in real time.

No more chasing hostel wardens or waiting on silent WhatsApp groups. Residents open their PWA, take a quick photo of the broken tap, and receive instant verification updates.

1. Photo Capture → 2. Live ETA → 3. Digital Sign-off
Resident Journey
Vendor Journey
Technician Flow

Clear scope. Guaranteed payment records.

Contractors get precise issue descriptions and parts specs before heading out. When the job is done, they snap a proof photo and log materials to guarantee fast, dispute-free invoice clearance.

1. Scope Received → 2. Quote Sent → 3. Photo Attached
Operations Manager Flow

Total portfolio visibility from one screen.

Centralized command across hundreds of properties. See active SLA countdowns, review quotes exceeding thresholds, and monitor contractor quality scorecards backed by real data.

1. AI Triaged → 2. Policy Approved → 3. SLA Monitored
Manager Operations Flow