PIR: Clear emailExtractedData on step completion#8612
Merged
landomen merged 1 commit intoMay 26, 2026
Conversation
This was referenced May 19, 2026
Contributor
Author
bc869a1 to
f6b07d2
Compare
This was referenced May 20, 2026
f6b07d2 to
73245d0
Compare
0fa4b73 to
d736d56
Compare
73245d0 to
733cabf
Compare
Contributor
Author
733cabf to
490a00a
Compare
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.

Task/Issue URL: https://app.asana.com/1/137249556945/task/1213993026941875?focus=true
Description
Clear
emailExtractedDataon step completionSteps to test this PR
Will be testable on later PRs once the whole feature is complete
UI changes
No UI changes
Note
Low Risk
Small state-reset change in the PIR runner with a focused unit test; no auth or external API changes.
Overview
When a broker step finishes, the PIR actions runner now resets
emailExtractedDatato an empty map in the same transition that already clearsgeneratedEmailDataand advances to the next step—so values like verification codes from email polling do not carry into the next broker step’s actions.A unit test was updated to seed non-empty
emailExtractedDataand assert the post-completion state is empty.Reviewed by Cursor Bugbot for commit 490a00a. Bugbot is set up for automated code reviews on this repo. Configure here.