Skip to content

Carry registered schema slices through boot - #259

Closed
tylercschneider wants to merge 4 commits into
mainfrom
fix/boot-preserves-registered-slices
Closed

tylercschneider wants to merge 4 commits into
mainfrom
fix/boot-preserves-registered-slices

Conversation

@tylercschneider

Copy link
Copy Markdown
Collaborator

One Sentence Summary

A developer whose gem registers its own events no longer loses them when the host application boots.

ACs Covered

  • An event registered by a pack before boot still resolves after boot.
  • A slice registered after boot resolves alongside the host catalog.
  • An event carried by both the host catalog and a registered slice does not stop boot.

Decision Log

When boot carries a registered slice into the new registry, what happens to an event the committed catalog already has?

The catalog's entry wins and the slice's duplicate is skipped, over raising DuplicateEventNameError and refusing to boot.

Code Example

Not relevant.

Out of Scope

Not relevant.

Ticket Billed Against

Not specified.


Generation Metadata

Scribe: pr-scribe 96461d7
Rules: pr-body de72862, writing-style f190206
Model: claude-opus-5[1m], cc 2.1.261

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V

tylercschneider and others added 4 commits September 5, 2026 21:03
boot_from_schema! replaced the global registry with a fresh one
holding only the host catalog, so every schema registered by
register_slice! during initialization was discarded before the
app served a request.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
Passed on arrival; it holds the order-independence the carry-over
is there to give.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
Verified failing without the duplicate guard with
DuplicateEventNameError.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
@tylercschneider

Copy link
Copy Markdown
Collaborator Author

Closing unmerged. Reverting the related change on main.

@tylercschneider
tylercschneider deleted the fix/boot-preserves-registered-slices branch September 6, 2026 01:46
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