# ISIS v2 NPC Crowd Variation Pack Web UI Controls and Validation

Generated: 2026-08-02T17:39:31.577Z Checklist: `MXA-0101` (ISIS2-00299) Asset
Family: `npc-crowd-variation-pack` Phase: Phase 4 | Milestone: M3 Launch
(2026-07-27 to 2026-10-30)

## Objective

Expose npc-crowd-variation-pack workflows in Isis web UI with ergonomic
variant-specific controls and deterministic validation aligned to API and SDK
typed contracts.

## Workflow Coverage

| Workflow ID                                    | Covered |
| ---------------------------------------------- | ------- |
| `npc-crowd-variation-pack-baseline`            | yes     |
| `npc-crowd-variation-pack-image-conditioned`   | yes     |
| `npc-crowd-variation-pack-control-conditioned` | yes     |
| `npc-crowd-variation-pack-consistency-locked`  | yes     |

## Ergonomic Controls

- `Character Archetype (required)`: present
- `Style Preset (required)`: present
- `Crowd Role Profile (required)`: present
- `Crowd Activity Profile (required)`: present
- `Crowd Layout Pattern (required)`: present
- `Wardrobe Variation Profile (required)`: present
- `Environment Context (required)`: present
- `Camera Framing (required)`: present
- `Seed (required)`: present
- `Style Reference Image (required)`: present
- `Use Pose Control`: present
- `Pose Map`: present
- `Pose Strength`: present
- `Use Depth Control`: present
- `Depth Map`: present
- `Depth Strength`: present
- `Use Segmentation Control`: present
- `Segmentation Map`: present
- `Segmentation Strength`: present
- `Use Normal Control`: present
- `Normal Map`: present
- `Normal Strength`: present
- `Use Canny Control`: present
- `Canny Map`: present
- `Canny Strength`: present
- `Use Lineart Control`: present
- `Lineart Map`: present
- `Lineart Strength`: present
- `Use Mask Region Guide`: present
- `Mask Region Map`: present
- `Mask Guide Strength`: present
- `Control Blend Precedence`: present
- `Control Blend Conflict Policy`: present
- `Control Blend ControlNet Scale`: present
- `Control Blend IPAdapter Scale`: present
- `Control Blend InstantID Scale`: present
- `Control Blend ControlNet Schedule Start`: present
- `Control Blend ControlNet Schedule End`: present
- `Control Blend ControlNet Schedule Curve`: present
- `Control Blend IPAdapter Schedule Start`: present
- `Control Blend IPAdapter Schedule End`: present
- `Control Blend IPAdapter Schedule Curve`: present
- `Control Blend InstantID Schedule Start`: present
- `Control Blend InstantID Schedule End`: present
- `Control Blend InstantID Schedule Curve`: present
- `Continuity Profile ID`: present
- `Identity Reference Image (required)`: present
- `Identity Profile ID (required)`: present
- `Style Profile ID (required)`: present
- `Crowd Density Tier (required)`: present
- `Lighting Profile (required)`: present
- `Color Script Profile (required)`: present

## Validation Rules

- present: NPC crowd variation pack workflows require generation type
  text-to-image.
- present: Crowd Role Profile is required.
- present: Crowd Activity Profile is required.
- present: Crowd Layout Pattern is required.
- present: Wardrobe Variation Profile is required.
- present: Environment Context is required.
- present: Camera Framing is required.
- present: Style Reference Image is required.
- present: At least one control must be enabled for control-conditioned
  workflows.
- present: Pose Map is required when pose control is enabled.
- present: Depth Map is required when depth control is enabled.
- present: Segmentation Map is required when segmentation control is enabled.
- present: Normal Map is required when normal control is enabled.
- present: Canny Map is required when canny control is enabled.
- present: Lineart Map is required when lineart control is enabled.
- present: Mask Region Map is required when mask region guide is enabled.
- present: Control Blend Precedence entries must be unique.
- present: Control Blend ControlNet Scale must be between 0 and 2.
- present: Control Blend IPAdapter Scale must be between 0 and 2.
- present: Control Blend InstantID Scale must be between 0 and 2.
- present: Control Blend ControlNet schedule start must be less than or equal to
  end.
- present: Control Blend IPAdapter schedule start must be less than or equal to
  end.
- present: Control Blend InstantID schedule start must be less than or equal to
  end.
- present: Continuity Profile ID must be character-continuity-profile.
- present: Identity Reference Image is required.
- present: Identity Profile ID is required.
- present: Style Profile ID is required.
- present: Crowd Density Tier is required.
- present: Lighting Profile is required.
- present: Color Script Profile is required.

## Verification Commands

- `pnpm --filter @isis/web exec vitest run src/pages/npc-crowd-variation-pack-ui-utils.spec.ts src/pages/WorkflowDetailsPage.spec.tsx src/pages/workflow-run-utils.spec.ts`
- `pnpm --filter @isis/client exec vitest run src/resources/workflows.npc-crowd-variation-pack.spec.ts src/examples/npc-crowd-variation-pack.spec.ts`
- `pnpm --filter @isis/web exec playwright test e2e/npc-crowd-variation-pack-controls.spec.ts`
- `pnpm nx build @isis/web`

## Acceptance Criteria

- Workflow details page renders ergonomic variant-specific
  npc-crowd-variation-pack controls for all four workflow IDs.
- Web UI validation enforces typed contract constraints (generation type lock,
  required fields, control toggles, and conditional map/reference requirements).
- Workflow run dispatch includes explicit generationType/type fields for typed
  API contract alignment.
- Web UI tests cover ergonomic form rendering, validation errors, and successful
  workflow run payload dispatch.

## Traceability

- Checklist item: `MXA-0101`
- Ticket key: `ISIS2-00299`
- Source references:
  - `docs/domains/isis/remediation-v2/ISIS_REMEDIATION_V2_TICKETS.json`
  - `docs/domains/isis/remediation-v2/ISIS_V2_NPC_CROWD_VARIATION_PACK_REQUIREMENTS_BRIEF.json`
  - `docs/domains/isis/remediation-v2/ISIS_V2_NPC_CROWD_VARIATION_PACK_SDK_END_TO_END_EXAMPLES.json`
  - `apps/isis/web/src/pages/WorkflowDetailsPage.tsx`
  - `apps/isis/web/src/pages/WorkflowDetailsPage.spec.tsx`
  - `apps/isis/web/e2e/npc-crowd-variation-pack-controls.spec.ts`
  - `apps/isis/web/src/pages/WorkflowControlBlendPanel.tsx`
  - `apps/isis/web/src/pages/npc-crowd-variation-pack-ui-utils.ts`
  - `apps/isis/web/src/pages/npc-crowd-variation-pack-ui-utils.spec.ts`
  - `apps/isis/web/src/pages/workflow-control-blend-ui-utils.ts`
  - `apps/isis/web/src/pages/workflow-run-utils.ts`
  - `ISIS_TODOS_2.md`
