Context
Issue #429 ships workflow templates v1 (file-based catalog, slot parameterization, guided instantiation -- see the plan of record posted there). The v1 plan deliberately deferred eight themes. This issue makes them the v2 scope: they are REQUIRED, not nice-to-haves.
Scope (all items required)
- "Save as template" from an existing workflow -- slot inference over a concrete graph (agents, actions, roles, events, channels become declared slots); authoring UX in the designer.
- Hub/plugin-distributed templates -- templates as a distributable artifact (hub.omadia.ai / plugin packages), WITH the security review the v1 plan called out: the plugin surface has no template capability today, so the capability model, validation on import, and trust boundaries must be designed, not assumed.
- DB-backed template storage -- move from bundled JSON assets to persisted, user-authored templates (conductor migration chain; next free number must be re-verified at build time).
- Gallery discovery: categories/search + graph preview -- facets over
useCase, text search, and a graph preview/thumbnail per template.
- Builder-chat template awareness -- the Conductor builder agent can propose, fetch, and prefill templates in chat.
- Instantiation telemetry + community submission/ratings -- usage signals per template; a submission path for user templates (review gate before they become shared).
- Slot substitution inside prompt/message text -- extend
slot:<kind>:<key> (or a text-level variant) into prompt/message strings, without colliding with the existing {{...}} run-context interpolation.
- Template versioning / update propagation -- versioned manifests and an explicit, opt-in update path for instances (v1 contract is copy-not-reference; any propagation must be deliberate and reviewable).
Constraints
Context
Issue #429 ships workflow templates v1 (file-based catalog, slot parameterization, guided instantiation -- see the plan of record posted there). The v1 plan deliberately deferred eight themes. This issue makes them the v2 scope: they are REQUIRED, not nice-to-haves.
Scope (all items required)
useCase, text search, and a graph preview/thumbnail per template.slot:<kind>:<key>(or a text-level variant) into prompt/message strings, without colliding with the existing{{...}}run-context interpolation.Constraints
@omadia/conductor-core, catalog loader, routes, gallery UI). Until Conductor: define reusable use-case workflows ("Paperclip Process") #429's PR is merged, work stacks on its branch.GET /templates+resolve; the v2 changes must keep that contract stable or version it explicitly.