Skip to content

make use of sub flow definition source - #267

Merged
raphael-goetz merged 2 commits into
mainfrom
#252-make-use-of-sub-flow-definition-source
Aug 1, 2026
Merged

make use of sub flow definition source#267
raphael-goetz merged 2 commits into
mainfrom
#252-make-use-of-sub-flow-definition-source

Conversation

@raphael-goetz

Copy link
Copy Markdown
Member

Resolves: #252

Copilot AI review requested due to automatic review settings August 1, 2026 11:16
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/taurus/-/pipelines/2723734124

Status: Passed
Duration: 2 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/15658300462/artifacts/out/index.html

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

This PR extends Taurus’ runtime compilation/execution pipeline to honor definition_source for function-backed sub-flows, routing non-local sub-flow functions to the configured remote runtime (mirroring existing node routing behavior). It also updates fixtures/docs and bumps shared protocol crate versions to support the new SubFlow function shape.

Changes:

  • Route function-backed sub-flow execution to RemoteRuntime when definition_source is non-local, and add remote execution request materialization for function thunks.
  • Update engine/compiler data models to carry an execution target for function thunks, and adjust tests/fixtures accordingly (including a new remote sub-flow fixture).
  • Bump code0-flow and tucana workspace dependency versions and update docs describing routing behavior.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
flows/13_remote_function_subflow.json Adds a new validation flow fixture for remote-dispatched function-backed sub-flows.
flows/12_for_each_function_subflow.json Updates sub-flow function reference shape to the new function { ... } form.
flows/11_function_subflow.json Updates sub-flow function reference shape to the new function { ... } form.
docs/dev.md Updates remote routing documentation to include function-backed sub-flows.
crates/taurus-tests/src/main.rs Adds an optional “remote” fixture and a stub RemoteRuntime to validate remote sub-flow dispatch without NATS.
crates/taurus-tests/README.md Documents how to use the new remote fixture in test cases.
crates/taurus-tests/Cargo.toml Adds async-trait to support the test stub RemoteRuntime implementation.
crates/taurus-core/src/runtime/engine/model.rs Extends compiled function thunk model to include NodeExecutionTarget.
crates/taurus-core/src/runtime/engine/executor.rs Executes function-backed sub-flow thunks locally or remotely based on execution target; builds remote requests for function thunks.
crates/taurus-core/src/runtime/engine/compiler.rs Compiles sub-flow function references with definition_source into local/remote execution targets.
crates/taurus-core/src/runtime/engine.rs Adjusts module visibility to support sharing NodeExecutionTarget outside the engine module.
crates/taurus-core/src/handler/argument.rs Carries execution target through FunctionThunk to enable remote function thunk execution.
Cargo.toml Bumps workspace dependency versions for code0-flow and tucana.
Cargo.lock Updates lockfile for the dependency bumps and new async-trait usage in tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 6 to 10
mod compiler;
mod emitter;
mod executor;
mod model;
pub(crate) mod model;

use tucana::shared::value::Kind;
use tucana::shared::{ListValue, NumberValue, Struct, Value};

use crate::runtime::engine::model::NodeExecutionTarget;
Comment thread docs/dev.md
Comment on lines +167 to +168
In the compiler, a node or function-backed sub-flow is treated as local when
`definition_source` is:
@raphael-goetz
raphael-goetz merged commit 6680665 into main Aug 1, 2026
3 checks passed
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.

Make use of definition_source in SubFlow

2 participants