Skip to content

Propose inactive exact catalog snapshot source retention - #142

Draft
sidneyswift wants to merge 2 commits into
mainfrom
codex/catalog-snapshot-handoff-2207
Draft

sidneyswift wants to merge 2 commits into
mainfrom
codex/catalog-snapshot-handoff-2207

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Propose an immutable catalog source record bound to the original fenced assistant anchor, source revision 1, exact canonical query/observation bytes and rendered surface bytes. Same-writer exact-byte repeats are idempotent; changed bytes conflict. Message updates preserve the retained surface.

Retention now also requires the assistant message_epochs row to match message, chat and current/captured epoch before source authorization or identical receipt replay. A new writer cannot adopt an earlier assistant merely by reusing its ID and bytes.

This is source-only under proposals/, outside migrations. The source-authority adapter always denies and no role receives EXECUTE. It requires the existing disabled chat-fence and durable-surface proposals, a qualified transactional authorization/withdrawal adapter and lifecycle/concurrency qualification before adoption. No SQL was executed or applied; no registry, enrollment or deployment was activated.

Validation: five static source-boundary tests pass, including a regression demonstrated failing against the original proposal; diff checks and Python syntax checks pass. Five deferred PostgreSQL regression cases were added for current-epoch success/exact replay and prior/missing/foreign-chat generation refusal. They default to skipped and were not executed under the existing SQL hold. These checks are not SQL runtime or concurrency proof. Companion API #1290 remains unchanged and default off. Current history and working-surface save/reopen remain outside this slice. Coordinator owns integration and release; independent re-review is pending.

@supabase

supabase Bot commented Nov 19, 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 19, 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