mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
b9a4b4c6e8
Closes the structural gap from issue #557: AQE could only bill the paid Anthropic API even for Pro/Max subscribers, and its budget caps were never enforced. - claude-code provider: run QE via `claude -p` on the user's subscription; child env strips API-billing keys so it can't revert to API billing - Enforced cross-process spend caps (--max-budget-usd / AQE_MAX_BUDGET_USD), persisted to memory.db (llm_spend); enforced on the ProviderManager AND HybridRouter paths; over-budget aborts with COST_LIMIT_EXCEEDED - cognitum provider: OpenAI/Anthropic-compatible gateway with per-request cost receipts, embeddings, and a server-side hard cap - Billing-mode taxonomy + startup notice + `aqe health` LLM Billing section - config-store: honor explicit `enabled: false` over env key presence; AQE_LLM_PROVIDER selector - Fix: `aqe eval run` no longer scores fabricated mock responses — real provider by default, hard-error when none configured, `--mock` opt-in - Consensus verification path prints a billing warning (deferred full port) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>