Skip to content

Store migrations: a keyed creation's record can name a declared list no longer kept #1230

Open

Description

@lydakis

From the Codex review of #1229.

A keyed creation's record stores its declared list by digest ($.request.declare). When the bot is later configured with another list, drop_list removes the old list once no bot holds it, but the record keeps the old digest. A migration that rewrites lists (schema 109's lift → yields, or its way back) can't convert a digest whose list is gone. So a resend of that original creation, carrying the same request_id from a client on the other side of the rename, would compute a different digest and be refused as a conflicting request.

This only matters for an idempotent resend of a creation whose bot has since changed its declared tools, across a release that renamed a declared field. Options:

  • keep a creation's list while its record names it, or
  • have a migration that can't convert a record's digest clear the record's declare comparison, or refuse the migration with a typed error.

Activity

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