feat(workflow-executor): propagate run triggerType for observability#1705
Merged
ShohanRahman merged 4 commits intoJul 15, 2026
Merged
Conversation
Add a triggerType ("manual" | "webhook") field to the orchestrator run
envelope and carry it through to step execution. Log it when a run starts
executing for correlation/debugging.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 new issue
|
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Coverage Impact This PR will not change total coverage. Modified Files with Diff Coverage (5)
🛟 Help
|
Introduce a domain TriggerType enum (decoupled from the wire ServerWorkflowTriggerType, mirroring the StepType pattern) and reference enum members everywhere instead of repeating the 'manual'/'webhook' literals. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… comments Export TriggerType directly from its home (validated/execution) in the barrel instead of re-exporting through execution-context, and remove the explanatory comments on the two trigger-type enums. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
christophebrun-forest
approved these changes
Jul 9, 2026
christophebrun-forest
left a comment
Member
There was a problem hiding this comment.
Tests : OK
Ok for me.
ShohanRahman
deleted the
feature/prd-613-executor-propagate-triggertype-observability
branch
July 15, 2026 12:14
forest-bot
added a commit
that referenced
this pull request
Jul 15, 2026
# @forestadmin/workflow-executor [1.17.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/workflow-executor@1.16.0...@forestadmin/workflow-executor@1.17.0) (2026-07-15) ### Features * **workflow-executor:** propagate run triggerType for observability ([#1705](#1705)) ([8365a2e](8365a2e))
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.

Add a triggerType ("manual" | "webhook") field to the orchestrator run envelope and carry it through to step execution. Log it when a run starts executing for correlation/debugging.
Definition of Done
General
Security
Note
Propagate
triggerTypethrough workflow run execution for observabilityTriggerTypeenum (manual,webhook) toexecution.tsand extendsAvailableStepExecutionSchemato require the field.triggerTypefromServerHydratedWorkflowRuninrun-to-available-step-mapper.ts, defaulting tomanualwhen absent.triggerTypeat the start of each step execution inrunner.ts.TriggerTypefrom the package root so consumers can import it directly.AvailableStepExecutionvalidation now requires atriggerTypefield; any existing callers constructing this object without it will fail schema validation.Macroscope summarized 26c8333.