Skip to content

chore(deletion): accept the outbox table before it exists - #10085

Closed
TheSentinel454 wants to merge 2 commits into
mainfrom
elrond/buzz-803-outbox-pending-table
Closed

TheSentinel454 wants to merge 2 commits into
mainfrom
elrond/buzz-803-outbox-pending-table

Conversation

@TheSentinel454

Copy link
Copy Markdown
Contributor

Summary

The generic outbox adds a tenant-owned outbox table with a community_id column. Community deletion compares the live catalog with an exact list of tables and fails closed on a table it does not know. A relay without this change, running after the outbox migration, would refuse every community deletion with "community deletion catalog drift (missing=, unknown=outbox)". That happens in a mixed fleet during the rollout and after a rollback.

This PR lists outbox in PENDING_SCOPED_TABLES and APPROVAL_FORWARD_TABLES in crates/buzz-db/src/store/deletion.rs, as #9871 did for the search tables. The table has no foreign keys, so purge order does not matter. Nothing else changes: the table does not exist yet and nothing writes to it.

This release must reach every relay, deletion executor and operator CLI before the outbox migration runs (docs/database.md, "Checklist: adding a tenant-owned community_id table").

What got simpler

Nothing yet. This is the required first step. The outbox it prepares for will replace five single-purpose queue tables.

Testing

The existing table-driven tests for pending tables and approval forwarding cover the new entry.

🤖 Generated with Claude Code

The generic outbox adds a tenant-owned `outbox` table with a
`community_id` column. Community deletion compares the live catalog with
an exact list, so a relay without this change would refuse every
community deletion once the outbox migration runs.

List `outbox` in `PENDING_SCOPED_TABLES` and `APPROVAL_FORWARD_TABLES`.
Nothing else changes: the table does not exist yet and nothing writes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Luke Tornquist <tornquist@squareup.com>
@TheSentinel454
TheSentinel454 force-pushed the elrond/buzz-803-outbox-pending-table branch from f999920 to 905b4ad Compare December 1, 2026 21:39
@TheSentinel454
TheSentinel454 marked this pull request as ready for review December 1, 2026 21:39
@github-actions github-actions Bot added the codex-security-review-current The posted Codex security review matches its recorded range. label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🔐 Codex Security Review

Note: This is an automated, security-focused review generated by Codex.
Use it as a supplement to human review; false positives are possible.

Scope

  • Exact PR diff: e9af5fe03f9077ff12ccb646422718c8d97f3ec6...842c658a85076de09c3ad048c821cf6e6714d273
  • Model: gpt-6.1-sol

💡 Click "edited" above to see earlier reviews for this PR.


Review Summary

Overall Risk: NONE

No concrete findings in the authorized PR range. The outbox additions use existing community-scoped purge, verification, and approval compatibility paths.

Findings

No concrete security, correctness, or reliability findings were identified.

Notes

  • Review used read-only inspection. Builds and tests were not run.
  • The future outbox schema and writers are absent from this range and were not assessed.

Generated by Codex Security Review |
Requested by: @TheSentinel454 |
Workflow run

The pending-table test read its table names from PENDING_SCOPED_TABLES,
so a missing or misspelled entry still passed. List the names in the
test and check them against the production list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Luke Tornquist <tornquist@squareup.com>
@github-actions github-actions Bot removed the codex-security-review-current The posted Codex security review matches its recorded range. label Dec 1, 2026
@github-actions github-actions Bot added the codex-security-review-current The posted Codex security review matches its recorded range. label Dec 1, 2026

This branch was successfully deployed

1 active deployment
codex-review — 842c658a Deployed Dec 1, 2026 by TheSentinel454 via Run Codex Security Review #19084
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex-security-review-current The posted Codex security review matches its recorded range.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant