Skip to content

chore(platform): drop the retired sandbox_admission_tickets and sandbox_agent_checkpoints tables #3241

Closed

Description

@larryro

What

PR #3226 (branch fix/sandbox-harness-hardening) removed the last reader and writer of two tables:

  • app.sandbox_admission_tickets — the dead admission-ticket lane (parkAdmissionTicket / pollAdmission / reapStaleAdmissionTickets), removed in 46180d3.
  • app.sandbox_agent_checkpoints — the dead op/checkpoint API and the DELETE in markSessionDestroyed, removed in bdd04be.

Per the create-migration doctrine (forward-only, "stop touching first, drop later": the previous image still serves while the new one migrates), the DROP TABLE was deliberately deferred. The deferral is currently recorded only in the header of services/platform/backend/domains/sandbox/sessions.ts; this issue is the tracker so it does not rot.

When it is safe

Once no serving image still references the tables — i.e. from the release after the one that ships #3226 (latest tag at the time of writing: v0.5.8, so v0.5.10+ or whichever release follows the one carrying #3226). Verify with git tag --contains <squash sha of #3226> before authoring the migration.

How

  • bun run gen:migration → one numbered file under services/platform/backend/db/migrations/ with DROP TABLE IF EXISTS app.sandbox_admission_tickets; DROP TABLE IF EXISTS app.sandbox_agent_checkpoints; (never edit an existing file).
  • Drop the deferral note from the sessions.ts header in the same change.
  • Run the real-Postgres integration proof.
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