Skip to content

AgentFlight v1.2.0 — Pre-Flight Cost Circuit Breaker, 0.08 μs Replay & OpenAny Integration

Choose a tag to compare

@codesphere-u codesphere-u released this 13 Nov 08:21
· 8 commits to main since this release

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

  1. 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.
  2. Thread-Safe Budget Reservations (TrajectoryCircuitBreaker):
    • Added guard.reserve_budget(amount_usd) with BudgetReservation context 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).
  3. 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.
  4. 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%.
  5. 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.
  6. Refined Secret Redaction:
    • Intelligent masking protects sensitive keys and bearer tokens while preserving numerical metric tokens (prompt_tokens, completion_tokens, total_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.