---
path: /studio/isis/workflow-definitions
surface: studio
domain: isis
auth: signed-in + studio entitlement (NOT AAA-gated)
source: apps/oshun/web/src/app/studio/isis/workflow-definitions/page.tsx
status: walked
last_walked:
  '2026-05-29 automated runtime walk (Playwright headless) — render, /v1 data
  (2xx), console/page-errors, expected content, screenshot verified; live
  screen-reader, touch, offline, and telemetry-delivery checks pending a manual
  AT pass. Evidence: WALKTHROUGH/results/runtime-sweep-2026-05-29.md; body
  re-derived 2026-06-03 from current source (lane-console architecture)'
---

# Isis Workflow Definitions

## Purpose

Admin read-only lane console that browses the real `@isis/workflows`
`WORKFLOW_REGISTRY` (the approved ComfyUI generation workflow classes) via
`GET /v1/admin/isis/workflow-definitions`: it shows registry stats (counts by
category / GPU / output type, mean estimated time, unique tags) plus free-text /
category / GPU filters. It is admin-scoped and fails closed.

## Entry points

- Sibling quick-action from `/studio/isis/job-management`
- Studio index (`/studio`)
- Direct URL / bookmark

## Layout regions

`page.tsx` mounts `<ShellLayout active="studio">` (no breadcrumb panel) and three
panels: the workspace, the Route Map, and sibling quick-actions.

- **Header**: shell header
- **Workspace panel** (`data-isis-workflow-definitions-workspace`):
  - `<h1>` (`WorkspaceHeading`) "Isis Workflow Definitions Workspace"
  - Summary paragraph (`data-isis-workflow-definitions-summary`)
  - Registry stats (`data-workflow-stats`)
  - Filter controls (search + category + GPU)
  - Definitions list (`data-workflow-list`, each `data-workflow-entry`); empty
    state `data-workflow-empty`
- **Route Map panel** (`data-isis-workflow-definitions-route-map`): `<h2>Route
  Map</h2>` over `STUDIO_ISIS_WORKFLOW_DEFINITIONS_ROUTE_MAP` (5 entries)
- **Sibling quick-actions panel**: `/studio/isis/job-management`, `/studio`

## States

- [ ] **Loading** — `data-workflow-loading`
- [ ] **Unauthorized** — 401/403 admin-scope fail-closed;
      `data-workflow-unauthorized`
- [ ] **Error** — non-OK or malformed response; `data-workflow-error`
- [ ] **Ready** — registry present; stats + filters + list render
- [ ] **Empty** — no entries match the active filters; `data-workflow-empty`

## Interactions

### Filters (refetch with query params)

- [ ] **Search (name, tags)** (`data-workflow-search`, input,
      `aria-label="Search workflow definitions"`)
- [ ] **Category** (`data-workflow-category-filter`, `<select>`; "All" option)
- [ ] **GPU** (`data-workflow-gpu-filter`, `<select>`; "All" option)
- Each filter change re-issues `GET /v1/admin/isis/workflow-definitions?…`

### Route Map

- [ ] **Route-map articles** ×5

### Sibling quick-actions

- [ ] **Open Isis Job Management workspace** → `/studio/isis/job-management`
- [ ] **Back to Studio workspace index** → `/studio`

## Data & contracts

- **Reads**: `GET /v1/admin/isis/workflow-definitions` (registry entries + stats;
  search / category / GPU filters passed as query params)
- **Writes**: none — this is a read-only registry browser
- **Realtime**: none
- **Caching**: client fetch on mount, `cache: 'no-store'`, `buildBffAuthHeaders()`
- **Auth/role check**: admin-scoped, fail-closed (401/403); route gated on
  signed-in + studio entitlement
- **Component sources**:
  - `apps/oshun/web/src/components/studio/StudioIsisWorkflowDefinitionsWorkspace.tsx`
  - `apps/oshun/web/src/components/studio/StudioIsisWorkflowDefinitionsRouteMap.ts`

## Cross-references

- Studio overview: [`../../studio-overview.md`](../../studio-overview.md)
- Sibling routes:
  - [`studio-isis-job-management.md`](./studio-isis-job-management.md)
  - [`studio-isis-workflow-versioning.md`](./studio-isis-workflow-versioning.md)
  - [`studio-isis-workflow-registry.md`](./studio-isis-workflow-registry.md)

## Open questions / known gaps

- [ ] No breadcrumb on this route — navigation is via sibling quick-actions
