fix(eda): align event context modeling - #56
Conversation
yordis
commented
May 26, 2026
- Event guidance needs a clearer boundary between immutable record metadata, event context, and domain payload.
- Causality and occurrence time guidance needs to preserve auditability without forcing generic context into business payload fields.
- Schema identity guidance needs one canonical discriminator so event routing and decoding cannot drift across duplicate version fields.
PR SummaryLow Risk Overview Who / when / causality: Generic Schema identity: Replaces “no version in the event name, use New review rules: Actor context enforcement at the append boundary, ownership vs Reviewed by Cursor Bugbot for commit 6db3e83. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
More reviews will be available in 43 minutes and 12 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR updates the event-name skill documentation to revise event-naming and event-payload-field conventions. Changes clarify three-layer separation (metadata/envelope/payload), strengthen event-type discrimination, rework What/Who/When fielding to rely on context fields for routing and audit, expand record-layer validation and enforcement guidance, and consolidate supporting conventions and review checklist items. ChangesEvent naming and payload field conventions
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e8385e9 to
ad5af4d
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
plugins/trogonstack-eda/skills/event-name/SKILL.md (1)
296-297: ⚡ Quick winClarify the temporal suffix exception to avoid checklist contradictions.
Line 296 allows
scheduled_for, but Line 478 enforces only_at/_on. Please explicitly document the exception (or removescheduled_for) so reviewers apply one rule consistently.Also applies to: 478-478
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@plugins/trogonstack-eda/skills/event-name/SKILL.md` around lines 296 - 297, The docs conflict: Line referencing allowed names (mentions scheduled_for) contradicts the rule enforcing only `_at`/`_on`; update SKILL.md so the temporal-suffix rule is unambiguous by either (A) explicitly adding `scheduled_for` as an accepted exception alongside the payload-business-time examples (`effective_at`, `expires_at`, `starts_at`) and note it is allowed only in payload, or (B) removing `scheduled_for` from the earlier example and replacing it with a `_at` form (e.g., `scheduled_at`) so both the line that lists examples and the rule that enforces only `_at`/`_on` are consistent; make the change wherever `scheduled_for`, `_at`, or `_on` are referenced so reviewers apply a single rule consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@plugins/trogonstack-eda/skills/event-name/SKILL.md`:
- Around line 296-297: The docs conflict: Line referencing allowed names
(mentions scheduled_for) contradicts the rule enforcing only `_at`/`_on`; update
SKILL.md so the temporal-suffix rule is unambiguous by either (A) explicitly
adding `scheduled_for` as an accepted exception alongside the
payload-business-time examples (`effective_at`, `expires_at`, `starts_at`) and
note it is allowed only in payload, or (B) removing `scheduled_for` from the
earlier example and replacing it with a `_at` form (e.g., `scheduled_at`) so
both the line that lists examples and the rule that enforces only `_at`/`_on`
are consistent; make the change wherever `scheduled_for`, `_at`, or `_on` are
referenced so reviewers apply a single rule consistently.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f88fe09c-6e21-4904-b8b2-0421e5aaccdd
📒 Files selected for processing (1)
plugins/trogonstack-eda/skills/event-name/SKILL.md
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
ad5af4d to
6db3e83
Compare