Skip to content

Propose inactive Catalog snapshot size validation - #137

Draft
sidneyswift wants to merge 1 commit into
mainfrom
codex/catalog-snapshot-size-proposal
Draft

sidneyswift wants to merge 1 commit into
mainfrom
codex/catalog-snapshot-size-proposal

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Propose a dedicated Catalog snapshot size refusal after exact-key replay and before mutation, including server-assigned revision digit growth. This preserves the existing 1 MiB bound, original-input fingerprint, arbitrary JSON values, authorization, CAS and table CHECK.

All three files live in proposals/catalog-snapshot-size-2277/, outside migrations. The disposable fixture consumes the unchanged accepted DB125 four-file bundle (3f2c849 plus 7708e337) before applying the proposal. API #1267 pins the exact SQL and tests real error translation, rollback, exact-limit saves, replay and conflicts on PostgreSQL15/17. Independent focused source review passed.

Keep draft, unmerged and unapplied. No runtime grants, workflow/config changes, hosted preview activation, migration apply/dry run or deployment are authorized. Future migration/release composition requires a separate decision.

The earlier temporary DB125 correction was restored by normal revert d657a92; its net tree is identical to 3f2c849. That history remains intact.


Summary by cubic

Proposes a dedicated Catalog snapshot size validation that refuses snapshots over the existing 1 MiB bound before any mutation, and also refuses server-assigned revision digit growth that would exceed the limit. This is an inactive draft proposal for review only, not applied to any runtime environment.

  • Adds proposals/catalog-snapshot-size-2277/ with a SQL function replacement, a disposable fixture, and a README; no migrations or grants are touched.
  • The fixture reuses the accepted DB125 four-file bundle and applies the proposal on top, preserving original fingerprint, authorization, CAS, table CHECK, and arbitrary JSON values.
  • API tests use the exact Git-owned SQL bytes and verify error translation, rollback, exact-limit saves, replay, and conflicts on PostgreSQL 15/17.

Written for commit 5472d76. Summary will update on new commits.

View guided diff Turn on auto-fix

@supabase

supabase Bot commented Nov 18, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project godremdqwajrwazhbrue because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant