# ISIS v2 Decal Pack Quality Evaluator and Acceptance Gate

Generated: 2026-03-01T23:37:09.996Z Checklist: `MXA-0357` (ISIS2-00555) Asset
Family: `decal-pack` Phase: Phase 4 | Milestone: M3 Launch (2026-07-27 to
2026-10-30)

## Objective

Deliver deterministic decal-pack quality evaluation using decal-edge fidelity,
substrate-blend consistency, placement alignment, and style-lock adherence
metrics with threshold-based acceptance gating in workflow execution APIs and
auditable diagnostics.

## Workflow Coverage

| Workflow                       | Quality Utils Coverage | Jobs Strategy Coverage | Workflow Surface Coverage |
| ------------------------------ | ---------------------- | ---------------------- | ------------------------- |
| decal-pack-baseline            | yes                    | yes                    | no                        |
| decal-pack-image-conditioned   | yes                    | yes                    | no                        |
| decal-pack-control-conditioned | yes                    | yes                    | yes                       |
| decal-pack-consistency-locked  | yes                    | yes                    | yes                       |

## Quality Gate Environment Coverage

| Environment Key                                  | Quality Utils | Jobs Strategy |
| ------------------------------------------------ | ------------- | ------------- |
| ISIS_DECAL_PACK_QUALITY_GATE_ENABLED             | yes           | yes           |
| ISIS_DECAL_PACK_MIN_QUALITY_SCORE                | yes           | yes           |
| ISIS_DECAL_PACK_QUALITY_GATE_RETRY_AFTER_SECONDS | yes           | yes           |
| ISIS_DECAL_PACK_DECAL_EDGE_FIDELITY_MIN          | yes           | yes           |
| ISIS_DECAL_PACK_SUBSTRATE_BLEND_CONSISTENCY_MIN  | yes           | yes           |
| ISIS_DECAL_PACK_PLACEMENT_ALIGNMENT_MIN          | yes           | yes           |
| ISIS_DECAL_PACK_STYLE_LOCK_ADHERENCE_MIN         | yes           | yes           |

## Verification Commands

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

## Acceptance Criteria

- decal-pack workflow variants evaluate decal-edge fidelity, substrate-blend
  consistency, placement alignment, and style-lock adherence 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 decal-pack quality-gate policy
  metadata and environment-key governance coverage.
