Skip to content

feat(#302): EventBridge email insight kickoff from PurposePath_Api - #303

Merged
mottych merged 1 commit into
devfrom
feature/issue-302-eventbridge-email-kickoff
Apr 9, 2026
Merged

feat(#302): EventBridge email insight kickoff from PurposePath_Api#303
mottych merged 1 commit into
devfrom
feature/issue-302-eventbridge-email-kickoff

Conversation

@mottych

@mottych mottych commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Summary

Implements AI-side EventBridge handshake for email_insight async jobs per issue #302 and email-insights-api-contract.md §3.3–3.6.

Changes

  • Consume purposepath.api / ai.job.requested (env: AI_KICKOFF_EVENT_SOURCE, AI_KICKOFF_DETAIL_TYPE)
  • Idempotent put_if_absent + claim_pending_job for safe duplicate delivery
  • Pulumi: api-ai-job-requested-{stack} rule + Lambda permission
  • API responses: camelCase + queued/running for status polling

Deployment

Merging to dev triggers Deploy Dev workflow including Pulumi up for stack dev.

Testing

  • Unit tests updated/added; targeted pytest green locally.

- Consume purposepath.api / ai.job.requested with validated detail (backend jobId, correlation fields)

- Idempotent put_if_absent + atomic claim_pending_job to avoid duplicate workers

- Pulumi rule + Lambda permission for Api kickoff events

- Job status + execute-async responses use camelCase and queued/running per spec §3.5–3.6

- Config: AI_KICKOFF_EVENT_SOURCE / AI_KICKOFF_DETAIL_TYPE (defaults per spec)

Made-with: Cursor
@mottych
mottych merged commit fdf716d into dev Apr 9, 2026
1 of 2 checks passed
@mottych
mottych deleted the feature/issue-302-eventbridge-email-kickoff branch April 15, 2026 17:56
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