Skip to content

Route Myra routine creation and retargeting through the canonical APIs (CL-7359) - #557

Open
TheGreatAxios wants to merge 4 commits into
cl-7351-target-discoveryfrom
cl-7359-myra-routine-tools
Open

Route Myra routine creation and retargeting through the canonical APIs (CL-7359)#557
TheGreatAxios wants to merge 4 commits into
cl-7351-target-discoveryfrom
cl-7359-myra-routine-tools

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds GET /targets to the workflow-run-authenticated routine surface (workflow-routine-routes.ts), backed by the same listRoutineTargets the human picker calls — no second implementation of target discovery.
  • Adds a routine_targets tool to @corbits/routines-tools; routine_create/routine_update descriptions instruct the model to resolve a requested workflow via routine_targets first, and 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.
  • Sources the routine-drafting inventory's workflow list from the canonical listLaunchableDefinitions query instead of a separately-filtered workflowDefinition scan.
  • Bumps @corbits/routines-tools to 0.0.8 and the pin in workflows/assistant/src/index.ts.

Linear: https://linear.app/abklabs/issue/CL-7359

Test plan

  • bunx tsc --noEmit -p packages/routines-tools -p packages/routines
  • bun test packages/routines-tools packages/routines/src (173 pass)
  • bun run check:tool-package-pins
  • bun run check:structural (pre-existing tsconfig-references drift on base branch, unrelated to this change)

Resolves CL-7359

@TheGreatAxios
TheGreatAxios force-pushed the cl-7359-myra-routine-tools branch from 5cc3f57 to 56bdc71 Compare September 2, 2026 07:44
@TheGreatAxios
TheGreatAxios force-pushed the cl-7359-myra-routine-tools branch from 56bdc71 to 175ac8f Compare September 2, 2026 08:02
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
TheGreatAxios force-pushed the cl-7359-myra-routine-tools branch from 175ac8f to 75c3028 Compare September 2, 2026 08:31
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review September 2, 2026 11:09
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