Skip to content

fix(BCH-1147): emit started evidence synchronously at trigger time#397

Open
saltpy-cs wants to merge 2 commits into
mainfrom
fix/state-race-condition
Open

fix(BCH-1147): emit started evidence synchronously at trigger time#397
saltpy-cs wants to merge 2 commits into
mainfrom
fix/state-race-condition

Conversation

@saltpy-cs
Copy link
Copy Markdown

Add an optional evidence creator to the Manager so that "started" evidence is emitted immediately when StartWorkflowExecution is called, closing the timing gap that existed between execution creation (status=pending, startedAt populated) and the async in_progress transition where evidence was previously wired. Add tests capturing the bug and the nil-creator safety path.

…r time

Add an optional evidence creator to the Manager so that "started" evidence
is emitted immediately when StartWorkflowExecution is called, closing the
timing gap that existed between execution creation (status=pending,
startedAt populated) and the async in_progress transition where evidence
was previously wired. Add tests capturing the bug and the nil-creator
safety path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saltpy-cs saltpy-cs requested a review from gusfcarvalho May 20, 2026 13:22
@saltpy-cs saltpy-cs self-assigned this May 20, 2026
…completed evidence

SetEvidenceCreator was never called on the workflow manager, so started
evidence was never emitted at trigger time. Also removes the duplicate
completed evidence emission from UpdateStatus — completion evidence is
already written via AddExecutionCompletionEvidence in the executor, which
uses correct timestamps and richer metadata.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saltpy-cs
Copy link
Copy Markdown
Author

Screenshot 2026-05-21 at 09 13 05

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