Skip to content

refactor(platform): drop the retired sandbox tables - #3532

Merged
yannickmonney merged 4 commits into
mainfrom
refactor/drop-retired-sandbox-tables
Sep 28, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
refactor/drop-retired-sandbox-tables

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Drop the retired app.sandbox_admission_tickets and app.sandbox_agent_checkpoints tables through 0126_sandbox_retired_tables.sql, and remove the obsolete deferral note. Migration 0017 remains unchanged. The integration assertion finds the retirement migration by its slug and verifies that both retired tables are absent.

The last image that touched either table was v0.5.8; #3226 removed the final deletes and shipped in v0.5.9. Inspection of v0.5.61 finds the table names only in migration 0017 and the deferral note. No foreign key or view references either table. A deployment on v0.5.8 or older must first upgrade to an intermediate release at or after v0.5.9 before applying this drop.

Merge after #3533, which supplies migration 0124. Main already contains 0123 and 0125; this unshipped drop is 0126. No shipped migration was renamed.

Validation on the reviewed merged tree:

  • Fresh real PostgreSQL: session and retired-table lanes passed 19/19.
  • Upgrade proof: recreated both legacy tables from 0017 with one row each; the new assertion failed before the drop, passed after the actual boot migrator applied 0126, and passed again on a second boot.
  • Sandbox and guard tests: 148 tests across 24 files passed.
  • Full bun run check --concurrency=2 under pinned Bun 1.4.2: 55/55 tasks passed, 36 cached and 19 freshly executed.

The earlier full PostgreSQL/MinIO integration run passed 812/819; its seven failures in team retirement and organization lifecycle were also reproduced on its original main base 835236313. The final merged tree's full integration suite has not been rerun; the final migration/session proof above is scoped. backend:integration is not a CI job. All database proofs used disposable databases.

Closes #3241.

0017 ported the 0.4 FIFO admission-ticket lane and the workflow re-attach
checkpoints, but no 0.5 caller ever wired either, and since v0.5.9 no
image reads or writes them. Migration 0123 drops both, and the deferral
note in the session substrate goes with it.

A backend:integration lane reads the dropped names from 0123, checks each
is a table 0017 created, and asserts none is left in the migrated schema.
Three open changes each scaffolded 0123, so whichever lands later renumbers its file. Resolving the drop migration by its slug keeps that a pure rename, with no edit to the proof lane.
@yannickmonney
yannickmonney merged commit 207883c into main Sep 28, 2026
50 checks passed
@yannickmonney
yannickmonney deleted the refactor/drop-retired-sandbox-tables branch September 28, 2026 06:45
yannickmonney added a commit that referenced this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant