forked from cleveragents/cleveragents-core
a6242c1e38
Implements comprehensive observability infrastructure per issue #940: - Add PrometheusRegistry with counters/histograms/gauges for all 14 operational metric keys; supports /metrics HTTP endpoint (server mode) and file-based export (local mode) - Add AuditBridge event subscriber that automatically writes security-relevant domain events to audit.jsonl with structured AuditRecord schema (timestamp, event_type, actor, action, resource, outcome, metadata, correlation_id, plan_id, session_id) - Add configure_structlog() for JSON or text log output with inject_correlation_id processor for log correlation across plan executions - Add observability config fields to Settings: metrics_prometheus_port, metrics_file_path, audit_jsonl_path, log_format - Add prometheus-client>=0.20.0 to project dependencies - Add 61 Behave BDD scenarios covering metrics registry, audit bridge routing, structured log output, and settings integration ISSUES CLOSED: #940