Skip to content

fix: bound cache follow lifetime and honor preferred backups - #650

Merged
zijiren233 merged 2 commits into
labring:mainfrom
zijiren233:fix/cache-follow-ttl-preferred-backup
Sep 7, 2026
Merged

fix: bound cache follow lifetime and honor preferred backups#650
zijiren233 merged 2 commits into
labring:mainfrom
zijiren233:fix/cache-follow-ttl-preferred-backup

Conversation

@zijiren233

Copy link
Copy Markdown
Member

Summary

Cache-follow mappings could retain channel affinity for the full upstream retention period, and preferred backup-only channels were excluded until ordinary channels were exhausted.

  • Cap newly written mappings at five minutes across prompt, user, and generic scopes, including upstream retention and configured TTLs. Preserve existing records without migration or additional read-time limits.
  • Set the default recent mapping update debounce to 45 seconds. Backup-only channels write recent mappings only; ordinary channels continue writing stable and recent mappings.
  • Allow eligible preferred backup-only channels in preference order before general backup activation. Health, availability, permission, and current retry-round failure filters still apply. Selecting a preferred backup does not unlock other backups.
  • Update configuration descriptions and regression coverage for TTL bounds, recent-only recording, debounce, selection order, and retry budgets.

Validation

  • Full core test suite: 2,079 tests passed across 100 packages.
  • Translation JSON parsing and git diff whitespace checks passed.

@zijiren233
zijiren233 merged commit 0b7bd90 into labring:main Sep 7, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant