Skip to content

turso CLI: no rename and no libsql->TursoDB mode conversion — every fix is a full export/import data move #6827

Open

Description

@dezren39

Found during the 2026-11-07 fleet-wide DB audit + rename/mode-fix program (#6619).

Facts, all empirically verified on scratch DBs (CLI v1.0.33):

  • turso db list TYPE column is the only mode evidence: SQLite = libsql mode, Turso = TursoDB mode.
  • There is no turso db rename.
  • A --from-db fork INHERITS the source database's type; turso db create --from-db X --tursodb fails with "tursodb flag contradicts the database derived type". A fork can never change mode.
  • The only working conversion is: turso db export <db> -> copy the export files to the target basename -> turso db import <file>.db --tursodb (the new DB is named after the FILE basename), then repoint every producer, confirm, and delete the old DB.
  • turso db dump does not exist in this CLI version (prints help).

Impact: converting the fleet's 8 libsql DBs on 2026-11-07 meant 8 full data moves (~7.7 GB total exports), per-DB token re-mints, and producer flips — for what should be a metadata operation. If Turso ever ships a mode-convert or rename verb, the fleet's remaining libsql holdouts (atlas monolith, great-star-lord — both deliberately untouched, see #6619) should use it. Until then, any new fleet DB must be created with --tursodb at birth; a libsql DB created by accident costs a full migration later.

Acceptance criteria

  • The rule 'every new fleet Turso DB is created with --tursodb at birth' is recorded in the fleet's DB-creation documentation/runbook where a creator will see it.
  • The remaining libsql holdouts named in the issue (atlas monolith, great-star-lord) are listed as known conversion debt with the export/import conversion procedure linked.
  • If/when Turso ships a rename or mode-convert verb, the holdouts are converted with it and this issue is closed citing that conversion; until then this issue stays as the tracking record, not active work.

Activity

  1. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  2. added
    kind/infrastructureInfrastructure / host-portability work
    source/humanFiled directly by a human
    priority/lowNice to have; do when convenient
    effort/sSmall: expected under 2 hours of work
    area/infraInfrastructure, deployment, and operations
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: #6619 (the audit + rename/mode-fix program that verified these CLI facts empirically on scratch DBs, CLI v1.0.33).

    Notes: low priority — this is primarily a tracking/policy item. The expensive conversions for the 8 fleet DBs already happened in #6619; what remains is preventing recurrence (the --tursodb-at-birth rule) and recording the two deliberate holdouts.

    Risks: none from enrichment. A future conversion of the holdouts remains a full data move until Turso ships a verb — do not attempt it casually.

    Suggested approach: file the rule in the runbook, link the holdout list, and leave the issue open as the tracker for a future Turso verb.


    🤖 Agent note · handed off

  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 7, 2026
  5. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage — task 11266; fix path scoped, issue stays open as the tracking record)

    • Agent: queue worker, lane code-k (repo-worker-code)
    • Session / ID: task 11266 · repo-queue-worker-shift-k · 2026-11-07 17:53 CST shift
    • Found via: queue claim (direct execution lane)
    • Task: triage issue turso CLI: no rename and no libsql->TursoDB mode conversion — every fix is a full export/import data move #6827 (turso CLI: no rename / no libsql→TursoDB conversion) against current origin/main
    • Found (fresh checks, 2026-11-08T00:09Z):
      • Acceptance 1 — partially met. The rule is recorded at doc/fleet/queue-turso-cutover.md:26 ("the fleet standard is that new databases are born --tursodb") at origin/main, but only inside the queue cutover doc. There is no general fleet DB-creation runbook in doc/fleet/ (the turso docs there are queue-turso-cutover.md and agent-events-turso.md only), so a creator making a non-queue DB may never see the rule.
      • Acceptance 2 — not yet in one place. The holdouts (atlas monolith; the great-star-lord group DBs) are named on this issue and in the atlas scaler design doc, and issue infra: repo-queue PostgREST timeout: global failures lane-visible again — recurrence after #6450 closed (2026-11-06 21:15-21:31Z) #6619 (the audit + conversion program) is CLOSED, but no canonical conversion-debt listing with the export/import procedure linked exists yet.
      • Acceptance 3 — tracking only, as the issue states: no Turso rename/mode-convert verb is known to have shipped; do not attempt a holdout conversion casually (it is a full data move).
    • Scoped follow-up (docs, small): one canonical fleet Turso page (e.g. doc/fleet/turso-databases.md, linked from doc/fleet/services.md) carrying (a) the --tursodb-at-birth rule as the DB-creation rule, (b) the holdout list (atlas monolith, great-star-lord group) as known conversion debt, and (c) the verified export/import conversion procedure from this issue's body. Until that lands, this issue remains the tracking record, per its own acceptance 3.
    • Expectation: triage task 11266 completes as triaged; issue turso CLI: no rename and no libsql->TursoDB mode conversion — every fix is a full export/import data move #6827 stays OPEN at priority/low as the tracker.
  6. added
    status/triagedTriaged and routed (see agent note)
    and removed on Nov 8, 2026
  7. 178 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  9. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  11. added
    epic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  12. added this to the Turso + Cloudflare milestone on Nov 12, 2026
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triaged — already resolved: queue task 18508 (bulk-intake triage of issue #6827), Muse lane code-b, 2026-11-17.

    Fresh verification this shift: issue #6827 OPEN with its triage labels of record (priority/low, effort/s; no status/needs-triage, no hard-stop labels). Its fix was delivered by task 13038: PR #7721 MERGED (merge sha fb6f334) — the conversion procedure is documented in doc/fleet/turso-databases.md on main, linked from doc/fleet/services.md, with both Codex P2 findings fixed and replied to in the PR.

    Per task 13038's closing note, issue #6827 stays OPEN deliberately as the tracking record (its acceptance criterion 3) — that is the recorded disposition, not unfinished work. No follow-on is needed from this triage.

  14. removed their assignment
    on Nov 20, 2026
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

    area/infraInfrastructure, deployment, and operationseffort/sSmall: expected under 2 hours of workepic/turso-cloudflareEpic: epic/turso-cloudflare (fleet reprioritization 2026-11-12)kind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientsource/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions