Flow Optimisation · Feature state machine

Zone Capacity & Flow Alerts

A single Zone's occupancy state as FlowSnapshot rows accumulate against its configured safeCapacity and warnAtPercent — from quiet, to a predictive warning, to a raised and resolved congestion alert. See SmartFlow.md for the full research and data model behind this.

State diagram

stateDiagram-v2
    [*] --> Suppressed
    Suppressed --> Monitoring : presentCount reaches the k-anonymity floor

    Monitoring --> Elevated : occupancy crosses warnAtPercent, or arrivalsRate predicts it will soon
    Elevated --> Monitoring : occupancy falls back below warnAtPercent
    Elevated --> Congested : occupancy reaches safeCapacity

    Congested --> Alerted : admin/organiser notified
    Alerted --> Acknowledged : admin views the alert
    Acknowledged --> Resolved : occupancy falls back below warnAtPercent
    Congested --> Resolved : occupancy falls back below warnAtPercent (no admin action taken)

    Resolved --> Monitoring : next snapshot window
    Monitoring --> Suppressed : presentCount drops back below the k-anonymity floor
    

States

StateMeaning
SuppressedFewer consenting people present than the k-anonymity floor — nothing is computed or shown.
MonitoringNormal, below-threshold occupancy for this zone.
ElevatedOccupancy has crossed warnAtPercent, or the current arrival rate predicts it will soon.
CongestedOccupancy has reached safeCapacity.
Alerted / AcknowledgedThe admin/organiser has been notified and has viewed the alert.
ResolvedOccupancy has dropped back below warnAtPercent, with or without an admin ever acknowledging it.

Reading the diagram