@startuml
skinparam backgroundColor #F8FFFB
skinparam componentStyle rectangle
skinparam packageStyle rectangle
skinparam shadowing false
skinparam ArrowColor #0F172A
skinparam DefaultFontName Inter
skinparam DefaultFontSize 12

component "config.yaml + env" as Inputs #E2E8F0
component "build_schema_debug_enabled_features" as FeatureBuilder #BBF7D0
component "build_schema_debug_runtime" as RuntimeBuild #FDE68A
component "SchemaDebugRuntime\n+ enabled_features" as Runtime #93C5FD
component "schema_debug_handler" as Handler #DCFCE7
component "/debug/schema response" as Response #DCFCE7

Inputs --> FeatureBuilder
FeatureBuilder --> RuntimeBuild : normalized feature matrix JSON
RuntimeBuild --> Runtime : tenant + access gate + enabled_features
Runtime --> Handler
Handler --> Response : runtime.enabled_features

note right of Response
  After:
  runtime.enabled_features exposes
  plugin/session/auth/observability/
  multitenancy/schema_detection/passkey/email
  enablement state in one place.
end note
@enduml
