Skip to content

bd-workflows: implement type-based routing within the workflow engine - #577

Open
snowp wants to merge 4 commits into
mainfrom
sp/workflow-log-type-routing
Open

bd-workflows: implement type-based routing within the workflow engine #577
snowp wants to merge 4 commits into
mainfrom
sp/workflow-log-type-routing

Conversation

@snowp

@snowp snowp commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Instead of always evaluating all workflows for all logs, this tracks a running set of candidate workflows based
on the log type of the log. This allows us to bypass workflows whose next match transitions require a different
log type than the inbound log

Fixes BIT-9477

Instead of always evaluating all workflows for all logs, this tracks a running set of candidate workflows based
on the log type of the log. This allows us to bypass workflows whose next match transitions require a different
log type than the inbound log
@snowp
snowp requested a balanced review from Copilot August 7, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds log-type-aware workflow routing to avoid evaluating workflows that cannot match an incoming log.

Changes:

  • Adds conservative matcher log-type inference.
  • Introduces and integrates a workflow candidate router.
  • Adds routing and integration tests.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
bd-workflows/src/workflow.rs Computes routes from active workflow state.
bd-workflows/src/test.rs Supports typed test logs.
bd-workflows/src/routing.rs Implements candidate routing.
bd-workflows/src/routing_test.rs Tests route selection and refreshes.
bd-workflows/src/lib.rs Registers the routing module.
bd-workflows/src/engine.rs Integrates routing into event processing.
bd-workflows/src/engine_test.rs Tests routing across workflow transitions.
bd-workflows/src/engine_test_helpers.rs Propagates test log types.
bd-workflows/src/config.rs Aggregates configured log types.
bd-log-matcher/src/matcher.rs Adds log-type sets and matcher inference.
bd-log-matcher/src/matcher_test.rs Tests type sets and inference.

snowp and others added 3 commits August 7, 2026 09:31
Co-Authored-By: GPT-5 <codex@openai.com>
Co-Authored-By: GPT-5 <codex@openai.com>
Co-Authored-By: GPT-5 <codex@openai.com>
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.

2 participants