{"status":"ok","service":"smart-wwtp-brain","scada":{"vendor":"Siemens","product":"SIMATIC WinCC Professional","operating_system":"Windows","integration":"OPC UA read-only","write_enabled":false,"notes":"Production endpoint, certificate and namespace must be confirmed on site. The local simulator is only available through explicit offline test commands.","adapter":"wincc_opcua_read_only"},"write_dispatch_enabled":false,"authentication":{"mode":"employee_password_bearer_token","legacy_role_header_enabled":false,"first_login_requires_password_change":true},"workflow_repository":{"mode":"postgres","persistent":true,"ready":true},"telemetry_ingest":{"storage":"sqlite","initialized":false},"plant_control":{"mode":"hierarchical_rto_mpc_edge_plc","repository":{"mode":"postgres","persistent":true,"ready":true},"command_signing_configured":true,"environment_write_enabled":false,"edge_mtls_verified":false,"cloud_direct_plc_write":false,"plants":[{"plant_id":"P001","write_dispatch_enabled":false,"gates":[{"check":"environment_write_switch","passed":false,"message":"WWTP_PLANT_CONTROL_WRITE_ENABLED must be enabled."},{"check":"cluster_write_switch","passed":false,"message":"The cluster write switch must be enabled."},{"check":"plant_write_switch","passed":false,"message":"The plant write switch must be enabled."},{"check":"command_signing","passed":true,"message":"A command signing key must be configured."},{"check":"edge_mtls","passed":false,"message":"Reverse-proxy mTLS must be commissioned and WWTP_EDGE_MTLS_VERIFIED enabled."},{"check":"healthy_edge_agent","passed":false,"message":"A fresh edge heartbeat with healthy PLC communication and quality >= 95 is required."}]},{"plant_id":"P002","write_dispatch_enabled":false,"gates":[{"check":"environment_write_switch","passed":false,"message":"WWTP_PLANT_CONTROL_WRITE_ENABLED must be enabled."},{"check":"cluster_write_switch","passed":false,"message":"The cluster write switch must be enabled."},{"check":"plant_write_switch","passed":false,"message":"The plant write switch must be enabled."},{"check":"command_signing","passed":true,"message":"A command signing key must be configured."},{"check":"edge_mtls","passed":false,"message":"Reverse-proxy mTLS must be commissioned and WWTP_EDGE_MTLS_VERIFIED enabled."},{"check":"healthy_edge_agent","passed":false,"message":"A fresh edge heartbeat with healthy PLC communication and quality >= 95 is required."}]},{"plant_id":"P003","write_dispatch_enabled":false,"gates":[{"check":"environment_write_switch","passed":false,"message":"WWTP_PLANT_CONTROL_WRITE_ENABLED must be enabled."},{"check":"cluster_write_switch","passed":false,"message":"The cluster write switch must be enabled."},{"check":"plant_write_switch","passed":false,"message":"The plant write switch must be enabled."},{"check":"command_signing","passed":true,"message":"A command signing key must be configured."},{"check":"edge_mtls","passed":false,"message":"Reverse-proxy mTLS must be commissioned and WWTP_EDGE_MTLS_VERIFIED enabled."},{"check":"healthy_edge_agent","passed":false,"message":"A fresh edge heartbeat with healthy PLC communication and quality >= 95 is required."}]}]},"collector_authentication":{"mode":"bearer_token","uses_local_default":false},"edge_control_authentication":{"mode":"bearer_token; reverse_proxy_mtls_required_before_write","uses_local_default":false,"ready":true},"ai":{"plant_id":"P001","provider":"deepseek","model":"deepseek-v4-flash","base_url":"https://api.deepseek.com","cloud_api_allowed":true,"send_only_desensitized_data":true,"remote_enabled":true,"api_key_configured":true,"ready":true,"legacy_model":false,"migration_notice":null,"budget":{"plant_id":"P001","date":"2026-08-01","available_levels_cny":[50.0,100.0,150.0,200.0],"selected_daily_limit_cny":100.0,"spent_cny":0.0,"reserved_cny":0,"remaining_cny":100.0,"blocked":false}}}