r.defineEvent(...)
Overview
Section titled “Overview”r.defineEvent(name, schema, options?) — registers an event payload
shape and returns the qualified EventDef, so callers pass .name to
ctx.appendEvent instead of hand-building <feature>:event:<short>.
options.version declares the CURRENT schema generation (default 1);
bump it together with an r.eventMigration step — the framework refuses
to boot if the chain from 1 to the current version has gaps.
From packages/framework/src/engine/feature-ast/patterns.ts -> DefineEventPattern