Add experimental ZenBabel portable JSON steps#4836
Draft
strickvl wants to merge 9 commits into
Draft
Conversation
Contributor
|
|
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.
Summary
This PR adds an experimental ZenBabel Level 1 path for portable JSON step execution.
The goal is intentionally narrow: keep ZenML's existing Python control plane and orchestrator model, but allow a static pipeline step body to be executed by a non-Python command, demonstrated with TypeScript.
Concretely, this adds:
StepExecutionSpeconStepSpecfor language/protocol/command/source identity metadatazenml-portable-json-v1protocolPortableStepRunnersibling toStepRunnerthat stages JSON inputs, launches a subprocess, reads JSON outputs, and stores results through the existing materializer pathStepLauncherrouting for portable JSON steps while keeping normal Python steps unchangedzenml.zenbabelnamespace with adapter/importer/authoring helpersexamples/zenbabel_mixed_static/Why
This is a proof of the execution seam for future multi-language ZenML support.
The important architectural claim is not that ZenML has a production TypeScript SDK yet. It does not. The claim is that an existing ZenML orchestrator can still schedule the normal Python entrypoint, and the final step-body execution can route to a portable subprocess when a step declares
zenml-portable-json-v1.That keeps the stack/orchestrator model intact while giving us a concrete substrate for later TypeScript-authored pipelines.
Current limitations
This is experimental and deliberately limited:
Validation
Local checks run during the branch work included:
uv run ruff check examples/zenbabel_mixed_static/run.pyuv run ruff format --check examples/zenbabel_mixed_static/run.pyuv run python examples/zenbabel_mixed_static/run.py --compile-onlyThe Kubernetes validation ran the full pipeline shape:
Reviewer notes
The highest-value review areas are:
StepExecutionSpecis the right place/shape for portable execution identity.StepLauncherkeeps enough of the existing bookkeeping path intact.PortableStepRunneris strict enough about JSON boundaries and subprocess failures.zenml.zenbabelnamespace makes the example readable without implying stable SDK support.