Fix top Investor Signals review blockers - #1
Merged
jliounis merged 1 commit intoJul 18, 2026
Merged
Conversation
jliounis
marked this pull request as ready for review
July 18, 2026 01:49
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.
Why this change
PR parallel-web#53 has three failure modes that can break a workflow or present research under the wrong field.
1. Bulk polling loses the job ID
The start endpoint returns
job_id, but the status endpoint did not. The frontend replaces its job state with each status response, so after the first poll the next request and CSV export used an undefined ID.Fix: Include
job_idin every status response. The backend now returns the completeBulkJobcontract expected by callers.2. Failed webhooks cannot retry
The receiver marked a webhook ID as seen before processing began. If research, CRM lookup, Slack delivery, or request cancellation failed, Parallel retried the delivery but the receiver discarded it as a duplicate. That could silently lose a signal.
Fix: Validate first, reserve the ID immediately before side effects, and release the reservation on errors or cancellation. Concurrent duplicates remain blocked while failed deliveries remain retryable.
3. Custom answers can be assigned to the wrong question
Answer matching tried the echoed question first, then fell back to array position. If the model omitted an earlier answer, a later cited answer could be attached to the wrong field.
Fix: Match only by the required echoed question. Unmatched answers now return null, preserving the recipe's no-misattribution rule.
Scope
This is a narrow stacked fix for the top three review findings. It does not address the remaining follow-up findings from the PR parallel-web#53 review.
Validation
pip checkpassedgit diff --checkpassedStacked on parallel-web#53 at
3191250.