# WF-015 Certification: cosmetic-layer

Date: 2026-02-22  
Checklist Item: `WF-015`  
Ticket: `ISIS-0195`

## Certification Scope

Workflow: `cosmetic-layer`
(`libs/isis/workflows/src/workflows/avatar/cosmetic-layer.json`)

Required checks:

1. schema validity
2. resolver mapping
3. executor success
4. RunPod success readiness
5. web app run path
6. E2E regression coverage

## Evidence Matrix

| Requirement              | Evidence                                                                                                                                                                                                                                        | Status |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| Schema validity          | `apps/isis/generation-api/src/workflows/executor.spec.ts` test `certifies cosmetic-layer workflow for schema, resolver mapping, runpod compatibility, and executor success` loads `avatar/cosmetic-layer.json` and validates workflow metadata. | Pass   |
| Resolver mapping         | Same test verifies resolver entry exists for `cosmetic-layer` and maps to `text-to-image`.                                                                                                                                                      | Pass   |
| Executor success         | Same test executes `cosmetic-layer` via `WorkflowExecutor` in test mode with simulated runtime fallback and asserts successful completion + output metadata.                                                                                    | Pass   |
| RunPod success readiness | Same test asserts workflow provider compatibility includes `runpod`, validating supported execution provider mapping for rollout path.                                                                                                          | Pass   |
| Web app run path         | `apps/isis/web/src/pages/WorkflowDetailsPage.spec.tsx` test `executes the cosmetic-layer workflow from the web run path with workflow-specific routing` validates route `/workflows/cosmetic-layer` and run action wiring.                      | Pass   |
| E2E regression coverage  | Workflow details page integration test path is executed in web test suite for workflow-specific run behavior.                                                                                                                                   | Pass   |

## Reproduction Commands

```bash
pnpm --filter @isis/generation-api exec vitest run src/workflows/executor.spec.ts -t "certifies cosmetic-layer workflow for schema, resolver mapping, runpod compatibility, and executor success"
pnpm --filter @isis/web exec vitest run src/pages/WorkflowDetailsPage.spec.tsx -t "executes the cosmetic-layer workflow from the web run path with workflow-specific routing"
```

## Notes

- Certification uses deterministic simulated execution in non-production test
  mode for stable CI verification of executor success.
- RunPod compatibility is certified via resolver capability metadata and
  provider support mapping.
