Skip to content

driver-sql / driver-turso: pin the atomicity of the NOW() ADD COLUMN + backfill (a failing fill rolls the ADD COLUMN back) on each door #37496

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Filing gate: ① · Source: fleet (L2 S5 of seat repo:objectstack#5 on PR #37469, delta contract record on head 835c89df). Follow-up of #37413. Per the maintainer's rule, a simple issue becomes a follow-up card: the behaviour is implemented, and only its pin is missing.

reach: read at PR #37469 head 835c89df · evidence: read. Dropping the local knex.transaction or splitting the remote write batch leaves every test green.

What

PR #37469 makes ADD COLUMN plus the NOW() backfill atomic in three places:

  • one knex.transaction on the local managed door;
  • one knex.transaction on the local shard door;
  • one write batch on remote syncSchema.

No test fails if any of those is removed. A fill that fails after the column exists would then leave NULL rows that no re-sync refills, and a nullable field reports nothing.

Expected

For each door, a test makes the fill fail (an injected UPDATE error) and asserts that the column is absent afterwards, and that a re-sync adds and fills it. The test must turn red when the transaction or batch is removed.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Scope note · area o5-D · 2026-11-26T09:09Z · from the seat's ACCEPT 7187416118 on PR #37469, an open question carried here rather than lost (not owed by that PR):

    • After the NULL-only fill has just written every existing row, tighten_not_null for that column can no longer fail on a row, yet it stays destructive (needs --allow-destructive, refuses an artifact-pinned local boot). Decide whether the differ may grade it safe when the column holds no NULL at read time (a data-dependent category), or keep the static grading and say why in the entry's message. Measure first: what isPublishedColumnChange and the artifact-pinned boot read, and whether a data-dependent grade can flip between plan and apply.
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:datafinding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions