Skip to content

Fix versioned event lookup after booting from the catalog - #258

Merged
tylercschneider merged 4 commits into
mainfrom
fix/registry-type-confusion
Sep 6, 2026
Merged

tylercschneider merged 4 commits into
mainfrom
fix/registry-type-confusion

Conversation

@tylercschneider

Copy link
Copy Markdown
Collaborator

One Sentence Summary

A developer using the gem can ask for a specific version of an event when emitting it, instead of hitting an error.

ACs Covered

  • An event is resolvable by explicit version after booting from the committed catalog.
  • Emitting an event with an explicit version builds that version, the option the README documents.
  • A registry that has been reset can register events again.

Decision Log

Should the twelve open issues be closed or deleted?

They were deleted, over closing them, since the board is being rebuilt from what the code actually says.

Should the JSON loader keep returning a registry, or return the schema its callers assign?

It now returns an EventSchema, over unwrapping the registry at each call site, so the value matches what load_from_schema! stores.

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

tylercschneider and others added 4 commits September 5, 2026 19:42
EventSchemaJsonLoader returned a SchemaRegistry, which
load_from_schema! stored where an EventSchema belongs, so a
versioned lookup after boot called schema_for on a registry
and raised NoMethodError.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
reset! left @event_schema as a plain Hash, so registering into a
reset registry raised NoMethodError.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJgL65rDiKpStHjHEKPo5V
Verified failing against the previous loader with
NoMethodError: undefined method `schema_for'.

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
tylercschneider merged commit 578b487 into main Sep 6, 2026
3 checks passed
@tylercschneider
tylercschneider deleted the fix/registry-type-confusion branch September 6, 2026 01:02
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