Repository navigation
AgentFlight v1.2.0 — Pre-Flight Cost Circuit Breaker, 0.08 μs Replay & OpenAny Integration
AgentFlight v1.2.0 introduces the official commercial integration with OpenAny, accompanied by production-grade revenue attribution, thread-safe concurrent budget reservations, streaming SSE support, and remote MCP tool auditing.
🌟 Key Highlights
- Verified Partner Attribution Infrastructure:
- Outbound requests to OpenAny now transmit the verified partner header:
X-OpenAny-Partner-Id: agentflight - Domain boundary isolation strictly prevents header and credential leakage to third-party domains.
- Outbound requests to OpenAny now transmit the verified partner header:
- Thread-Safe Budget Reservations (
TrajectoryCircuitBreaker):- Added
guard.reserve_budget(amount_usd)withBudgetReservationcontext manager. - Prevents race conditions in multi-threaded and concurrent agent runs from bypassing spending caps before completion.
- Pre-execution budget evaluations halt unaffordable requests before network dispatch ($0.00 spent).
- Added
- Streaming Chat Completions (
stream_chat):- Added generator support for real-time Server-Sent Events (SSE) streaming.
- Live chunk delivery with post-stream token reconciliation and span recording.
- Remote MCP Tool-Smell Auditing:
- Query and lint remote OpenAny MCP servers (
https://mcp.openany.si/mcp). - Audit schemas against rules TS001–TS010 to trim prompt bloat by up to 78%.
- Query and lint remote OpenAny MCP servers (
- Sub-Microsecond Deterministic Replay Benchmark:
- Benchmarked at 0.08 μs per span (>11,000,000 spans/sec) across 25,000 span trials.
- 100% offline with zero external network calls.
- Refined Secret Redaction:
- Intelligent masking protects sensitive keys and bearer tokens while preserving numerical metric tokens (
prompt_tokens,completion_tokens,total_tokens).
- Intelligent masking protects sensitive keys and bearer tokens while preserving numerical metric tokens (
📦 Installation
pip install --upgrade agentflight-mcp🧪 Full Test Suite Status
- 142 passed (0 failed, 0 skipped) across mock, gateway, and live test fixtures.
- 20 dedicated provider and attribution tests.
- Built distribution:
agentflight-mcp(1.2.0) on PyPI.