Repository navigation
AgentFlight v1.4.0 — Auto PII Redaction, Prometheus Telemetry, Doctor CLI & 91% Test Coverage
What's New in v1.4.0
PyPI: pip install agentflight-mcp==1.4.0 / uvx --from agentflight-mcp==1.4.0 agentflight doctor
Live Hosted Portal & MCP Gateway: https://agentflight-tau.vercel.app/mcp
Enterprise & Operational Readiness
- Automatic PII & Secret Redaction (
src/agentflight/redact.py,recorder.py):- Pure-stdlib secret scrubber (
redact_sensitive,redact_text,redact_cassette,contains_sensitive_data) removes API keys (sk-...,sk-ant-...,sk-proj-...,oa_...,ghp_...,AKIA...), Bearer tokens, JWTs, URL basic-auth credentials, cookies, and auth headers while preserving token-count metrics and JSON schemas. - Enabled by default (
redact_secrets=True) insideFlightRecorderbefore SHA-256 chain hashing, with deterministic replay across rotated credentials inCassetteReplayer.replay_step().
- Pure-stdlib secret scrubber (
- Prometheus
/metrics, Request Tracing & Distributed Rate Limiting (telemetry.py,api/index.py,http_server.py):- Added
GET /metrics(Prometheus text exposition & JSON viaAccept: application/json),HEADhealth/metrics readiness responses, validatedX-Request-IDpropagation, opt-in structured JSON logs (AGENTFLIGHT_LOG_JSON=1), and optional stdlib-only Upstash Redis REST distributed rate limiting with fail-open memory fallback.
- Added
- Self-Diagnostics & Robustness (
cli.py,wrappers.py,linter.py):- Added
agentflight doctor [--json]verifying Python version, stdlib-core integrity,_agentflight_pytestentry point availability, redaction + SHA-256 chain verification, and circuit breaker enforcement. - Coalesced streamed OpenAI
tool_callsdeltas by index (_merge_tool_call_deltas) and guarded_normalize_tool_defagainst malformed non-dict schema fields.
- Added
- Quality & CI Gates:
167passing tests (90.57%coverage),--cov-fail-under=90,ruff, andmypy(0errors) enforced across Python 3.10–3.12, plus automatedsmoke-production.ymllive endpoint checks (14/14passing).