feat(surface,sdk): provider-specific event triggers via codegen (#346) - #351
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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 |
maintainability lens — PASSMaintainability review — PR #351Concerns
Notes
REVIEW_PASSED |
history lens — PASSBlockers: none. PR #351 passes the HISTORY lens. Notes
Concerns — nonblocking
REVIEW_PASSED |
structure lens — MISSING |
|
🎯 review-swarm: FAILED (M:pass H:pass S:missing) Lens transcripts posted as sibling comments above. |
Closes #346. Delivered via implement-slice.flow.ts (flows-driven dogfood, mixed codex/claude).
Note
Medium Risk
Touches webhook ingress validation and trigger lowering on the event path; mistakes could mis-route or accept bad envelopes, though path authority and fail-closed checks are explicit.
Overview
Adds mapping-driven Slack/GitHub trigger declarations on the surface (
slack.mention,github.pull_request, etc.), generated byscripts/generate-triggers.mjsfrom adapter YAML, plus new@relayflows/surface/triggersexports and docs forflow.on(...)provider subscriptions.The SDK lowers those sources with
webhookTriggerSpecinto the existing inbox executor contract (executor name = provider, optional payloadpattern) and validatesPOST /providers/<provider>envelopes viaproviderInboxEventbefore atomic writes toinbox/<provider>/. GenericPOST /<name>behavior is unchanged.Tests cover codegen drift checks, envelope validation, kernel CLI isolation/dedupe, and extended HTTP/daemon flows;
docs/evidence/spec-Xcaptures verification logs (full SDK suite still red on sandbox socketEPERM, with targeted provider tests green separately). No kernel production code changes.Reviewed by Cursor Bugbot for commit 5abac69. Bugbot is set up for automated code reviews on this repo. Configure here.