Upgrade to v0.17 and handle uncertain outcomes
Upgrade and rollback
Section titled “Upgrade and rollback”- Stop v0.16.0 and verify a complete encrypted backup. Retain its configuration and Master Key separately. Backup and restore
- Start v0.17.0 with the existing Standalone data directory and configuration. Metadata remains on schema 43. Confirm readiness and a known route, then verify Ledger and Usage offline.
- For rollback, stop v0.17.0 and use v0.16.0 to restore the pre-upgrade backup to an empty or separate data directory.
Handle keyed repeats
Section titled “Handle keyed repeats”409 idempotency_in_progressindicates an operation still running. Retry the same key and body with bounded backoff.409 idempotency_outcome_unknownindicates the Provider might have executed the operation. Reconcile its result first. A new key can execute and bill again.- A reclaimed, explicitly rate-limited Chat request starts a fresh 24-hour key window. A failed reclaim reports
503 resource_store_unavailable, keeping the original record retryable.
Observe upstream cooldowns
Section titled “Observe upstream cooldowns”Halro parses Retry-After consistently on upstream 429, 503, and 529 responses. Ordinary rate-limit hints allow up to 15 minutes before a probe. Only windows exceeding five minutes earn new durable records. On upgrade, legacy ordinary rate-limit records use the new ceiling measured from their original observation. Routing and suspensions · Retries and idempotency