Fix FD-462: Add action-level idempotency key and conflict policy to pipeline actions#30
Draft
poolside-bot wants to merge 1 commit intomainfrom
Draft
Fix FD-462: Add action-level idempotency key and conflict policy to pipeline actions#30poolside-bot wants to merge 1 commit intomainfrom
poolside-bot wants to merge 1 commit intomainfrom
Conversation
…Action Add two new optional fields to WebhookPipelineAction: - idempotency_key: CEL expression producing a deterministic key for action-level deduplication. Available variables: headers, body, body_json. - conflict_policy: Controls behavior when a workflow with the same idempotency key is already running (terminate_existing, use_existing, fail). The idempotency_key CEL expression is validated at model construction time alongside the existing on/transform validators. Also adds comprehensive tests for the new fields and an example demonstrating idempotent webhook actions (github-pr-sync with terminate_existing policy).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Automated fix for FD-462: Add action-level idempotency key and conflict policy to pipeline actions
Linear Issues
Changes Made
bridge_sdk/models.py: Added idempotency_key (Optional[str]) and conflict_policy (Optional[Literal]) fields to WebhookPipelineAction with CEL validationtests/test_pipeline.py: Added 7 new tests for idempotency key and conflict policy validation, serialization, and edge cases; fixed existing assertion for new nullable fieldsexamples/webhook_example.py: Added github-pr-sync webhook example demonstrating idempotent action with terminate_existing conflict policy