The Three-Layer Architecture for Gate Compliance