Repository navigation
Add pipelines decompile: YAML -> Python pipeline source (v0.1.31) - #76
Merged
Volv-G merged 2 commits intoOct 3, 2026
Conversation
A test that passes no client fell back to a real component-library client, which retries for about a minute per lookup where the network is blocked (CI) and silently answers where it is not. Client creation now yields an unreachable library in those tests; explicit clients are unaffected. Test-only.
Volv-G
force-pushed
the
piforge/tangle-pipeline-crud/yaml-to-python-decompiler-on-mer-fb70506
branch
from
October 3, 2026 02:45
481be8b to
2f03208
Compare
Volv-G
changed the base branch from
piforge/tangle-pipeline-crud/dehydrator-extract-subgraphs-opt-b7f418e
to
master
October 3, 2026 02:45
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.
(AI-assisted)
Part 2 of 2 in a stack. Part 1, #75 (the
extract_subgraphsseam, v0.1.30), is merged as1faa8a4; this PR is restacked onto it and targetsmaster.What
A new
tangle sdk pipelines decompile PIPELINE.yaml -o gen.pycommand, plusdecompile_pipeline_file()/decompile_pipeline(). It turns hydrated or dehydrated pipeline YAML into deterministicpython_pipelinesource. Version 0.1.31.gen.py, and every nested graph becomes a@pipelineingen_subgraphs.py, called throughsubpipeline(fn). Names are allocated one-to-one and collision-free.ref(digest=…)by default.ref(url="resolve://./gen.leaves.yaml#…"), with its only local copy ingen.leaves/.--local-fallbackskeeps the portable form instead: the digest first, with a local copy behind it.gen.components.yaml, whichcompilewrites for@task.@tasksource undergen_tasks/(opt-out:--no-python-tasks). This covers:@task(...)sources, re-exported verbatim;image_id, kept as written, so it is resolved at compile time;unwrapcall sites, regrouped back into dicts..with_position(x, y[, width, height]).position=(x, y).Evidence: exactness and safety
@pipelinerecompiles to its graph's semantic digest.local_from_python, docker/container and downstream resolver kinds,template_fileconfigs, and downstream URI readers.How
pipeline_decompiler.py, withast-only code generation and a node allowlist.pipelines_cli.py.pipeline_hydrator.py: an explicit logger is forwarded only when one is passed.schema_validation.py:location=on validation errors.Failure modes
unsupported-output-name,unsupported-executable-component-sourceandverification-digest-mismatch. Nothing is half-written.--local-fallbacksfor offline-resilient output.Testing
uv build: produces the 0.1.31 sdist and wheel.ruff: clean on the touched files. The repo-wide count is 36, the same as master.git diff --check: clean.2f03208: tests that pass no client get an unreachable library instead of a real API client, which retried for about a minute per lookup in CI. With the network blocked, the decompiler and CLI tests run in 30s.unsupported-documentand 1unsupported-edge-fields.Review focus
_StaticResolution,_static_hydrator)._assert_only_task_substitutions)._python_task,_task_decorator,_interface_matches).