# ISIS v2 Character Turnaround Sheet Quality Evaluator and Acceptance Gate

Generated: 2026-08-02T16:34:00.493Z Checklist: `MXA-0033` (ISIS2-00231) Asset
Family: `character-turnaround-sheet` Phase: Phase 4 | Milestone: M3 Launch
(2026-07-27 to 2026-10-30)

## Objective

Deliver deterministic character-turnaround-sheet quality evaluation using
identity, facial-geometry, garment-match, and palette-consistency metrics, and
enforce threshold-based acceptance gating in workflow execution APIs with
auditable diagnostics.

## Workflow Coverage

| Workflow                                         | Quality Utils Coverage | Jobs Strategy Coverage | Workflow Surface Coverage |
| ------------------------------------------------ | ---------------------- | ---------------------- | ------------------------- |
| `character-turnaround-sheet-baseline`            | yes                    | yes                    | no                        |
| `character-turnaround-sheet-image-conditioned`   | yes                    | yes                    | no                        |
| `character-turnaround-sheet-control-conditioned` | yes                    | yes                    | yes                       |
| `character-turnaround-sheet-consistency-locked`  | yes                    | yes                    | yes                       |

## Quality Gate Environment Keys

| Env Key                                                            | Quality Utils Coverage | Jobs Strategy Coverage |
| ------------------------------------------------------------------ | ---------------------- | ---------------------- |
| `ISIS_CHARACTER_TURNAROUND_SHEET_QUALITY_GATE_ENABLED`             | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_MIN_QUALITY_SCORE`                | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_QUALITY_GATE_RETRY_AFTER_SECONDS` | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_FACE_EMBEDDING_MIN`               | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_FACIAL_LANDMARK_DRIFT_MAX_PX`     | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_GARMENT_ATTRIBUTE_MATCH_MIN`      | yes                    | yes                    |
| `ISIS_CHARACTER_TURNAROUND_SHEET_WARDROBE_PALETTE_DELTA_E_MAX`     | yes                    | yes                    |

## Verification Commands

- `pnpm --filter @isis/generation-api exec vitest run src/routes/character-turnaround-sheet-quality-gate-utils.spec.ts src/routes/workflows.spec.ts src/routes/jobs.spec.ts`

## Acceptance Criteria

- Character-turnaround-sheet workflow variants evaluate identity,
  facial-landmark drift, garment-attribute, and palette-delta quality metrics
  deterministically.
- Quality threshold violations enforce hard acceptance-gate rejection before
  dispatch with explicit response code and retry metadata.
- Workflow run responses and metadata persist quality score and gate-status
  diagnostics for operator visibility and downstream auditing.
- Provider compatibility diagnostics expose character-turnaround-sheet
  quality-gate policy metadata and environment-key governance coverage.

## Traceability

- Checklist item: `MXA-0033`
- Ticket key: `ISIS2-00231`
- Enforcement route: `/api/v1/workflows/:workflowId/run`
- Error code: `CHARACTER_TURNAROUND_SHEET_QUALITY_GATE_FAILED`
