Skip to content

CLI snapshots omit llm-gateway-data, the store Bifrost 2.2 migrates forward-only #3978

Closed

Description

@yannickmonney

What happens

tale backup, the snapshot tale deploy takes before a version change, and the recovery snapshot of a managed deploy apply all skip the model gateway's store. SNAPSHOT_VOLUMES in tools/cli/src/lib/backup/constants.ts does not list llm-gateway-data, so RESTORABLE_ARCHIVES, verifySnapshot and the managed recovery-snapshot schema do not know it either.

That volume holds the gateway's SQLite store: admin account, providers and their keys, virtual keys with their budgets and spend, and the request log (config.db, logs.db, each with -wal/-shm). Since #3961, a deploy moves the gateway from Bifrost 1.6.11 to 2.2.4, which migrates that store in place, forward-only. Upstream drops oauth_configs.token_id among other changes, and neither binary has a down-migration.

Consequences

  • Restore: restoring a pre-upgrade snapshot returns every other volume but leaves the migrated gateway store in place. The older release's gateway then starts on it. tale restore says nothing about this.
  • Managed apply: deployment/apply.ts reuses the retained pending intent's snapshot (intent?.snapshot, also after a supersedesPendingBundle takeover). Adding the volume to the inventory does not repair a snapshot an older CLI already recorded. The rollout would then migrate the gateway with no recovery point, and the ready receipt would name that snapshot as the recovery point.
  • Docs: the EN/DE/FR upgrade guide tells operators to copy the volume by hand because the inventory leaves it out. It also says that tale rollback within 0.5 starts the old gateway. tale rollback actually swaps only platform, backend-api and backend-worker and restores no volume.

Expected

  • Snapshots capture llm-gateway-data under its stable name while its container is paused, and restore accepts it through the existing allowlist.
  • Older snapshots still restore, but say plainly that they leave the gateway store untouched and cannot undo a gateway upgrade.
  • A managed apply refuses to change an existing gateway's runtime when the retained recovery snapshot does not cover the present gateway volume. The pending receipt stays untouched, and no new snapshot is substituted.
  • The docs state what rollback actually covers.

Activity

  1. yannickmonney commented on Sep 30, 2026

    @yannickmonney
    ContributorAuthor

    Fixed by #3979, normally squash-merged at cc325fc after independent review of head 03071c6 and its successful normal CI.

    The accepted change covers gateway snapshot/restore inventory and pause/resume, legacy-snapshot warnings, fail-closed retained recovery-point admission with unchanged receipts on refusal, and EN/DE/FR recovery/rollback scope. Independent inert controls, retained local Docker snapshot/restore evidence and the bounded Bifrost upgrade/restore proof were reviewed with their source identities and limitations. Actual merged implementation blobs match the accepted head; inherited main documentation changes were separately checked.

    Acceptance details: #3979 (comment) . Closing this defect as implemented; publication and deployment still require a fresh validated release candidate and the existing Ops pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions