Skip to content

fix: deprecated worker models, invalid cache TTL format, and batch error logging#140

Merged
BYK merged 1 commit intomainfrom
fix/deprecated-models-ttl-format
May 7, 2026
Merged

fix: deprecated worker models, invalid cache TTL format, and batch error logging#140
BYK merged 1 commit intomainfrom
fix/deprecated-models-ttl-format

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 7, 2026

Summary

  • Cache TTL format: Fix "3600""1h" in 3 source files — Anthropic's API now requires string literals ("5m" / "1h"), not raw seconds
  • Stale worker model resilience: Add clearValidatedWorkerModel() to purge dead models from kv_meta when validation finds no passing candidate, plus a 24h TTL in resolveWorkerModel() so stored entries auto-expire even without re-validation
  • Batch error logging: Show full error object when error.message is undefined instead of logging error — undefined

All 834 tests pass.

…ror logging

- Fix cache_control TTL "3600" → "1h" (Anthropic API now requires string literals)
- Add clearValidatedWorkerModel() to purge stale kv_meta entries when validation
  finds no passing candidate (prevents routing to deprecated models indefinitely)
- Add 24h TTL to resolveWorkerModel() so stored entries auto-expire to fallback
  model even without re-validation running
- Improve batch error logging to show full error object when message is undefined
@BYK BYK enabled auto-merge (squash) May 7, 2026 19:21
@BYK BYK merged commit d6a242f into main May 7, 2026
1 check passed
@BYK BYK deleted the fix/deprecated-models-ttl-format branch May 7, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant