Skip to content

v2.59.0 — autopilot Tier-3 (Wave H)

Choose a tag to compare

@avelikiy avelikiy released this 08 Jun 11:10
v2.59.0
154e31f

Tier-3: ops. Makes the operated autopilot operable — see what it costs, catch a failing connector, recover a write that didn't land. Deterministic cost model + a fault-injection seam, so it's all testable offline.

  • Cost/latency budgetsbudgets.mjs: per-vertical latency budgets + a flat (env-overridable) connector unit cost; runMetrics() flags over-budget runs.
  • Retry / dead-letter — a post-gate write that exhausts its 3× retries now lands in status:'dead-letter' (not a silent completion) + audit; deadLetters() queue + requeue(id) re-runs the write to recover. POST /api/autopilot/requeue.
  • Billing / meteringmetering() aggregates connector calls, latency, cost (USD), retries, per-vertical breakdown; GET /api/autopilot/metering.
  • Connector healthconnectorHealth(): failure rate, p95 latency, last error, healthy flag; GET /api/autopilot/health + cron connector.health.
  • Test seamGREAT_CTO_FAULT_INJECT=1 deterministically fails stub calls (chaos / dead-letter / health testing).

Implements docs/plans/PLAN-autopilot-tier3.md. 5 new lib tests (304/304), all ops endpoints admin/compliance-gated.