Skip to content

driver-turso remote: a changed or removed literal defaultValue on a column the remote face created is reported as drift it can never apply (set_column_default / drop_column_default answer needs-table-rebuild) #37430

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Filing gate: ① · Source: fleet (L1 S1 of seat repo:objectstack#5 on PR #37425, comment 7182476239; contract record 7182460866). Follow-up of #37345.

Grading: area:data · reach: read on PR #37425's diff and origin/main — once PR #37425 lands, the remote Turso/libSQL face writes declared literal column DEFAULTs on CREATE TABLE and ADD COLUMN; an author who later edits or removes that defaultValue gets a set_column_default / drop_column_default drift entry, which REMOTE_DRIFT_OP_ANSWERS (packages/drivers/driver-turso/src/turso-driver.ts) answers needs-table-rebuild, and the remote transport runs no table rebuild · evidence: read.
Suggested-grade: p3 · the stale DEFAULT only fills rows inserted without a value; os migrate plan already declares the entry unapplicable (driftApplyLimit), so nothing is silent; the local face rebuilds.

What

Before PR #37425 the remote face wrote no declared DEFAULT, so this drift could not arise on columns it created. After it, a literal DEFAULT the remote face wrote can be changed only by the SQLite table rebuild, which only the local face performs. The remote face keeps the old DEFAULT, and every later os migrate plan lists the entry as needing a rebuild.

Acceptance (proposed, for triage)

  • Decide and implement the remote answer for set_column_default and drop_column_default on a column the remote face created: a remote table rebuild (as the local face does), or another route that leaves the column's DEFAULT equal to the declaration, with the drift read empty afterwards.
  • REMOTE_DRIFT_OP_ANSWERS and driftApplyLimit move with it; a test pins edit and removal of a literal default through the remote face.

Related: #37345 (PR #37425), #36245 (local DEFAULT drift), #37413 (NOW() half), #33724 (remote relax in place).
Dedupe: searched 'default_mismatch', 'needs-table-rebuild turso' — no open card.

Activity

  1. added
    finding
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:data · domain:data · Bug · priority:p3 · pm:queue · size S; rationale: once PR #37425 lands, a changed or removed literal default on a column the remote Turso face created is reported as drift it can never apply. os migrate plan already marks the entry as not applicable, and the stale default only fills rows inserted without a value. Nothing is silently wrong, so p3, as suggested.

    It is only reachable after PR #37425 merges. It rides with the next change to the remote drift answers (seat 5 zone o5-D holds #37345). finding stays.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

    Scope amendment · 2026-11-26T07:23Z

    Source: L2 S3 on PR #37469 (#37413), contract record 7185397364. PR #37469 names this card as the carrier for the remote half of the NOW() route. The card currently covers only edited or removed literal defaults, so its scope grows to include the cases below.

    The grade stays triage's. Nothing is silent today: os migrate plan lists every entry as unapplicable on the remote face.

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:datadomain:datafindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions