Skip to content

fix(feature_flags,sharing): keep durable handler names stable across the layout move - #843

Merged
antosubash merged 2 commits into
mainfrom
fix/layout-durable-names
Nov 5, 2026
Merged

antosubash merged 2 commits into
mainfrom
fix/layout-durable-names

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

  • Durable outbox rows are keyed by the handler name, which defaults to the handler's import path. The layout moves refactor(feature_flags): follow the module layout (moves only) #834 (feature_flags) and refactor(sharing): follow the module layout (moves only) #836 (sharing) changed it for their tenant/user cleanup handlers, so undelivered rows would retry as unknown handlers and go dead.
  • Pin the pre-move names via constants: feature_flags.tenant_cleanup.purge_tenant_data, sharing.tenant_cleanup.purge_tenant_data, sharing.user_cleanup.purge_user_shares (verified against the pre-move paths).
  • Add host/tests/test_durable_wire_names.py, freezing every durable event key and handler name (modules registered as the worker does, register_event_handlers(bus, None), plus the framework's register_tenant_cleanup). Rule added to docs/module-layout.md.

Notes

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

…the layout move

Durable outbox rows are keyed by the handler's import path. The layout
moves (#834, #836) changed it for feature_flags' and sharing's tenant and
user cleanup handlers, so rows still waiting for delivery would retry as
unknown handlers and go dead. Pin the old names as constants, freeze every
durable event key and handler name in host/tests/test_durable_wire_names.py,
and add the rule to the module-layout checklist. Neither move has been
released.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: fd9aab0
Status: ✅  Deploy successful!
Preview URL: https://c6a80e5c.simple-module-python.pages.dev
Branch Preview URL: https://fix-layout-durable-names.simple-module-python.pages.dev

View logs

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-05T18:24:15.806745Z fd9aab0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@antosubash
antosubash merged commit 1b2cdcf into main Nov 5, 2026
16 checks passed
@antosubash
antosubash deleted the fix/layout-durable-names branch November 5, 2026 18:31
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