Fix step execution status classification - #2267
Merged
Merged
Conversation
Contributor
Homeboy Results —
|
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
StepExecutionResultclassifier so live execution and debug sync classify step success from explicit execution metadata instead of packet presence alone.tool_result_envelopeandtool_result_data, withToolResultFinderowning legacymetadata.tool_resultcompatibility.dataandresult, and keep Publish/Upsert consuming the projected handler-result contract.Fixes #2263.
Tests
php -l inc/Core/StepExecutionResult.php && php -l inc/Abilities/Engine/ExecuteStepAbility.php && php -l inc/Engine/Debug/SyncRunner.php && php -l inc/Core/Steps/AI/AIStep.php && php -l inc/Engine/AI/Tools/ToolResultFinder.php && php -l inc/Core/AbilityResult.php && php -l inc/Engine/AI/conversation-loop.php./vendor/bin/phpcs inc/Core/StepExecutionResult.php inc/Core/AbilityResult.php inc/Engine/AI/conversation-loop.php inc/Core/Steps/AI/AIStep.php inc/Engine/AI/Tools/ToolResultFinder.php inc/Core/Steps/Publish/PublishStep.php inc/Core/Steps/Upsert/UpsertStep.php inc/Abilities/Engine/ExecuteStepAbility.php inc/Engine/Debug/SyncRunner.php tests/job-status-accounting-smoke.php tests/ai-error-status-propagation-smoke.php tests/transition-fanout-policy-smoke.php tests/step-exception-failure-contract-smoke.php tests/ability-result-wp-error-smoke.php tests/Unit/Engine/AI/Tools/ToolResultFinderTest.php tests/Unit/Core/Steps/AI/AIStepTest.phpphp tests/ability-result-wp-error-smoke.php && php tests/job-status-accounting-smoke.php && php tests/ai-error-status-propagation-smoke.php && php tests/transition-fanout-policy-smoke.php && php tests/upsert-handler-result-handoff-smoke.php && php tests/ai-completion-assertion-packet-smoke.php && php tests/step-exception-failure-contract-smoke.phpphp -r 'define("ABSPATH", __DIR__ . "/"); require "inc/Engine/AI/Tools/ToolResultFinder.php"; $entry = array("metadata" => array("tool_result_envelope" => array("success" => true, "data" => array("id" => 123)), "tool_result_data" => array("id" => 456))); if (array("id" => 456) !== DataMachine\\Engine\\AI\\Tools\\ToolResultFinder::projectResultData($entry)) { exit(1); }'Notes
homeboy test --path /Users/chubes/Developer/data-machine@fix-step-execution-status-contract --extension wordpresscould not run because Homeboy auto-selected lab runnerlab, which is missing requiredphpandcomposertools.AI assistance