Route Myra routine creation and retargeting through the canonical APIs (CL-7359) - #557
Open
TheGreatAxios wants to merge 4 commits into
Open
Route Myra routine creation and retargeting through the canonical APIs (CL-7359)#557TheGreatAxios wants to merge 4 commits into
TheGreatAxios wants to merge 4 commits into
Conversation
TheGreatAxios
force-pushed
the
cl-7359-myra-routine-tools
branch
from
September 2, 2026 07:44
5cc3f57 to
56bdc71
Compare
TheGreatAxios
force-pushed
the
cl-7359-myra-routine-tools
branch
from
September 2, 2026 08:02
56bdc71 to
175ac8f
Compare
Cover GET /targets on the workflow-run-authenticated routine surface, the routine_targets tool, an ambiguous-name lookup returning every matching candidate without creating anything, and routine_update retargeting via definitionAssetId.
Add GET /targets to the workflow-run-authenticated routine surface, backed by the same listRoutineTargets query the human picker uses — no second implementation. Add a routine_targets tool so Myra resolves a requested workflow's definitionAssetId before creating or updating a routine, and instructs her to surface every candidate and ask the user to choose rather than guessing when a name is ambiguous. routine_update now also accepts definitionAssetId to retarget an existing routine. Source the routine-drafting inventory's workflow list from the same canonical listLaunchableDefinitions query instead of a separately-filtered scan. CL-7359
TheGreatAxios
force-pushed
the
cl-7359-myra-routine-tools
branch
from
September 2, 2026 08:31
175ac8f to
75c3028
Compare
TheGreatAxios
marked this pull request as ready for review
September 2, 2026 11:09
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
GET /targetsto the workflow-run-authenticated routine surface (workflow-routine-routes.ts), backed by the samelistRoutineTargetsthe human picker calls — no second implementation of target discovery.routine_targetstool to@corbits/routines-tools;routine_create/routine_updatedescriptions instruct the model to resolve a requested workflow viaroutine_targetsfirst, and to surface every candidate and ask the user to choose rather than guessing when a name is ambiguous.routine_updatenow also acceptsdefinitionAssetIdto retarget an existing routine.listLaunchableDefinitionsquery instead of a separately-filteredworkflowDefinitionscan.@corbits/routines-toolsto 0.0.8 and the pin inworkflows/assistant/src/index.ts.Linear: https://linear.app/abklabs/issue/CL-7359
Test plan
bunx tsc --noEmit -p packages/routines-tools -p packages/routinesbun test packages/routines-tools packages/routines/src(173 pass)bun run check:tool-package-pinsbun run check:structural(pre-existing tsconfig-references drift on base branch, unrelated to this change)Resolves CL-7359