🤖 Ask: let carlos instances import (and create --from) work for apps placed on a customer fleet.
Who hits it. Eleven (account eleven, sqid bdr) is moving onto its own bring-your-own fleet eleven. All 17 chat spaces are across already: they were hibernating, so their replicas were already in the fleet's bucket and a fleet box restored them without any import. What's left is four shared services: the push relay, the OAuth broker, the passkey-backup server and the provisioner. Each has a small SQLite database on the old box (tens of MB at most) and was never a CARLOS instance. That's exactly what instances import is for, and it refuses:
> <app> places its instances in a pool or on a fleet, so it cannot take a seeded instance. (internal/console/apiinstanceseed.go:118-120)
Any bring-your-own-fleet customer arriving with an existing database hits the same wall on day one, and an existing database is the usual reason to bring your own fleet.
Why it refuses, as far as I can read. The seed path restores and uploads into the deployment's own buckets. A fleet keeps its data in the customer's bucket (CARLOS_HIBERNATE_BUCKET), which the console can't write to. Only the fleet's boxes hold credentials for it.
Proposed shape. Keep the console as coordinator and let a fleet box do the bucket work:
import receives the snapshot as it does today and reserves the record (same verify/commit/abort semantics).- The console hands the snapshot to a box of the app's fleet over the fleet tunnel. A presigned or staged object the box pulls would also work; the tunnel already carries the store door.
- That box writes the first replica generation into its fleet bucket under the instance host's prefix, takes the lease as for a wake, and runs
--verify. commit / abort behave as now.
create --from <sibling> on a fleet app would follow the same path, with the box copying the sibling's replica inside its own bucket.
What we're doing meanwhile. Nothing hacky. The alternative was hand-building an LTX replica with litestream straight into the fleet prefix, and we'd rather the platform own that. Paul is happy to wait for this, or for it to be built in this session.
Done when: carlos instances import --app <fleet app> --host <h> --file <db> --verify /healthz, then commit, leaves the instance served by a fleet box from the imported data, with its replica in the fleet's bucket.