Serve what starts a workflow instead of re-deriving it in the dashboard #1960

Closed
opened 2026-11-13 03:35:43 +00:00 by sam · 2 comments
Owner

What is wrong

The workflow editor's trigger card works out which other workflows start this one (workflow.call, workflow.handoff, workflow.approve) by parsing every definition in the browser (ui/src/workflows/workflow-triggers.ts, startsVia and resultChoices). That re-implements the engine's call semantics client-side, so a change to those step types can silently make the card wrong.

Wanted

The control plane serves, per workflow, what starts it: intake routes, bindings, schedules, playbooks and the workflows that call, hand off to or approve into it, from the same code the engine uses. The dashboard renders that list.

Done when

  • The trigger card's "started by" entries come from the server.
  • startsVia and resultChoices are deleted from the UI.
## What is wrong The workflow editor's trigger card works out which other workflows start this one (`workflow.call`, `workflow.handoff`, `workflow.approve`) by parsing every definition in the browser (`ui/src/workflows/workflow-triggers.ts`, `startsVia` and `resultChoices`). That re-implements the engine's call semantics client-side, so a change to those step types can silently make the card wrong. ## Wanted The control plane serves, per workflow, what starts it: intake routes, bindings, schedules, playbooks and the workflows that call, hand off to or approve into it, from the same code the engine uses. The dashboard renders that list. ## Done when - The trigger card's "started by" entries come from the server. - `startsVia` and `resultChoices` are deleted from the UI.
sam added the mediumtask labels 2026-11-13 03:35:43 +00:00
Author
Owner

Also serve each step type's title with the vocabulary (x-step-types carries name, needs_repository and settings only), so ui/src/workflows/workflow-graph.ts TYPE_TITLES can go.

Also serve each step type's title with the vocabulary (x-step-types carries name, needs_repository and settings only), so ui/src/workflows/workflow-graph.ts TYPE_TITLES can go.
Author
Owner

Done in 841c6aea. workflow.StartedBy reads every definition with the engine's own step settings (call's workflow, handoff's target including every value of a templated agent-result enum, approve's then), and /api/workflows serves started_by on each definition. The trigger card renders that list; startsVia and resultChoices are deleted from the UI. Checked end to end on a rebuilt archie-ui: implement lists feasibility (approve) and triage (handoff). Step titles are split out as their own follow-up, since moving the table server-side changes nothing visible. task check passed.

Done in 841c6aea. workflow.StartedBy reads every definition with the engine's own step settings (call's workflow, handoff's target including every value of a templated agent-result enum, approve's then), and /api/workflows serves started_by on each definition. The trigger card renders that list; startsVia and resultChoices are deleted from the UI. Checked end to end on a rebuilt archie-ui: implement lists feasibility (approve) and triage (handoff). Step titles are split out as their own follow-up, since moving the table server-side changes nothing visible. task check passed.
sam closed this issue 2026-11-13 07:01:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1960