Draft
Add mutable runtime recipe variables with step-time resolution and explicit nested export#1180
Conversation
Co-authored-by: ebhills <53243273+ebhills@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add mutable runtime variables for Wrangles recipes
Add mutable runtime recipe variables with step-time resolution and explicit nested export
Sep 11, 2026
ebhills
requested review from
mborodii-prog and
thomasstvr
and removed request for
ebhills
September 11, 2026 16:52
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.
Linked issue
Implements general-purpose mutable runtime variables in a separate PR from #1179; this branch does not include or depend on attachment/feature-branch changes from that draft.
What changes
Adds an opt-in runtime variable system so recipes can set/mutate values during execution, bind action return values, and consume current values in later steps (including
on_start -> read/wrangles/write) without changing existing static${...}behavior.Runtime variable model
${runtime.name}and${runtime.name.path}\${runtime...})Mutation + result binding
variablesrun action:set(atomic assignment)update(deep merge for dict values)mark_secretinspect/max_itemsresult_variableto capture connector/action return values into runtime state (excluded from connector args)Isolation and export semantics
recipe.run()invocationexport_runtime_variablesonrecipeconnectorexport_conflict_policy: error|overwriterow_count,column_count,columns,df,recipe_variables,applied_permission_group, internal runtime keys)Inspection/logging safety
logwrangle supportsruntime_variablesandruntime_max_itemsSchema/docs/tests
result_variablevariablesHow it was verified
Focused suites covering runtime behavior and regressions:
tests/recipes/test_run.pytests/recipes/test_variables.pytests/connectors/test_recipe.pytests/connectors/test_concurrent.pytests/connectors/test_matrix.pytests/recipes/wrangles/test_main.pylog/python/matrix casesparallel_validationrun (CodeQL clean; code-review subtool unavailable in this environment)Compatibility and risk
${variable}remains load-time/static; mutable behavior is opt-in via${runtime...}andvariablesaction.recipe.run()calls unless explicitly exported.Ready-for-review checklist
mainand has no merge conflictsSee the pull request workflow.