You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 284e62c
Browse filesBrowse the repository at this point in the historyBrowse files
Add scripted return status support for TestNode mocks
Introduce `return_status_script` on TestNodeConfig, allowing a mock's
completion status to be computed at runtime from blackboard state instead
of being fixed. When set, it takes precedence over `return_status`; it may
reference the NodeStatus names (SUCCESS/FAILURE/...) and is rejected if it
resolves to IDLE.
The NodeStatus enum names are injected only into the return_status_script
environment. The pre-existing success_script/failure_script/post_script
continue to evaluate against the node's own enums, so a blackboard entry
named like a status (e.g. "SUCCESS") is not shadowed.
Also add JSON validation rejecting a TestNodeConfig with neither a
return_status nor a return_status_script, and a tutorial example
(t15_nodes_mocking_strict_failure) demonstrating the strict-failure flow.
Addresses #995.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments