Add generic runtime package run contract#352
Merged
Merged
Conversation
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
agents/run-runtime-packagedispatcher for portable agent package workflow execution.Boundary decision
Agents API is the correct first upstream owner for the generic contract because it already owns core-safe agent package/workflow/runtime vocabulary and must stay free of concrete runtime execution. WP Codebox should implement the handler for sandbox/materialization. Homeboy Extensions should map workflow/provider config to this canonical ability once a handler exists.
Verification
php tests/runtime-package-run-contract-smoke.phpphp tests/runtime-agent-bundle-importer-smoke.phpphp tests/workflow-runner-smoke.phpphp tests/no-product-imports-smoke.phpcomposer testcomposer phpstanwas attempted but could not run becausephpstanis not installed in this worktree (sh: phpstan: command not found).Downstream adoption
wp_agent_runtime_package_run_handlerand translatepackage+workflowinto its runtime materialization/execution path, returning the normalized result envelope.agents/run-runtime-packageinstead of product-specific ability names and preserve evidence refs from the returned envelope.datamachine/run-agent-bundleruntime tasks withagents/run-runtime-packageinputs (package.source,workflow.idorworkflow.spec,input,options,metadata,replay).AI assistance