Commit Graph

7 Commits

Author SHA1 Message Date
Joel Hooks d1b9975877 Teach the gateway to back off sick primary recovery probes, emit structured fallback decisions, and treat compaction/rotation as maintenance instead of stuck turns 2026-03-12 15:22:31 -07:00
Joel Hooks e95e290677 Fix model-fallback tests for Bun fake timers 2026-03-04 07:05:13 -08:00
Joel Hooks 67336b5c17 Fix gateway fallback timeout to start on model turn start 2026-03-04 07:02:57 -08:00
Joel Hooks 5a7e2f9de2 gateway: disable fallback churn when primary equals fallback 2026-03-03 11:58:10 -08:00
Joel Hooks 8881242236 chore: biome auto-fix import ordering across repo 2026-02-27 14:55:43 -08:00
Joel Hooks 291f1587b7 feat: extract telemetry to @joelclaw/telemetry — one way to emit OTEL (ADR-0144)
Canonical TelemetryEmitter interface + createGatewayEmitter factory.
~120 call sites migrated from gateway/observability.ts.
model-fallback and message-store now import TelemetryEmitter from here.
Old observability.ts deleted. 3 tests.
2026-02-25 14:34:21 -08:00
Joel Hooks 7a3e60aa46 refactor: extract model-fallback into standalone package (ADR-0144)
- New @joelclaw/model-fallback with TelemetryEmitter port (DI)
- Gateway imports from package, passes emitGatewayOtel adapter
- FallbackConfig type owned by model-fallback package
- 6/6 unit tests passing (fake timers, telemetry, recovery)
- Removed gateway/src/model-fallback.ts
2026-02-25 13:50:11 -08:00