Skip to content

fix(workflows): $last only as a whole reference; required inputs cannot be null - #93

Merged
alexeybe1kin merged 1 commit into
mainfrom
fix/workflow-values
Nov 13, 2026
Merged

alexeybe1kin merged 1 commit into
mainfrom
fix/workflow-values

Conversation

@alexeybe1kin

Copy link
Copy Markdown
Collaborator

Two hunt findings, re-verified on main:

  • toolgate-2 F1 (workflows.py:42): any string starting with $last was treated as a reference, so a literal argument such as $lastname or $last week became the previous step's whole result. Only $last and $last.<path> resolve now, matching how $args. and $vars. already work.
  • toolgate-2 F6 (control_plane.py validate_inputs): {"x": null} for a required field passed, because name in args is true and None skipped every check. A required field that is null now gets "'x' is required". Optional fields may still be null.

Tests: toolgate/tests/test_workflow_values.py. Four cases fail on main (three $last... texts and the null required field); all seven pass here. Full local suite: 1641 passed, 43 skipped (Windows). Ruff ok.

…ot be null

Any string starting with "$last" ("$lastname", "$last week") was replaced by the previous
step's result (toolgate-2 F1); now only "$last" and "$last.<path>" resolve. A required input
sent as null passed validation and skipped every type and bound check (toolgate-2 F6); it is now
reported as required.
@alexeybe1kin
alexeybe1kin merged commit 47584dd into main Nov 13, 2026
4 checks passed
@alexeybe1kin
alexeybe1kin deleted the fix/workflow-values branch November 13, 2026 09:21
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.

1 participant