@startuml
skinparam backgroundColor #FFFFFF
skinparam sequence {
  ArrowColor #5B6673
  LifeLineBorderColor #5B6673
  LifeLineBackgroundColor #EEF3F8
  ParticipantBorderColor #2E4057
  ParticipantBackgroundColor #DCEAF7
  ParticipantFontColor #1F2A44
}
title Debug Route Before JWT Secret Gate

actor "Operator" as User #FFF4CC
participant "Axum Router\nGET /debug/schema" as Router #DDEEFF
participant "schema_debug_handler" as Handler #DFF7E6
participant "SchemaDebugRuntime" as Runtime #F5E1FF
database "PostgreSQL\nprobe" as DB #FFE9D6

User -> Router : GET /debug/schema
Router -> Handler : call(headers, runtime)
Handler -> Runtime : resolve tenant + mapping metadata
Handler -> DB : query_schema_debug_probe(...)
DB --> Handler : schema/table visibility
Handler --> User : Full debug payload always returned\n(runtime/request/tenant/probe)

note right of Handler
No route-level secret gate.
Same payload shape for every caller.
end note
@enduml