@startuml 03-l2-ownership title Layer 2 — Build ownership skinparam componentStyle rectangle skinparam packageStyle rectangle package "Architect-owned\n(lead review)" as HUMAN #LightYellow { component "REST router\n+ auth middleware" as H1 component "RFC 7807\nerror mapper" as H2 component "OpenAPI validation\npipeline" as H3 component "Auth flow\n+ token store" as H4 component "RBAC\n+ security review" as H5 component "L2 ↔ L1 tunnel\n+ signing" as H6 } package "Core team\n(modular adapters)" as AI #LightBlue { component "cameras adapter" as A1 component "models adapter\n+ upload pipeline" as A2 component "edges adapter" as A3 component "deployment-groups\nadapter" as A4 component "ai-tasks adapter" as A5 component "events adapter\n+ SSE broadcaster" as A6 component "fr adapter" as A7 component "alpr adapter" as A8 component "notifications adapter" as A9 component "system / health /\nlogs adapter" as A10 component "job queue + workers" as A11 component "media relay" as A12 } package "Existing ANSVIS\n(reused as-is)" as EXIST #LightGray { component "Task engine" as L_TASKS component "FR engine" as L_FR component "ALPR engine" as L_ALPR component "Config store" as L_CFG } HUMAN --> AI AI --> EXIST note bottom of HUMAN Cross-cutting concerns kept under direct architect review: request validation, errors, auth, RBAC, tunnel security. end note note bottom of AI Highly modular by resource — the core team works in parallel on independent adapters without colliding. end note @enduml